savon-ng-1.6 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +13 -0
  3. data/.travis.yml +15 -0
  4. data/.yardopts +6 -0
  5. data/CHANGELOG.md +1024 -0
  6. data/CONTRIBUTING.md +46 -0
  7. data/Gemfile +8 -0
  8. data/LICENSE +20 -0
  9. data/README.md +81 -0
  10. data/Rakefile +14 -0
  11. data/donate.png +0 -0
  12. data/lib/savon/block_interface.rb +26 -0
  13. data/lib/savon/builder.rb +166 -0
  14. data/lib/savon/client.rb +88 -0
  15. data/lib/savon/core_ext/string.rb +29 -0
  16. data/lib/savon/header.rb +70 -0
  17. data/lib/savon/http_error.rb +27 -0
  18. data/lib/savon/log_message.rb +48 -0
  19. data/lib/savon/message.rb +36 -0
  20. data/lib/savon/mock/expectation.rb +71 -0
  21. data/lib/savon/mock/spec_helper.rb +62 -0
  22. data/lib/savon/mock.rb +5 -0
  23. data/lib/savon/model.rb +80 -0
  24. data/lib/savon/operation.rb +127 -0
  25. data/lib/savon/options.rb +330 -0
  26. data/lib/savon/qualified_message.rb +49 -0
  27. data/lib/savon/request.rb +89 -0
  28. data/lib/savon/request_logger.rb +48 -0
  29. data/lib/savon/response.rb +112 -0
  30. data/lib/savon/soap_fault.rb +48 -0
  31. data/lib/savon/version.rb +5 -0
  32. data/lib/savon.rb +27 -0
  33. data/savon.gemspec +47 -0
  34. data/spec/fixtures/gzip/message.gz +0 -0
  35. data/spec/fixtures/response/another_soap_fault.xml +14 -0
  36. data/spec/fixtures/response/authentication.xml +14 -0
  37. data/spec/fixtures/response/header.xml +13 -0
  38. data/spec/fixtures/response/list.xml +18 -0
  39. data/spec/fixtures/response/multi_ref.xml +39 -0
  40. data/spec/fixtures/response/soap_fault.xml +8 -0
  41. data/spec/fixtures/response/soap_fault12.xml +18 -0
  42. data/spec/fixtures/response/taxcloud.xml +1 -0
  43. data/spec/fixtures/ssl/client_cert.pem +16 -0
  44. data/spec/fixtures/ssl/client_encrypted_key.pem +30 -0
  45. data/spec/fixtures/ssl/client_encrypted_key_cert.pem +24 -0
  46. data/spec/fixtures/ssl/client_key.pem +15 -0
  47. data/spec/fixtures/wsdl/authentication.xml +63 -0
  48. data/spec/fixtures/wsdl/betfair.xml +2981 -0
  49. data/spec/fixtures/wsdl/edialog.xml +15416 -0
  50. data/spec/fixtures/wsdl/interhome.xml +2137 -0
  51. data/spec/fixtures/wsdl/lower_camel.xml +52 -0
  52. data/spec/fixtures/wsdl/multiple_namespaces.xml +92 -0
  53. data/spec/fixtures/wsdl/multiple_types.xml +60 -0
  54. data/spec/fixtures/wsdl/taxcloud.xml +934 -0
  55. data/spec/fixtures/wsdl/team_software.xml +1 -0
  56. data/spec/fixtures/wsdl/vies.xml +176 -0
  57. data/spec/fixtures/wsdl/wasmuth.xml +153 -0
  58. data/spec/integration/email_example_spec.rb +32 -0
  59. data/spec/integration/ratp_example_spec.rb +28 -0
  60. data/spec/integration/stockquote_example_spec.rb +28 -0
  61. data/spec/integration/support/application.rb +82 -0
  62. data/spec/integration/support/server.rb +84 -0
  63. data/spec/integration/temperature_example_spec.rb +46 -0
  64. data/spec/integration/zipcode_example_spec.rb +42 -0
  65. data/spec/savon/builder_spec.rb +86 -0
  66. data/spec/savon/client_spec.rb +193 -0
  67. data/spec/savon/core_ext/string_spec.rb +37 -0
  68. data/spec/savon/features/message_tag_spec.rb +61 -0
  69. data/spec/savon/http_error_spec.rb +49 -0
  70. data/spec/savon/log_message_spec.rb +33 -0
  71. data/spec/savon/message_spec.rb +40 -0
  72. data/spec/savon/mock_spec.rb +157 -0
  73. data/spec/savon/model_spec.rb +154 -0
  74. data/spec/savon/observers_spec.rb +92 -0
  75. data/spec/savon/operation_spec.rb +211 -0
  76. data/spec/savon/options_spec.rb +772 -0
  77. data/spec/savon/request_spec.rb +493 -0
  78. data/spec/savon/response_spec.rb +258 -0
  79. data/spec/savon/soap_fault_spec.rb +126 -0
  80. data/spec/spec_helper.rb +30 -0
  81. data/spec/support/endpoint.rb +25 -0
  82. data/spec/support/fixture.rb +39 -0
  83. data/spec/support/integration.rb +9 -0
  84. data/spec/support/stdout.rb +25 -0
  85. metadata +308 -0
