Skip to content

Instantly share code, notes, and snippets.

@azuby
Created January 25, 2012 04:07
Show Gist options
  • Select an option

  • Save azuby/1674649 to your computer and use it in GitHub Desktop.

Select an option

Save azuby/1674649 to your computer and use it in GitHub Desktop.
---
- !ruby/struct:VCR::HTTPInteraction
request: !ruby/struct:VCR::Request
method: :get
uri: <registrar_wsdl>
body: !!null
headers: !!null
response: !ruby/struct:VCR::Response
status: !ruby/struct:VCR::ResponseStatus
code: 200
message: OK
headers:
x-powered-by:
- Servlet/2.5
server:
- Sun Java System Application Server 9.1
content-type:
- text/xml;charset="utf-8"
transfer-encoding:
- chunked
date:
- Tue, 24 Jan 2012 08:42:22 GMT
body: ! '<?xml version="1.0" encoding="UTF-8"?><!-- Published by JAX-WS RI at
http://jax-ws.dev.java.net. RI''s version is JAX-WS RI 2.1.2-hudson-182-RC1.
--><!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI''s version
is JAX-WS RI 2.1.2-hudson-182-RC1. --><definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://webservice.server.net/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://webservice.server.net/"
name="Registration">
<types>
<xsd:schema>
<xsd:import namespace="http://webservice.server.net/" schemaLocation="https://ws.server.net/webservice/Registration?xsd=1"></xsd:import>
</xsd:schema>
</types>
<message name="subscribePhone">
<part name="parameters" element="tns:subscribePhone"></part>
</message>
<message name="subscribePhoneResponse">
<part name="parameters" element="tns:subscribePhoneResponse"></part>
</message>
<message name="getPhoneStatus">
<part name="parameters" element="tns:getPhoneStatus"></part>
</message>
<message name="getPhoneStatusResponse">
<part name="parameters" element="tns:getPhoneStatusResponse"></part>
</message>
<message name="subscribePhoneAll">
<part name="parameters" element="tns:subscribePhoneAll"></part>
</message>
<message name="subscribePhoneAllResponse">
<part name="parameters" element="tns:subscribePhoneAllResponse"></part>
</message>
<portType name="Registration">
<operation name="subscribePhone">
<input message="tns:subscribePhone"></input>
<output message="tns:subscribePhoneResponse"></output>
</operation>
<operation name="getPhoneStatus">
<input message="tns:getPhoneStatus"></input>
<output message="tns:getPhoneStatusResponse"></output>
</operation>
<operation name="subscribePhoneAll">
<input message="tns:subscribePhoneAll"></input>
<output message="tns:subscribePhoneAllResponse"></output>
</operation>
</portType>
<binding name="RegistrationPortBinding" type="tns:Registration">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"></soap:binding>
<operation name="subscribePhone">
<soap:operation soapAction=""></soap:operation>
<input>
<soap:body use="literal"></soap:body>
</input>
<output>
<soap:body use="literal"></soap:body>
</output>
</operation>
<operation name="getPhoneStatus">
<soap:operation soapAction=""></soap:operation>
<input>
<soap:body use="literal"></soap:body>
</input>
<output>
<soap:body use="literal"></soap:body>
</output>
</operation>
<operation name="subscribePhoneAll">
<soap:operation soapAction=""></soap:operation>
<input>
<soap:body use="literal"></soap:body>
</input>
<output>
<soap:body use="literal"></soap:body>
</output>
</operation>
</binding>
<service name="Registration">
<port name="RegistrationPort" binding="tns:RegistrationPortBinding">
<soap:address location="https://ws.server.net/webservice/Registration"></soap:address>
</port>
</service>
</definitions>'
http_version: '1.1'
- !ruby/struct:VCR::HTTPInteraction
request: !ruby/struct:VCR::Request
method: :post
uri: https://ws.server.net/webservice/Registration
---------------------------------------------------------------------------- OLD BODY (Pre 2.0.0.rc1)
body: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:web="http://webservice.server.net/"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><web:subscribePhone><login><login></login><password><password></password><command>OPTIN</command><classIdList><classId><class_id></classId><msisdnList><unregistered_number></msisdnList></classIdList></web:subscribePhone></env:Body></env:Envelope>
---------------------------------------------------------------------------- NEW BODY (Post 2.0.0.rc1)
body: ''
---------------------------------------------------------------------------- END
headers:
soapaction:
- ! '"subscribePhone"'
content-type:
- text/xml;charset=UTF-8
content-length:
- '505'
response: !ruby/struct:VCR::Response
status: !ruby/struct:VCR::ResponseStatus
code: 200
message: OK
headers:
x-powered-by:
- Servlet/2.5
server:
- Sun Java System Application Server 9.1
content-type:
- text/xml;charset="utf-8"
transfer-encoding:
- chunked
date:
- Tue, 24 Jan 2012 08:42:24 GMT
body: <?xml version="1.0" ?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns2:subscribePhoneResponse
xmlns:ns2="http://webservice.server.net/"><return><transactionId>33867903</transactionId><classIdList><classId><class_id></classId><msisdnList><msisdn><unregistered_number></msisdn><status>OK</status></msisdnList></classIdList></return></ns2:subscribePhoneResponse></S:Body></S:Envelope>
http_version: '1.1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment