When ksoap attempts to resolve the second href with
name #id1 it can't find it appropriately and fails to
get the value and returns a null value for (in this
case) clownID.
Here is a copy of the returned soap message that causes
this problem.
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<RegisterClownResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<RegisterClownReturn href="#id0"/>
</RegisterClownResponse>
<multiRef id="id0" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns1:ClownRegistrationResponse"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="http://some.namespace">
<clownId href="#id1"/>
<policyAsString
xsi:type="xsd:string">aString value</policyAsString>
</multiRef>
<multiRef id="id1" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="xsd:long"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">10</multiRef>
</soapenv:Body>
</soapenv:Envelope>
Cheers