Search the web
Sign In
New User? Sign Up
soaplite · SOAP::Lite for Perl (soaplite.com)
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
XML Document to SOM object trouble   Message List  
Reply | Forward Message #6146 of 6387 |
Re: [soaplite] XML Document to SOM object trouble



On Thu, 1 May 2008, killgore9999 wrote:

> Hello, I was wondering if anyone might be able to offer some insight
> on my problem.
>
> I am writing tests for a perl script which relies on SOAP to send and
> receive data from a server. In an effort to simplify the tests and
> isolate the server from consideration, I am trying to simulate the
> server's xml responses using locally stored xml files rather than
> actually calling the server's methods. In effect, this will allow me
> to feed custom server messages into the script so that I can more
> easily control and analyze the output.

[trimmed]

> My case seems to clearly be one of these rare needs. I have tried
> passing just about everything I can think of into this method through
> the $message_as_xml parameter, but I am constantly getting error
> messages such as "Not an ARRAY reference at
> /opt/perl5.6.1/lib/site_perl/5.6.1/SOAP/Lite.pm line 385" and "Can't
> use string ("<?xml version='1.0' encoding='ut") as an ARRAY ref while
> "strict refs" in use at
> /opt/perl5.6.1/lib/site_perl/5.6.1/SOAP/Lite.pm line 385".

I'd inspect what's actually being sent over the wire -- I'm guessing that
you have an XML declaration inside the SOAP body (ie, your solution
resulted in the message having an extra SOAP header applied to it)

In your case, if you're sending exact messages -- I'd probably skip
SOAP::Lite entirely for the testing, and just use a plain old CGI script
and return the test responses.

-----
Joe Hourcle



Thu May 1, 2008 2:33 pm

jhourcle
Offline Offline
Send Email Send Email

Forward
Message #6146 of 6387 |
Expand Messages Author Sort by Date

Hello, I was wondering if anyone might be able to offer some insight on my problem. I am writing tests for a perl script which relies on SOAP to send and ...
killgore9999
Offline Send Email
May 1, 2008
2:17 pm

... [trimmed] ... I'd inspect what's actually being sent over the wire -- I'm guessing that you have an XML declaration inside the SOAP body (ie, your solution...
Joe Hourcle
jhourcle
Offline Send Email
May 1, 2008
2:32 pm

Thanks Joe for the help -- I was able to solve my problem, it seems that the xml file needs to be deserialized for it to be cast to a SOM object. Instead of...
Joe Joe
killgore9999
Offline Send Email
May 1, 2008
5:27 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help