Should I push back to the vendor and require them to respond with decent error messages if my XML is badly formed or typed, or is their position reasonable and I simply need to figure out how to validate my own messages?

Most of the people who write Web Services have no idea about interoperability -- they're using toolkits to generate the service, and couldn't change the error messages if they even wanted to.

Odds are, the stack traces they've giving back, besides being a potential security problem, actually have some clue as to where the problem is ... but you didn't have that, so I have no idea. If you can find out what SOAP toolkit they're using, you might be able to find some sort of support forum for it, and find some hints as to what the problem is.

As for pre-validating the XML -- the bulk of WSDL is just XML Schema, so you might be able to use an XML Schema validator for the payload.

Dealing with the 'impedence errors' that come from different SOAP toolkits is a royal pain -- make sure you're casting each element as a SOAP::Data object, or use a custom serializer -- the default SOAP::Lite serializer makes a lot of assumptions that can be false (eg, '1234' is an integer ... even though it's supposed to be a string in the WSDL).


In reply to Re: Validating SOAP with a WSDL by jhourcle
in thread Validating SOAP with a WSDL by ptum

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.