In your XML on the data types is declared to be 'SessionStruct'. There are a couple of default types that come with XML; string and integers to name two.

SOAP::Lite comes with its own default parser, and this parser attempts to take your XML file and make it into a Hash. The problem is that it reads the type from the XML document and then calls a module to decode the data type for that XML element. When you have custom types, it does not know what to do and blows up.

XML has some definition documents that help to identify and support these custom formats. The problem for SOAP::Lite is that it does not know how to read these definition documents. Java had alot more work put into it than Perl and so its SOAP utilities can read these definition documents and can handle stuff like this.

What I ended up do is using SOAP::Lite to get the document and don't attempt to deserialize the document. Instead I used XML::Twig to parse my XML.

Hope that helps


In reply to Re: SOAP::Lite:Java vs Perl by Herkum
in thread SOAP::Lite:Java vs Perl by mrguy123

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.