cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing a web service through a proxy server in a stand-alone Java proj.

patrik_spiess
Participant
0 Kudos

Hello,

I have a very simple question, but could not find any info in the documentation:

I have generated a web service client using the SAP web service libraries in a Java stand-alone project (not to be deployed on NetWeaver).

The generated client works fine for any service that is directly reachable. If the service is however must be accessed through a proxy server, the web service calls fail.

Is there a way of configuring the client to use a proxy server? I would be very happy if you could point me to some documentation.

Best regards,

Patrik

PS: On the web, I found the following hints, but they do not seem to work with the SAP libraries, right?

System.getProperties().setProperty("http.proxySet" , "true");
System.getProperties().setProperty("http.proxyHost ","proxy.com");
System.getProperties().setProperty("http.proxyPort ", "8080");

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Patrik,

With Web Service Client in a standalone Java Project, if you mean that you have created a Deployable Proxy and consuming it in a plain java project, then,

For Proxy server settings you can set the following Logical Port Properties:

port._setProperty("javax.xml.rpc.http.proxyhost","proxy");
port._setProperty("javax.xml.rpc.http.proxyport","8080");

For More information refer to [this.|http://help.sap.com/saphelp_nw70/helpdata/EN/04/d2c60e78814516afe7811829f02725/frameset.htm]

Regards,

Alka.

Answers (0)