diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/BaseHPCCWsClient.java b/wsclient/src/main/java/org/hpccsystems/ws/client/BaseHPCCWsClient.java index 2a856a5a2..56ac482a3 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/BaseHPCCWsClient.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/BaseHPCCWsClient.java @@ -561,7 +561,7 @@ protected Integer getStubConnectionTO() throws AxisFault final static UsernamePasswordCredentials emptyCreds = new UsernamePasswordCredentials("", null); /** - * Sets the stub options defaults preemptiveauth to 'true; + * Sets the stub options defaults preemptiveauth to 'true'; * * @param thestub * The Axis generated service stub @@ -574,6 +574,10 @@ protected Integer getStubConnectionTO() throws AxisFault static public Stub setStubOptions(Stub thestub, Connection connection) throws AxisFault { Options opt = thestub._getServiceClient().getOptions(); + EndpointReference toRef = opt.getTo(); + String toAddress = toRef.getAddress() + (toRef.getAddress().contains("?") ? "&" : "?") + "rawxml_"; + toRef.setAddress(toAddress); + opt.setTo(toRef); opt.setProperty(HTTPConstants.SO_TIMEOUT, connection.getSocketTimeoutMilli()); opt.setProperty(HTTPConstants.CONNECTION_TIMEOUT, connection.getConnectTimeoutMilli());