Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions datamodel/soap/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
<artifactId>commons-fileupload</artifactId>
<version>1.6.0</version>
</dependency>
<dependency>
<groupId>org.apache.ws.xmlschema</groupId>
<artifactId>xmlschema-core</artifactId>
<version>2.2.5</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.sap.cloud.sdk.s4hana.connectivity.soap;

import org.apache.axis2.transport.http.AbstractHTTPSender;
import org.apache.axis2.transport.http.HTTPSender;
import org.apache.axis2.transport.http.impl.httpclient4.HTTPClient4TransportSender;

class DefaultHttpClientTransportSender extends HTTPClient4TransportSender
{
@Override
protected AbstractHTTPSender createHTTPSender()
protected HTTPSender createHTTPSender()
{
return new DefaultHttpSender();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,40 +1,7 @@
package com.sap.cloud.sdk.s4hana.connectivity.soap;

import java.net.URL;

import javax.annotation.Nullable;

import org.apache.axis2.AxisFault;
import org.apache.axis2.context.MessageContext;
import org.apache.axis2.transport.http.HTTPConstants;
import org.apache.axis2.transport.http.HttpTransportProperties;
import org.apache.axis2.transport.http.impl.httpclient4.HTTPSenderImpl;
import org.apache.http.HttpHost;

class DefaultHttpSender extends HTTPSenderImpl
{
@SuppressWarnings( "deprecation" )
@Override
protected HttpHost getHostConfiguration(
final org.apache.http.impl.client.AbstractHttpClient httpClient,
final MessageContext messageContext,
final URL targetUrl )
throws AxisFault
{
final HttpHost hostConfiguration = super.getHostConfiguration(httpClient, messageContext, targetUrl);

@Nullable
final HttpTransportProperties.ProxyProperties proxyProperties =
(HttpTransportProperties.ProxyProperties) messageContext.getProperty(HTTPConstants.PROXY);

if( proxyProperties != null ) {
final String proxyHost = proxyProperties.getProxyHostName();
final int proxyPort = proxyProperties.getProxyPort();

final HttpHost proxy = new HttpHost(proxyHost, proxyPort);
httpClient.getParams().setParameter(org.apache.http.conn.params.ConnRoutePNames.DEFAULT_PROXY, proxy);
}

return hostConfiguration;
}
}
2 changes: 1 addition & 1 deletion dependency-bundles/bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<!-- collection utilities, @Beta annotation -->
<commons-io.version>2.21.0</commons-io.version>
<!-- Apache file utils -->
<axis2.version>1.7.9</axis2.version>
<axis2.version>1.8.0</axis2.version>
<!--Used in essential modules: cloudplatform-connectivity, connectivity-destination-service, odata-client, odata-core, securitys-->
<commons-lang3.version>3.20.0</commons-lang3.version>
<!-- Soap requests -->
Expand Down