Sha256: cd02f38ff977f5992ffcc78dfb89f2b3993cab8277bd73e4cbcf1e66cecb2e0b
Contents?: true
Size: 869 Bytes
Versions: 2
Compression:
Stored size: 869 Bytes
Contents
module SoapResponseFixture def some_soap_response '<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">' << '<soap:Body>' << '<ns2:result xmlns:ns2="http://example.com/">' << '<return>' << '<token>secret</token>' << '</return>' << '</ns2:result>' << '</soap:Body>' << '</soap:Envelope>' end def soap_fault_response '<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">' << '<soap:Body>' << '<soap:Fault>' << '<faultcode>' << soap_fault_code << '</faultcode>' << '<faultstring>' << soap_fault << '</faultstring>' << '</soap:Fault>' << '</soap:Body>' << '</soap:Envelope>' end def soap_fault "Failed to authenticate client." end def soap_fault_code "soap:Server" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
smacks-savon-0.1.0 | test/fixtures/soap_response.rb |
smacks-savon-0.1.1 | test/fixtures/soap_response.rb |