Soap Lite - raw XML passed to function

Hello

I wrote web service using library SOAP Lite

SOAP::Transport::HTTP::CGI->dispatch_to(MyModule)->handle;
package MyModule;
sub my_method {
my $class = shift;
my [at] rgs = [at] _;
}

In [at] args I would like to get raw XML with paramters from client.
But I always get parssed values.
I've found method xmloutput('true') but probably I've used it wrongly
because there are always parssed values, not XML. I was not able
to find example using xmloutput('true').

Have you any idea?

Greetings

Marcin
Marcin [ Di, 24 Oktober 2006 19:35 ] [ ID #1512167 ]

Re: Soap Lite - raw XML passed to function

"Marcin" <keinmail [at] keinspam.de> wrote:

> Hello
>
> I wrote web service using library SOAP Lite
>
> SOAP::Transport::HTTP::CGI->dispatch_to(MyModule)->handle;
> package MyModule;
> sub my_method {
> my $class = shift;
> my [at] rgs = [at] _;
> }
>
> In [at] args I would like to get raw XML with paramters from client.

Why is that?

--
John Experienced Perl programmer: http://castleamber.com/

Perl help, tutorials, and examples: http://johnbokma.com/perl/
John Bokma [ Di, 24 Oktober 2006 20:04 ] [ ID #1512168 ]

Re: Soap Lite - raw XML passed to function

Hello

>> SOAP::Transport::HTTP::CGI->dispatch_to(MyModule)->handle;
>> package MyModule;
>> sub my_method {
>> my $class = shift;
>> my [at] rgs = [at] _;
>> }
>>
>> In [at] args I would like to get raw XML with paramters from client.
>
> Why is that?

Because this server must talk to old client software which sends XML
wrapped in SOAP. The XML looks like this:
<request>
<field1>value1</field1>
<field2>value2</field2>
</request>
<request>
<field1>value3</field1>
<field2>value4</field2>
</request>
in [at] args I got only value3 and value4. If I could get raw XML
I could parse it properly.


Greetings
Marcin
Marcin [ Do, 26 Oktober 2006 19:27 ] [ ID #1514984 ]
Perl » comp.lang.perl.modules » Soap Lite - raw XML passed to function

Vorheriges Thema: ANNOUNCE: new module: Daemon::Generic
Nächstes Thema: PPM is missing...?