@@ -0,0 +1,52 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <definitions
3
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
4
+ xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
5
+ xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
6
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
7
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
8
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9
+ xmlns:s="http://www.w3.org/2001/XMLSchema"
10
+ xmlns:actions="http://example.com/actions"
11
+ targetNamespace="http://example.com/topLevelNamespace">
12
+ <types>
13
+ <s:schema elementFormDefault="qualified" targetNamespace="http://example.com/actions">
14
+ <s:element name="Save">
15
+ <s:complexType>
16
+ <s:sequence>
17
+ <s:element name="lowerCamel" type="s:string"/>
18
+ </s:sequence>
19
+ </s:complexType>
20
+ </s:element>
21
+ </s:schema>
22
+ </types>
23
+ <message name="SaveSoapIn">
24
+ <part name="parameters" element="actions:Save"/>
25
+ </message>
26
+ <message name="SaveSoapOut">
27
+ <part name="parameters" element="actions:SaveResponse"/>
28
+ </message>
29
+ <portType name="ArticleSoap">
30
+ <operation name="Save">
31
+ <input message="actions:SaveSoapIn"/>
32
+ <output message="actions:SaveSoapOut"/>
33
+ </operation>
34
+ </portType>
35
+ <binding name="ArticleSoap" type="actions:ArticleSoap">
36
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
37
+ <operation name="Save">
38
+ <soap:operation soapAction="http://example.com/actions.Save" style="document"/>
39
+ <input>
40
+ <soap:body use="literal"/>
41
+ </input>
42
+ <output>
43
+ <soap:body use="literal"/>
44
+ </output>
45
+ </operation>
46
+ </binding>
47
+ <service name="StudyMDL">
48
+ <port name="StudyMDLSoap" binding="actions:StudyMDLSoap">
49
+ <soap:address location="http://example.com:1234/soap"/>
50
+ </port>
51
+ </service>
52
+ </definitions>
@@ -0,0 +1,92 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <definitions
3
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
4
+ xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
5
+ xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
6
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
7
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
8
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9
+ xmlns:s="http://www.w3.org/2001/XMLSchema"
10
+ xmlns:article="http://example.com/article"
11
+ xmlns:actions="http://example.com/actions"
12
+ targetNamespace="http://example.com/actions">
13
+ <types>
14
+ <s:schema elementFormDefault="qualified" targetNamespace="http://example.com/actions">
15
+ <s:element name="Save">
16
+ <s:complexType>
17
+ <s:sequence>
18
+ <s:element name="article" type="article:Article"/>
19
+ </s:sequence>
20
+ </s:complexType>
21
+ </s:element>
22
+ <s:element name="Lookup">
23
+ <s:complexType>
24
+ <s:sequence>
25
+ <s:element minOccurs="0" maxOccurs="1" name="articles" type="article:ArrayOfArticle" />
26
+ </s:sequence>
27
+ </s:complexType>
28
+ </s:element>
29
+ </s:schema>
30
+ <s:schema elementFormDefault="qualified" targetNamespace="http://example.com/article">
31
+ <s:complexType name="ArrayOfArticle">
32
+ <s:sequence>
33
+ <s:element minOccurs="0" maxOccurs="unbounded" name="Article" type="article:Article"/>
34
+ </s:sequence>
35
+ </s:complexType>
36
+ <s:complexType name="Article">
37
+ <s:sequence>
38
+ <s:element minOccurs="0" name="Author" type="s:string"/>
39
+ <s:element minOccurs="0" name="Title" type="s:string"/>
40
+ </s:sequence>
41
+ </s:complexType>
42
+ </s:schema>
43
+ </types>
44
+ <message name="SaveSoapIn">
45
+ <part name="parameters" element="actions:Save"/>
46
+ </message>
47
+ <message name="SaveSoapOut">
48
+ <part name="parameters" element="actions:SaveResponse"/>
49
+ </message>
50
+ <message name="LookupSoapIn">
51
+ <part name="parameters" element="actions:Lookup"/>
52
+ </message>
53
+ <message name="LookupSoapOut">
54
+ <part name="parameters" element="actions:LookupResponse"/>
55
+ </message>
56
+ <portType name="ArticleSoap">
57
+ <operation name="Save">
58
+ <input message="actions:SaveSoapIn"/>
59
+ <output message="actions:SaveSoapOut"/>
60
+ </operation>
61
+ <operation name="Lookup">
62
+ <input message="actions:LookupSoapIn"/>
63
+ <input message="actions:LookupSoapOut"/>
64
+ </operation>
65
+ </portType>
66
+ <binding name="ArticleSoap" type="actions:ArticleSoap">
67
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
68
+ <operation name="Save">
69
+ <soap:operation soapAction="http://example.com/actions.Save" style="document"/>
70
+ <input>
71
+ <soap:body use="literal"/>
72
+ </input>
73
+ <output>
74
+ <soap:body use="literal"/>
75
+ </output>
76
+ </operation>
77
+ <operation name="Lookup">
78
+ <soap:operation soapAction="http://example.com/actions.Lookup" style="document"/>
79
+ <input>
80
+ <soap:body use="literal"/>
81
+ </input>
82
+ <output>
83
+ <soap:body use="literal"/>
84
+ </output>
85
+ </operation>
86
+ </binding>
87
+ <service name="StudyMDL">
88
+ <port name="StudyMDLSoap" binding="actions:StudyMDLSoap">
89
+ <soap:address location="http://example.com:1234/soap"/>
90
+ </port>
91
+ </service>
92
+ </definitions>
@@ -0,0 +1,60 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <definitions
3
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
4
+ xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
5
+ xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
6
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
7
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
8
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9
+ xmlns:s="http://www.w3.org/2001/XMLSchema"
10
+ xmlns:article="http://example.com/article"
11
+ xmlns:actions="http://example.com/actions"
12
+ targetNamespace="http://example.com/actions">
13
+ <types>
14
+ <s:schema elementFormDefault="qualified" targetNamespace="http://example.com/actions">
15
+ <s:element name="Save">
16
+ <s:complexType>
17
+ <s:sequence>
18
+ <s:element name="article" type="s:string"/>
19
+ </s:sequence>
20
+ </s:complexType>
21
+ </s:element>
22
+ <s:element name="Get">
23
+ <s:complexType>
24
+ <s:sequence>
25
+ <s:element name="articleId" type="s:long"/>
26
+ </s:sequence>
27
+ </s:complexType>
28
+ </s:element>
29
+ </s:schema>
30
+ </types>
31
+ <message name="SaveSoapIn">
32
+ <part name="parameters" element="actions:Save"/>
33
+ </message>
34
+ <message name="SaveSoapOut">
35
+ <part name="parameters" element="actions:SaveResponse"/>
36
+ </message>
37
+ <portType name="ArticleSoap">
38
+ <operation name="Save">
39
+ <input message="actions:SaveSoapIn"/>
40
+ <output message="actions:SaveSoapOut"/>
41
+ </operation>
42
+ </portType>
43
+ <binding name="ArticleSoap" type="actions:ArticleSoap">
44
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
45
+ <operation name="Save">
46
+ <soap:operation soapAction="http://example.com/actions.Save" style="document"/>
47
+ <input>
48
+ <soap:body use="literal"/>
49
+ </input>
50
+ <output>
51
+ <soap:body use="literal"/>
52
+ </output>
53
+ </operation>
54
+ </binding>
55
+ <service name="StudyMDL">
56
+ <port name="StudyMDLSoap" binding="actions:StudyMDLSoap">
57
+ <soap:address location="http://example.com:1234/soap"/>
58
+ </port>
59
+ </service>
60
+ </definitions>