To fix this temporarily, I had the webservice provider change the boolean
field to a 'NullableBoolean' class that contained a boolean value - this way,
the correct value came across and I could work with it.
I'm not sure if this is helpful, but there's one more detail I noticed -
The xml doc I intercepted with Fiddler looks something like this
('processed' is the boolean variable):
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"...>
<env:Body env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
...
<responseVos...>
...
<ResponseVo ...>
...
<processed href="#ID_4"/>
...
</ResponseVo>
...
</responseVos...>
...
<xsd:boolean xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:boolean" id="ID_4">true</xsd:boolean>
...
</env:Body>
</env:Envelope>
This is working for now but I think I shouldn't have to have my webservice
provider fix my problem, right? Any help in solving this problem would be
greatly appreciated.
--
ak
Thank you for posting.
From your description, I understand you're using .net framework generated
proxy to consume a java based webservice. This webservice will return an
array of custom object type, and this type contains a boolean field.
However, at runtime, you found the .net client proxy class can not
correctly populate the boolean field of the value object class from SOAP
message(through the boolean value does exists in the SOAP content),
correct? If there is anything I missed, please feel free to let me know.
Based on my experience, such issue is possibly caused by incompatibility of
the server-side service's contract and the client-side platform's support
on the SOAP message data structure. Also, basd on the message snippet you
pasted, the webservice is using RPC/encoded style SOAP message. RPC/encoded
style SOAP message will format class objects or structures based on the
SOAP encoding rule rather than XML schema, generally when're not quite
recommended to use such style. Anyway, since the service is already
constructed under java platform, we may need to concentrate on our .net
client. Would you be able to create a simplified java service which
return a single valueobject(not in array) that can reproduce this problem?
If so, you can provide the WSDL document of that service or some captured
SOAP message of that service so that we can do some further analysis on
them.
Regards,
Steven Cheng
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)