目前的情况是,通过java调.net 写的webservice,返回的是一个struct类型。
客户端返回类型设置的是:call.setReturnClass(org.w3c.dom.Element.class);
用的org.apache.xerces.dom.DeferredElementNSImpl类型接收。
org.apache.xerces.dom.DeferredElementNSImpl impl = (org.apache.xerces.dom.DeferredElementNSImpl) call
.invoke(new Object[] { "123", "1" });
正常情况,返回的值是:
<?xml version="1.0" encoding="utf-8" ?> 
- <testStruct xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd=" http://www.w3.org/2001/XMLSchema" xmlns=" http://test.org/">
  <id>wubo</id> 
  <name>1232321321</name> 
  <userid>213</userid> 
  </testStruct>但是,通过Java调用后,返回的impl对象中,我只得到id这个节点和值,另外两个节点却得不到,这是什么情况呢?因为以前从来没有调用过.net写的webservice,哪位高手能帮帮忙啊?