one4k4 has asked for the wisdom of the Perl Monks concerning the following question:
Or somesuch similar to the above. If a client is written in Java, or (eek)VB, can they handle creating an object with the new method, and doing what I did above in Perl? (I don't program much outside of Perl, SQL and a bit of other random stuff..)#!/usr/bin/perl -w use SOAP::Lite; my $soap = SOAP::Lite -> uri('DocPub') -> proxy('http://10.7.2.33:2738/cgi-bin/soap/docpub.pl'); my $t = $soap -> call(new => '') -> result; $t->{name} = "Thomas"; my $r = $soap->hi($t); print $r->result;
$r = $soap->hi($param1,$param2,$param3);
Server stays the same:my $v = SOAP::Data->type('string')->name(uid => 'Thomas'); my $name = $v->value;
Of course, I want to change the method hi() to use it's params by name and not simply shifting off an array. (Who's to say they are in the right order?)sub hi { my $self = shift; my $e = shift; return "Hello $e"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SOAP and multiple client platforms
by one4k4 (Hermit) on Jun 13, 2002 at 14:39 UTC | |
|
Re: SOAP and multiple client platforms
by samtregar (Abbot) on Jun 13, 2002 at 16:39 UTC | |
by one4k4 (Hermit) on Jun 13, 2002 at 16:46 UTC | |
|
Re: SOAP and multiple client platforms
by cmilfo (Hermit) on Jun 13, 2002 at 21:01 UTC | |
by one4k4 (Hermit) on Jun 14, 2002 at 18:19 UTC |