CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Soap::Lite Related

 



wildmaple
New User

Dec 29, 2004, 1:26 AM

Post #1 of 2 (417 views)
Soap::Lite Related Can't Post

Hi, guys

I am reeeeally beginner to perl, so forgive me for asking this question.

I am developing a Soap based CS program, and got into a BIG problem.

A service and its client model, using php5(server) and c++(client) has been worked out successfully, no silly bug in this model, trust me plz.
And now, we have something to work on with perl(as client), so i've chosen Soap::Lite, by reading the simple guide I coded out a simple client as follows:


#!/usr/bin/perl -w
use SOAP::Lite;

my $result=SOAP::Lite
-> proxy('http://somesite.com/myservice.php')
->mymothed("Test1")
->result;

print $result;


ok, the problem came out, $result variable is expected to contain an array here, the server's response soap-env looks just normal as I designed, but when I successfully got an $result, how can I extract elements from it? I just don't know how to access attribs or elements of the values that returned from a soap service calling.

never mind the wrong code 'print $result;', I know it won't work, so just tell me how to access array or object attribs of the variable $result, $result[0]?$result->...?

THANX in advance.

=========== signature { =============
"They (our enemies) never stop thinking about new ways to harm our country and our people and neither do we".
-- Bush
=========== } signature =============


wildmaple
New User

Dec 29, 2004, 2:03 AM

Post #2 of 2 (415 views)
Re: [wildmaple] Soap::Lite Related [In reply to] Can't Post

here i put the $result variable's data structure in addition, dumped with Data::Dumper.

$VAR1 = bless( [
'value1','value2','value3'
], 'ArrayOf_xsd_string' );

Anyone help me out?

=========== signature { =============
"They (our enemies) never stop thinking about new ways to harm our country and our people and neither do we".
-- Bush
=========== } signature =============

(This post was edited by wildmaple on Dec 29, 2004, 5:11 PM)

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives