Comments (4)
What object do you want to pass that contains XML? I didn't add a built-in because the groovy markup builders are mostly aimed at writing to a StringWriter
.
from http-requests.
Ah, you mean use a markup builder to create an XML string, and use that as the request content? That sounds reasonable, I'll try it out.
Ideally I'd like to be able to post a Map directly and specify an XML content-type, like is possible with JSON. It would only be simple nested data, no XML attributes. Do you think that is worthwhile, or should we stick with a markup builder solution?
from http-requests.
The library is a bit opinionated right now if you use the default set of converters in that it always tries to treat lists or maps like JSON. Now that you mention your use case, this might be an area that could be improved.
The thing about map/list structures is that they have a 1-1 conversion to and from JSON, but this not the case with XML (and lists, in particular). If an XML renderer is outputting XML based on a list in a generic fashion, it is making decisions about your schema for you. This reason gives me pause about having a generic, automatic conversion to XML.
from http-requests.
I got my case working and based on your explanation, I think this can be closed. Thanks!
from http-requests.
Related Issues (17)
- grails 3.1.6 can not use this plugin HOT 2
- SL4J Logging Filter does not log Query Parameters HOT 1
- NullPointerException When Using an Incomplete URI
- HttpResponse.getEntity(Class<T> type) Throws NullPointerException When Response Has no Body
- NullPointerException When Trying to Send Null Payload
- <hostname>:-1 in Logs HOT 2
- Adding Query Params, Headers, and Form Data with Null Values throws NullPointerException
- contentType.substring error HOT 2
- Redirect from http to https not implemented
- EntityConverterManager limitations and solutions HOT 9
- can not get response json HOT 1
- encoding error when post HOT 2
- How to post MultipartFormEntity ? HOT 2
- Implicitly Decodes Encoded URIs HOT 3
- AuthenticationTokenHeaderFilter example HOT 3
- Some Basic URL Encoding? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from http-requests.