| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
|
| 3 |
<wsdl:definitions |
| 4 |
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" |
| 5 |
xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
| 6 |
xmlns:tns="urn:header.wsdl.test" |
| 7 |
targetNamespace="urn:header.wsdl.test" |
| 8 |
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> |
| 9 |
|
| 10 |
<wsdl:types> |
| 11 |
<xsd:schema> |
| 12 |
|
| 13 |
<xsd:element name="Header" type="tns:HeaderType"/> |
| 14 |
<xsd:complexType name="HeaderType"> |
| 15 |
<xsd:all> |
| 16 |
<element name="e1" type="xsd:string"/> |
| 17 |
</xsd:all> |
| 18 |
</xsd:complexType> |
| 19 |
|
| 20 |
</xsd:schema> |
| 21 |
</wsdl:types> |
| 22 |
|
| 23 |
<wsdl:message name="op1Request"> |
| 24 |
<wsdl:part name="parm1" type="xsd:int"/> |
| 25 |
<wsdl:part name="parm2" type="xsd:string"/> |
| 26 |
<wsdl:part name="header" element="tns:Header"/> |
| 27 |
</wsdl:message> |
| 28 |
|
| 29 |
<wsdl:message name="op1Response"> |
| 30 |
<!-- |
| 31 |
<wsdl:part name="header" element="tns:Header"/> |
| 32 |
--> |
| 33 |
<wsdl:part name="return" type="xsd:float"/> |
| 34 |
</wsdl:message> |
| 35 |
|
| 36 |
<wsdl:message name="op1Fault"> |
| 37 |
<wsdl:part name="message" type="xsd:string"/> |
| 38 |
</wsdl:message> |
| 39 |
|
| 40 |
<wsdl:message name="op2Request"> |
| 41 |
<wsdl:part name="parm" type="xsd:int"/> |
| 42 |
<wsdl:part name="header" element="tns:Header"/> |
| 43 |
</wsdl:message> |
| 44 |
|
| 45 |
<wsdl:message name="op2Response"/> |
| 46 |
|
| 47 |
<wsdl:message name="implicitFault"> |
| 48 |
<wsdl:part name="message" type="xsd:string"/> |
| 49 |
</wsdl:message> |
| 50 |
|
| 51 |
<wsdl:portType name="PortType"> |
| 52 |
<wsdl:operation name="op1"> |
| 53 |
<wsdl:input message="tns:op1Request"/> |
| 54 |
<wsdl:output message="tns:op1Response"/> |
| 55 |
<wsdl:fault name="op1Fault" message="tns:op1Fault"/> |
| 56 |
</wsdl:operation> |
| 57 |
<wsdl:operation name="op2"> |
| 58 |
<wsdl:input message="tns:op2Request"/> |
| 59 |
<wsdl:output message="tns:op2Response"/> |
| 60 |
</wsdl:operation> |
| 61 |
</wsdl:portType> |
| 62 |
|
| 63 |
<wsdl:binding name="Binding" type="tns:PortType"> |
| 64 |
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/> |
| 65 |
<wsdl:operation name="op1"> |
| 66 |
<soap:operation/> |
| 67 |
<wsdl:input> |
| 68 |
<soap:body use="literal" |
| 69 |
namespace="urn:header.wsdl.test" |
| 70 |
parts="parm2"/> |
| 71 |
<soap:header message="tns:op1Request" |
| 72 |
part="parm1" |
| 73 |
use="literal" |
| 74 |
namespace="urn:header.wsdl.test"> |
| 75 |
<soap:headerfault message="tns:op1Fault" |
| 76 |
part="message" |
| 77 |
use="literal" |
| 78 |
namespace="urn:header.wsdl.test"/> |
| 79 |
</soap:header> |
| 80 |
<soap:header message="tns:op1Request" |
| 81 |
part="header" |
| 82 |
use="literal" |
| 83 |
namespace="urn:header.wsdl.test"> |
| 84 |
<soap:headerfault message="tns:op1Fault" |
| 85 |
part="message" |
| 86 |
use="literal" |
| 87 |
namespace="urn:header.wsdl.test"/> |
| 88 |
</soap:header> |
| 89 |
</wsdl:input> |
| 90 |
<wsdl:output> |
| 91 |
<!-- |
| 92 |
<soap:body use="literal" |
| 93 |
parts="header" |
| 94 |
namespace="urn:header.wsdl.test"/> |
| 95 |
--> |
| 96 |
<soap:header message="tns:op1Response" |
| 97 |
part="return" |
| 98 |
use="literal" |
| 99 |
namespace="urn:header.wsdl.test"> |
| 100 |
</soap:header> |
| 101 |
</wsdl:output> |
| 102 |
</wsdl:operation> |
| 103 |
<wsdl:operation name="op2"> |
| 104 |
<soap:operation/> |
| 105 |
<wsdl:input> |
| 106 |
<soap:body use="literal" |
| 107 |
namespace="urn:header.wsdl.test" |
| 108 |
parts="parm"/> |
| 109 |
<soap:header message="tns:op2Request" |
| 110 |
part="header" |
| 111 |
use="literal" |
| 112 |
namespace="urn:header.wsdl.test"> |
| 113 |
<soap:headerfault message="tns:implicitFault" |
| 114 |
part="message" |
| 115 |
use="literal" |
| 116 |
namespace="urn:header.wsdl.test"/> |
| 117 |
</soap:header> |
| 118 |
</wsdl:input> |
| 119 |
<wsdl:output> |
| 120 |
<soap:body use="literal" |
| 121 |
namespace="urn:header.wsdl.test"/> |
| 122 |
</wsdl:output> |
| 123 |
</wsdl:operation> |
| 124 |
</wsdl:binding> |
| 125 |
|
| 126 |
<wsdl:service name="HeaderService"> |
| 127 |
<wsdl:port name="header" binding="tns:Binding"> |
| 128 |
<soap:address location="http://localhost:8080/axis/services/header"/> |
| 129 |
</wsdl:port> |
| 130 |
</wsdl:service> |
| 131 |
|
| 132 |
</wsdl:definitions> |