The mysterious element you're seeing is because you're returning an anonymous element of some sort. You can get around this by either writing a custom serializer or returning SOAP::Data objects. There was an article on Majordojo about this. (I highly suggest reading all of the SOAP::Lite articles on there, if you're going to be spending much time with the module. (note -- SOAP::Serializer as distributed in CPAN is different from the SOAP::Serializer package within in SOAP::Lite; look at SOAP::Lite for SOAP::Data, as well)

Also, based on the format you described, you're looking more for wrapped document/literal as opposed to SOAP::Lite's default, which is RPC/encoded. (here's an article that explains the differences). There's going to be options in SOAP::Lite to supress the automatic namespaces, but I don't know if there's a way to supress the type attribute built in yet. (I haven't been keeping up with the latest betas, I just went to look at the new site design that was mentioned today on the mailing list) You can always override the serializer to do it, though.


In reply to Re: .net-friendly soap messages with Apache::SOAP by jhourcle
in thread .net-friendly soap messages with Apache::SOAP by theblop

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.