Some WSRP producers such as Oracle do not support chunked encoding. For example, if you try to use http://portalstandards.oracle.com/portletapp/portlets?WSDL as producer URL and GateIn 3.0.0.Final as consumer, then you will get error in the form of
05:15:32,125 ERROR [SOAPFaultHelperJAXWS] SOAP request exception java.io.IOException: Could not transmit message at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:265) at org.jboss.ws.core.client.SOAPProtocolConnectionHTTP.invoke(SOAPProtocolConnectionHTTP.java:71) at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:340) at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:290) .......... Caused by: org.jboss.remoting.CannotConnectException: Can not connect http client invoker after 1 attempt(s) at org.jboss.remoting.transport.http.HTTPClientInvoker.makeInvocation(HTTPClientInvoker.java:249) at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:161) at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:165) at org.jboss.remoting.Client.invoke(Client.java:1724) at org.jboss.remoting.Client.invoke(Client.java:629) at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:243) ... 135 more Caused by: org.jboss.ws.WSException: Invalid HTTP server response [503] - Service Unavailable at org.jboss.ws.core.soap.SOAPMessageUnMarshallerHTTP.read(SOAPMessageUnMarshallerHTTP.java:75) at org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse(HTTPClientInvoker.java:570)
Work around for this issue is to set http://org.jboss.ws/http#chunksize to 0 in: server/YOUR_CONFIG/deployers/jbossws.deployer/META-INF/standard-jaxws-client-config.xml as mentioned in https://jira.jboss.org/jira/browse/JBWS-2884
Comments