Skip Menu |

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

Report information
The Basics
Id: 29731
Status: new
Priority: 0/
Queue: SOAP-Lite

Owner: Nobody in particular
Requestors: roman.daniel [...]

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

Subject: Invalid response envelope with use_default_ns = 0
Download (untitled) / with headers
text/plain 1.3k
I use SOAP::Lite server with use_default_ns set to 0 to have my response elements prefixed. When data returned from dispatched function are qualified by namespace, SOAP::Lite creates invalid response soap envelope. This can be clearly ilustrated with serializer only without any soap call: use strict; use SOAP::Lite 'use_default_ns' => 0; my $ns = ''; my $soap = SOAP::Lite->ns($ns); my $envelope = $soap->serializer->envelope( 'response' => 'fooResponse', SOAP::Data->new( 'uri' => $ns, 'name' => 'fooResult', 'value' => 'Abrakadabra', ) ); print $envelope, "\n"; Script above produces following XML <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:xsi="" xmlns:soapenc="" xmlns:namesp4="" xmlns:xsd="" soap:encodingStyle="" xmlns:soap=""><soap:Body> <namesp1:fooResponse><namesp4:fooResult xsi:type="xsd:string" xmlns:namesp4="">Abrakadabra</namesp4:fooResult></namesp1:fooResponse></soap:Body></soap:Envelope> This XML is invalid since there is no namespace declaration for prefix the response element prefix namesp1.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to