zoukankan      html  css  js  c++  java
  • 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>  
  • 相关阅读:
    建表
    第5讲:控制语句
    第4讲:函数
    第1讲:面向对象
    野路子小白安装黑苹果 OpenCore引导 @a.宏万
    野路子学习esp32(十九)ESP32-Arduino 第二篇 智能孵化器 @a.宏万
    野路子学习esp32(十八)ESP32-Arduino 第一篇 @a.宏万
    野路子学习esp32(十七)ESP32-MicroPython OLED AND DHT11 @a.宏万
    野路子学习esp32(十六) MQTT与ESP32-MicroPython @a.宏万
    野路子学习esp32(十五) 1z实验室 EMP项目@a.宏万
  • 原文地址:https://www.cnblogs.com/wangyonglong/p/5982786.html
Copyright © 2011-2022 走看看