Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

<Soap:Body> vs <SOAP-ENV:Body> Parser Error

 
D Arnott
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all!

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!

Thanks!
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
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.
Best wishes!
 
D Arnott
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

 
Tejas Aryan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic