Advertisement
Guest User

Simple HelloWorld WebService (wsdl)

a guest
Jul 1st, 2014
519
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.54 KB | None | 0 0
  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <!-- Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is Metro/2.3 (tags/2.3-7528; 2013-04-29T19:34:10+0000) JAXWS-RI/2.2.8 JAXWS/2.2 svn-revision#unknown. --><!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is Metro/2.3 (tags/2.3-7528; 2013-04-29T19:34:10+0000) JAXWS-RI/2.2.8 JAXWS/2.2 svn-revision#unknown. -->
  3. <definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
  4.             xmlns:wsp="http://www.w3.org/ns/ws-policy"
  5.             xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy"
  6.             xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata"
  7.             xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
  8.             xmlns:tns="http://mavenwsserver.ws.mytest.org/"
  9.             xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  10.             xmlns="http://schemas.xmlsoap.org/wsdl/"
  11.             targetNamespace="http://mavenwsserver.ws.mytest.org/"
  12.             name="HelloWorldWebService">
  13.     <types>
  14.         <xs:schema xmlns:tns="http://mavenwsserver.ws.mytest.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0" targetNamespace="http://mavenwsserver.ws.mytest.org/">
  15.             <xs:element name="operation" type="tns:operation"/>
  16.      
  17.             <xs:element name="operationResponse" type="tns:operationResponse"/>
  18.      
  19.             <xs:complexType name="operation">
  20.                 <xs:sequence>
  21.                     <xs:element name="person" type="tns:person" minOccurs="0"/>
  22.                 </xs:sequence>
  23.             </xs:complexType>
  24.      
  25.             <xs:complexType name="person">
  26.                 <xs:sequence>
  27.                     <xs:element name="firstName" type="xs:string" minOccurs="0"/>
  28.                     <xs:element name="lastName" type="xs:string" minOccurs="0"/>
  29.                 </xs:sequence>
  30.             </xs:complexType>
  31.      
  32.             <xs:complexType name="operationResponse">
  33.                 <xs:sequence>
  34.                     <xs:element name="return" type="xs:string" minOccurs="0"/>
  35.                 </xs:sequence>
  36.             </xs:complexType>
  37.            
  38.         </xs:schema>
  39.     </types>
  40.     <message name="operation">
  41.         <part name="parameters" element="tns:operation"/>
  42.     </message>
  43.     <message name="operationResponse">
  44.         <part name="parameters" element="tns:operationResponse"/>
  45.     </message>
  46.     <portType name="HelloWorldWebService">
  47.         <operation name="operation">
  48.             <input wsam:Action="http://mavenwsserver.ws.mytest.org/HelloWorldWebService/operationRequest" message="tns:operation"/>
  49.             <output wsam:Action="http://mavenwsserver.ws.mytest.org/HelloWorldWebService/operationResponse" message="tns:operationResponse"/>
  50.         </operation>
  51.     </portType>
  52.     <binding name="HelloWorldWebServicePortBinding" type="tns:HelloWorldWebService">
  53.         <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
  54.         <operation name="operation">
  55.             <soap:operation soapAction=""/>
  56.             <input>
  57.                 <soap:body use="literal"/>
  58.             </input>
  59.             <output>
  60.                 <soap:body use="literal"/>
  61.             </output>
  62.         </operation>
  63.     </binding>
  64.     <service name="HelloWorldWebService">
  65.         <port name="HelloWorldWebServicePort" binding="tns:HelloWorldWebServicePortBinding">
  66.             <soap:address location="http://localhost:8084/MavenWSServer/HelloWorldWebService"/>
  67.         </port>
  68.     </service>
  69. </definitions>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement