[Techtalk] Libraries that make SOAP simpler

Kelly Jones kelly.terry.jones at gmail.com
Fri Nov 28 01:18:12 UTC 2008


Here's a SOAP request example
(http://www.w3schools.com/soap/soap_example.asp) for a stock's current
price:

== CUT HERE ==

POST /InStock HTTP/1.1
Host: www.example.org
Content-Type: application/soap+xml; charset=utf-8
Content-Length: nnn

<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">

<soap:Body xmlns:m="http://www.example.org/stock">
<m:GetStockPrice>
<m:StockName>IBM</m:StockName>
</m:GetStockPrice>
</soap:Body>
</soap:Envelope>

== CUT HERE ==

The return packet is equally verbose/complex.

Is there a Ruby/Perl/PHP library that turns the above into:

$res = object("http://www.example.org/stock/InStock").GetStockPrice("IBM")

and returns the result in to $res?

For all its fanciness, SOAP just seems like a way to call methods on
objects on the web. Is there a library/interface that lets me use it
like that?

-- 
We're just a Bunch Of Regular Guys, a collective group that's trying
to understand and assimilate technology. We feel that resistance to
new ideas and technology is unwise and ultimately futile.


More information about the Techtalk mailing list