This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am trying to parse a soap response file but the parser is throwing an error saying missing <SOAP-ENV:Body>. The file is not formated with that type of body tag it is formated with <Soap:body>. I've been searching online tyring to find the difference to no avail. Any of your web service guru's have any clue on the difference here? Is this an encoding thing? Can I change the response from my client? Any details would be great!
The namespace prefix, which in your examples are either "SOAP-ENV" or "Soap", should be defined in the message.
Namespace prefixes can have arbitrary names, as long as they are defined.
The <Body> element must be spelled just like that, though - with a capital "B". Thus "body" is not correct.
That helps explain things. The <soap:Body> tag is setup with propr case. One followup question is where is teh namespace prefixes defined? Shouldnt the <soap:Body> have a xmlns:ns in the tag?
Sorry, for the noob question. I am new to web services. I guess I am trying to determine if it is a problem with the parser I am using or the soap response itself. Here is a snippet from the soap response:
There is no need to define the namespace prefix separately for <soap:Body>. The namespace prefix is already defined in . The other thing I see missing is end tags for <soap:Body> and <soap:Enveloper>. Check if the response has the end tags as well.