|
| 1 | +package main |
| 2 | + |
| 3 | +type Wsdl struct { |
| 4 | + Name string `xml:"name,attr"` |
| 5 | + TargetNamespace string `xml:"targetNamespace,attr"` |
| 6 | + Imports []*WsdlImport `xml:"http://schemas.xmlsoap.org/wsdl/ import"` |
| 7 | + Doc string `xml:"http://schemas.xmlsoap.org/wsdl/ documentation"` |
| 8 | + Types WsdlType `xml:"http://schemas.xmlsoap.org/wsdl/ types"` |
| 9 | + Messages []*WsdlMessage `xml:"http://schemas.xmlsoap.org/wsdl/ message"` |
| 10 | + PortTypes []*WsdlPortType `xml:"http://schemas.xmlsoap.org/wsdl/ portType"` |
| 11 | + Binding []*WsdlBinding `xml:"http://schemas.xmlsoap.org/wsdl/ binding"` |
| 12 | + Service []*WsdlService `xml:"http://schemas.xmlsoap.org/wsdl/ service"` |
| 13 | +} |
| 14 | + |
| 15 | +type WsdlImport struct { |
| 16 | + Namespace string `xml:"namespace,attr"` |
| 17 | + Location string `xml:"location,attr"` |
| 18 | +} |
| 19 | + |
| 20 | +type WsdlType struct { |
| 21 | + Doc string `xml:"http://schemas.xmlsoap.org/wsdl/ documentation"` |
| 22 | + Schema []*XsdSchema `xml:"http://www.w3.org/2001/XMLSchema schema"` |
| 23 | +} |
| 24 | + |
| 25 | +type WsdlPart struct { |
| 26 | + Name string `xml:"name,attr"` |
| 27 | + Element string `xml:"element,attr"` |
| 28 | + Type string `xml:"type,attr"` |
| 29 | +} |
| 30 | + |
| 31 | +type WsdlMessage struct { |
| 32 | + Name string `xml:"name,attr"` |
| 33 | + Doc string `xml:"http://schemas.xmlsoap.org/wsdl/ documentation"` |
| 34 | + Parts []*WsdlPart `xml:"http://schemas.xmlsoap.org/wsdl/ part"` |
| 35 | +} |
| 36 | + |
| 37 | +type WsdlFault struct { |
| 38 | + Name string `xml:"name,attr"` |
| 39 | + Message string `xml:"message,attr"` |
| 40 | + Doc string `xml:"http://schemas.xmlsoap.org/wsdl/ documentation"` |
| 41 | + SoapFault WsdlSoapFault `xml:"http://schemas.xmlsoap.org/wsdl/soap/ fault"` |
| 42 | +} |
| 43 | + |
| 44 | +type WsdlInput struct { |
| 45 | + Name string `xml:"name,attr"` |
| 46 | + Message string `xml:"message,attr"` |
| 47 | + Doc string `xml:"http://schemas.xmlsoap.org/wsdl/ documentation"` |
| 48 | + SoapBody WsdlSoapBody `xml:"http://schemas.xmlsoap.org/wsdl/soap/ body"` |
| 49 | + SoapHeader []*WsdlSoapHeader `xml:"http://schemas.xmlsoap.org/wsdl/soap/ header"` |
| 50 | + //Mime MimeBinding |
| 51 | +} |
| 52 | + |
| 53 | +type WsdlOutput struct { |
| 54 | + Name string `xml:"name,attr"` |
| 55 | + Message string `xml:"message,attr"` |
| 56 | + Doc string `xml:"http://schemas.xmlsoap.org/wsdl/ documentation"` |
| 57 | + SoapBody WsdlSoapBody `xml:"http://schemas.xmlsoap.org/wsdl/soap/ body"` |
| 58 | + SoapHeader []*WsdlSoapHeader `xml:"http://schemas.xmlsoap.org/wsdl/soap/ header"` |
| 59 | + //Mime MimeBinding |
| 60 | +} |
| 61 | + |
| 62 | +type WsdlOperation struct { |
| 63 | + Name string `xml:"name,attr"` |
| 64 | + Doc string `xml:"http://schemas.xmlsoap.org/wsdl/ documentation"` |
| 65 | + Input WsdlInput `xml:"http://schemas.xmlsoap.org/wsdl/ input"` |
| 66 | + Output WsdlOutput `xml:"http://schemas.xmlsoap.org/wsdl/ output"` |
| 67 | + Faults []*WsdlFault `xml:"http://schemas.xmlsoap.org/wsdl/ fault"` |
| 68 | + SoapOperation WsdlSoapOperation `xml:"http://schemas.xmlsoap.org/wsdl/soap/ operation"` |
| 69 | + HttpOperation WsdlHttpOperation `xml:"http://schemas.xmlsoap.org/wsdl/http/ operation"` |
| 70 | +} |
| 71 | + |
| 72 | +type WsdlPortType struct { |
| 73 | + Name string `xml:"name,attr"` |
| 74 | + Doc string `xml:"http://schemas.xmlsoap.org/wsdl/ documentation"` |
| 75 | + Operations []*WsdlOperation `xml:"http://schemas.xmlsoap.org/wsdl/ operation"` |
| 76 | +} |
| 77 | + |
| 78 | +type WsdlHttpBinding struct { |
| 79 | + Verb string `xml:"verb,attr"` |
| 80 | +} |
| 81 | + |
| 82 | +type WsdlSoapBinding struct { |
| 83 | + Style string `xml:"style,attr"` |
| 84 | + Transport string `xml:"transport,attr"` |
| 85 | +} |
| 86 | + |
| 87 | +type WsdlSoapOperation struct { |
| 88 | + SoapAction string `xml:"soapAction,attr"` |
| 89 | + Style string `xml:"style,attr"` |
| 90 | +} |
| 91 | + |
| 92 | +type WsdlSoapHeader struct { |
| 93 | + Message string `xml:"message,attr"` |
| 94 | + Part string `xml:"part,attr"` |
| 95 | + Use string `xml:"use,attr"` |
| 96 | + EncodingStyle string `xml:"encodingStyle,attr"` |
| 97 | + Namespace string `xml:"namespace,attr"` |
| 98 | + HeadersFault []*WsdlSoapHeaderFault `xml:"http://schemas.xmlsoap.org/wsdl/soap/ headerfault"` |
| 99 | +} |
| 100 | + |
| 101 | +type WsdlSoapHeaderFault struct { |
| 102 | + Message string `xml:"message,attr"` |
| 103 | + Part string `xml:"part,attr"` |
| 104 | + Use string `xml:"use,attr"` |
| 105 | + EncodingStyle string `xml:"encodingStyle,attr"` |
| 106 | + Namespace string `xml:"namespace,attr"` |
| 107 | +} |
| 108 | + |
| 109 | +type WsdlSoapBody struct { |
| 110 | + Parts string `xml:"parts,attr"` |
| 111 | + Use string `xml:"use,attr"` |
| 112 | + EncodingStyle string `xml:"encodingStyle,attr"` |
| 113 | + Namespace string `xml:"namespace,attr"` |
| 114 | +} |
| 115 | + |
| 116 | +type WsdlSoapFault struct { |
| 117 | + Parts string `xml:"parts,attr"` |
| 118 | + Use string `xml:"use,attr"` |
| 119 | + EncodingStyle string `xml:"encodingStyle,attr"` |
| 120 | + Namespace string `xml:"namespace,attr"` |
| 121 | +} |
| 122 | + |
| 123 | +type WsdlSoapAddress struct { |
| 124 | + Location string `xml:"location,attr"` |
| 125 | +} |
| 126 | + |
| 127 | +type WsdlHttpOperation struct { |
| 128 | + Location string `xml:"location,attr"` |
| 129 | +} |
| 130 | + |
| 131 | +type WsdlBinding struct { |
| 132 | + Name string `xml:"name,attr"` |
| 133 | + Type string `xml:"type,attr"` |
| 134 | + Doc string `xml:"http://schemas.xmlsoap.org/wsdl/ documentation"` |
| 135 | + HttpBinding WsdlHttpBinding `xml:"http://schemas.xmlsoap.org/wsdl/http/ binding"` |
| 136 | + SoapBinding WsdlSoapBinding `xml:"http://schemas.xmlsoap.org/wsdl/soap/ binding"` |
| 137 | + Operations []*WsdlOperation `xml:"http://schemas.xmlsoap.org/wsdl/ operation"` |
| 138 | +} |
| 139 | + |
| 140 | +type WsdlPort struct { |
| 141 | + Name string `xml:"name,attr"` |
| 142 | + Binding string `xml:"binding,attr"` |
| 143 | + Doc string `xml:"http://schemas.xmlsoap.org/wsdl/ documentation"` |
| 144 | + SoapAddress WsdlSoapAddress `xml:"http://schemas.xmlsoap.org/wsdl/soap/ address"` |
| 145 | +} |
| 146 | + |
| 147 | +type WsdlService struct { |
| 148 | + Name string `xml:"name,attr"` |
| 149 | + Doc string `xml:"http://schemas.xmlsoap.org/wsdl/ documentation"` |
| 150 | + Ports []*WsdlPort `xml:"http://schemas.xmlsoap.org/wsdl/ port"` |
| 151 | +} |
0 commit comments