Configurable MIME type for Content-Type
Development toolkit for Web Services and XML data bindings for C & C++
Brought to you by:
engelen
Hello
Currently, when generating soapClient.c for REST services, when the consumer sends some payload, the generated send function (hence also call) set the Content-Type to application/x-www-form-urlencoded.
However, when I invoke my REST service, I want to send either application/xml or application/json.
To reduce my code and make it easier to develop and maintain, it would be nice if you could consider the currently specified MIME type as a default, and provide some function to set the content type, before I can call soap_send...PUT or POST high-level, generated function.
(See example of the current behavior in line 334 of the attached file).
Thanks
Christian