Re: sending raw XML as the result
- --- In soaplite@y..., "arnaud_sahuguet" <sahuguet@l...> wrote:
> Is there a way to send raw XML as the result of a service?No, just return the XML string as a string. SOAP::Lite will encode the
> From the SOAP::Lite documentation, the only way seems to use
> SOAP::Data to create elements one by one.
< and the & appropriately.
The only issue is if you use XML::Lite::Parser (instead of
XML::Parser), the & and < are not decoded by SOAP::Lite on
reception. This is inconsistent and should probably be fixed.
- Yeah - I did this in a service I wrote around Amazon's REST based
service. Check out:
my $content = _fetch($url);
$content =~ s/\<\?xml.*\?\>\n?//; # strip the <?xml blah?>
$content =~ s/\<\!.*\>\n?//; # strip <!DOCTYPE blah>
return SOAP::Data->type('xml' => $content);
On Wed, 2002-09-25 at 11:23, arnaud_sahuguet wrote: Hi,
Is there a way to send raw XML as the result of a service?
>From the SOAP::Lite documentation, the only way seems to useSOAP::Data to create elements one by one.
Yahoo! Groups Sponsor
To unsubscribe from this group, send an email to:
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Grand Central Communications