[Xml-compile] XML::Compile::WSDL11 strange error state
Brian E. Lozier
brian at massassi.com
Thu Feb 23 16:02:32 GMT 2012
On Thu, Feb 23, 2012 at 1:03 AM, Michael Ludwig <m.ludwig at epages.com> wrote:
> > Von: Brian E. Lozier
>
> > ($r, $trace) =3D $wsdl->call('GetOrderList',
> > accountID =3D> $account_id,
> > orderCriteria =3D> {
> > OrderCreationFilterBeginTimeGMT =3D> $begin_time,
> > OrderCreationFilterEndTimeGMT =3D> $end_time,
> > StatusUpdateFilterBeginTimeGMT =3D> $begin_time,
> > StatusUpdateFilterEndTimeGMT =3D> $end_time,
> > JoinDateFiltersWithOr =3D> 1,
> > PageNumberFilter =3D> 1,
> > PageSize =3D> 100,
> > OrderStateFilter =3D> 'Active',
> > },
> > %auth,
> > );
> >
> > warn Dumper($trace);
> > warn Dumper($r);
>
> Take a look at:
>
> https://metacpan.org/module/XML::Compile::SOAP::Trace
>
> You can do: $trace->printErrors(*STDERR). All the methods listed on that
> page are for X::C::S::Trace objects. Try adding, for diagnostics:
>
> $trace->printRequest(*STDERR, pretty =3D> 1);
> $trace->printResponse(*STDERR, pretty =3D> 1);
>
>
I will try this and get back to you.
> > 'message' =3D> bless( {
> > '_prepend' =3D> 'deco=
de
> > error: ',
> > 'name' =3D>
> > 'xxxOrderStatus',
> > 'path' =3D>
> >
> 'xxxGetOrderListResponse/GetOrderListResult/ResultData/OrderResponseItem',
> > '_msgid' =3D> 'element
> > `{name}\' not processed at {path}',
> > '_expand' =3D> 1,
> > '_domain' =3D> 'xml-
> > compile',
> > '_class' =3D> 'misfit'
> > },
> 'Log::Report::Message' )
> > }, 'Log::Report::Exception' )
> > ],
>
> So does the response contain those xxxOrderStatus elements? Doesn't look
> right. Maybe someone made a change to the service implementation that
> they didn't mean to go live. I think your interpretation of the error
> messsage is correct.
>
In order to protect the possibly innocent api provider I took out the full
url/path and replaced the (seemingly) non-relevant parts with that 'xxx.'
Not a good idea in hindsight. I'll post the full dump in a second, sorry
about that.
>
> Michael
>
> > I think it's trying to tell me that the response doesn't match the form=
at
> > specified in the wsdl file (like, it couldn't find "xxxOrderStatus" in
> the path
> >
> "xxxGetOrderListResponse/GetOrderListResult/ResultData/OrderResponseItem")
> > but I pulled the XML out of the response and parsed it with XML::Simple
> and
> > by hand in a text editor and it seems like the returned XML is valid and
> > matches the description in the WSDL. I'm a beginner with SOAP so it's
> > possible I'm missing something. Is there another explanation? What el=
se
> > can I provide to help debug this?
> >
> > Also to be clear, every other SOAP call I've made with this provider has
> > worked well through this module, so it's not a systemic problem.
> >
> > Thanks,
> > Brian
>
> _______________________________________________
> Xml-compile mailing list
> Xml-compile at lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/xml-compile
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/xml-compile/attachments/20120223/dc=
807205/attachment.htm
More information about the Xml-compile
mailing list