For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > October 2006 > Soap Lite - raw XML passed to function









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Soap Lite - raw XML passed to function
Marcin

2006-10-30, 7:02 pm

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 @rgs = @_;
}

In @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




John Bokma

2006-10-30, 7:02 pm

"Marcin" <keinmail@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 @rgs = @_;
> }
>
> In @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/
Marcin

2006-10-30, 7:02 pm


Hello

>
> 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 @args I got only value3 and value4. If I could get raw XML
I could parse it properly.


Greetings
Marcin


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com