Re: Libraries that make SOAP simpler
"Matthew Bowie" <[email protected]> Thu, 27 Nov 2008 19:30:06 -0700
| Newsgroups | gmane.org.user-groups.nmlug |
|---|---|
| Message-ID | <[email protected]> |
Yeah, it's just another RPC lib, but one that has garnered pretty wide acceptance. In Python there's SOAPpy (works great), in PHP there's the built in SOAP stuff and *NuSOAP (http://nusoap.sourceforge.net/), http://search.cpan.org/~kbrown/SOAP-0.28/lib/SOAP.pm* for perl, and several including http://dev.ctor.org/soap4r for Ruby. A quick google search for "<insert language> soap library" should get you a lot of options. Matthew Bowie Programmer/IT Consultant [email protected] 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