Skip to main content

If you don't have an IBM ID and password, register here.

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. This profile includes the first name, last name, and display name you identified when you registered with developerWorks. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

 

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