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...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

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 #6149 of 6385 |
Re: XML Document to SOM object trouble

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 SOAP::SOM->new($XML) I should have been using:

    my $result = SOAP::Deserializer->deserialize(<XML>);

Thanks all

--Mike

Joe Hourcle <oneiros@...> wrote:


On Thu, 1 May 2008, killgore9999 wrote:

> Hey Joe, thanks for the reply --
>
> The xml document that I'm using is as follows:
>
>
>
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>
>
>
> xmlns:ns="http://super.cool.host.edu/ServiceV1/service/xsd">
> 101
> 102
> 103
>

>

>

>
> As for your CGI script idea, that's definitely another option but I
> kind of have my heart set on having local files which can be read by
> my object and returned to the client as if they were live soap messages.


open (XML, '<', '/path/to/xml/file')
|| die ("Couldn't read file : $!");
print $appropriate_soap_headers, "\n\n",


Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.

Thu May 1, 2008 3:52 pm

killgore9999
Offline Offline
Send Email Send Email

Forward
Message #6149 of 6385 |
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