Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-30-2011, 05:00 PM   PM User | #1
Stooshie
Regular Coder

 
Stooshie's Avatar
 
Join Date: Mar 2008
Location: Dundee, Scotland
Posts: 376
Thanks: 9
Thanked 39 Times in 39 Posts
Stooshie is on a distinguished road
Question 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:

Code:
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>
The 7 lines of whitespace are part of the response.

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?
__________________
Regards, Stooshie
O
Stooshie is offline   Reply With Quote
Reply

Bookmarks

Tags
error, nusoap, payload, xml

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:01 PM.


Advertisement
Log in to turn off these ads.