Hey Neuron Support:
I know how to get & set the http header content type of an inbound & outbound request in a C# process step:
context.Data.GetProperty("MessageProperty_HttpRequest", "Content-Type");
context.Data.SetProperty("MessageProperty_HttpRequest", "Content-Type", contentType);
But how about setting the content type for an outbound response message response http header? Would it be:
context.Data.SetProperty("MessageProperty_HttpResponse", "Content-Type", contentType);
Thanks
Marc
Tags:
I don't know which runtime version you're running with, but the methods you're using should be deprecated.
You could use
context.Data.Http.Headers.ContentType
to set content type on the response message
Fabrizio
Neuron ESB Product Support Forums and Communities
© 2024 Created by Neuron Admin. Powered by