.NET代理类中的Java Web服务返回null

时间:2012-07-03 11:19:52

标签: java .net soap

当我在.NET代理类中访问Java Web服务时,我将回复字符串视为null。

在SOAP扩展的帮助下,我发现这是我从Web服务获得的回复:

<?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>
         <getInfoResponse xmlns="http://services">
             <getInfoReturn>
                 <full_Name xsi:nil="true"/>
             </getInfoReturn>
         </getInfoResponse>
    </soapenv:Body>
</soapenv:Envelope>

这是我正在使用的客户端类

cardInfo = new global::CardInfoService.CardInfoService.CardInfoService(); 
card = cardInfo.getCardInfo(value, number); 
System.Console.WriteLine("Got the Card Holder name " + card.full_Name);

提前致谢。

0 个答案:

没有答案
相关问题