Hello All,
I have installed soap lite on my windows machine and I am not able to execute the Hello World sample from james snell's soap programming book.

Please tell me what I am doing wrong.
Hello.pm -------- package Hello; sub sayHello{ shift; return "Hello ". shift(@_); } HelloSoap.plx ------------- use strict; use warnings; use SOAP::Transport::HTTP; use Hello 'c:/Inetpub/Scripts'; SOAP::Transport::HTTP::CGI ->dispatch_to('Hello::(?:sayHello)') ->handle ; HelloClient.pl -------------- use strict; use warnings; use SOAP::Lite; my $name = shift; print "The soap server says "; print SOAP::Lite ->uri('urn:Example1') ->proxy('http://localhost/Scripts/HelloSoap.plx') ->sayHello('$name') ->result. "\n\n";

When I run my client (perl HelloClient.pl World) it doesn't do hello world. it just says "soap server says: " and then the program completes. no error messages ... no warnings... Please tell me what is incorrect in my code.

regards,
Abhishek.

edited: Tue Sep 10 02:43:41 2002 by jeffa - code tags and +2 mop of <br/> removal


In reply to SOAP::Lite Hello World Help by abhishes

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.