Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Documenta based web services

 
punna Kumar
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
What is the difference Between document based web service and normal web services?

How i can create the WSDL files for Document based web services ?. i am using WSAD 5.1.2

how to validate xml with schema in document based web service ?

is it possible to create the document based web services using Apache axis.

where i can find the examples for documentation based web services?


Ravi
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by punna Kumar:
What is the difference Between document based web service and normal web services?

The distinction is between RPC style and Document style Web services. With RPC style Web services the SOAP payload is an XML root element that represents an operation that encloses any number of elements that represent parameters.
With Document style Web services the SOAP payload is a single XML document usually defined in a separate XML schema. The SOAP binding and operation elements used in the WSDL have style attributes which can be set to either "rpc" or "document"
For more details see: Which style of WSDL should I use?

how to validate xml with schema in document based web service ?
Same way you validate any other XML document - with a validating parser. Check out Processing XML with Java.

is it possible to create the document based web services using Apache axis.
Yes, see:
Axis User Guide: Service Styles - RPC, Document, Wrapped, and Message

Other than that you may want to look at Patterns and Strategies for Building Document-Based Web Services.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic