I have a particular webservice that expects a JSON as post, and will spit back an XML. I'm using Retrofit for all my network calls. Here is how I set the Retrofit adapter with the XML converter:
mRestAdapter = new RestAdapter.Builder()
.setEndpoint(getBaseUrl())
.setConverter(new SimpleXMLConverter())
.build();
As you can see, I'm not using the Gson converter. How can I manage to post any JSON? Thanks!
No comments:
Post a Comment