on 09-30-2010 5:08 AM
Hi All,
We are having a requirement to use AXIS adapter for connecting to a web service. While configuration we noticed that the Axis adapter by default does not provides any option to configure Proxy settings.
As per SAP Note 1039369, it looks like the setting can be done only at the J2EE server.
Is my understanding correct here, or is there any work around for this?
Excerpt from SAP Note:
The Axis's standard and adapter's HTTPSender and CommonsHTTPSender handlers recognize the java's standard network properties (http.proxyHost, http.proxyPort, http.nonProxyHosts) for HTTP proxy setting. Please check that these System properties are correctly set at the J2EE server's System properties page. For more information on how to set Java System properties, please refer to the J2EE server's documentation (SAP Note 710146 How to change J2EE Engine JVM Settings).
Thanks in advance!
Regards,
Sanjeev Shekhar Singh.
Hi,
I am afraid that you need to change this in the JVM as described in the note.
Certain adapters offers their own proxy settings but most of them don't.
We use the RNIF Adapter for example and needed to specify both the proxy and proxy user and password.
As far as I remember, proxy and user/password are not supplied in the same location (but that is also described in the note)
Best regards,
Markus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Markus,
Thanks for the quick response. If I understand you correctly, there is no workaround for this.
But then I was just wondering, shouldn't this feature be provide by SAP in Axis adapter (just like SOAP adapter), as in most cases proxy settings are required if we need to communicate to a web service that is not in our landscape.
Or am I missing something here?
Regards,
Sanjeev Shekhar Singh.
Hi Sanjeev,
I agree with you - they way they have implemented the whole HTTP proxy thing is not very consistent.
Certain adapters have proxy settings in the adapter and others don't although they should have them.
But as far as I understand, you could specify the proxy in the JVM and then you don't need the proxy settings in the adapter any longer (as far as the adapter is running on the java stack)
best regards,
Markus
Hello! You need to configure the proxy settings on the Config Tool. For this, open the ConfigTool -> select the Server and then on the right window click on the "GENERAL" tab.
Here you have to add the following parameters (remember to put the -D before each one):
for http:
http.proxy.user=user
http.proxy.password=password
http.proxyHost
http.proxyPort
http.nonProxyHosts
and for https (in case you go through proxy with secure connection):
https.proxy.user
https.proxy.password
https.proxyHost
https.proxyPort
https.nonProxyHosts
And the "nonProxyHost" parameter is separated with pipes " ", like
"-Dhttps.nonProxyHost=domain1.com domain2.com"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sanjeev,
TI haven done it yet, but I would try to put the information in the adapter module, not sure if that can be directly done in the HTTPSender or CommonsHTTPSender handler but if not I would try using the handler: com.sap.aii.axis.soap.MessageContextPropertiesHandler
Omar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Omar,
Thanks for the response. These are the settings that I have tried as of now.
Using MessageContextPropertiesHandler:
pas handler.type java:com.sap.aii.axis.soap.MessageContextPropertiesHandler
pas key.a http.proxyHost
pas key.b http.proxyPort
pas location.a header
pas location.b header
pas value.a <proxy host>
pas value.b <proxy port>
I also tried using the HTTPSender handler with the same settings. But unfortunately none of them worked.
Am I doing something wrong here?
Regards,
Sanjeev Shekhar Singh.
Would still like to keep the thread open to check if anyone has a separate view point here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.