Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML Generator #171

Closed
wonderfly opened this issue Jan 9, 2015 · 2 comments
Closed

XML Generator #171

wonderfly opened this issue Jan 9, 2015 · 2 comments
Assignees
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@wonderfly
Copy link
Contributor

From steff.ni...@gmail.com on December 02, 2012 00:21:43

Hello all,

I am currently including google http java client into RoboSpice : https://github.com/octo-online/robospice .

RoboSpice is a library that makes it easy to execute network requests inside an Android Service, which is a good practice on Android. (more details in the GitHub repo's README).

In RoboSpice, we provide automatic caching of network related POJOs : the POJOs used as requests results are saved automatically in cache. For this, we just reuse the network serialisation/deserialisation code and save the result to a file.

It has been easy to include all json processing of Google Http Java Client in RoboSpice. And thanks for the work of making Jackson, Jackson2 and Gson work in a homogenous way. It's really a very nice idea and implementation.

We can see that you are pretty close to achieving the same thing using Xml. Nevertheless, there is no Xml generator class in Google Http Java Client, only a parser. Thus we can't save the results to disk, only read it. Would it be possible and useful for Google Http Java Client to provide a generator, in the same way as you do it for Json ?

Thanks in advance,
Stéphane NICOLAS

Original issue: http://code.google.com/p/google-http-java-client/issues/detail?id=171

@wonderfly wonderfly added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. imported priority: p2 Moderately-important priority. Fix may not be included in next release. labels Jan 9, 2015
@wonderfly wonderfly self-assigned this Jan 9, 2015
@wonderfly
Copy link
Contributor Author

From ngmic...@google.com on February 20, 2013 07:21:37

Status: Accepted
Owner: yan...@google.com

@wonderfly
Copy link
Contributor Author

From yan...@google.com on February 20, 2013 07:30:05

Yes there is. Depending on your use case:

Call the serialize methods in XmlNamespaceDictionary: http://javadoc.google-http-java-client.googlecode.com/hg/1.13.1-beta/com/google/api/client/xml/XmlNamespaceDictionary.html Or use XmlHttpContent: http://javadoc.google-http-java-client.googlecode.com/hg/1.13.1-beta/com/google/api/client/http/xml/XmlHttpContent.html Good luck!

Status: ByDesign

clundin25 pushed a commit to clundin25/google-http-java-client that referenced this issue Aug 11, 2022
* Bumping google-http-client version

* Bumping checkstyle to fix mac build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

1 participant