How to create web service with content type as text/html?
Currently i want to implement a soap type web service in Creatio, but i have a problem, where the content type must be set to application/xml-dtd. How do I change the content type to application/xml or text/xml?
Below is i'm the attaching the sample web service that i create.
Like
Hello Ahmad,
I have an article that describes how to return different content types from a configuration service here:
https://customerfx.com/article/returning-an-html-page-from-a-creatio-co…
The above article changes the returning content type to text/html however, you could change it to any type and then return the data in the stream as needed.
Ryan
Hi Ahmad,
Unfortunately, such modification is not possible in the application, but thank you for the idea, we will register it to our R&D team for its implementation out-of-the-box in the future application releases.
For now you may use either application/json content type or pass a Stream, extract the body and process it in accordance to your business task.
Many thanks,
Artem
Hello Ahmad,
I have an article that describes how to return different content types from a configuration service here:
https://customerfx.com/article/returning-an-html-page-from-a-creatio-co…
The above article changes the returning content type to text/html however, you could change it to any type and then return the data in the stream as needed.
Ryan