• 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
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Getting JSON as Response In Axis 1

 
Greenhorn
Posts: 21
Android Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Friends,

I am using axis 1(which comes as built-in in eclipse 3.4) fro my current running web service.Now as per new requirement I want the response this web service in JSON.Can anyone help me out that how to solve this.Currently the response is in xml format.

Thanks In Advance.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
AXIS 1 only does SOAP so XML is what you get. Incidently AXIS 1 is really really outdated.

RESTful services easily return JSON, XML or any type of resource. Search for the jersey project or restlet to find some RESTful tools.

I'm assuming your client for JSON is a web page in a browser, right?

Bill


 
Shashank Acharya
Greenhorn
Posts: 21
Android Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Bill,

Can I switch to axis 2 for json response?

Sorry for that I haven't mentioned my client.Basically my client is mobile app in android.

I surely search for jersey.

Thanks for your reply.
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't think any serious web service programmer recommends AXIS 2 for anything but SOAP.

Jersey and Restlet are so very very very much easier.

Bill
 
Let's get him boys! We'll make him read this tiny ad!
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic