Hey folks,
I am trying to use SOAP with WSDL but it won't work for me.
I search already on the internet and read also Posts about SOAP here but it couldn't help me.
Normal communication between soap cgi server and the client, which is using SOAP::Lite works.
But when i try to use the WSDL file, which i've created with POD::WSDL i get
"syntax error at line 1, column 0, byte 0 at /usr/lib/perl5/XML/Parser.pm line 187".
By using the trace ability of SOAP::LITE i discovered that the function were successfully executed because i got
...
<soap:Body><tns1:mySub><foo xsi:type="xsd:string">HELLO</foo></tns1:my
+Sub></soap:Body></soap:Envelope>
SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 200 OK
...
But after this i get the error message mentioned before. So I looked up in line 187 of Parser.pm.
There the module try to parse $args, so i checked what is stored in $args and its my server code. But why is my server code in $args? Shoudn't it be the xml data where my result ist stored?
I Also tried to use SOAP:WSDL
#my $soap = SOAP::WSDL->new(
# wsdl => 'http://localhost/wsdl/wsdl.xml',
# );
#my $result = $soap->call('MySub', "foobar");
But this gives me the following error:
"unable to extract schema from WSDL".
I tried many links which google gave me but all these links couldn't get me any further.
I hope that you can help me with this.
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.