Rational Developer for System z

Sample Web service definition file

This topic shows the contents a sample outbound Web service definition file.

The following XML text is taken from the sample file GetQuote.wsdl:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace=
      "http://stock.webservices.samples.websphere.ibm.com" 
         xmlns="http://schemas.xmlsoap.org/wsdl/" 
         xmlns:apachesoap="http://xml.apache.org/xml-soap" 
         xmlns:impl="http://stock.webservices.samples.websphere.ibm.com" 
         xmlns:intf="http://stock.webservices.samples.websphere.ibm.com" 
         xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
         xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" 
         xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <wsdl:types>
    <schema elementFormDefault="qualified" 
        targetNamespace="http://stock.webservices.samples.websphere.ibm.com" 
        xmlns="http://www.w3.org/2001/XMLSchema">
      <element name="getQuote">
        <complexType>
          <sequence>
            <element name="arg_0_0" nillable="true" type="xsd:string"/>
          </sequence>
        </complexType>
      </element>
      <element name="getQuoteResponse">
        <complexType>
          <sequence>
            <element name="getQuoteReturn" type="xsd:float"/>
          </sequence>
        </complexType>
      </element>
    </schema>
  </wsdl:types>
  <wsdl:message name="getQuoteRequest">
    <wsdl:part element="impl:getQuote" name="parameters"/>
  </wsdl:message>
  <wsdl:message name="getQuoteResponse">
    <wsdl:part element="impl:getQuoteResponse" name="parameters"/>
  </wsdl:message>
  <wsdl:portType name="StockQuote">
    <wsdl:operation name="getQuote">
      <wsdl:input message="impl:getQuoteRequest" name="getQuoteRequest"/>
      <wsdl:output message="impl:getQuoteResponse" name="getQuoteResponse"/>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="StockQuoteSoapBinding" type="impl:StockQuote">
    <wsdlsoap:binding style="document" transport=
          "http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="getQuote">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="getQuoteRequest">
        <wsdlsoap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="getQuoteResponse">
        <wsdlsoap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="GetQuoteService">
    <wsdl:port name="StockQuote" binding="impl:StockQuoteSoapBinding">
      <wsdlsoap:address location=
            "http://localhost:9080/StockQuote/services/GetQuoteService"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)