• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with Java Collections and Axis2

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic