IBM®
Skip to main content
    Country/region [select]      Terms of use
 
 
      
     Home      Products      Services & solutions      Support & downloads      My account     

developerWorks > Sample IT projects >
developerWorks
WebSphere Business Components and Web services architectures

Return to article

Listing 5. WSDL Construct



   <?xml version="1.0"?>
   <definitions name="ExchangeRateService" 
            
   targetNamespace="http://www.ibm.com/software/components/examples/WSBCExchangeRateService.scl"
         
   xmlns:tns="http://www.ibm.com/software/components/examples/WSBCExchangeRateService.scl"
    
   xmlns:xsd1="http://www.ibm.com/software/components/sample/schema/WSBCExchangeRate.xsd"
    
   xmlns:soap="http://schemas.xmlsoap.org/scl/soap/"
    
   xmlns="http://schemas.xmlsoap.org/scl/">
    
       <message name="ConvertRequest">
           <part name=_body_ element=_xsd1:ConvertRequest_/>
       </message>
    
       <message name="ConvertResponse">
           <part name=_body_ element=_xsd1:ConvertResponse_/>
       </message>
    
       <portType name=_ExchangeRateServicePortType_>
           <operation name=_Convert_>
               <input message=_tns:ConvertRequest_/>
               <output message=_tns:ConvertResponse_/>
           </operation>
       </portType>
    
       <binding name=_ExchangeRateServiceSoapBinding_ type=_tns:ExchangeRateServicePortType_>
           <soap:binding style="document"
                              transport="http://schemas.xmlsoap.org/soap/http"/>
                <operation name="Convert">
                    <soap:operation soapAction=_http://www.ibm.com/software/components/examples/WSBCExchangeRateService/Convert"/>
                     <input>
                         <soap:body use="literal"
           
   namespace="http://www.ibm.com/software/components/sample/schema/WSBCExchangeRate.xsd"                 
             
            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
                     </input>
                     <output>
                         <soap:body use="literal"
                                 namespace="http://www.ibm.com/software/components/sample/schema/WSBCExchangeRate.xsd"                                  
                                 
                                 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
                     </output>
                 </operation>
       </binding>
    
       <service name=_ExchangeRateService_>
           <documentation>A WSBC service</documentation> 
           <port name=_ExchangeRateServicePort_binding=_tns:ExchangeRateServiceSoapBinding_>
               <soap:addresslocation=_http://www.ibm.com/software/components/examples/WSBCExchangeRateService_/>
           </port>
       </service>
    
     <types>
           <schema
   targetNamespace="http://www.ibm.com/software/components/examples/schemas/WSBCExchangeRate.xsd"
                   xmlns="http://www.w3.org/1999/XMLSchema">
     <element name="ConvertRequest">
        <complexType>
        <all>
         <element name="ValueToConvert" type="CurrencyValue" minOccurs="1" maxOccurs="1"/>
         <element name="TargetCurrency" type="CurrencyCode" minOccurs="1" maxOccurs="1"/>
         <element name="RequestDate" type="DateValue" minOccurs="1" maxOccurs="1"/>
        </all>
        </complexType>
        
        </element>
           <element name="ConvertResponse">
         <complexType>
           <all>
           <element name="ConvertedValue" type="CurrencyValue" minOccurs="1" maxOccurs="1"/>
           </all>
           </complexType>
       </element>
        </schema>
       </types>
   </definitions>
   
   

Return to article




developerWorks > Sample IT projects >
developerWorks
  About IBM  |  Privacy  |  Terms of use  |  Contact