[Xml-compile] XML::Compile::WSDL11 strange error state
Brian E. Lozier
brian at massassi.com
Fri Feb 24 15:25:02 GMT 2012
I sent the full dump, and wsdl files yesterday but it looks like they're
stuck in moderation.
On Thu, Feb 23, 2012 at 8:02 AM, Brian E. Lozier <brian at massassi.com> wrote:
>
>
> On Thu, Feb 23, 2012 at 1:03 AM, Michael Ludwig <m.ludwig at epages.com>wrot=
e:
>
>> > 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> 'dec=
ode
>> > error: ',
>> > 'name' =3D>
>> > 'xxxOrderStatus',
>> > 'path' =3D>
>> >
>> 'xxxGetOrderListResponse/GetOrderListResult/ResultData/OrderResponseItem=
',
>> > '_msgid' =3D> 'eleme=
nt
>> > `{name}\' not processed at {path}',
>> > '_expand' =3D> 1,
>> > '_domain' =3D> 'xml-
>> > compile',
>> > '_class' =3D> 'misfi=
t'
>> > },
>> '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
>> format
>> > 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 a=
nd
>> > 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
>> else
>> > can I provide to help debug this?
>> >
>> > Also to be clear, every other SOAP call I've made with this provider h=
as
>> > 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/20120224/c0=
cc542d/attachment.htm
More information about the Xml-compile
mailing list