Hi

I am attempting to make a call to a wsdl location at work using soap::lite. I've used it previously without issue but am coming up against and issue this time that i'm struggling to find a solution for.

My calling code is (wsdl location intentionally not included):

use SOAP::Lite 'trace', 'debug'; my $service = SOAP::Lite -> service("http:xxxxxx"); my $xmlCreationResult = $service -> getLatestPreviewSheetByHouseNumbe +r('CE_SA_SCOOBD0012_01');

I can see the expected return in the output but the code errors with: Unspecified namespace for type 'audioTrackVO'

I've tried calling the same webservice using C# and it seems to work. I also can't find much existing online that helped.

I am far from an expert on webservices but it looks to me like soap::lite is struggling to parse the result, or is picking up an issue with the result that is not being picked up in C#.

The return begins:

<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'> <env:Header> </env:Header> <env:Body> <tns:getLatestPreviewSheetByHouseNumberResponse xmlns:tns='urn:CommonS +ervice'> <return xmlns:ns2="urn:CommonService"> <id>51308</id> <audioTracks xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi +:type="audioTrackVO"> <id>1390864</id> <classification>dual mono</classification> <languageIsoCode>POL</languageIsoCode> <previewSheetId>51308</previewSheetId> </audioTracks>

Any suggestions would be appreciated.


In reply to SOAP::Lite - Unspecified namespace for type error by freeflyer73

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.