• 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

WSDL part element

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I have two statement about WSDL1.1 part element .. can you please explain it.

Global schema complexType must be referenced by the type attribute.
Global schema element must be referenced by the element attribute.

I have read in RHM that part element use type attribute to reffer simple type in case of RPC style and element attribute in document style.. but am not able to co relate the above statements to what i have read .. can you please explain it ..

Thanks in advance..

jj
 
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!
The cause for RPC-style web services to use the type attribute is that operations in this type of web services quite often represent functions, which often have parameters of primitive types, like string, integer, float etc. All these "primitive types" are defined in the XML schema language and can be referred to using the type attribute.
Document-style web services, on the other hand, take one single document as a parameter of an operation. Such a document is typically a complex data structure, defined as a global element in an XML schema. Thus, it is referred to using the element attribute.
I also suspect that this distinction may have been made, at least partly, in order to make it easier to tell Document- and RPC-style web services apart by just looking at the messages passed to/from the service.
Best wishes!
 
reply
    Bookmark Topic Watch Topic
  • New Topic