savon 2.11.2 → 2.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +112 -73
  3. data/README.md +25 -16
  4. data/lib/savon/block_interface.rb +1 -0
  5. data/lib/savon/builder.rb +100 -30
  6. data/lib/savon/client.rb +1 -0
  7. data/lib/savon/header.rb +2 -6
  8. data/lib/savon/http_error.rb +4 -4
  9. data/lib/savon/log_message.rb +1 -0
  10. data/lib/savon/message.rb +1 -0
  11. data/lib/savon/mock/expectation.rb +1 -0
  12. data/lib/savon/mock/spec_helper.rb +1 -0
  13. data/lib/savon/mock.rb +1 -0
  14. data/lib/savon/model.rb +4 -3
  15. data/lib/savon/operation.rb +20 -18
  16. data/lib/savon/options.rb +71 -2
  17. data/lib/savon/qualified_message.rb +5 -4
  18. data/lib/savon/request.rb +18 -3
  19. data/lib/savon/request_logger.rb +8 -2
  20. data/lib/savon/response.rb +52 -5
  21. data/lib/savon/soap_fault.rb +2 -3
  22. data/lib/savon/string_utils.rb +17 -0
  23. data/lib/savon/version.rb +2 -1
  24. data/lib/savon.rb +2 -0
  25. metadata +62 -97
  26. data/.gitignore +0 -14
  27. data/.travis.yml +0 -19
  28. data/.yardopts +0 -6
  29. data/CONTRIBUTING.md +0 -46
  30. data/Gemfile +0 -13
  31. data/donate.png +0 -0
  32. data/lib/savon/core_ext/string.rb +0 -29
  33. data/savon.gemspec +0 -46
  34. data/spec/fixtures/gzip/message.gz +0 -0
  35. data/spec/fixtures/response/another_soap_fault.xml +0 -14
  36. data/spec/fixtures/response/authentication.xml +0 -14
  37. data/spec/fixtures/response/f5.xml +0 -39
  38. data/spec/fixtures/response/header.xml +0 -13
  39. data/spec/fixtures/response/list.xml +0 -18
  40. data/spec/fixtures/response/multi_ref.xml +0 -39
  41. data/spec/fixtures/response/soap_fault.xml +0 -8
  42. data/spec/fixtures/response/soap_fault12.xml +0 -18
  43. data/spec/fixtures/response/soap_fault_funky.xml +0 -8
  44. data/spec/fixtures/response/taxcloud.xml +0 -1
  45. data/spec/fixtures/ssl/client_cert.pem +0 -16
  46. data/spec/fixtures/ssl/client_encrypted_key.pem +0 -30
  47. data/spec/fixtures/ssl/client_encrypted_key_cert.pem +0 -24
  48. data/spec/fixtures/ssl/client_key.pem +0 -15
  49. data/spec/fixtures/wsdl/authentication.xml +0 -63
  50. data/spec/fixtures/wsdl/betfair.xml +0 -2981
  51. data/spec/fixtures/wsdl/brand.xml +0 -624
  52. data/spec/fixtures/wsdl/edialog.xml +0 -15416
  53. data/spec/fixtures/wsdl/interhome.xml +0 -2137
  54. data/spec/fixtures/wsdl/lower_camel.xml +0 -52
  55. data/spec/fixtures/wsdl/multiple_namespaces.xml +0 -92
  56. data/spec/fixtures/wsdl/multiple_types.xml +0 -60
  57. data/spec/fixtures/wsdl/no_message_tag.xml +0 -1267
  58. data/spec/fixtures/wsdl/taxcloud.xml +0 -934
  59. data/spec/fixtures/wsdl/team_software.xml +0 -1
  60. data/spec/fixtures/wsdl/vies.xml +0 -176
  61. data/spec/fixtures/wsdl/wasmuth.xml +0 -153
  62. data/spec/integration/centra_spec.rb +0 -66
  63. data/spec/integration/email_example_spec.rb +0 -32
  64. data/spec/integration/random_quote_spec.rb +0 -23
  65. data/spec/integration/ratp_example_spec.rb +0 -28
  66. data/spec/integration/stockquote_example_spec.rb +0 -34
  67. data/spec/integration/support/application.rb +0 -82
  68. data/spec/integration/support/server.rb +0 -84
  69. data/spec/integration/temperature_example_spec.rb +0 -46
  70. data/spec/integration/zipcode_example_spec.rb +0 -42
  71. data/spec/savon/builder_spec.rb +0 -137
  72. data/spec/savon/client_spec.rb +0 -271
  73. data/spec/savon/core_ext/string_spec.rb +0 -37
  74. data/spec/savon/features/message_tag_spec.rb +0 -61
  75. data/spec/savon/http_error_spec.rb +0 -49
  76. data/spec/savon/log_message_spec.rb +0 -50
  77. data/spec/savon/message_spec.rb +0 -70
  78. data/spec/savon/mock_spec.rb +0 -174
  79. data/spec/savon/model_spec.rb +0 -182
  80. data/spec/savon/observers_spec.rb +0 -92
  81. data/spec/savon/operation_spec.rb +0 -230
  82. data/spec/savon/options_spec.rb +0 -1075
  83. data/spec/savon/qualified_message_spec.rb +0 -68
  84. data/spec/savon/request_logger_spec.rb +0 -37
  85. data/spec/savon/request_spec.rb +0 -496
  86. data/spec/savon/response_spec.rb +0 -270
  87. data/spec/savon/soap_fault_spec.rb +0 -136
  88. data/spec/savon/softlayer_spec.rb +0 -27
  89. data/spec/spec_helper.rb +0 -30
  90. data/spec/support/adapters.rb +0 -48
  91. data/spec/support/endpoint.rb +0 -25
  92. data/spec/support/fixture.rb +0 -39
  93. data/spec/support/integration.rb +0 -9
  94. data/spec/support/stdout.rb +0 -25
@@ -1,52 +0,0 @@
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>
@@ -1,92 +0,0 @@
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>
@@ -1,60 +0,0 @@
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>