I'm writing a SOAP client using JAX-WS on Wildfly 8.
When sending small messages to my server, the client works properly. When the message gets too large, a header "Transfer-Encoding: chunked" gets added and the server stops accepting the messages.
Since I have no control over the server-part, I'm looking for a way to tell Wildfly to stop chunking large messages.
I've found a solution for WebSphere here: Disable chunked transfer-encoding for JAX-WS Client in WebSphere Application Server 8.5
I've configured a Handler. I've verified that this handler is called with each outgoing request. It looks like this:
public boolean handleMessage(SOAPMessageContext smc) {
ctx.put(*HTTPConstants.CHUNKED*, "false");
return true;
}
Since I'm using Wildfly, and not WebSphere, I don't have HTTPConstants.CHUNKED on my classpath. Does anyone know what I could use to tell Wildlfy to stop chunking messages? Is this even possible by using a handler?