Skip to content

Commit

Permalink
HPCC4J-604 Suppress EclWatch redirects
Browse files Browse the repository at this point in the history
- Appends rawxml param to all axis2 client calls

Signed-off-by: Pastrana <[email protected]>
  • Loading branch information
Pastrana authored and Pastrana committed May 22, 2024
1 parent 7ba2270 commit b163dce
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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());
Expand Down

0 comments on commit b163dce

Please sign in to comment.