J
James
Hi,
Due to system requirements I am using Java to access the SOAP web service of
PSI. When attempting to create a new project using the QueueCreateProject web
method sending the following as the request I get Error 42:
GeneralUnhandledException....which is obviously very little to go on when
debugging.
REQUEST:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlnsroj="http://schemas.microsoft.com/office/project/server/webservices/Project/"
xmlnsrojds="http://schemas.microsoft.com/office/project/server/webservices/ProjectDataSet/">
<soapenv:Header/>
<soapenv:Body>
<proj:QueueCreateProject>
<proj:jobUid>{77c2fcd2-93c6-4386-8089-847136dc259f}</proj:jobUid>
<proj:dataset>
<projdsrojectDataSet>
<projdsroject>
<projdsROJ_UID>9087f21b-8503-4445-9a27-af08cba1c4d0</projdsROJ_UID>
<projdsROJ_NAME>Project Name</projdsROJ_NAME>
<projdsROJ_TYPE>0</projdsROJ_TYPE>
</projdsroject>
</projdsrojectDataSet>
</proj:dataset>
<proj:validateOnly>false</proj:validateOnly>
</proj:QueueCreateProject>
</soapenv:Body>
</soapenv:Envelope>
REPLY:
<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=GeneralUnhandledException Instructions: Pass
this into PSClientError constructor to access all error information
at
Microsoft.Office.Project.Server.WebService.Project.QueueCreateProject(Guid
jobUid, ProjectDataSet dataset, Boolean validateOnly)</faultstring>
<faultactor>http://XXXXXXXXXXXXX:56737/SharedServices/PSI/Project.asmx</faultactor>
<detail>
<errinfo>
<general>
<class name="An unhandled exception occurred in
Project.QueueCreateProject.">
<error id="42" name="GeneralUnhandledException"
uid="ee948234-cf32-46bb-9c5d-220d988478f7"/>
</class>
</general>
</errinfo>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
I am running out of ideas on what it could be, and am using a SOAP tester
now to formulate a working packet, adn then adjust the Java to create a
correct request.
Are there any examples of correct SOAP requests or DataSets XML for use with
the PSI Services? It would greatly help, or if someone could just packet
sniff their PSI call and send it along - obviously obscuring data - I am just
after the format.
Cheers for any help,
James
Due to system requirements I am using Java to access the SOAP web service of
PSI. When attempting to create a new project using the QueueCreateProject web
method sending the following as the request I get Error 42:
GeneralUnhandledException....which is obviously very little to go on when
debugging.
REQUEST:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlnsroj="http://schemas.microsoft.com/office/project/server/webservices/Project/"
xmlnsrojds="http://schemas.microsoft.com/office/project/server/webservices/ProjectDataSet/">
<soapenv:Header/>
<soapenv:Body>
<proj:QueueCreateProject>
<proj:jobUid>{77c2fcd2-93c6-4386-8089-847136dc259f}</proj:jobUid>
<proj:dataset>
<projdsrojectDataSet>
<projdsroject>
<projdsROJ_UID>9087f21b-8503-4445-9a27-af08cba1c4d0</projdsROJ_UID>
<projdsROJ_NAME>Project Name</projdsROJ_NAME>
<projdsROJ_TYPE>0</projdsROJ_TYPE>
</projdsroject>
</projdsrojectDataSet>
</proj:dataset>
<proj:validateOnly>false</proj:validateOnly>
</proj:QueueCreateProject>
</soapenv:Body>
</soapenv:Envelope>
REPLY:
<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=GeneralUnhandledException Instructions: Pass
this into PSClientError constructor to access all error information
at
Microsoft.Office.Project.Server.WebService.Project.QueueCreateProject(Guid
jobUid, ProjectDataSet dataset, Boolean validateOnly)</faultstring>
<faultactor>http://XXXXXXXXXXXXX:56737/SharedServices/PSI/Project.asmx</faultactor>
<detail>
<errinfo>
<general>
<class name="An unhandled exception occurred in
Project.QueueCreateProject.">
<error id="42" name="GeneralUnhandledException"
uid="ee948234-cf32-46bb-9c5d-220d988478f7"/>
</class>
</general>
</errinfo>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
I am running out of ideas on what it could be, and am using a SOAP tester
now to formulate a working packet, adn then adjust the Java to create a
correct request.
Are there any examples of correct SOAP requests or DataSets XML for use with
the PSI Services? It would greatly help, or if someone could just packet
sniff their PSI call and send it along - obviously obscuring data - I am just
after the format.
Cheers for any help,
James