Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

WSDL part element  RSS feed

 
Jay Devan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • 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
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • 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!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!