Hi monks.
I have recently started using the SOAP::Lite module, and am now trying to figure out the SOAP::WSDL module, to check it's advantages over SOAP::Lite. To get started, I tried converting the age old "hello world" program from SOAP::Lite to SOAP::WSDL. The code for SOAP::Lite is: (taken from here) with a slight rewrite
#!/exlibris/metalib/m4_b/product/bin/perl use SOAP::Lite; { my $soap_request = SOAP::Lite->new(); $soap_request->uri('http://www.soaplite.com/Demo'); $soap_request->proxy('http://services.soaplite.com/hibye.cgi'); my $soap_response = $soap_request->hi(); my $result = $soap_response->result; print "$result\n"; }
I have tried to write it according to the SOAP::WSDL module, as so:
#!/exlibris/metalib/m4_b/product/bin/perl use SOAP::WSDL; { my $soap_request=SOAP::WSDL->new(); $soap_request->wsdl('http://www.soaplite.com/Demo'); $soap_request->proxy('http://services.soaplite.com/hibye.cgi'); $soap_request->wsdlinit; my $soap_response = $soap_request->call('hi'); my $result = $soap_response->result; print "the result is: $result\n"; }
However, I get this error message:
Service description 'http://www.soaplite.com/Demo' can't be loaded: 40 +4 Not Found
According to the module documentation, SOAP::WSDL basically expands on SOAP::Lite, so what worked in SOAP::Lite should also work in SOAP::WSDL. Does anybody have any idea what might be the problem? Also, any info or examples about SOAP::WSDL will be highly appreciated.
Thanks in advance,
Guy Naamati


A truth that's told in bad intent beats all the lies you can invent

In reply to SOAP::Lite and SOAP::WSDL by mrguy123

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.