Re: Libraries that make SOAP simpler
"Chris McMahon" <[email protected]> Fri, 28 Nov 2008 09:58:31 -0700
| Newsgroups | gmane.org.user-groups.nmlug |
|---|---|
| Message-ID | <[email protected]> |
I've written a couple of things you might find helpful: http://chrismcmahonsblog.blogspot.com/2006/03/soap-basic-authentication-in-ruby.html http://chrismcmahonsblog.blogspot.com/2006/07/another-fine-soap-test-tool.html http://chrismcmahonsblog.blogspot.com/2006/06/ruby-soap-is-amazing.html On Thu, Nov 27, 2008 at 6:18 PM, Kelly Jones <[email protected]> wrote: > 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. > _______________________________________________ > NMLUG mailing list > [email protected] > http://lists.b9.com/cgi-bin/mailman/listinfo/nmlug > _______________________________________________ NMLUG mailing list [email protected] http://lists.b9.com/cgi-bin/mailman/listinfo/nmlug