#116 decode_value - unrecognized type

0.65
closed
Byrne Reese
5
2006-10-02
2006-09-26
Girish
No

Hi,

I am new to Soaplite and wanted to raise this bug and
if its not a bug then please let me know.

I got a xml response from a webserver and excerpt if it
is as below:
<multiRef id="id48" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns70:FeatureAdminStateType"
xmlns:ns70="http://www.sonusnet.com/sms/smsapi/r06_03/model"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">Grant</multiRef>

The soap client fails with 'Unrecognized Type'.

In decode_value,

$res = $class ? die "Unrecognized type '$type'\n" :
$value unless defined $res;

Shouldnt it be
$res = $class ? $value : die "Unrecognized type
'$type'\n" unless defined $res;

Modifying this makes my client work fine and gives me
the response I expect.

Thanks,

Girish

Discussion

  • Girish
    Girish
    2006-10-02

    • status: open --> closed
     
  • Girish
    Girish
    2006-10-02

    Logged In: YES
    user_id=1606827

    i realised that i needed a serialiser method as_<name> for it.

    Thanks

    Girish