SOAP Console

05 Sep 2008

I think it would be cool to cross the irb with a soap webservice to familiarize one-self with the interface. I envision something like this:

$> soap_console http://www.coolservices.com/CustomerAPI.wsdl
Welcome to the Soap Console for CustomerAPI.wsdl!
Methods available:
getCustomer [customer_id]
getPaymentList [customer_id]
addPayment [customer_id, amount]

?> customer = getCustomer(8767862)
Sending Request:
HTTP HEADERS
<SOAP:Envelope>
   ... stuff here ...
</SOAP:Envelope>

Response Received:
HTTP HEADERS
<SOAP:Envelope>
   ... stuff here ...

</SOAP:Envelope>

?> customer.first_name
=> "yo"
?>