I ran into the same problem with a WSDL provided by a Sun Glassfish server, the result is just empty, whereas I expect to get "Hello Chewy" Using python suds this works without problems. My code:
use SOAP::Lite +trace => "debug"; use SOAP::WSDL; use Data::Dumper; my $soap = SOAP::Lite->service("http://172.16.15.148:8081/Webservice/W +ebserviceService?wsdl"); print Dumper($soap->serializer->{_namespaces}); print "\n\nRESULT:\n".Dumper $soap->hello('Chewy')."\n\n";
Result (shortened):
$VAR1 = { 'http://www.w3.org/2001/XMLSchema' => 'xsd', 'http://schemas.xmlsoap.org/soap/encoding/' => 'soapenc', 'http://www.w3.org/2001/XMLSchema-instance' => 'xsi', 'http://schemas.xmlsoap.org/soap/envelope/' => 'soap' }; SOAP::Transport::HTTP::Client::send_receive: POST http://172.16.15.148 +:8081/Webservice/WebserviceService HTTP/1.1 Accept: text/xml Accept: multipart/* Accept: application/soap Content-Length: 567 Content-Type: text/xml; charset=utf-8 SOAPAction: "" __cut__ SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 200 OK <?xml version="1.0" ?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/ +soap/envelope/"><S:Body><ns2:helloResponse xmlns:ns2="http://Webservi +ces/"/></S:Body></S:Envelope> RESULT: $VAR1 = ' ';
Is there any way I can make Perl use this WSDL. I also used stubmaker.pl (SOAP::Lite) and then using the created packages. However also there the results are empty.

In reply to Re: SOAP::Lite & WSDL Problem by Chewy
in thread SOAP::Lite & WSDL Problem by rr2000

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.