Why can't Jbossws 3.2.2 GA consume coldfusion webservice return type xsd:anyType
stevewdewitt Aug 24, 2010 11:37 AMI have a coldfusion 8 webservice that returns an array (jbossws sees this as xsd:anyType)
<cffunction access="remote" name="testMethod" returntype="array">
<cfset myArray = ArrayNew(1)>
<cfset myArray[1] = "Steve">
<cfreturn myArray/>
</cffunction>
I am using jboss 5.1 GA community with Jbossws 3.2.2.GA consuming the service. The stubs are being built with axis 1.4
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();
if I call this from a coldfusion page I get a nice array. If I call it from my java code running on the jboss server it returns: [[testMethodReturn: null]]
I used wireshark and sniffed the http protocol and I get an xml packet:
<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>
A very similiar but a little more useful webservice has been working fine with jboss 4.0.2 for a few years now and we are just migrating to jboss 5.1 and this is happening.
Anyone have a similiar issue?
Jbossws 3.2.2 GA can use the tns1:DocumentQuery returntype. I changed my code to return this type but that means I have to change the method that calls the webservice.
I attached the wsdl and the generated stubs for the method that doesn't seem to work.
I did add another method to the webservice that returns the type DocumentQueryBean and that seems to work just fine while the method that returns anyType fails.
Message was edited by: steve DeWitt
Message was edited by: steve DeWitt
-
VerityService.java.zip 796 bytes
-
VerityService_Service.java.zip 983 bytes
-
SearchMwUsersResponse.java.zip 956 bytes
-
SearchMwUsers.java.zip 850 bytes
-
verityService.wsdl.zip 1.3 KB