Skip to Content
0
Mar 20, 2009 at 04:46 PM

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

113 Views

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");