La interfaz de servicio en este documento WSDL contiene un tipo de puerto (StockQuote), una operación (getQuote), un mensaje de entrada (getQuoteRequest) y un mensaje de salida (getQuoteResponse).
<?xml version="1.0" encoding="UTF-8"?> <definitions name="StockQuote" targetNamespace="http://example.com.wsdl/stockquote/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://example.com.wsdl/stockquote/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <message name="getQuoteRequest"> <part name="ticker" type="xsd:string"/> </message> <message name="getQuoteResponse"> <part name="result" type="xsd:float"/> </message> <portType name="StockQuote"> <operation name="getQuote" parameterOrder="ticker"> <input message="tns:getQuoteRequest" name="getQuoteRequest"/> <output message="tns:getQuoteResponse" name="getQuoteResponse"/> </operation> </portType> </definitions>