Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
06-30-2011, 06:00 PM #1
- Join Date
- Mar 2008
- Forfar, Scotland
- Thanked 39 Times in 39 Posts
NuSoap: Error parsing payload, Reserved XML name.
I have written both the server and the client in the app and, although the web services work when a web service is called (the DB is updated successfully and the return values within the soap response are correct), The soap request traps an error in the server response:
"XML error parsing SOAP payload on line 7: Reserved XML Name"
The server response is as follows:
HTTP/1.1 200 OK Date: Thu, 30 Jun 2011 14:34:03 GMT Server: Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1 X-Powered-By: PHP/5.3.5 X-SOAP-Server: NuSOAP/0.7.3 (1.114) Content-Length: 761 Connection: close Content-Type: text/xml; charset=UTF-8 <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV=" ... "><SOAP-ENV:Body> ... </SOAP-ENV:Body></SOAP-ENV:Envelope>
I am positive it is the whitespace that is causing the error (as the request assumes the xml has started immediately after the header, then it hits the <?xml tag and thinks it is being used as part of the soap response).
What is causing this whitespace? Any ideas anyone?