Skip Menu |

This queue is for tickets about the XML-Compile CPAN distribution.

Report information
The Basics
Id: 35881
Status: resolved
Priority: 0/
Queue: XML-Compile

People
Owner: Nobody in particular
Requestors: drew [...] drewtaylor.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: sloppy_integers option not being honored
I'm passing the sloppy_integers option when creating the READER and WRITER coderefs, but I'm still seeing Math::BigInt when dumping the parsed WRITER output in my client. Specifically, this is occurring in Catalyst::Controller::SOAP. The code looks like: my $reader_opts = {sloppy_integers => 1}; my $writer_opts = {sloppy_integers => 1}; ... my $input_parts = $self->wsdlobj->find(message => $portop->{input}{message})->{part}; for (@{$input_parts}) { my $type = $_->{type} ? $_->{type} : $_->{element}; $c->log->debug("SOAP: @{[$operation->name]} input part $_->{name}, type $type"); $_->{compiled_reader} = $self->wsdlobj->schemas->compile (READER => $type, %$reader_opts); }; ... my $output_parts = $self->wsdlobj->find(message => $portop->{output}{message})- Show quoted text
>{part};
for (@{$output_parts}) { my $type = $_->{type} ? $_->{type} : $_->{element}; $c->log->debug("SOAP: @{[$operation->name]} out part $_->{name}, type $type"); $_->{compiled_writer} = $self->wsdlobj->schemas->compile (WRITER => $_->{type} ? $_->{type} : $_->{element}, elements_qualified => 'ALL', %$writer_opts); } I don't have a good test case yet, because my schema is very large and complicated. I'll try to winnow down a test case. But somewhere along the line I'm losing the flag. I did enough digging to find that Schema::compile() us called several times, but I can't track down where the sloppy flag is being lost/ignored yet.
Subject: Re: [rt.cpan.org #35881] sloppy_integers option not being honored
Date: Wed, 14 May 2008 16:54:29 +0200
To: Drew Taylor via RT <bug-XML-Compile [...] rt.cpan.org>
From: Mark Overmeer <solutions [...] overmeer.net>
* Drew Taylor via RT (bug-XML-Compile@rt.cpan.org) [080514 14:40]: Show quoted text
> Wed May 14 10:40:19 2008: Request 35881 was acted upon. > Transaction: Ticket created by drew@drewtaylor.com > Queue: XML-Compile > Subject: sloppy_integers option not being honored > > I'm passing the sloppy_integers option when creating the READER > and WRITER coderefs, but > I'm still seeing Math::BigInt when dumping the parsed WRITER output > in my client. > Specifically, this is occurring in Catalyst::Controller::SOAP. > The code looks like:
XML::SOAP 0.72 fixed that. Do you have it? Show quoted text
> $_->{compiled_reader} = $self->wsdlobj->schemas->compile > (READER => $type, %$reader_opts);
This is really far from the interface I define in the XML::Compile::WSDL11 package. I have no idea why you do that. The way you use it here does pass sloppy_integers directly to the translator. I am sure that works. But there may be something with the translation of the WSDL object, which I cannot see here. -- Regards, MarkOv ------------------------------------------------------------------------ Mark Overmeer MSc MARKOV Solutions Mark@Overmeer.net solutions@overmeer.net http://Mark.Overmeer.net http://solutions.overmeer.net
If I do not get more detailed information about this problem, I will close this ticket.
From: drew [...] drewtaylor.com
On Fri May 23 03:51:06 2008, MARKOV wrote: Show quoted text
> If I do not get more detailed information about this problem, I will > close this ticket.
I think the problem was PEBKAC. I can't seem to reproduce it now, so go ahead and close the ticket. Drew
thanks