WebService_WSDL.ppt
上传人:sy****28 上传时间:2024-09-14 格式:PPT 页数:93 大小:2.5MB 金币:16 举报 版权申诉
预览加载中,请您耐心等待几秒...

WebService_WSDL.ppt

WebService_WSDL.ppt

预览

免费试读已结束,剩余 83 页请下载文档后查看

16 金币

下载此文档

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

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.1200OKContent-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