欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

webService学习8:wsdl文档解释

发布时间:2024/1/23 编程问答 33 豆豆
生活随笔 收集整理的这篇文章主要介绍了 webService学习8:wsdl文档解释 小编觉得挺不错的,现在分享给大家,帮大家做个参考.
1 文档结构

2 Massage


3 portType


4 binding



5 service


6 一段wsdl代码

<?xml version="1.0" encoding="UTF-8"?><!-- Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.2.4-b01. --><!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.2.4-b01. --><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://impl.ws.webservice.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://impl.ws.webservice.com/" name="HelloWSImplService"> <types> <xsd:schema> <xsd:import namespace="http://impl.ws.webservice.com/" schemaLocation="http://127.0.0.1:8080/webService_01_helloWorld/HelloWS?xsd=1"></xsd:import> </xsd:schema> </types> <message name="sayHello"> <part name="parameters" element="tns:sayHello"></part> </message> <message name="sayHelloResponse"> <part name="parameters" element="tns:sayHelloResponse"></part> </message> <portType name="HelloWSImpl"> <operation name="sayHello"> <input wsam:Action="http://impl.ws.webservice.com/HelloWSImpl/sayHelloRequest" message="tns:sayHello"></input> <output wsam:Action="http://impl.ws.webservice.com/HelloWSImpl/sayHelloResponse" message="tns:sayHelloResponse"></output> </operation> </portType> <binding name="HelloWSImplPortBinding" type="tns:HelloWSImpl"> <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="HelloWSImplService"> <port name="HelloWSImplPort" binding="tns:HelloWSImplPortBinding"> <soap:address location="http://127.0.0.1:8080/webService_01_helloWorld/HelloWS"></soap:address> </port> </service> </definitions>

总结

以上是生活随笔为你收集整理的webService学习8:wsdl文档解释的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。