
wildmaple
New User
Dec 29, 2004, 1:26 AM
Post #1 of 2
(221 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 =============
|