Hi i'n new with web servers and soap lite and i'm trying to make a dancer web server that can access be by a soap client is this possible? or is there a better approch to implement this. Below is my test soap client

use SOAP::Lite +trace; my $client = SOAP::Lite->new(); $client->uri('urn:Hello'); $client->proxy('tcp://localhost:5000'); my $som = $client->hello("Test"); my $output = $som->result; print $output . "\n";
Below is the soap:lite trace
SOAP::Transport::new: () SOAP::Serializer::new: () SOAP::Deserializer::new: () SOAP::Parser::new: () SOAP::Lite::new: () SOAP::Transport::TCP::Client::new: () SOAP::Lite::call: () SOAP::Serializer::envelope: () SOAP::Serializer::envelope: hello Test SOAP::Data::new: () SOAP::Data::new: () SOAP::Data::new: () SOAP::Data::new: () SOAP::Data::new: () SOAP::Transport::TCP::Client::send_receive: <?xml version="1.0" encodi +ng="UTF-8"?><soap:Envelope soap:encodingStyle="http://schemas.xmlsoap +.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/enve +lope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmln +s:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org +/2001/XMLSchema-instance"><soap:Body><hello xmlns="urn:Hello"><c-gens +ym3 xsi:type="xsd:string">Test</c-gensym3></hello></soap:Body></soap: +Envelope> SOAP::Transport::TCP::Client::send_receive: HTTP/1.0 400 Bad request Content-Type: text/html Content-Length: 193 <html> <head> <title>Bad Request</title> </head> <body> <h1>Bad Request</h1> <p>Your browser sent a request which this web server could not grok.</p> </body> </html> SOAP::Deserializer::deserialize: () SOAP::Parser::decode: () not well-formed (invalid token) at line 1, column 4, byte 4 at /usr/li +b/perl5/XML/Parser.pm line 187 HTTP/1.0 400 Bad request Content-Type: text/html Content-Length: 193 <html> <head> <title>Bad Request</title> </head> <body> <h1>Bad Request</h1> <p>Your browser sent a request which this web server could not grok.</p> </body> </html> at ./SoapTcpClient.pl line 8 SOAP::Lite::DESTROY: () SOAP::Serializer::DESTROY: () SOAP::Data::DESTROY: () SOAP::Data::DESTROY: () SOAP::Data::DESTROY: () SOAP::Data::DESTROY: () SOAP::Data::DESTROY: () SOAP::Deserializer::DESTROY: () SOAP::Parser::DESTROY: () SOAP::Transport::DESTROY: () SOAP::Transport::TCP::Client::DESTROY: ()


In reply to Perl Dancer with soap client by shibs

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.