1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
|
<?xml version="1.0" encoding="UTF-8"?>
<definitions targetNamespace="http://test.com/reference"
xmlns:tns="http://test.com/reference"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:serviceNS="http://test.com/reference"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<!-- type defs -->
<!-- None of these types are referenced, so there shuold be no code emitted -->
<types>
<xsd:schema targetNamespace="http://test.com/reference"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<xsd:simpleType name="stateType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="TX"/>
<xsd:enumeration value="IN"/>
<xsd:enumeration value="OH"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="address">
<xsd:all>
<xsd:element name="streetNum" type="xsd:int"/>
<xsd:element name="streetName" type="xsd:string"/>
<xsd:element name="city" type="xsd:string"/>
<xsd:element name="state" type="tns:stateType"/>
<xsd:element name="zip" type="xsd:int"/>
</xsd:all>
</xsd:complexType>
</xsd:schema>
</types>
<!-- Messages for the SOAP operation -->
<message name="myopRequest">
<part name="argument" type="xsd:string"/>
</message>
<message name="myopResponse">
<part name="myopResult" type="xsd:float"/>
</message>
<!-- We should Emit an opFault Exception class -->
<message name="opFault">
<part name="info" type="xsd:string"/>
</message>
<!-- messages for the HTTP operation -->
<message name="otheropHttpGetIn">
<part name="ISBN" type="xsd:string" />
</message>
<message name="otheropHttpGetOut">
<!-- <part name="Body" element="xsd:string" /> -->
<part name="Body" type="xsd:string" />
</message>
<!-- unused fault, should not be emitted -->
<message name="InvalidTickerFaultMessage">
<part name="tickerSymbol" type="xsd:string"/>
</message>
<!-- SOAP portType -->
<portType name="PortTypeSoap">
<operation name="myop">
<input message="serviceNS:myopRequest"/>
<output message="serviceNS:myopResponse"/>
<fault name="opFault" message="serviceNS:opFault"/>
</operation>
</portType>
<!-- non-Soap portType, code should not be emitted for it -->
<portType name="PortTypeNotSoap">
<operation name="otherop">
<input message="serviceNS:otheropHttpGetIn"/>
<output message="serviceNS:otheropHttpGetOut"/>
<fault name="InvalidTickerFault" message="serviceNS:InvalidTickerFaultMessage"/>
</operation>
</portType>
<!-- SOAP binding -->
<binding name="ReferenceSoapBinding" type="serviceNS:PortTypeSoap">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="myop">
<soap:operation soapAction="" style="rpc"/>
<input>
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace=""/>
</input>
<output>
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace=""/>
</output>
<fault name="opFault">
<soap:fault name="opFault" use="encoded"/>
</fault>
</operation>
</binding>
<!-- Non-soap binding, no code should be emitted for it -->
<binding name="ReferenceHttpGet" type="serviceNS:PortTypeNotSoap">
<http:binding verb="GET" />
<operation name="otherop">
<http:operation location="/GetReference" />
<input>
<http:urlEncoded />
</input>
<output>
<mime:mimeXml part="Body" />
</output>
</operation>
</binding>
<service name="ReferenceService">
<!-- SOAP port -->
<port name="ReferenceService" binding="serviceNS:ReferenceSoapBinding">
<soap:address location="http://localhost:8080/axis/services/ReferenceService"/>
</port>
<!-- non-Soap port, no code should be emitted for it -->
<port name="ReferenceHttpGet" binding="serviceNS:ReferenceHttpGet">
<http:address location="http://test.com/foo/bar" />
</port>
</service>
</definitions>
|