Schema Central > WSDL 1.1 > wsdl11.xsd > wsdl:definitions
Advanced search
Need SOA Help?

Recommended Reading:

Web Service Contract Design and Versioning for SOA

 

Definitive XML Schema

 

wsdl:definitions

Element information

Namespace: http://schemas.xmlsoap.org/wsdl/

Schema document: wsdl11.xsd

Type: wsdl:tDefinitions

Properties: Global, Qualified

Content

Attributes

NameOccTypeDescriptionNotes
targetNamespace [0..1]xsd:anyURI
name [0..1]xsd:NCName

Identity constraints

TypeNameSelectorField(s)
keymessagewsdl:message@name
keyportTypewsdl:portType@name
keybindingwsdl:binding@name
keyservicewsdl:service@name
keyimportwsdl:import@namespace

Sample instance

<wsdl:definitions name="StockQuote"
                  targetNamespace="http://example.com/stockquote.wsdl">
   <wsdl:types>
      <xsd:schema targetNamespace="http://example.com/stockquote.xsd">
         <xsd:element name="TradePriceRequest">
            <xsd:complexType>
               <xsd:all>
                  <xsd:element name="tickerSymbol" type="string"/>
               </xsd:all>
            </xsd:complexType>
         </xsd:element>
         <xsd:element name="TradePrice">
            <xsd:complexType>
               <xsd:all>
                  <wsdl:element name="price" type="float"/>
               </xsd:all>
            </xsd:complexType>
         </xsd:element>
      </xsd:schema>
   </wsdl:types>
   <wsdl:message name="GetLastTradePriceInput">
      <wsdl:part name="body" element="xsd1:TradePriceRequest"/>
   </wsdl:message>
   <wsdl:message name="GetLastTradePriceOutput">
      <wsdl:part name="body" element="xsd1:TradePrice"/>
   </wsdl:message>
   <wsdl:portType name="StockQuotePortType">
      <wsdl:operation name="GetLastTradePrice">
         <wsdl:input message="tns:GetLastTradePriceInput"/>
         <wsdl:output message="tns:GetLastTradePriceOutput"/>
      </wsdl:operation>
   </wsdl:portType>
   <wsdl:binding name="StockQuoteSoapBinding" type="tns:StockQuotePortType">
      <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="GetLastTradePrice">
         <soap:operation soapAction="http://example.com/GetLastTradePrice"/>
         <wsdl:input>
            <soap:body use="literal"/>
         </wsdl:input>
         <wsdl:output>
            <soap:body use="literal"/>
         </wsdl:output>
      </wsdl:operation>
   </wsdl:binding>
   <wsdl:service name="StockQuoteService">
      <wsdl:documentation>My first service</wsdl:documentation>
      <wsdl:port name="StockQuotePort" binding="tns:StockQuoteBinding">
         <soap:address location="http://example.com/stockquote"/>
      </wsdl:port>
   </wsdl:service>
</wsdl:definitions>

Site developed and hosted by Datypic, Inc.

Please report errors or comments about this site to contrib@functx.com