|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<wsdl:definitions name="CustomerServiceService" |
| 3 | + targetNamespace="http://customerservice.example.com/service" |
| 4 | + xmlns:tns="http://customerservice.example.com/service" |
| 5 | + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" |
| 6 | + xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
| 7 | + xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"> |
| 8 | + <wsdl:types> |
| 9 | + <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" |
| 10 | + xmlns:tns="http://customerservice.example.com/service" |
| 11 | + xmlns:cns="http://customerservice.example.com/model" |
| 12 | + attributeFormDefault="unqualified" |
| 13 | + elementFormDefault="qualified" |
| 14 | + targetNamespace="http://customerservice.example.com/service"> |
| 15 | + |
| 16 | + <xs:import schemaLocation="customer.xsd" namespace="http://customerservice.example.com/model"/> |
| 17 | + <!-- ... --> |
| 18 | + <xs:element name="getCustomerById" type="tns:getCustomerById" /> |
| 19 | + <xs:complexType name="getCustomerById"> |
| 20 | + <xs:sequence> |
| 21 | + <xs:element minOccurs="0" name="customerId" type="xs:int" /> |
| 22 | + </xs:sequence> |
| 23 | + </xs:complexType> |
| 24 | + <xs:element name="getCustomerByIdResponse" type="tns:getCustomerByIdResponse" /> |
| 25 | + <xs:complexType name="getCustomerByIdResponse"> |
| 26 | + <xs:sequence> |
| 27 | + <xs:element minOccurs="0" name="return" type="cns:customer" /> |
| 28 | + </xs:sequence> |
| 29 | + </xs:complexType> |
| 30 | + <!-- ... --> |
| 31 | + <xs:element name="updateCustomer" type="tns:updateCustomer" /> |
| 32 | + <xs:complexType name="updateCustomer"> |
| 33 | + <xs:sequence> |
| 34 | + <xs:element minOccurs="0" name="customer" type="cns:customer" /> |
| 35 | + </xs:sequence> |
| 36 | + </xs:complexType> |
| 37 | + <xs:element name="updateCustomerResponse" type="tns:updateCustomerResponse" /> |
| 38 | + <xs:complexType name="updateCustomerResponse"> |
| 39 | + <xs:sequence> |
| 40 | + <xs:element minOccurs="0" name="customerId" type="xs:int" /> |
| 41 | + </xs:sequence> |
| 42 | + </xs:complexType> |
| 43 | + <!-- ... --> |
| 44 | + <xs:element name="deleteCustomerById" type="tns:deleteCustomerById" /> |
| 45 | + <xs:complexType name="deleteCustomerById"> |
| 46 | + <xs:sequence> |
| 47 | + <xs:element minOccurs="0" name="customerId" type="xs:int" /> |
| 48 | + </xs:sequence> |
| 49 | + </xs:complexType> |
| 50 | + <!-- ... --> |
| 51 | + <xs:element name="NoSuchCustomer" type="tns:NoSuchCustomer" /> |
| 52 | + <xs:complexType name="NoSuchCustomer"> |
| 53 | + <xs:sequence> |
| 54 | + <xs:element name="customerId" nillable="true" type="xs:int" /> |
| 55 | + </xs:sequence> |
| 56 | + </xs:complexType> |
| 57 | + </xs:schema> |
| 58 | + </wsdl:types> |
| 59 | + <wsdl:message name="getCustomerById"> |
| 60 | + <wsdl:part name="parameters" element="tns:getCustomerById"/> |
| 61 | + </wsdl:message> |
| 62 | + <wsdl:message name="getCustomerByIdResponse"> |
| 63 | + <wsdl:part name="parameters" element="tns:getCustomerByIdResponse"/> |
| 64 | + </wsdl:message> |
| 65 | + <wsdl:message name="updateCustomer"> |
| 66 | + <wsdl:part name="parameters" element="tns:updateCustomer"/> |
| 67 | + </wsdl:message> |
| 68 | + <wsdl:message name="updateCustomerResponse"> |
| 69 | + <wsdl:part name="parameters" element="tns:updateCustomerResponse"/> |
| 70 | + </wsdl:message> |
| 71 | + <wsdl:message name="deleteCustomerById"> |
| 72 | + <wsdl:part name="parameters" element="tns:deleteCustomerById"/> |
| 73 | + </wsdl:message> |
| 74 | + <wsdl:message name="NoSuchCustomerException"> |
| 75 | + <wsdl:part name="NoSuchCustomerException" element="tns:NoSuchCustomer"/> |
| 76 | + </wsdl:message> |
| 77 | + <wsdl:portType name="CustomerService"> |
| 78 | + <wsdl:operation name="updateCustomer"> |
| 79 | + <wsdl:input name="updateCustomer" message="tns:updateCustomer"/> |
| 80 | + <wsdl:output name="updateCustomerResponse" message="tns:updateCustomerResponse"/> |
| 81 | + </wsdl:operation> |
| 82 | + <wsdl:operation name="deleteCustomerById"> |
| 83 | + <wsdl:input name="deleteCustomerById" message="tns:deleteCustomerById"/> |
| 84 | + <wsdl:fault name="NoSuchCustomerException" message="tns:NoSuchCustomerException"/> |
| 85 | + </wsdl:operation> |
| 86 | + <wsdl:operation name="getCustomerById"> |
| 87 | + <wsdl:input name="getCustomerById" message="tns:getCustomerById"/> |
| 88 | + <wsdl:output name="getCustomerByIdResponse" message="tns:getCustomerByIdResponse"/> |
| 89 | + <wsdl:fault name="NoSuchCustomerException" message="tns:NoSuchCustomerException"/> |
| 90 | + </wsdl:operation> |
| 91 | + </wsdl:portType> |
| 92 | + <wsdl:binding name="CustomerServiceServiceSoapBinding" |
| 93 | + type="tns:CustomerService"> |
| 94 | + <soap:binding style="document" |
| 95 | + transport="http://schemas.xmlsoap.org/soap/http" /> |
| 96 | + <wsdl:operation name="updateCustomer"> |
| 97 | + <soap:operation soapAction="" style="document" /> |
| 98 | + <wsdl:input name="updateCustomer"> |
| 99 | + <soap:body use="literal" /> |
| 100 | + </wsdl:input> |
| 101 | + <wsdl:output name="updateCustomerResponse"> |
| 102 | + <soap:body use="literal" /> |
| 103 | + </wsdl:output> |
| 104 | + </wsdl:operation> |
| 105 | + <wsdl:operation name="deleteCustomerById"> |
| 106 | + <soap:operation soapAction="" style="document" /> |
| 107 | + <wsdl:input name="deleteCustomerById"> |
| 108 | + <soap:body use="literal" /> |
| 109 | + </wsdl:input> |
| 110 | + <wsdl:fault name="NoSuchCustomerException"> |
| 111 | + <soap:fault name="NoSuchCustomerException" use="literal" /> |
| 112 | + </wsdl:fault> |
| 113 | + </wsdl:operation> |
| 114 | + <wsdl:operation name="getCustomerById"> |
| 115 | + <soap:operation soapAction="" style="document" /> |
| 116 | + <wsdl:input name="getCustomerById"> |
| 117 | + <soap:body use="literal" /> |
| 118 | + </wsdl:input> |
| 119 | + <wsdl:output name="getCustomerByIdResponse"> |
| 120 | + <soap:body use="literal" /> |
| 121 | + </wsdl:output> |
| 122 | + <wsdl:fault name="NoSuchCustomerException"> |
| 123 | + <soap:fault name="NoSuchCustomerException" use="literal" /> |
| 124 | + </wsdl:fault> |
| 125 | + </wsdl:operation> |
| 126 | + </wsdl:binding> |
| 127 | + <wsdl:service name="CustomerServiceService"> |
| 128 | + <wsdl:port name="CustomerServicePort" binding="tns:CustomerServiceServiceSoapBinding"> |
| 129 | + <soap:address location="http://localhost:8080/CustomerServicePort" /> |
| 130 | + </wsdl:port> |
| 131 | + </wsdl:service> |
| 132 | +</wsdl:definitions> |
0 commit comments