in reply to Custom SOAP XML formats
This is the result:$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}));
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:namesp2="http://xml.apache.org/xml-soap" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <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
Rio-PM
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Custom SOAP XML formats
by Anonymous Monk on Apr 10, 2006 at 12:24 UTC | |
|
Re^2: Custom SOAP XML formats
by Anonymous Monk on Apr 11, 2006 at 09:59 UTC |