Skip Menu |

This queue is for tickets about the SOAP-Lite CPAN distribution.

Report information
The Basics
Id: 34516
Status: resolved
Priority: 0/
Queue: SOAP-Lite

People
Owner: Nobody in particular
Requestors: mkanat [...] cpan.org
Cc:
AdminCc:

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



Subject: Setting _encodingStyle to '' breaks XML-RPC method responses only in 0.71
I just installed 0.71 and noticed that my app (Bugzilla) stopped working. I have a subclass of XMLRPC::Serializer that sets _encodingStyle to '' to work around bug 34514. For some reason, I get my responses as {methodname}Response then. For example, if I call the method Bugzilla.version, I get my response as a "versionResponse" instead of a methodResponse like I should be getting. This of course breaks all XML-RPC clients. This doesn't happen in 0.68 (or 0.69, I'm assuming though I haven't checked).
Hi, can you provide a source code/XML example? Martin On Fr. 28. Mär. 2008, 21:16:50, MKANAT wrote: Show quoted text
> I just installed 0.71 and noticed that my app (Bugzilla) stopped > working. I have a subclass of XMLRPC::Serializer that sets > _encodingStyle to '' to work around bug 34514. For some reason, I get my > responses as {methodname}Response then. For example, if I call the > method Bugzilla.version, I get my response as a "versionResponse" > instead of a methodResponse like I should be getting. This of course > breaks all XML-RPC clients. > > This doesn't happen in 0.68 (or 0.69, I'm assuming though I haven't > checked).
From: mkanat [...] cpan.org
On Thu Apr 17 15:38:30 2008, MKUTTER wrote: Show quoted text
> Hi, > > can you provide a source code/XML example?
Here's our general XML-RPC framework, right now. See the last package in this file for what I had to do to make things work: http://lxr.mozilla.org/mozilla/source/webtools/bugzilla/Bugzilla/WebService.pm Here's the "Bugzilla" WebService module, which contains a "version" sub: http://lxr.mozilla.org/mozilla/source/webtools/bugzilla/Bugzilla/WebService/Bugzilla.pm And if you're curious, here's the actual CGI endpoint: http://lxr.mozilla.org/mozilla/source/webtools/bugzilla/xmlrpc.cgi What happens is when I call Bugzilla.version(), I get a <versionResponse> instead of a <methodResponse>.
Subject: Re: [rt.cpan.org #34516] Setting _encodingStyle to '' breaks XML-RPC method responses only in 0.71
Date: Tue, 29 Apr 2008 20:19:27 +0200
To: bug-SOAP-Lite [...] rt.cpan.org
From: Martin Kutter <martin.kutter [...] fen-net.de>
Hi Mark, I'm unable to reproduce the issue with a test. Adding the following lines to Bugzilla/WebService.pm yields the output below when just run with perl: my $foo = Bugzilla::WebService::XMLRPC::Transport::HTTP::CGI->new(); $foo->serializer->readable(1); # this is what XMLRPC::Lite calls print $foo->serializer()->envelope('response' => 'versionResponse', version => 1); <?xml version="1.0" encoding="UTF-8"?> <methodResponse> <params> <param> <value> <string>versionResponse</string> </value> </param> ... The symptoms you're describing sound like your webservice forgets about it's serializer object, and uses the default SOAP::Serializer instead. Is it still broken in 0.71.04? Are you using mod_perl? Some recent changes might have side effects under mod_perl. Martin Am Freitag, den 25.04.2008, 16:47 -0400 schrieb Max Kanat-Alexander via RT: Show quoted text
> Queue: SOAP-Lite > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=34516 > > > On Thu Apr 17 15:38:30 2008, MKUTTER wrote:
> > Hi, > > > > can you provide a source code/XML example?
> > Here's our general XML-RPC framework, right now. See the last package > in this file for what I had to do to make things work: > > http://lxr.mozilla.org/mozilla/source/webtools/bugzilla/Bugzilla/WebService.pm > > Here's the "Bugzilla" WebService module, which contains a "version" sub: > > http://lxr.mozilla.org/mozilla/source/webtools/bugzilla/Bugzilla/WebService/Bugzilla.pm > > And if you're curious, here's the actual CGI endpoint: > > http://lxr.mozilla.org/mozilla/source/webtools/bugzilla/xmlrpc.cgi > > What happens is when I call Bugzilla.version(), I get a > <versionResponse> instead of a <methodResponse>. >
Subject: Re: [rt.cpan.org #34516] Setting _encodingStyle to '' breaks XML-RPC method responses only in 0.71
Date: Thu, 05 Jun 2008 20:50:09 +0200
To: bug-SOAP-Lite [...] rt.cpan.org
From: Martin Kutter <martin.kutter [...] fen-net.de>
Hi Max, maybe I just misunderstood you, and you actually meant the same as http://rt.cpan.org/Ticket/Display.html?id=36477 This is fixed as of 0.710.06 just uploaded to CPAN. Please let me know if it fixes your error, Martin