Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

SOAP::Lite initial setup error

by rvlahov (Novice)
on Dec 11, 2002 at 02:17 UTC ( [id://218983]=perlquestion: print w/replies, xml ) Need Help??

rvlahov has asked for the wisdom of the Perl Monks concerning the following question:

All,
Trying to set up a SOAP Server on WIN 2000.
I believe I have all thing set up including APACHE and SOAP::Lite

Using the example from O'Reilly's Programming Web Services with SOAP book

#!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";
----------------------------------------------------- when I run perl hw_client.pl james

I get the following output and error:

Calling the SOAP Server to say hello The SOAP Server says: Unexpected Content-Type 'text/plain; charset=iso +-8859-1' returned

Any ideas what I may have wrong.

Regards,
Richard Vlahov

Replies are listed 'Best First'.
Re: SOAP::Lite initial setup error
by Trimbach (Curate) on Dec 11, 2002 at 04:20 UTC
    I think your namespace is incorrect. Try ->uri('urn:Hello') instead of ->uri('urn:Example1')

    Namespace has to match or you're outta luck. :-)

    Gary Blackburn
    Trained Killer

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://218983]
Approved by djantzen
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-18 01:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found