cancel
Showing results for 
Search instead for 
Did you mean: 

Webservice Client Proxy Authentification HELP!

Former Member
0 Kudos

Hi,

i have built as WS Client using the SAP Standalone Proxy. The client will utilize a forward proxy to access my Webservice. Unfortunately the documentation does only give information how to set the proxy address and port:

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

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

The is no hint how to set a proxy user and password? Does anybody know the answer to my question here?

Cheers,

Heiko

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

Hi Heiko,

Get SecurityProtocol as described <a href="http://help.sap.com/saphelp_nw04/helpdata/en/ab/c955e2e2d24a888127f211f2d5043f/frameset.htm">here</a> .

Use methid <i>public void addHeader(String key, String value)</i> to add HTTP header:


String authString = "username" + ":" + "password";
String auth = "Basic " + new sun.misc.BASE64Encoder().encode(authString.getBytes());
securityProtocol.addHeader("Proxy-Authorization", auth);

Best regards, Maksim Rashchynski.

Answers (0)