Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SOAP Message Construction

 
Yeshodhan Kulkarni
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I have a doubt regarding the SOAP Message construction.
Can we have a soap message constructed as follows which contains 2 documents under body?

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://abc.com/products/data/v1.0" xmlns:ns="http://abc.com" xmlns:wo="http://abc.com/products">
<soapenv:Header/>
<soapenv:Body>
<v1:deleteRequest>
....

</v1:deleteRequest>
<v1:createRequest>
....

</v1:createRequest>
</soapenv:Body>
</soapenv:Envelope>

Well, its quite possible to construct this, I auto generated the above SOAP Message after loading a WSDL into SOAPUI. But does this fit under the Basic Profile I?

I understand that we can at the most have on document node under Body element? Is my understanding correct?
 
Adam Smolnik
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey.

BP 1.1 says:
R9981 An ENVELOPE MUST have exactly zero or one child elements of the soap:Body element.

Your understanding is correct - for document-literal(non wrapped) style and for the method with 2(and more) parameters SOAP will not be conformant with BP 1.1.

More details:
http://www.ibm.com/developerworks/webservices/library/ws-whichwsdl/

Adam
 
Asit Baran
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I couldn't find any such restriction on BP 1.0 which is available at this link. Is it added in the latest version? Please confirm.
 
Frida Stein
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Asit Baran wrote:I couldn't find any such restriction on BP 1.0 which is available at this link. Is it added in the latest version? Please confirm.


please refer to
http://www.ws-i.org/Profiles/BasicProfile-1.1.html

but: i do not agree that R9981 says that there is only one child allowed for the body element. the rule means that the body element is optional and there is at most one occurance.

Yours,
Frida
 
Adam Smolnik
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm afraid you are wrong because(from SOAP 1.1 spec):

4. SOAP Envelope
A SOAP message is an XML document that consists of a mandatory SOAP envelope, an optional SOAP header, and a mandatory SOAP body.


http://www.w3.org/TR/2000/NOTE-SOAP-20000508/

The mentioned article in previous my post confirms it:
...WS-I only allows one child of the soap:body in a SOAP message. As you can see in Listing 7, this example's soap:body has two children.




so it is one of "Weaknesses" of document/literal style.

Adam

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic