When I am going to consume sharepoint web services which needs xml input like <![CDATA[<?xml version="1.0"?><soap:query><Where><Lt><FieldRef Name="ID" /><Value Type="Counter">3</Value> </Lt> </Where></soap:query>]]> here soap:query is one xml input parameter. How to provide xml data as input while calling web services?
Thanks,
Dinesh
Here is xml input parameter and if I append just above the input parameter like "
SoapUI soap Request---
1000
*note: With SoapUI with above request it receive the valid response.
SpySoap Soap Request:
xmlns:s1="http://microsoft.com/wsdl/types/" xmlns:s2="http://schemas.microsoft.com/sharepoint/soap/">
test
3
1000
no
yes
*note: But with above SOAP spy soap request it throws error soap response as,
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
soap:Server
Exception of type
'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.
xmlns="http://schemas.microsoft.com/sharepoint/soap/">Element
<Query> of parameter query is missing or invalid.
0x82000000
What could be the solution?
Thanks in advance,
Dinesh
You don't have to think about the soap-envelope itself. That's handled by Progress.
But I suggest you check out the documentation for Web Services among the PDFs (download it if you havent already!). There's also a document called Working with XML that should answer your questions.
Hi Jens,
Thanks for your suggestion. But this service worked while tested using .Net client but with progress client and using SOAP ui its not working even though the same input is provided. The service is SharePoint web service.
Any idea?
Thanks
Dinesh
Hej!
Jag är på semester. Återkommer den 13/8.
Ha en trevlig sommar!
Jens Dahlin
Hi,
I'm on vacation. Will be back on August 13th.
Have a nice summer!
Best regards
Jens
Try to check for errors in the ERROR-STATUS and SOAP-FAULT handles. Again: check the documentation on Web Services. It's really good!