wasabi 3.5.0 → 3.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +32 -0
  3. data/README.md +10 -11
  4. data/lib/wasabi/core_ext/string.rb +7 -8
  5. data/lib/wasabi/document.rb +2 -0
  6. data/lib/wasabi/parser.rb +14 -17
  7. data/lib/wasabi/resolver.rb +2 -0
  8. data/lib/wasabi/version.rb +3 -1
  9. data/lib/wasabi.rb +2 -0
  10. metadata +18 -135
  11. data/.gitignore +0 -8
  12. data/.rspec +0 -1
  13. data/.travis.yml +0 -7
  14. data/Gemfile +0 -13
  15. data/Rakefile +0 -7
  16. data/spec/fixtures/authentication.wsdl +0 -63
  17. data/spec/fixtures/economic.wsdl +0 -65660
  18. data/spec/fixtures/encoded_endpoint.wsdl +0 -52
  19. data/spec/fixtures/geotrust.wsdl +0 -156
  20. data/spec/fixtures/import_port_types.wsdl +0 -86
  21. data/spec/fixtures/inherited.wsdl +0 -46
  22. data/spec/fixtures/juniper.wsdl +0 -215
  23. data/spec/fixtures/lower_camel.wsdl +0 -52
  24. data/spec/fixtures/marketo.wsdl +0 -1630
  25. data/spec/fixtures/multiple_namespaces.wsdl +0 -61
  26. data/spec/fixtures/multiple_parts_in_message.wsdl +0 -66
  27. data/spec/fixtures/multiple_types.wsdl +0 -60
  28. data/spec/fixtures/namespaced_actions.wsdl +0 -307
  29. data/spec/fixtures/no_message_parts.wsdl +0 -85
  30. data/spec/fixtures/no_namespace.wsdl +0 -115
  31. data/spec/fixtures/savon295.wsdl +0 -52
  32. data/spec/fixtures/soap12.wsdl +0 -11
  33. data/spec/fixtures/symbolic_endpoint.wsdl +0 -190
  34. data/spec/fixtures/tradetracker.wsdl +0 -1330
  35. data/spec/fixtures/two_bindings.wsdl +0 -24
  36. data/spec/spec_helper.rb +0 -19
  37. data/spec/support/adapter.rb +0 -18
  38. data/spec/support/fixture.rb +0 -40
  39. data/spec/support/profiling.rb +0 -18
  40. data/spec/wasabi/core_ext/string_spec.rb +0 -37
  41. data/spec/wasabi/document/authentication_spec.rb +0 -37
  42. data/spec/wasabi/document/economic_spec.rb +0 -13
  43. data/spec/wasabi/document/encoded_endpoint_spec.rb +0 -14
  44. data/spec/wasabi/document/geotrust_spec.rb +0 -38
  45. data/spec/wasabi/document/inherited_spec.rb +0 -41
  46. data/spec/wasabi/document/multiple_namespaces_spec.rb +0 -55
  47. data/spec/wasabi/document/namespaced_actions_spec.rb +0 -39
  48. data/spec/wasabi/document/no_namespace_spec.rb +0 -39
  49. data/spec/wasabi/document/savon295_spec.rb +0 -18
  50. data/spec/wasabi/document/soap12_spec.rb +0 -14
  51. data/spec/wasabi/document/two_bindings_spec.rb +0 -29
  52. data/spec/wasabi/document_spec.rb +0 -58
  53. data/spec/wasabi/parser/get_servicename_spec.rb +0 -19
  54. data/spec/wasabi/parser/import_port_types_spec.rb +0 -22
  55. data/spec/wasabi/parser/juniper_spec.rb +0 -23
  56. data/spec/wasabi/parser/marketo_spec.rb +0 -17
  57. data/spec/wasabi/parser/multiple_namespaces_spec.rb +0 -40
  58. data/spec/wasabi/parser/multiple_parts_in_message_spec.rb +0 -31
  59. data/spec/wasabi/parser/no_message_parts_spec.rb +0 -32
  60. data/spec/wasabi/parser/no_namespace_spec.rb +0 -26
  61. data/spec/wasabi/parser/no_target_namespace_spec.rb +0 -36
  62. data/spec/wasabi/parser/symbolic_endpoint_spec.rb +0 -24
  63. data/spec/wasabi/parser/tradetracker_spec.rb +0 -17
  64. data/spec/wasabi/resolver_spec.rb +0 -55
  65. data/spec/wasabi/wasabi_spec.rb +0 -12
  66. data/wasabi.gemspec +0 -28
