Returning raw xml in SOAP::Lite
- From: "Mark" <admin@xxxxxxxxxxxxxxxx>
- Date: Wed, 30 Aug 2006 07:20:48 +0200
Dear Perl folks,
Using Perl 5.8.7 and SOAP::Lite 0.69, consider please this small example
from perl.com:
-----------------
#!perl -w
use SOAP::Transport::HTTP;
SOAP::Transport::HTTP::CGI
-> dispatch_to('Demo')
-> handle;
package Demo;
sub hi {
return "hello, world";
}
sub bye {
return "goodbye, cruel world";
}
-----------------
Now, I got SOAP service set up like that. But what I want, instead of,
say, return ("goodbye, cruel world");, is to return a RAW xml stream,
complete with xml envelope and all (the xml is generated in another
place), and parse that straight back to the client.
Now, I tried several things; like setting outputxml => 1. Or this:
$xml = SOAP::Data->type('xml' => $raw);
return ($xml);
(and yes, $raw is defined within the "Demo" package). But the result is
always the same: SOAP::Lite returns an empty SOAP envelope. For the life
of me I just cannot get SOAP::Lite to just output my raw data to the
client.
I am kinda new to SOAP, and quite obviously missing something. If someone
has any ideas, I'll be glad to hear them.
Thanks,
- Mark
.
- Follow-Ups:
- Re: Returning raw xml in SOAP::Lite
- From: himanshu . garg
- Re: Returning raw xml in SOAP::Lite
- Prev by Date: Re: Allowing threading with CGI
- Next by Date: Hi Guys !
- Previous by thread: FormMail Error Bad/No Recipient, Browser Issue
- Next by thread: Re: Returning raw xml in SOAP::Lite
- Index(es):
Relevant Pages
|