rvlahov has asked for the wisdom of the Perl Monks concerning the following question:
----------------------------------------------------- when I run perl hw_client.pl james#!C:\Perl\bin\perl -w # hello.cgi use strict; use SOAP::Transport::HTTP; use lib '/ooSOAP'; SOAP::Transport::HTTP::CGI -> dispatch_to('Hello::(?:sayHello)') -> handle ; ------------------------------------------------------ # Hello.pm package Hello; sub sayHello { shift; # remove class name return "Hello " . shift; } 1; -------------------------------------------- #!C:\Perl\bin\perl -w # hw_client.pl - Hello Client use SOAP::Lite; my $name = shift; print "\n\nCalling the SOAP Server to say hello \n\n"; print "The SOAP Server says: "; print SOAP::Lite ->uri('urn:Example1') ->proxy('http://localhost/ooSOAP/hello.cgi') ->sayHello($name) ->result . "\n\n";
Calling the SOAP Server to say hello The SOAP Server says: Unexpected Content-Type 'text/plain; charset=iso +-8859-1' returned
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SOAP::Lite initial setup error
by Trimbach (Curate) on Dec 11, 2002 at 04:20 UTC |