savon 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +112 -0
- data/README.textile +42 -35
- data/Rakefile +28 -33
- data/lib/savon/client.rb +42 -19
- data/lib/savon/core_ext/hash.rb +35 -22
- data/lib/savon/core_ext/net_http.rb +20 -0
- data/lib/savon/core_ext/object.rb +7 -0
- data/lib/savon/core_ext/string.rb +1 -1
- data/lib/savon/core_ext.rb +2 -2
- data/lib/savon/request.rb +73 -33
- data/lib/savon/response.rb +23 -36
- data/lib/savon/soap.rb +63 -30
- data/lib/savon/wsdl.rb +82 -35
- data/lib/savon/wsse.rb +41 -35
- data/lib/savon.rb +3 -2
- data/spec/basic_spec_helper.rb +12 -0
- data/spec/endpoint_helper.rb +22 -0
- data/spec/fixtures/response/response_fixture.rb +36 -0
- data/spec/fixtures/response/xml/authentication.xml +14 -0
- data/spec/fixtures/response/xml/multi_ref.xml +39 -0
- data/spec/fixtures/response/xml/soap_fault12.xml +18 -0
- data/spec/fixtures/wsdl/wsdl_fixture.rb +37 -0
- data/spec/fixtures/wsdl/xml/authentication.xml +63 -0
- data/spec/fixtures/wsdl/xml/namespaced_actions.xml +307 -0
- data/spec/fixtures/wsdl/xml/no_namespace.xml +115 -0
- data/spec/http_stubs.rb +17 -19
- data/spec/integration/http_basic_auth_spec.rb +12 -0
- data/spec/integration/server.rb +51 -0
- data/spec/savon/client_spec.rb +52 -44
- data/spec/savon/core_ext/datetime_spec.rb +2 -2
- data/spec/savon/core_ext/hash_spec.rb +34 -31
- data/spec/savon/core_ext/net_http_spec.rb +38 -0
- data/spec/savon/core_ext/object_spec.rb +16 -2
- data/spec/savon/core_ext/string_spec.rb +4 -4
- data/spec/savon/core_ext/symbol_spec.rb +1 -1
- data/spec/savon/core_ext/uri_spec.rb +1 -1
- data/spec/savon/request_spec.rb +49 -63
- data/spec/savon/response_spec.rb +48 -51
- data/spec/savon/savon_spec.rb +12 -19
- data/spec/savon/soap_spec.rb +81 -90
- data/spec/savon/wsdl_spec.rb +62 -30
- data/spec/savon/wsse_spec.rb +58 -84
- data/spec/spec_helper.rb +3 -13
- metadata +29 -15
- data/VERSION +0 -1
- data/spec/fixtures/multiple_user_response.xml +0 -22
- data/spec/fixtures/user_fixture.rb +0 -54
- data/spec/fixtures/user_response.xml +0 -15
- data/spec/fixtures/user_wsdl.xml +0 -124
- data/spec/spec_helper_methods.rb +0 -33
- /data/spec/fixtures/{soap_fault.xml → response/xml/soap_fault.xml} +0 -0
data/spec/spec_helper_methods.rb
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
class SpecHelper
|
|
2
|
-
|
|
3
|
-
@soap_call_endpoint = "http://services.example.com/UserService"
|
|
4
|
-
@some_endpoint = @soap_call_endpoint + "?wsdl"
|
|
5
|
-
@some_endpoint_uri = URI @some_endpoint
|
|
6
|
-
|
|
7
|
-
@soap_multiple_endpoint = "http://multiple.example.com/UserService"
|
|
8
|
-
@multiple_endpoint = @soap_multiple_endpoint + "?wsdl"
|
|
9
|
-
|
|
10
|
-
@soap_soapfault_endpoint = "http://soapfault.example.com/UserService"
|
|
11
|
-
@soapfault_endpoint = @soap_soapfault_endpoint + "?wsdl"
|
|
12
|
-
|
|
13
|
-
@soap_httperror_endpoint = "http://httperror.example.com/UserService"
|
|
14
|
-
@httperror_endpoint = @soap_httperror_endpoint + "?wsdl"
|
|
15
|
-
|
|
16
|
-
@soap_invalid_endpoint = "http://invalid.example.com/UserService"
|
|
17
|
-
@invalid_endpoint = @soap_invalid_endpoint + "?wsdl"
|
|
18
|
-
|
|
19
|
-
@wsse_security_nodes = ["wsse:Security", "wsse:UsernameToken",
|
|
20
|
-
"wsse:Username", "wsse:Password", "wsse:Nonce", "wsu:Created"]
|
|
21
|
-
|
|
22
|
-
class << self
|
|
23
|
-
|
|
24
|
-
attr_accessor :soap_call_endpoint, :some_endpoint, :some_endpoint_uri,
|
|
25
|
-
:soap_multiple_endpoint , :multiple_endpoint,
|
|
26
|
-
:soap_soapfault_endpoint, :soapfault_endpoint,
|
|
27
|
-
:soap_httperror_endpoint, :httperror_endpoint,
|
|
28
|
-
:soap_invalid_endpoint, :invalid_endpoint,
|
|
29
|
-
:wsse_security_nodes
|
|
30
|
-
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
end
|
|
File without changes
|