• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

SOAP Message Construction

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
He got surgery to replace his foot with a pig. He said it was because of this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic