R
Raj
Please observe the code snippet:
POST http://localhost/KRA/ASPDOTNET/DataService.asmx HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type:
application/soap+xml;charset=UTF-8;action="http://localhost/ASPDOTNET/XmlDataProcessing"
User-Agent: Jakarta Commons-HttpClient/3.1
Host: localhost
Content-Length: 472
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:ihut="http://localhost/ASPDOTNET">
<soap:Header>
<ihut:UserCredentials>
<ihut:Username>dseadmin</ihut:Username>
<ihut
assword>adsfasdf</ihut
assword>
</ihut:UserCredentials>
</soap:Header>
<soap:Body>
<ihut:XmlDataProcessing>
<ihut:argstring>
<x>y</x>
</ihut:argstring>
</ihut:XmlDataProcessing>
</soap:Body>
</soap:Envelope>
I am getting error message as:
Data at the root level is invalid. Line 1, position 1
I need to pass <x>y</x> instead of y.
The web method is declared as XmlDataProcessing(XMLElement argstring)
Is there any workaround to fix this problem.
Thank you
Regards
Raj
POST http://localhost/KRA/ASPDOTNET/DataService.asmx HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type:
application/soap+xml;charset=UTF-8;action="http://localhost/ASPDOTNET/XmlDataProcessing"
User-Agent: Jakarta Commons-HttpClient/3.1
Host: localhost
Content-Length: 472
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:ihut="http://localhost/ASPDOTNET">
<soap:Header>
<ihut:UserCredentials>
<ihut:Username>dseadmin</ihut:Username>
<ihut
![Stick Out Tongue :P :P](/styles/default/custom/smilies/tongue.gif)
![Stick Out Tongue :P :P](/styles/default/custom/smilies/tongue.gif)
</ihut:UserCredentials>
</soap:Header>
<soap:Body>
<ihut:XmlDataProcessing>
<ihut:argstring>
<x>y</x>
</ihut:argstring>
</ihut:XmlDataProcessing>
</soap:Body>
</soap:Envelope>
I am getting error message as:
Data at the root level is invalid. Line 1, position 1
I need to pass <x>y</x> instead of y.
The web method is declared as XmlDataProcessing(XMLElement argstring)
Is there any workaround to fix this problem.
Thank you
Regards
Raj