Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with Java Collections and Axis2

 
pramodh somashekara
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic