Unfortunately this seems to be hard-coded (meaning no config parameter available to change the behaviour). But fortunately the “Set-Cookie” header field is added to the Response Header, BEFORE the execution of the requested Flow Service is started. (I assume, your customer posts his XML to one of your Flows, which processes the data and returns the response!?)
In that case we can modify the “Set-Cookie” header from inside our Flow: just create a Java Service with the following code:
HttpHeader rspHeader = Service.getHttpResponseHeader(new Values());
String cookie = rspHeader.getFieldValue("Set-Cookie");
if (cookie != null)
rspHeader.setField("Set-Cookie", cookie.substring(0, cookie.lastIndexOf(' ')));
(You need to add the following line in the “Imports” section of the Java Service:
com.wm.net.HttpHeader
)
and add it as the last step of your Flow. It reads the current value of the “Set-Cookie” header, truncates the “HttpOnly” at the end of the string and then sets it as the new value of “Set-Cookie”.
However, instead of doing the above, you may also ask your customer to update his HTTP client program to accept that token, because it is there for a reason: it makes cross-site scripting a little bit harder. See http://www.codinghorror.com/blog/archives/001167.html
Lanzelot
#Integration-Server-and-ESB#webMethods#webmethods-Protocol-and-Transport