Exforsys

Ads


Home arrow Reviews arrow SOA Web Services

SOA Web Services - WSDL for Java Web Service

Author: Packt Publishing     Published on: 1st Aug 2008

WSDL for Java Web Service

The WSDL is shown in the following listing.

Ads


Sample Code
  1. <definitions targetnamespace="http://endpoint/" name="HelloService"></definitions>
  2.  
  3. <types></types>
  4. <xsd:schema>
  5. <xsd:import schemalocation="http://DRSARANG:8080/Hello/HelloService/__container$pu
  6. blishing$subctx/WEB-INF/wsdl/HelloService_schema1.xsd" namespace="http://endpoint/">
  7. </xsd:import>
  8. </xsd:schema>
  9.  
  10.  <message name="SayHello"></message>
  11.  <part name="parameters" element="tns:SayHello"></part>
  12.  
  13.  <message name="SayHelloResponse"></message>
  14.  <part name="parameters" element="tns:SayHelloResponse"></part>
  15.  
  16.  
  17.  <porttype name="Hello"></porttype>
  18.  <operation name="SayHello"></operation>
  19.  <input message="tns:SayHello" />
  20.  <output message="tns:SayHelloResponse"></output>
  21.  
  22.  
  23.  
  24.  <binding name="HelloPortBinding" type="tns:Hello"></binding>
  25.  <soap:binding transport="http://schemas.xmlsoap.org/soap/http">
  26.  </soap:binding>
  27.  <operation name="SayHello"></operation>
  28.  <soap:operation soapaction="></soap:operation>
  29.  <input />
  30.  <soap:body use="literal"></soap:body>
  31.  
  32.  <output></output>
  33.  <soap:body use="literal"></soap:body>
  34.  
  35.  
  36.  
  37.  <service name="HelloService"></service>
  38.  <port name="HelloPort" binding="tns:HelloPortBinding"></port>
  39.  <soap:address location="http://DRSARANG:8080/Hello/
  40. HelloService"></soap:address>
  41.  
  42.  
  43.  
Copyright exforsys.com


Ads

If you examine this document carefully against the BP conformance requirements, you will find that this file is 100% BP compliant. Thus, to import this as a reference in the .NET client, when we develop it later, would be very easy.



 
This tutorial is part of a SOA Web Services tutorial series. Read it from the beginning and learn yourself.

SOA Web Services

 

Comments