$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}));