Example WSDL

The table following this example shows which WSDL elements and attributes are used to create TIBCO BusinessEvents project artifacts.

Elements and attributes used in the import are highlighted in bold text. Differences between import from abstract and concrete WSDL files are also highlighted. See Example Project Folder Structure for more details.

<?xml version="1.0" encoding="UTF-8"?>
<!--Created by TIBCO WSDL-->
<wsdl:definitions omitted to keep the example short>
   <wsdl:types>
      <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.books.org" elementFormDefault="qualified" attributeFormDefault="unqualified" targetNamespace="http://www.books.org">
. . . . . . Elements omitted
      </xsd:schema>
   </wsdl:types>
. . . . . . Elements omitted
 
Note:In an abstract WSDL the following elements are used in the import. However in a concrete WSDL, the <wsdl:binding> elements are used instead. <wsdl:portType name="GetBookPortType">
      <wsdl:operation name="GetBook">
         <wsdl:input message="tns:GetBookRequestMessage"/>
         <wsdl:output message="tns:GetBookResponseMessage"/>
      </wsdl:operation>
   </wsdl:portType>
 
Note: This is a concrete WSDL example, so the <wsdl:binding> elements are used in the import. (In an abstract WSDL, the <wsdl:portType> element contents are used instead.)<wsdl:binding name="getBookBinding" type="tns:GetBookPortType">
      <soap:binding style="document"
                transport="http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="GetBook">
         <wsdl:documentation>The operation has no documentation
         </wsdl:documentation>
         <soap:operation style="document" soapAction="/Service/getBook"/>
         <wsdl:input>
            <soap:body use="literal" parts="part1"/>
            <soap:header use="literal" 
                     message="tns:TransactionRecordMessage" part="user"/>
         </wsdl:input>
         <wsdl:output>
            <soap:body use="literal" parts="part1"/>
            <soap:header use="literal" 
                     message="tns:TransactionRecordMessage" part="transactionID"/>
         </wsdl:output>
      </wsdl:operation>
   </wsdl:binding>
   <wsdl:service name="getBook">
      <wsdl:port name="getBookHttpPort" binding="tns:getBookBinding">
         <soap:address location="http://ACME:9090/Service/getBook"/>
      </wsdl:port>
   </wsdl:service>
</wsdl:definitions>