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 6347527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:13:54+00:00 2026-05-24T21:13:54+00:00

I need to consume an Axis2 web service with an Android application. The Axis2

  • 0

I need to consume an Axis2 web service with an Android application. The Axis2 service is using JDK1.5 if it makes any difference.

I made Axis2 give JSON outputs. This turned out to be relatively simple, simply by modifying axis2.xml and adding the correct MessageFormatter and MessageBuilder.

Calling the service with the URL now results in a JSON output, and I can pass parameters in by modifying the request url:

http://myServer.com/axis2/Services/myService/myOperation?
    param1=asdf&response=application/json/badgerfish

However, I can’t seem to make calls that are accepted by actually sending JSON requests. The requests seem to be well-formed JSON, but the service rejects them. Looking at the Axis2 documentation, it looks like it would be easy if I was using the Axis2 stub (steps 2 and 3). However, I’m not (I can’t seem to get Axis2 client code to work on Android, but that’s a different story).

How can I send JSON requests to a JSON enabled Axis2 service?

  • 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-24T21:13:55+00:00Added an answer on May 24, 2026 at 9:13 pm

    The only way you can do this is by using the RawXMLInOutMessageReceiver, and parse the XML payload yourself. Axis2 JSON support is very weak, and you can’t use it along with data binding.

    See the comment from the author himself.
    http://isurues.wordpress.com/2009/10/06/how-to-use-axis2-json/

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

Sidebar

Related Questions

I need to consume a REST web service from my android device. I have
From a .NET application, how do I consume a Web Service developed using gSoap
I need to consume an external web service from my VB6 program. I want
So I need to consume a Web Service that uses a custom SoapHeader, as
I need to consume a SOAP web service from a C# .Net 4.0 client.
I need to consume a Web Service via SSL. In order to accomplish that
I need to consume a Web Service. They sent me the WSDL file. What
I need to consume multiple web services (this is the same service hosted in
I need to consume with Java a web service created in PHP (SOAP). Is
i need to consume a batch web service where I send a unique id

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.