Java 为什么jboss从Coldfusion webservice中看到一个返回结构数组的空列表?

Java 为什么jboss从Coldfusion webservice中看到一个返回结构数组的空列表?,java,web-services,coldfusion,interop,jboss,Java,Web Services,Coldfusion,Interop,Jboss,我有一个coldfusion 8 Web服务,它返回一个数组 <cffunction access="remote" name="testMethod" returntype="array"> <cfset myArray = ArrayNew(1)> <cfset myArray[1] = "Steve"> <cfreturn myArray/> </cffunction> 一个非常相似但更有用的Web服务已

我有一个coldfusion 8 Web服务,它返回一个数组

<cffunction access="remote" name="testMethod" returntype="array">
    <cfset myArray = ArrayNew(1)>
    <cfset myArray[1] = "Steve">
    <cfreturn myArray/>
</cffunction>
一个非常相似但更有用的Web服务已经在JBoss4.0.2上运行了好几年了,现在我们正在迁移到JBoss5.1,这正在发生


任何人都有类似的问题

这里只不过是在黑暗中拍摄-但你不应该将结果存储在数组而不是列表中吗

i、 e


只是一个想法。

这里只是一个黑暗中的快照-但是您不应该将结果存储在数组而不是列表中吗

i、 e


只是想一想。

我更改了Coldfusion Web服务以返回查询类型而不是数组。然后,生成的存根返回DocumentQueryBean。该对象由webservice调用填充,而数组不在其中。我不知道为什么jbossws库不处理服务返回数组时返回的xml。wsdl指示查询返回类型tns1:DocumentQueryBean,数组返回类型xsd:anyType


虽然我没有解决这个问题,但我对更改没有意见,并将使用它。

我更改了Coldfusion Web服务以返回查询类型而不是数组。然后,生成的存根返回DocumentQueryBean。该对象由webservice调用填充,而数组不在其中。我不知道为什么jbossws库不处理服务返回数组时返回的xml。wsdl指示查询返回类型tns1:DocumentQueryBean,数组返回类型xsd:anyType


虽然我没有解决这个问题,但我对更改没有意见,将使用它。

TestMethod是一个生成的存根,它返回一个列表,这就是我使用的。TestMethod是一个生成的存根,它返回一个列表,这就是我使用的。
VerityService_Service locator = new VerityService_Service(verityServiceURL, new QName("http://webservices", "verityService"));      
ChunkedEncodingFeature feature = new ChunkedEncodingFeature(false);
VerityService verityService = locator.getVerityServiceCfc(feature);
List<Object> helloWorld = verityService.testMethod();
<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>
<testMethodResponse xmlns="http://webservices">
<testMethodReturn>
 <testMethodReturn xsi:type="xsd:string">Steve</testMethodReturn>
</testMethodReturn>
</testMethodResponse>
</soapenv:Body>
</soapenv:Envelope>
Array<Object> helloWorld = verityService.testMethod();