首页 > 代码库 > wsdl实例
wsdl实例
1 <?xml version=‘1.0‘ encoding=‘UTF-8‘?> 2 <wsdl:definitions name="HelloWorldService" 3 targetNamespace="http://test.demo1/" 4 xmlns:ns1="http://schemas.xmlsoap.org/soap/http" 5 xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 6 xmlns:tns="http://test.demo1/" 7 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 8 xmlns:xsd="http://www.w3.org/2001/XMLSchema"> 9 <wsdl:types> 10 <xs:schema elementFormDefault="unqualified" targetNamespace="http://test.demo1/" version="1.0" xmlns:tns="http://test.demo1/" xmlns:xs="http://www.w3.org/2001/XMLSchema"> 11 <xs:element name="sayHello" type="tns:sayHello"/> 12 <xs:element name="sayHelloResponse" type="tns:sayHelloResponse"/> 13 <xs:complexType name="sayHello"> 14 <xs:sequence> 15 <xs:element minOccurs="0" name="arg0" type="xs:string"/> 16 </xs:sequence> 17 </xs:complexType> 18 <xs:complexType name="sayHelloResponse"> 19 <xs:sequence> 20 <xs:element minOccurs="0" name="return" type="xs:string"/> 21 </xs:sequence> 22 </xs:complexType> 23 </xs:schema> 24 </wsdl:types> 25 26 <wsdl:message name="sayHelloResponse"> 27 <wsdl:part element="tns:sayHelloResponse" name="parameters"></wsdl:part> 28 </wsdl:message> 29 <wsdl:message name="sayHello"> 30 <wsdl:part element="tns:sayHello" name="parameters"></wsdl:part> 31 </wsdl:message> 32 33 <wsdl:portType name="HelloWorld"> 34 <wsdl:operation name="sayHello"> 35 <wsdl:input message="tns:sayHello" name="sayHello"></wsdl:input> 36 <wsdl:output message="tns:sayHelloResponse" name="sayHelloResponse"></wsdl:output> 37 </wsdl:operation> 38 </wsdl:portType> 39 40 <wsdl:binding name="HelloWorldServiceSoapBinding" type="tns:HelloWorld"> 41 <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> 42 <wsdl:operation name="sayHello"> 43 <soap:operation soapAction="" style="document"/> 44 <wsdl:input name="sayHello"> 45 <soap:body use="literal"/> 46 </wsdl:input> 47 <wsdl:output name="sayHelloResponse"> 48 <soap:body use="literal"/> 49 </wsdl:output> 50 </wsdl:operation> 51 </wsdl:binding> 52 53 <wsdl:service name="HelloWorldService"> 54 <wsdl:port binding="tns:HelloWorldServiceSoapBinding" name="HelloWorldPort"> 55 <soap:address location="http://localhost:8080/helloWorld"/> 56 </wsdl:port> 57 </wsdl:service> 58 </wsdl:definitions>
wsdl实例
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。