预览加载中,请您耐心等待几秒...
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

亲,该文档总共93页,到这已经超出免费预览范围,如果喜欢就直接下载吧~

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

WSDL位置作用元数据Metadata定义DefinitionWSDLdocumentexample<?xmlversion="1.0"?> <definitionsname="StockQuote" targetNamespace="http://example.com/stockquote.wsdl" xmlns:tns="http://example.com/stockquote.wsdl" xmlns:xsd1="http://example.com/stockquote.xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns="http://schemas.xmlsoap.org/wsdl/"><types> <schematargetNamespace="http://example.com/stockquote.xsd" xmlns="http://www.w3.org/1999/XMLSchema"> <elementname="TradePriceRequest"> <complexType> <all> <elementname="tickerSymbol"type="string"/> </all> </complexType> </element> <elementname="TradePriceResult"> <complexType> <all> <elementname="price"type="float"/> </all> </complexType> </element> </schema> </types><messagename="GetLastTradePriceInput"> <partname="body"element="xsd1:TradePriceRequest"/> </message> <messagename="GetLastTradePriceOutput"> <partname="body"element="xsd1:TradePriceResult"/> </message>服务接口定义<bindingname="StockQuoteSoapBinding"type="tns:StockQuotePortType"> <soap:bindingstyle="document"transport="http://schemas.xmlsoap.org/soap/http"/> <operationname="GetLastTradePrice"> <soap:operationsoapAction="http://example.com/GetLastTradePrice"/> <input> <soap:bodyuse="literal"namespace="http://example.com/stockquote.xsd" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:bodyuse="literal"namespace="http://example.com/stockquote.xsd" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </soap:operation> </operation> </soap:binding> </binding>Service元素声明服务按照这个WSDL文档的描述,在Web服务的使用中,具体发生的SOAP交互可能如下面所示HTTP/1.1200OK Content-Type:text/xml;charset="utf-8" Content-Length:nnnn <SOAP-ENV:Envelopexmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> <SOAP-ENV:Body> <m:TradePriceResultxmlns:m="http://example.com/stockquote.xsd"> <price>74.5</price> </m:TradePriceResult> </SOAP-ENV:Body> </SOAP-ENV:Envelope>定义DefinitionWSDL内容WSDL信息模型WSDL信息模型定义We