From: Martin K. <mar...@fe...> - 2008-02-21 18:13:43
|
Hi Charles, it's a bit hard to tell you what perl code to write without the perl code you tried. The usual usage is something like this: my $soap = SOAP::Lite->new(); $soap->on_action( sub { return 'http://paypercall.ingenio.com/ListingsQuery' } ); # ... prepare header and body stuff in @data $soap->default_ns('some namespace'); $soap->call('listingsReq', @data); Martin Am Mittwoch, den 20.02.2008, 15:02 -0800 schrieb Charles: > Hi all, > > I am trying to create a SOAP request with the following schema: > > SOAPAction: "http://paypercall.ingenio.com/ListingsQuery" > > <?xml version="1.0" encoding="utf-8"?> > <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> > > <soap:Header> > <IngenioHeader xmlns="some namespace"> > <pid>string</pid> > <secCode>string</secCode> > <version>string</version>xml > </IngenioHeader> > </soap:Header> > > <soap:Body> > <listingsReq xmlns="some namespace"> > <totalListingsCountLimit>int</totalListingsCountLimit> > <ipAddress>string</ipAddress> > </listingsReq> > </soap:Body> > </soap:Envelope> > > > The problem is that the SOAPAction function is called ListingsQuery, > so in the <soap:Body> I get an object named <ListingsQuery>. I know > that you can use on_action to overwrite this, but how do I do this? > > At best, I've gotten the following structure: > > <soap:Body> > <ListingsQuery xmlns="..."> > <listingsReq xmlns="..."> > ... > </listingsReq> > <ListingsQuery> > </soap:Body> > > I'm not sure if I explained this well enough, but any help or example > code would be greatly appreciated. Thanks! > > -Charles > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ Soaplite-devel mailing list Soa...@li... https://lists.sourceforge.net/lists/listinfo/soaplite-devel |