Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6200431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:21:58+00:00 2026-05-24T04:21:58+00:00

I have created a webservice which takes a DTO as a parameter. And DTO

  • 0

I have created a webservice which takes a DTO as a parameter. And DTO contains an array of objects.
I’ve generated WSDL and skeletons and clients.
I am trying to invoke the webservice if I pass array of Strings say :
Serializable[] array = new String[] { “a”, “n” }; it works fine.

Now my requirement is to pass array of HashMaps I am not able to do so, even though HashMap implements Serializable.

 HashMap<String, String> hashMap1 = new HashMap<String, String>();
            HashMap<String, String> hashMap2 = new HashMap<String, String>();
            hashMap1.put("key1", "value1");
            hashMap2.put("key1", "value1");
            Serializable[] maps = new HashMap[] { hashMap1, hashMap2 };
            myDTO.setParams(maps);

            request.setDTO(myDTO);
            InvokeServiceResponse response = stub.serviceMethod(request);

I am using Axis2. 2.1.5, Tomcat 6, and Eclipse Helios.

Stack trace I am pasting here for reference.

org.apache.axis2.AxisFault: Unknow type can not serialize
    at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
    at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:83)
    at org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84)
    at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)
    at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
    at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
    at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:557)
    at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:199)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T04:21:59+00:00Added an answer on May 24, 2026 at 4:21 am

    I am using Asix2 to devolpe a project, actually I do not have Axis2 experience very much,HashMap is complex object in Java, some base objects are suppoeted by Asix2, such as simple Array, so do not try to use complex objects of Java when you use Axis.I think your reqest can not get, for axis recently do not support it.Thanks and regards.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When developing an application which consumes an external webservice I have generated the sources
I have created a web service which has a couple of methods developed using
I have created a webservice in .net 2.0, C#. I need to log some
I have created a console application that calls a method on a webservice. I
I have a web service I'm trying to load test. I created a program
I have created a C# .net 2.0 webservice. I need to capture the raw
I have created iPad application which downloads images using web service. But my application
I have problem with querying webservice which uses WS-Security. I use code creadted by
I have problem with sending a object from my webservice. I have created a
I have created a class named ListCell which is a subclass of UITableViewCell .

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.