This week's book giveaway is in the Spring forum.
We're giving away four copies of Spring Boot in Practice and have Somnath Musib on-line!
See this thread for details.
Win a copy of Spring Boot in Practice this week in the Spring forum!
  • 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

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: 43028
76
  • 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