Hi
I wrote my first web service in Java a week ago. The application server is glassfish and the web service package is JAX-WS.
Servlet client worked, meaning connected to the client and run the method.
I'm trying to implement a Perl client, I used the very helpful instructions here:
http://guide.soaplite.com/#access%20with%20service%20description%20(wsdl)
My client is based on example 6.b, meaning something like:
my $service = SOAP::Lite
-> service('http://www.xmethods.net/sd/StockQuoteService.wsdl');
$result = $service->getQuote('MSFT');
print $result;
The wsdl file was created with the JAX-WS utility wsgen (as I said it was good enough for the Servlet), and imoprts the xsd file.
I am able to connect to the service, because if I try to activate a method which does not exist I get a message that the method does not exist, but when I try to run an existing method I get a warning that $result is not initialized.
Any ideas or suggestions? Is this a problem with the wsdl file? Can this be connected to the importing of the xsd file (seems not likely to me, but that's the noly difference I could see from the examples I saw)?
Many thanks
Sigal
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.