You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Bo Zou <bz...@atreus-systems.com> on 2001/11/23 21:32:04 UTC

xsi:null fail

I am using Apache SOAP (client) talking to Soap::Lite.  But Apache SOAP
failed to interprete xsi:null.

The offending line is:

<objectKey xsi:null="1"/>

Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
msg=No Deserializer found to deserialize a ':valueList' using encoding
style 'http://schemas.xmlsoap.org/soap/encoding/'.;
targetException=java.lang.IllegalArgumentException: No Deserializer
found to deserialize a ':valueList' using encoding style
'http://schemas.xmlsoap.org/soap/encoding/'.]
    at org.apache.soap.rpc.Call.invoke(Call.java:246)

The following works:

<objectKey xsi:type="namesp14:XLINK__ObjectKey" xsi:null="1"/>

Is this a bug or a proper implementation of the SOAP spec?

Thanks.

Bo

P.S.

The complete message:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope 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/"
xmlns:namesp4="/XLINK/Interface"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<namesp14:getObjectAttributesResponse xmlns:namesp14="/XLINK/Interface">

<list xsi:type="SOAP-ENC:Array"
SOAP-ENC:arrayType="namesp4:XLINK__AttributeSet[1]">
<item xsi:type="namesp4:XLINK__AttributeSet">
<objectDefinition xsi:type="xsd:string"/>
<objectKey xsi:null="1"/>
</item>
</list>
</namesp14:getObjectAttributesResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>



Re: xsi:null fail

Posted by Bo Zou <bz...@atreus-systems.com>.
Some clarification: in the java error message: valueList should be
objectKey.

Bo

Bo Zou wrote:

> I am using Apache SOAP (client) talking to Soap::Lite.  But Apache SOAP
> failed to interprete xsi:null.
>
> The offending line is:
>
> <objectKey xsi:null="1"/>
>
> Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
> msg=No Deserializer found to deserialize a ':valueList' using encoding
> style 'http://schemas.xmlsoap.org/soap/encoding/'.;
> targetException=java.lang.IllegalArgumentException: No Deserializer
> found to deserialize a ':valueList' using encoding style
> 'http://schemas.xmlsoap.org/soap/encoding/'.]
>     at org.apache.soap.rpc.Call.invoke(Call.java:246)
>
> The following works:
>
> <objectKey xsi:type="namesp14:XLINK__ObjectKey" xsi:null="1"/>
>
> Is this a bug or a proper implementation of the SOAP spec?
>
> Thanks.
>
> Bo
>
> P.S.
>
> The complete message:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <SOAP-ENV:Envelope 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/"
> xmlns:namesp4="/XLINK/Interface"
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
> <SOAP-ENV:Body>
> <namesp14:getObjectAttributesResponse xmlns:namesp14="/XLINK/Interface">
>
> <list xsi:type="SOAP-ENC:Array"
> SOAP-ENC:arrayType="namesp4:XLINK__AttributeSet[1]">
> <item xsi:type="namesp4:XLINK__AttributeSet">
> <objectDefinition xsi:type="xsd:string"/>
> <objectKey xsi:null="1"/>
> </item>
> </list>
> </namesp14:getObjectAttributesResponse>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>


Re: xsi:null fail

Posted by Bo Zou <bz...@atreus-systems.com>.
Some clarification: in the java error message: valueList should be
objectKey.

Bo

Bo Zou wrote:

> I am using Apache SOAP (client) talking to Soap::Lite.  But Apache SOAP
> failed to interprete xsi:null.
>
> The offending line is:
>
> <objectKey xsi:null="1"/>
>
> Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
> msg=No Deserializer found to deserialize a ':valueList' using encoding
> style 'http://schemas.xmlsoap.org/soap/encoding/'.;
> targetException=java.lang.IllegalArgumentException: No Deserializer
> found to deserialize a ':valueList' using encoding style
> 'http://schemas.xmlsoap.org/soap/encoding/'.]
>     at org.apache.soap.rpc.Call.invoke(Call.java:246)
>
> The following works:
>
> <objectKey xsi:type="namesp14:XLINK__ObjectKey" xsi:null="1"/>
>
> Is this a bug or a proper implementation of the SOAP spec?
>
> Thanks.
>
> Bo
>
> P.S.
>
> The complete message:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <SOAP-ENV:Envelope 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/"
> xmlns:namesp4="/XLINK/Interface"
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
> <SOAP-ENV:Body>
> <namesp14:getObjectAttributesResponse xmlns:namesp14="/XLINK/Interface">
>
> <list xsi:type="SOAP-ENC:Array"
> SOAP-ENC:arrayType="namesp4:XLINK__AttributeSet[1]">
> <item xsi:type="namesp4:XLINK__AttributeSet">
> <objectDefinition xsi:type="xsd:string"/>
> <objectKey xsi:null="1"/>
> </item>
> </list>
> </namesp14:getObjectAttributesResponse>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>