bohdan has asked for the wisdom of the Perl Monks concerning the following question:
Then there is a data part:$header = SOAP::Header->name( "status"=>\SOAP::Header->value( SOAP::Header->name("code" => 0), SOAP::Header->name("msg" => "Ok") ) );
Both will form perfect XML on HTTP transport, but on client via $soap->header i get:$data = SOAP::Data->name( "status"=>\SOAP::Data->value( SOAP::Data->name("code" => 0), SOAP::Data->name("msg" => "Ok") ) );
but $soap->result will give me:$VAR1 = { 'status' => { 'msg' => 'Ok', 'code' => '0' } };
why there is the difference. How do I achieve having "status" in result of data?$VAR1 = { 'msg' => 'Ok', 'code' => '0' };
|
|---|