• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SOAP - restriction to only one message part when using the type attribute

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you guys know if the restriction of only one message part if you use the type attribute (instead of the element attribute) is a WS-I BP 1.1 restriction or a SOAP standard restriction?

I somehow cannot find the restriction either in the SOAP nor in the WS-BP specs...
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
I think you have confused things slightly. The type attribute in a message part is used with RPC/Literal bindings. From the WS-I BP:


R2203 An rpc-literal binding in a DESCRIPTION MUST refer, in its soapbind:body element(s), only to wsdl:part element(s) that have been defined using the type attribute.


An RPC-style operation can have no, one or many parameters and each parameter is represented by a message part.
The following example shows how a message declaration for a GetBulkBookPrice operation may look like when using RPC/Literal binding:


With Document/Literal bindings, each part in a message corresponds to one child element of the SOAP body element. Since the WS-I BP says this about the contents of the SOAP body element:

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


Thus, a message that is to be used with a Document/Literal binding may only contain one single part.
Hope this clarifies things!
 
Allexicus Kernikus
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Many thanks Ivan! Your'e great help!!
 
If tomatoes are a fruit, then ketchup must be a jam. Taste this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic