za_switch has asked for the wisdom of the Perl Monks concerning the following question:
How do you define a complex type in soap lite.
I have used this perl client side, to send a STRING to a php soap server that echo's the value back that I send to it without any problems...the only thing is how would i send a complex type like these two classes combined into one type nl. Questions_for_person to my php soap service.use strict; package TESTso; use SOAP::Lite; # +trace => 'debug'; my $HOST = "http://138.215.248.216:8080/Soap/test.php"; my $NS = "ITest"; my $PHRASE = "hello"; my $soap = SOAP::Lite ->readable(1) ->uri($NS) ->proxy($HOST); my $som = $soap->MyResponse(SOAP::Data->name("What" => "$PHRASE")); print "The response from the server was:\n".$som->result."\n";
| Person | |
| Name (String) | |
| Surname (String) | |
| Age (integer) |
| Question | |
| Questions (Array of Strigs) | |
| Num_Questions (integer) |
| Questions_for_person | |
| a_Person (Person Type) | |
| a_QuestionList (Question Type) |
2005-01-14 Edited by Arunbear: Changed title from 'SOAP::Lite', as per Monastery guidelines
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to define a complex type with SOAP::Lite
by gellyfish (Monsignor) on Jan 14, 2005 at 13:07 UTC | |
by za_switch (Initiate) on Jan 14, 2005 at 13:44 UTC |