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
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.