B
Bart
Hello there,
I want to consume the PSI Calendar webservice for reporting purposes. I
created a shared datasource in Visual Studio 2008 (installed by SQL2008) to
access the PSI ListCalendars webservice and it works fine (finally).
Now I'm trying to consume the Calendar.ReadCalendars PSI webservice via the
same datasource but it keeps on giving me the following error:
***
The remote server returned an error: (500) Internal Server Error.
<?xml version="1.0" encoding="utf-8"?><soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>System.Web.Services.Protocols.SoapException:
ProjectServerError(s) LastError=CalendarFilterInvalid Instructions: Pass this
into PSClientError constructor to access all error information
at
Microsoft.Office.Project.Server.WebService.Calendar.ReadCalendars(String
filter, Boolean
autoCheckOut)</faultstring><faultactor>http://exsto:56737/SharedServices1/PSI/Calendar.asmx</faultactor><detail><errinfo><general><class
name="Value cannot be null.
Parameter name: s"><error id="13043" name="CalendarFilterInvalid"
uid="7ae0376c-f8c9-48ed-8184-c9e0fd6c3694"
/></class></general></errinfo></detail></soap:Fault></soap:Body></soap:Envelope>
----------------------------
Failed to execute web request for the specified URL.
Soap Fault:
System.Web.Services.Protocols.SoapException: ProjectServerError(s)
LastError=CalendarFilterInvalid Instructions: Pass this into PSClientError
constructor to access all error information
at
Microsoft.Office.Project.Server.WebService.Calendar.ReadCalendars(String
filter, Boolean autoCheckOut)
***
Obviously he complains about 'CalendarFilterInvalid', but the filter
parameter is set (see below) and even when put a value in it, it keeps on
giving the same error.
I am using this query...
<Query
<SoapAction>http://schemas.microsoft.com/office/project/server/webservices/Calendar/ReadCalendars</SoapAction>
<Method Name="ReadCalendars"
Namespace="http://schemas.microsoft.com/office/project/server/webservices/Calendar">
<Parameters>
<Parameter Name="filter">
<DefaultValue>String.Empty</DefaultValue>
</Parameter>
<Parameter Name="autoCheckOut">
<DefaultValue>false</DefaultValue>
</Parameter>
</Parameters>
</Method>
<ElementPath IgnoreNamespaces="true">*</ElementPath>
</Query>
Just can't figure out what to change to make it work. Can't find any usefull
info online or in the SDK... your help is appreciated ;-)
Thanks in advance, Bart
I want to consume the PSI Calendar webservice for reporting purposes. I
created a shared datasource in Visual Studio 2008 (installed by SQL2008) to
access the PSI ListCalendars webservice and it works fine (finally).
Now I'm trying to consume the Calendar.ReadCalendars PSI webservice via the
same datasource but it keeps on giving me the following error:
***
The remote server returned an error: (500) Internal Server Error.
<?xml version="1.0" encoding="utf-8"?><soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>System.Web.Services.Protocols.SoapException:
ProjectServerError(s) LastError=CalendarFilterInvalid Instructions: Pass this
into PSClientError constructor to access all error information
at
Microsoft.Office.Project.Server.WebService.Calendar.ReadCalendars(String
filter, Boolean
autoCheckOut)</faultstring><faultactor>http://exsto:56737/SharedServices1/PSI/Calendar.asmx</faultactor><detail><errinfo><general><class
name="Value cannot be null.
Parameter name: s"><error id="13043" name="CalendarFilterInvalid"
uid="7ae0376c-f8c9-48ed-8184-c9e0fd6c3694"
/></class></general></errinfo></detail></soap:Fault></soap:Body></soap:Envelope>
----------------------------
Failed to execute web request for the specified URL.
Soap Fault:
System.Web.Services.Protocols.SoapException: ProjectServerError(s)
LastError=CalendarFilterInvalid Instructions: Pass this into PSClientError
constructor to access all error information
at
Microsoft.Office.Project.Server.WebService.Calendar.ReadCalendars(String
filter, Boolean autoCheckOut)
***
Obviously he complains about 'CalendarFilterInvalid', but the filter
parameter is set (see below) and even when put a value in it, it keeps on
giving the same error.
I am using this query...
<Query
<SoapAction>http://schemas.microsoft.com/office/project/server/webservices/Calendar/ReadCalendars</SoapAction>
<Method Name="ReadCalendars"
Namespace="http://schemas.microsoft.com/office/project/server/webservices/Calendar">
<Parameters>
<Parameter Name="filter">
<DefaultValue>String.Empty</DefaultValue>
</Parameter>
<Parameter Name="autoCheckOut">
<DefaultValue>false</DefaultValue>
</Parameter>
</Parameters>
</Method>
<ElementPath IgnoreNamespaces="true">*</ElementPath>
</Query>
Just can't figure out what to change to make it work. Can't find any usefull
info online or in the SDK... your help is appreciated ;-)
Thanks in advance, Bart