• 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

When to use complex types and when to use elements in creating wsdl files?

 
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
Thank you for reading my post.
When we create XSD files, we can create elements and also we can create complextypes.
for example we can create an student type as an element or as a complex type and then I can use it to create WSDL documents (methods input and outputs).

What I can not undestand is the differences between using Elements and ComplexType in creating custom types like student and also I can not undestand what is differences between using a complexType or element to build a wsdl file.


Thanks
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It depends on the mode of messaging that you use.

For RPC/literal you use complex types in the WSDL message-part because the SOAP body content isn't a top level element out of the WSDL types (XML Schema) section but is simply an element named according to the operation specified in the WSDL portType section. For the document/literal mode of messaging the SOAP body content has to be a valid top level element (i.e. document) as defined in the WSDL types (XML Schema) section - so you must use a top-level element as the one and only part in the WSDL message definition (the operation name of the WSDL portType doesn't appear anywhere in the SOAP body or message).

Which style of WSDL should I use?
The "Wrapped" Document/Literal convention
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic