Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Custom SOAP XML formats

by mda2 (Hermit)
on Apr 10, 2006 at 04:48 UTC ( #542209=note: print w/replies, xml ) Need Help??

in reply to Custom SOAP XML formats

Some times you need to touch on serialize attributes. Ita a complex interaction on SOAP::Lite, but some info at pod are available:
$uri='/TestCode'; $proxy='http://localhost/'; $command='TestMethod'; $queryResult = new SOAP::Lite ->uri($uri) ->proxy($proxy) ->$command( SOAP::Data->name('in0') ->attr({'xsi:type' => 'ns2:CoolType'}) ->value( { coolName => Foo, coolType=>Bar}));
This is the result:
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="" xmlns:namesp2="" xmlns:xsi="" xmlns:SOAP-ENC="" xmlns:xsd="" SOAP-ENV:encodingStyle=""> <SOAP-ENV:Body> <namesp1:TestMethod xmlns:namesp1="/TestCode"> <in0 xsi:type="ns2:CoolType"> <coolName xsi:type="xsd:string">Foo</coolName> <coolType xsi:type="xsd:string">Bar</coolType> </in0> </namesp1:TestMethod> </SOAP-ENV:Body> </SOAP-ENV:Envelope>

Marco Antonio

Replies are listed 'Best First'.
Re^2: Custom SOAP XML formats
by Anonymous Monk on Apr 10, 2006 at 12:24 UTC
    The system used is Axis. There appear to be some issues with Axis with SOAP::Lite. Your comments is very handy to get started (although I haven't found the time to test it). I found a comments on the SOAP::Lite mailing list (Working with multirefs, Axis, and SOAP::Lite) but again, I haven't found the time to test it.. I'll keep this thread updated.
Re^2: Custom SOAP XML formats
by Anonymous Monk on Apr 11, 2006 at 09:59 UTC
    I've tracked it down to an optional parameter that was actually a required parameter. Generating that variable is a whole different problem whatsoever. Expect a tool developer to get a wedgie anytime soon now :)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://542209]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2019-12-11 11:11 GMT
Find Nodes?
    Voting Booth?

    No recent polls found