@@ -1,115 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <definitions name="Api" xmlns:typens="urn:ActionWebService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="urn:ActionWebService" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns="http://schemas.xmlsoap.org/wsdl/">
3
- <types>
4
- <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:ActionWebService">
5
- <xsd:complexType name="MpUser">
6
- <xsd:all>
7
- <xsd:element name="avatar_thumb_url" type="xsd:string"/>
8
- <xsd:element name="speciality" type="xsd:string"/>
9
- <xsd:element name="avatar_icon_url" type="xsd:string"/>
10
- <xsd:element name="firstname" type="xsd:string"/>
11
- <xsd:element name="city" type="xsd:string"/>
12
- <xsd:element name="mp_id" type="xsd:int"/>
13
- <xsd:element name="lastname" type="xsd:string"/>
14
- <xsd:element name="login" type="xsd:string"/>
15
- </xsd:all>
16
- </xsd:complexType>
17
- <xsd:complexType name="MpUserArray">
18
- <xsd:complexContent>
19
- <xsd:restriction base="soapenc:Array">
20
- <xsd:attribute wsdl:arrayType="typens:MpUser[]" ref="soapenc:arrayType"/>
21
- </xsd:restriction>
22
- </xsd:complexContent>
23
- </xsd:complexType>
24
- <xsd:complexType name="McContact">
25
- <xsd:all>
26
- <xsd:element name="last_name" type="xsd:string"/>
27
- <xsd:element name="email" type="xsd:string"/>
28
- <xsd:element name="mp_id" type="xsd:int"/>
29
- <xsd:element name="role" type="xsd:int"/>
30
- <xsd:element name="login" type="xsd:string"/>
31
- <xsd:element name="first_name" type="xsd:string"/>
32
- </xsd:all>
33
- </xsd:complexType>
34
- <xsd:complexType name="McContactArray">
35
- <xsd:complexContent>
36
- <xsd:restriction base="soapenc:Array">
37
- <xsd:attribute wsdl:arrayType="typens:McContact[]" ref="soapenc:arrayType"/>
38
- </xsd:restriction>
39
- </xsd:complexContent>
40
- </xsd:complexType>
41
- </xsd:schema>
42
- </types>
43
- <message name="GetUserLoginById">
44
- <part name="api_key" type="xsd:string"/>
45
- <part name="id" type="xsd:int"/>
46
- </message>
47
- <message name="GetUserLoginByIdResponse">
48
- <part name="return" type="xsd:string"/>
49
- </message>
50
- <message name="GetAllContacts">
51
- <part name="api_key" type="xsd:string"/>
52
- <part name="login" type="xsd:string"/>
53
- </message>
54
- <message name="GetAllContactsResponse">
55
- <part name="return" type="typens:McContactArray"/>
56
- </message>
57
- <message name="SearchUser">
58
- <part name="api_key" type="xsd:string"/>
59
- <part name="phrase" type="xsd:string"/>
60
- <part name="page" type="xsd:string"/>
61
- <part name="per_page" type="xsd:string"/>
62
- </message>
63
- <message name="SearchUserResponse">
64
- <part name="return" type="typens:MpUserArray"/>
65
- </message>
66
- <portType name="ApiApiPort">
67
- <operation name="GetUserLoginById">
68
- <input message="typens:GetUserLoginById"/>
69
- <output message="typens:GetUserLoginByIdResponse"/>
70
- </operation>
71
- <operation name="GetAllContacts">
72
- <input message="typens:GetAllContacts"/>
73
- <output message="typens:GetAllContactsResponse"/>
74
- </operation>
75
- <operation name="SearchUser">
76
- <input message="SearchUser"/>
77
- <output message="SearchUserResponse"/>
78
- </operation>
79
- </portType>
80
- <binding name="ApiApiBinding" type="typens:ApiApiPort">
81
- <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
82
- <operation name="GetUserLoginById">
83
- <soap:operation soapAction="/api/api/GetUserLoginById"/>
84
- <input>
85
- <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ActionWebService" use="encoded"/>
86
- </input>
87
- <output>
88
- <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ActionWebService" use="encoded"/>
89
- </output>
90
- </operation>
91
- <operation name="GetAllContacts">
92
- <soap:operation soapAction="/api/api/GetAllContacts"/>
93
- <input>
94
- <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ActionWebService" use="encoded"/>
95
- </input>
96
- <output>
97
- <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ActionWebService" use="encoded"/>
98
- </output>
99
- </operation>
100
- <operation name="SearchUser">
101
- <soap:operation soapAction="/api/api/SearchUser"/>
102
- <input>
103
- <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ActionWebService" use="encoded"/>
104
- </input>
105
- <output>
106
- <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ActionWebService" use="encoded"/>
107
- </output>
108
- </operation>
109
- </binding>
110
- <service name="ApiService">
111
- <port name="ApiApiPort" binding="typens:ApiApiBinding">
112
- <soap:address location="http://example.com/api/api"/>
113
- </port>
114
- </service>
115
- </definitions>
@@ -1,52 +0,0 @@
1
- <?xml version="1.0" encoding="ISO-8859-1"?>
2
- <definitions name="SendSMS" targetNamespace="http://bedrift.telefonkatalogen.no" xmlns:tns="http://bedrift.telefonkatalogen.no" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns="http://schemas.xmlsoap.org/wsdl/">
3
- <types>
4
- <xsd:schema elementFormDefault="qualified" targetNamespace="http://bedrift.telefonkatalogen.no" xmlns="http://www.w3.org/2001/XMLSchema">
5
-
6
- </xsd:schema>
7
- </types>
8
-
9
-
10
- <message name="sendsmsRequest">
11
- <part name="sender" type="xsd:string"/>
12
- <part name="cellular" type="xsd:string"/>
13
- <part name="msg" type="xsd:string"/>
14
- <part name="smsnumgroup" type="xsd:string"/>
15
- <part name="emailaddr" type="xsd:string"/>
16
- <part name="udh" type="xsd:string"/>
17
- <part name="datetime" type="xsd:string"/>
18
- <part name="format" type="xsd:string"/>
19
- <part name="dlrurl" type="xsd:string"/>
20
- </message>
21
- <message name="sendsmsResponse">
22
- <part name="body" type="xsd:string"/>
23
- </message>
24
-
25
- <portType name="SendSmsPortType">
26
- <operation name="sendsms">
27
- <input message="tns:sendsmsRequest"/>
28
- <output message="tns:sendsmsResponse"/>
29
- </operation>
30
- </portType>
31
-
32
- <binding name="SendSmsBinding" type="tns:SendSmsPortType">
33
- <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
34
- <operation name="sendsms">
35
- <soap:operation soapAction="sendsms"/>
36
- <input>
37
- <soap:body use="literal"/>
38
- </input>
39
- <output>
40
- <soap:body use="literal"/>
41
- </output>
42
- </operation>
43
- </binding>
44
-
45
- <service name="SendSms">
46
- <documentation>Interfaces to telephone directory services, using rpc/literal</documentation>
47
- <port name="SendSmsPort" binding="tns:SendSmsBinding">
48
- <soap:address location="http://bedrift.telefonkatalogen.no/tk/websvcsendsms.php"/>
49
- </port>
50
- </service>
51
-
52
- </definitions>
@@ -1,11 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!-- Example of a WSDL with SOAP 1.2 and no SOAP 1.1 endpoint.
3
- Don't know whether this is widespread, but we should allow it. -->
4
- <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
5
- <service name="Blog">
6
- <port name="BlogSoap12">
7
- <soap12:address location="http://blogsite.example.com/endpoint12"/>
8
- </port>
9
- </service>
10
- </definitions>
11
-
@@ -1,190 +0,0 @@
1
- <!--This WSDL was generated by the webservice framework generator Version 1.8.14 on 2011-08-10T13:34:02.156+0200-->
2
- <wsdl:definitions targetNamespace="http://webservices.partner.example.de" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://webservices.partner.example.de" xmlns:intf="http://webservices.partner.example.de" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns2="http://model.webservices.partner.example.de" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3
- <wsdl:types>
4
- <schema targetNamespace="http://model.webservices.partner.example.de" xmlns="http://www.w3.org/2001/XMLSchema">
5
- <complexType name="DtTqEbUser">
6
- <sequence>
7
- <element name="simulate" nillable="true" type="xsd:boolean"/>
8
- <element name="mandant" nillable="true">
9
- <simpleType>
10
- <restriction base="xsd:string">
11
- <maxLength value="5"/>
12
- </restriction>
13
- </simpleType>
14
- </element>
15
- <element name="racfUser" nillable="true">
16
- <simpleType>
17
- <restriction base="xsd:string">
18
- <maxLength value="8"/>
19
- </restriction>
20
- </simpleType>
21
- </element>
22
- <element name="caller" nillable="true">
23
- <simpleType>
24
- <restriction base="xsd:string">
25
- <maxLength value="32"/>
26
- </restriction>
27
- </simpleType>
28
- </element>
29
- <element name="realUser" nillable="true">
30
- <simpleType>
31
- <restriction base="xsd:string">
32
- <maxLength value="32"/>
33
- </restriction>
34
- </simpleType>
35
- </element>
36
- <element fixed="PA8526" name="module" type="xsd:string"/>
37
- </sequence>
38
- </complexType>
39
- <complexType name="Message">
40
- <sequence>
41
- <element name="fehlerklasse" nillable="true">
42
- <simpleType>
43
- <restriction base="xsd:string">
44
- <maxLength value="2"/>
45
- </restriction>
46
- </simpleType>
47
- </element>
48
- <element name="fehlerart" nillable="true">
49
- <simpleType>
50
- <restriction base="xsd:string">
51
- <maxLength value="7"/>
52
- </restriction>
53
- </simpleType>
54
- </element>
55
- <element name="fehlermeldung" nillable="true">
56
- <simpleType>
57
- <restriction base="xsd:string">
58
- <maxLength value="200"/>
59
- </restriction>
60
- </simpleType>
61
- </element>
62
- <element name="extraFehlertext" nillable="true">
63
- <simpleType>
64
- <restriction base="xsd:string">
65
- <maxLength value="200"/>
66
- </restriction>
67
- </simpleType>
68
- </element>
69
- </sequence>
70
- </complexType>
71
- <complexType name="ArrayOfMessage">
72
- <sequence>
73
- <element maxOccurs="unbounded" minOccurs="0" name="message" nillable="true" type="tns2:Message"/>
74
- </sequence>
75
- </complexType>
76
- <complexType name="Returnobject">
77
- <sequence>
78
- <element name="messages" nillable="true" type="tns2:ArrayOfMessage"/>
79
- <element name="returncode" nillable="true">
80
- <simpleType>
81
- <restriction base="xsd:string">
82
- <maxLength value="30"/>
83
- </restriction>
84
- </simpleType>
85
- </element>
86
- </sequence>
87
- </complexType>
88
- <complexType name="ArrayOfDtPaStBezRollenStruktur">
89
- <sequence>
90
- <element maxOccurs="unbounded" minOccurs="0" name="DtPaStBezRollenStrukturArray" nillable="true" type="tns2:DtPaStBezRollenStruktur"/>
91
- </sequence>
92
- </complexType>
93
- <complexType name="DtPaStBezRollenStruktur">
94
- <sequence>
95
- <element name="paCode" nillable="true">
96
- <simpleType>
97
- <restriction base="xsd:int">
98
- <xsd:minInclusive value="0000"/>
99
- <xsd:maxExclusive value="32767"/>
100
- </restriction>
101
- </simpleType>
102
- </element>
103
- <element name="kurzbezeichnung" nillable="true">
104
- <simpleType>
105
- <restriction base="xsd:string">
106
- <maxLength value="15"/>
107
- </restriction>
108
- </simpleType>
109
- </element>
110
- <element name="bezeichnung" nillable="true">
111
- <simpleType>
112
- <restriction base="xsd:string">
113
- <maxLength value="60"/>
114
- </restriction>
115
- </simpleType>
116
- </element>
117
- <element name="codeInvers" nillable="true">
118
- <simpleType>
119
- <restriction base="xsd:int">
120
- <xsd:minInclusive value="0000"/>
121
- <xsd:maxExclusive value="32767"/>
122
- </restriction>
123
- </simpleType>
124
- </element>
125
- <element name="partnertypCd" nillable="true">
126
- <simpleType>
127
- <restriction base="xsd:int">
128
- <xsd:minInclusive value="0000"/>
129
- <xsd:maxExclusive value="32767"/>
130
- </restriction>
131
- </simpleType>
132
- </element>
133
- <element name="sortierfolge" nillable="true">
134
- <simpleType>
135
- <restriction base="xsd:int">
136
- <xsd:minInclusive value="0000"/>
137
- <xsd:maxExclusive value="32767"/>
138
- </restriction>
139
- </simpleType>
140
- </element>
141
- <element name="verwendbarkeit" nillable="true">
142
- <simpleType>
143
- <restriction base="xsd:string">
144
- <maxLength value="1"/>
145
- </restriction>
146
- </simpleType>
147
- </element>
148
- </sequence>
149
- </complexType>
150
- <complexType name="ROPtsLiesListe">
151
- <complexContent>
152
- <extension base="tns2:Returnobject">
153
- <sequence>
154
- <element name="listenteil" nillable="true" type="tns2:ArrayOfDtPaStBezRollenStruktur"/>
155
- </sequence>
156
- </extension>
157
- </complexContent>
158
- </complexType>
159
- </schema>
160
- </wsdl:types>
161
- <wsdl:message name="ptsLiesListeResponse">
162
- <wsdl:part name="ROPtsLiesListe" type="tns2:ROPtsLiesListe"/>
163
- </wsdl:message>
164
- <wsdl:message name="ptsLiesListeRequest">
165
- <wsdl:part name="user" type="tns2:DtTqEbUser"/>
166
- </wsdl:message>
167
- <wsdl:portType name="PaPtsStBezRollen">
168
- <wsdl:operation name="ptsLiesListe" parameterOrder="user">
169
- <wsdl:input message="intf:ptsLiesListeRequest" name="ptsLiesListeRequest"/>
170
- <wsdl:output message="intf:ptsLiesListeResponse" name="ptsLiesListeResponse"/>
171
- </wsdl:operation>
172
- </wsdl:portType>
173
- <wsdl:binding name="webservices.partner.example.deSoapBinding" type="intf:PaPtsStBezRollen">
174
- <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
175
- <wsdl:operation name="ptsLiesListe">
176
- <wsdlsoap:operation soapAction=""/>
177
- <wsdl:input name="ptsLiesListeRequest">
178
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="literal"/>
179
- </wsdl:input>
180
- <wsdl:output name="ptsLiesListeResponse">
181
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="literal"/>
182
- </wsdl:output>
183
- </wsdl:operation>
184
- </wsdl:binding>
185
- <wsdl:service name="PaPtsStBezRollenService">
186
- <wsdl:port binding="intf:webservices.partner.example.deSoapBinding" name="de.example.partner.webservices">
187
- <wsdlsoap:address location="http://server:port/CICS/CWBA/DFHWSDSH/DQ5006"/>
188
- </wsdl:port>
189
- </wsdl:service>
190
- </wsdl:definitions>