File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes binding and service elements in wsdl Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "binding and service elements in wsdl" Watch "binding and service elements in wsdl" New topic
Author

binding and service elements in wsdl

Femi Byte
Ranch Hand

Joined: Jul 09, 2004
Posts: 40
I have a question about this fragment in the WSDL spec:

<portType name="StockQuotePortType">
<operation name="GetLastTradePrice" parameterOrder="tickerSymbol timePeriod frequency">
<input message="tns:GetTradePricesInput"/>
<output message="tns:GetTradePricesOutput"/>
</operation>
</portType>
<binding name="StockQuoteSoapBinding" type="tns:StockQuotePortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="GetTradePrices">
<soap peration soapAction="http://example.com/GetTradePrices"/>
<input>
<soap:body use="encoded" namespace="http://example.com/stockquote"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body use="encoded" namespace="http://example.com/stockquote"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>>
</binding>

<service name="StockQuoteService">
<documentation>My first service</documentation>
<port name="StockQuotePort" binding="tns:StockQuoteBinding">
<soap:address location="http://example.com/stockquote"/>
</port>
</service>
</definitions>

The port sub-element in the service element above specifies its name attribute as StockQuotePort and its binding attribute as StockQuoteBinding.
Is this correct? I would have thought that the name attribute would corr. to the portType name above, i.e. StockQuotePortType and the binding attribute to the binding element name attribute i.e. StockQuoteSoapBinding. Otherwise, how do we know what StockQuotePort and StockQuoteBinding refer to? Any clarification on this would be greatly appreciated.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: binding and service elements in wsdl
 
Similar Threads
java SOAP client " : hat is "QName qname" value ?
dii client returning custom types
binding and service elements in wsdl
WSDL - Binding in 1.1 versus 2.0
Problem with arrays of primitive types