I have seen many postings regarding webservice client calls through an authenticating proxy.  I have tried all of the solutions and have had no success.  The solutions I have tried are below.  Any suggestions?
 
==============================================
NETWORK ARCHITECTURE
internal webservice client code --> internal authenticating proxy --> internet --> external target webservice
 
ATTEMPTED SOLUTIONS
 
1)
System.getProperties().setProperty("http.proxyHost", "myhost");
System.getProperties().setProperty("http.proxyPort", "myport");
 
2)
call.setUsername("myusername");
call.setPassword("mypassword");
 
3)
Authenticator.setDefault(new MYAuthenticator());
 
4)
call.setTargetEndpointAddress("http://myusername:mypassword@myproxy@externalwebservice");
 
5)
String auth = "myusername:mypassword";
encodedAuth = javax.mail.internet.MimeUtility.encodeText(auth);
System.getProperties().setProperty("http.proxyAuth", encodedAuth);
 
==============================================

Reply via email to