wood burning stoves 2.0*
The moose likes Web Services and the fly likes Problem with Java Collections and Axis2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Problem with Java Collections and Axis2" Watch "Problem with Java Collections and Axis2" New topic
Author

Problem with Java Collections and Axis2

pramodh somashekara
Ranch Hand

Joined: Jan 30, 2006
Posts: 62
Hi,
I'm using latest version of Axis2 - 1.4.1 and would like to know whether it supports Java Collection types like ArrayList,
HashMap and Maps etc. Currently i'm getting following exception and believe that even the WSDL generation through
Axis2 tool is not coming correct. I would appreciate for your response. thanks

Exception in thread "main" org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement nameSet
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at com.datatypes.DTImStub.fromOM(DTImStub.java:3001)
at com.datatypes.DTImStub.getData(DTImStub.java:191)
at com.datatypes.TestClient.main(TestClient.java:27)
Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException: Unexpected subelement nameSet
at com.datatypes.DTImStub$DT$Factory.parse(DTImStub.java:2949)
at com.datatypes.DTImStub$GetDataResponse$Factory.parse(DTImStub.java:1346)
at com.datatypes.DTImStub.fromOM(DTImStub.java:2995)
... 2 more
Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement nameSet
at com.datatypes.DTImStub$DT$Factory.parse(DTImStub.java:2943)
... 4 more
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41101
    
  45
Web services are platform- and language-independent, so you can't use Java Collections classes. Anything that can be expressed with an XML Schema (like an array) is fine.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with Java Collections and Axis2
 
Similar Threads
Unexpected subelement, Axis ADB Error
WebService Client - Unexpected SubElement Exception
Getting exception org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected
custom wsdl issue
problem using stub generated from WSDL file