I have the following SOAP-Server Code:
use SOAP::Transport::HTTP; my $daemon = SOAP::Transport::HTTP::Daemon -> new (LocalPort => 10013, Reuse => 1) -> dispatch_to('Demo'); print "Contact to SOAP server at ", $daemon->url, "\n"; $daemon->handle; package Demo; use Data::Dumper; sub OrderInquiry { print "OrderInquiry called\n"; my $self = shift; my %hash = @_; print Dumper \%hash; return "OrderInquiry order Created"; }
When I call this client script:
use SOAP::Lite +trace => [qw(debug)]; print SOAP::Lite -> uri('/Demo') -> proxy('http://localhost:10013/') -> OrderInquiry(SOAP::Data->name(vorname=>'physi')) + -> result;
I get the following result in the server window:
OrderInquiry called
$VAR1 = {
          'physi' => undef
        };
But where can I access the tag 'vorname'? The XML, which was sended contains :
<vorname xsi:type="xsd:string">physi</vorname>
How can I access the 'vorname' tag? I thought that I should get a hash in the server which looked like that:
$VAR1 = {
          'vorname' => 'physi'
        }
but the key is missing.

Any suggestions ?

Thanks in advance.
-----------------------------------
--the good, the bad and the physi--
-----------------------------------

In reply to How to get SOAP Tags in SOAP::Lite Server by physi

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.