logo       

Re: using SOAP::SOM to parse a LWP::UserAgent response: msg#00010

Subject: Re: using SOAP::SOM to parse a LWP::UserAgent response

Garry T. Williams wrote:
On Monday 06 November 2006 17:26, J Cook wrote:
Hi,

I have a LWP::UserAgent request that I want the response to become a SOAP::SOM object. Is this possible?

I've tried the following but got a weird SOAP/Lite error:

$response = $ua->request($request);
$som = SOAP::SOM->new($response->content());
print $som->valueof('//Result/Data');

Of course this might be easier, if you included the text of the error
you refer to.  :-)
   Yes, it might help;) - I got the following:
Can't use string ("<?xml version="1.0" encoding="ut") as an ARRAY ref while "strict refs" in use at /usr/local/share/perl/5.8.7/SOAP/Lite.pm line 459.


Any suggestions?

Any reason you're not just using SOAP::Lite to access the service
directly?  It uses LWP under its covers.
Because its not a simple SOAP call and its easier for me to roll it myself since that's how the person who wrote the service recommends doing it. But it would be nice to get the response back where its easily parsable.





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
audio.irate.dev...    yellowdog.gener...    ietf.ips/2002-0...    xfree86.fonts/2...    busybox/2003-07...    emacs.jdee/2004...    linux.mandrake....    hardware.microc...    user-groups.lin...    science.analysi...    version-control...    db.filemaker.de...    cluster.openmos...    mail.eyebrowse....    text.xml.xerces...    kde.devel.kwrit...    finance.moneyda...    gcc.regression/...    network.routing...    os.freebsd.deve...    recreation.radi...    qnx.openqnx.dev...    python.xml/2002...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe