Pages

Translate this blog to many language

Wednesday, April 24, 2013

Web Service Definition Language: Sample HelloWorld WSDL


Web Service Definition Language: Sample HelloWorld WSDL

The Web Services Description Language is an XML-based language that is used for describing the functionality offered by a Web service. A WSDL description of a web service (also referred to as a WSDL file) provides a machine-readable description of how the service can be called, what parameters it expects, and what data structures it returns. It thus serves a roughly similar purpose as a method signature in a programming language.
Assuming the service provides a single publicly available function, called sayHello. This function expects a single string parameter and returns a single string greeting. For example if you pass the parameter world then service function sayHello returns the greeting, “Hello, world!”.
HelloWorld WSDL file:
Analysis of the Example:
  • Definition : HelloService
  • Type : Using built-in data types and they are defined in XMLSchema.
  • Message :
    • sayHelloRequest : firstName parameter
    • sayHelloresponse: greeting return value
  • Port Type: sayHello operation that consists of a request and response service.
  • Binding: Direction to use the SOAP HTTP transport protocol.
  • Service: Service available at http://www.examples.com/SayHello/.
  • Port: Associates the binding with the URI http://www.examples.com/SayHello/ where the running service can be accessed.
In next post i’ll explain on how to deploy sample WSDL in Eclipse environment.
Ref: http://www.tutorialspoint.com/wsdl/wsdl_example.htm

No comments:

Post a Comment

Search