For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > June 2007 > Question about SOAP::Lite









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 Question about SOAP::Lite
Henry

2007-06-27, 7:05 pm

I want to send raw xml with SOAP and have something like this:

my $ns1 = "http://www.vrom.nl/wkpb/stuf";
my $ns2 = "http://www.egem.nl/StUF/StUF0205";
my $ns3 = "http://www.vrom.nl/wkpb0102";

my $method = SOAP::Data
-> attr ({'xmlns:StUF' => $ns2, 'xmlns:wkpb' => $ns3})
-> prefix ('wkpb-stuf')
-> uri ($ns1)
;

my $soap = SOAP::Lite
-> readable (1)
-> proxy ($ep)
-> uri ($ns1)
-> on_action ( sub { return '""';} )
-> call ($method => SOAP::Data->type('xml' => $aanvraag))
;

$aanvraag is the file containing the raw xml.

When I do this I get an SOAP-call:

<soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<wkpb-stuf:c-gensym2 xmlns:wkpb-stuf="http://www.vrom.nl/wkpb/stuf" xmlns:StUF="http://www.egem.nl/StUF/StUF0205"
xmlns:wkpb="http://www.vrom.nl/wkpb0102"> <StUF:stuurgegevens>
<StUF:berichtsoort>Lk02</StUF:berichtsoort>

How can I get rid of the c-gensym elements?

--
Henry


Henry

2007-06-27, 7:05 pm

Hello,

As a supplement to my previous message:

I want to create something like this:

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wkpb-stuf="http://www.vrom.nl/wkpb/stuf"
xmlns:StUF="http://www.egem.nl/StUF/StUF0205"
xmlns:wkpb="http://www.vrom.nl/wkpb0102"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
...................content of xml file...................
</soapenv:Body>
</soapenv:Envelope>

--
Henry



Sponsored Links







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

Copyright 2008 codecomments.com