XFA Specification
Chapter 11, Forms That Initiate Interactions with Servers
Using Web Services
334
61
<port name="StockQuotePort"
62
binding="tns:StockQuoteBinding">
63
<soap:address
64
location="http://example.com/stockquote"/>
65
</port>
66
</service>
67
68 </definitions>
This definition file tells potential clients how to access the service. The following table describes the
definition file’s parts. For more information about the meaning of WSDL definition files see [WSDL1.1].
Line # Element name
8
types
28
message
32
message
36
portType
43
binding
Defines
XML components used in the other sections
Input message
Output message
Operations and how they use messages
Binding between the messages and the SOAP protocol
(
GetLastTradePriceInput
as the input message and
GetLastTradePriceOutput
as the output message)
URL of the server and the name of the service (port)
59
service
Input message queries server for the trading price of a corporation
The input message defined by the above WSDL definition carries a ticker symbol for a publicly-listed
corporation. It has the following form:
<soap:Body
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<tns:TradePriceRequest>
<tns:tickerSymbol>stockTickerSymbol</tns:tickerSymbol>
</tns:TradePriceRequest>
</soap:Body>
Output message provides trading price (if successful) or a status indicator (if not successful)
If the query succeeds (that is, if a share quotation can be obtained for the given ticker symbol), the output
message from the server carries the price per share for the requested corporation. It has the following
form:
<soap:Body
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<tns:TradePrice>
<tns:price>pricePerShare</tns:price>
</tns:TradePrice>
</soap:Body>
If the query fails (for example because there is no known listing for the given ticker symbol), the output
message carries a status indicator. It has the following general form (with whitespace added for clarity):
<soap:Body
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
Home Index Bookmark Pages
Pages: Home Index All Pages