webservice学习wsdl解读(2)
来源:互联网 发布:安卓优化软件排行榜 编辑:程序博客网 时间:2024/05/01 01:40
wsdl文件解读
<?xml version="1.0" encoding="UTF-8"?> <definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401- wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://thunisoft.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://thunisoft.com/" name="sayHellpImpleService"> <types> <xsd:schema> <xsd:import namespace="http://thunisoft.com/" schemaLocation="http://192.168.1.1:8080/ws?xsd=1"> </xsd:import> </xsd:schema> </types>/**message定义消息结构通过part element引用 types消息片段*/ <message name="sayHello"> <part name="parameters" element="tns:sayHello"></part> </message> <message name="sayHelloResponse"> <part name="parameters" element="tns:sayHelloResponse"></part> </message> /** *定义服务器端的SEI(接口) *operation 指定SEI处理请求的方法 * input: 请求传过来的数据 message引用的是上面的message标签 * output: 服务器发送给客户端的数据 */ <portType name="sayHellpImple"> <operation name="sayHello"> <input wsam:Action="http://thunisoft.com/sayHellpImple/sayHelloRequest" message="tns:sayHello"></input> <output wsam:Action="http://thunisoft.com/sayHellpImple/sayHelloResponse" message="tns:sayHelloResponse"></output> </operation> </portType> /** *定义SEI中的实现类 *type引用上面的<portType> */ <binding name="sayHellpImplePortBinding" type="tns:sayHellpImple"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"></soap:binding> <operation name="sayHello"> <soap:operation soapAction=""></soap:operation> <input> <soap:body use="literal"></soap:body> </input> <output> <soap:body use="literal"></soap:body> </output> </operation> </binding> /** *定义了一个容器类 */ <service name="sayHellpImpleService"> <port name="sayHellpImplePort" binding="tns:sayHellpImplePortBinding"> <soap:address location="http://192.168.0.101:8080/ws"></soap:address> </port> </service></definitions>----------------------------------------------------------------------------------------------- <definitions> <types> <message> <portType> <binding> <service> </definitions>
0 0
- webservice学习wsdl解读(2)
- webService学习1----WSDL
- WebService学习笔记之WSDL
- WebService学习:SOPA与WSDL基本语法
- WebService学习:SOPA与WSDL基本语法
- WebService学习:SOPA与WSDL基本语法 .
- WebService学习笔记-WSDL文档分析
- webService学习1:myeclipse解析wsdl
- webService学习8:wsdl文档解释
- webservice学习笔记(5)--WSDL文档
- webservice wsdl
- WebService WSDL
- webservice--WSDL
- WebService学习总结六 WebService WSDL文档的标签
- WebService学习笔记(webservice、soap、wsdl、jws详细分析)
- webservice解读 (2)
- WebService CXF学习(入门篇3):WSDL描述
- WebService CXF学习(入门篇3):WSDL描述
- 利用matlab读取视频文字
- come on!让我们用几分钟把android的drawable目录图片加载机制说清楚吧
- A+B for Input-Output Practice (IV)
- jquery中$的三种用法
- A + B Problem
- webservice学习wsdl解读(2)
- 关于spring boot 事务
- A+B for Input-Output Practice (II)
- 新的开始
- 1135降序排序
- 2017.3.13 E
- android使用方法---图片的高斯模糊
- 正则表达式简介
- 1134求最大值