Support Questions

Find answers, ask questions, and share your expertise

HandleHttpRequest to HandleHttpResponse

avatar
New Contributor

hi, I have a project with nifi(1.8.0) HandleHttpRequest & HandleHttpResponse, I have two Question and can't solve it,

1. HandleHttpResponse body Content-type, how to set it

2.after get request data(the data is a array, each element is a object, such as:{'data':[{'id':1,'id':2}]} ), I want to change it, and make a soap request. how to change json to xml.

help me! thanks...

for the better way, share you idea with picture or xml template. thanks......

1 REPLY 1

avatar

You need to give an attribute to the response object by clicking to + sign. The processor must be stopped to add an attribute.

106721-2019-02-26-162739-localhost-4a57729d69de.png

Then response is

HTTP/1.1 200 OK
Date: Tue, 26 Feb 2019 13:27:12 GMT
Content-Type: xml
Transfer-Encoding: chunked
Server: Jetty(9.4.3.v20170317)

You may also look at another anwser here https://community.hortonworks.com/questions/86964/setting-custom-http-headers-with-handlehttprespons...