.Net (C#) cannot deserialize Java web service response



I am consuming java based web service from .Net application. The problem arise, when I got deserialized response from the web service, some of the fields in response comes with null values, but if I look at xml response, response has its proper values. So I guess main problem is that .Net cannot deserialize response properly. Here is WSDL, the method I am using is "GetForeignEnterpriseList".


XML Response is



<S:Envelope xmlns:S="http://ift.tt/sVJIaE">
<s:Header xmlns:s="http://ift.tt/sVJIaE" />
<S:Body>
<ns6:getForeignEnterpriseListResponse xmlns="http://ift.tt/1sI8U0Z" xmlns:ns2="http://ift.tt/1sI8R5m" xmlns:ns3="http://ift.tt/1xkEMzl" xmlns:ns4="http://ift.tt/1sI8R5o" xmlns:ns5="http://ift.tt/1sI8Uhj" xmlns:ns6="http://ift.tt/1sI8RlI" xmlns:ns7="http://ift.tt/1sI8Uhp">
<ns2:enterpriseList offset="0" total="14058" count="1">
<ns2:enterprise>
<uuid>06e4a78e-053d-11e1-99b4-d8d385fbc9e8</uuid>
<guid>cb1483ab-2c7d-db46-445c-09849ae9b761</guid>
<active>true</active>
<last>true</last>
<status>100</status>
<createDate>2009-10-08T12:50:47+04:00</createDate>
<updateDate>2009-10-08T12:50:47+04:00</updateDate>
<ns2:name>Cargill Meat Solutions Corporation</ns2:name>
<ns2:englishName>
</ns2:englishName>
<ns2:activity>Убой КРС, разделка, хранение говядины</ns2:activity>
<ns2:englishActivity>Cattle slaughter, Beef cutting, Beef storage</ns2:englishActivity>
<ns4:address>
<ns4:addressView>Friona</ns4:addressView>
<ns4:enAddressView>
</ns4:enAddressView>
</ns4:address>
<ns4:country>
<uuid>91134526-4373-ec59-4a1e-e0e99bd50b7b</uuid>
<guid>cac8a802-3c65-397d-895d-c0495bf6ea61</guid>
</ns4:country>
<ns4:region>
<uuid>c7bad316-6564-787c-c502-6a9e8afdc093</uuid>
<guid>bbee471c-0548-7190-cca9-5897eedbeac3</guid>
<ns4:hasStreets>false</ns4:hasStreets>
</ns4:region>
<ns2:numberList>
<ns2:enterpriseNumber>86 Е</ns2:enterpriseNumber>
</ns2:numberList>
</ns2:enterprise>
</ns2:enterpriseList>
</ns6:getForeignEnterpriseListResponse>
</S:Body>
</S:Envelope>


.Net cannot deserialize "address", "country", "region", "numberList" nodes. Any ideas?


No comments:

Post a Comment