Hello,

I am working on java appilcation (jre 1.6) that runs as window service.
I am able to connect to url if i know proxy host name and port (code below).

************************************************** ***************
if (proxyRequired) {
String proxyHost = objCompanyVO.getProxyHost();
String proxyPort = objCompanyVO.getProxyPort();
final String proxyUser = objCompanyVO.getProxyUser();
final String proxyPassword = GeneralAPI.jumbleString(objCompanyVO.getProxyPassw ord());

System.setProperty("https.proxySet", "true");
System.setProperty("https.proxyHost", proxyHost);
System.setProperty("https.proxyPort", proxyPort);
if(proxyUser!=null && proxyUser.trim().length()>0
&& proxyPassword!=null && proxyPassword.trim().length()>0 ){
Authenticator.setDefault( new Authenticator() {
protected PasswordAuthentication
getPasswordAuthentication() { return new PasswordAuthentication(proxyUser, proxyPassword.toCharArray());}
}
);
}
}
DueDownloadWSSoap objTachoFaultSoap = new DueDownloadWS_Impl()
.getDueDownloadWSSoap();
((javax.xml.rpc.Stub) objTachoFaultSoap)._setProperty(javax.xml.rpc.Stub .ENDPOINT_ADDRESS_PROPERTY, finalURL);

xmlString = objTachoFaultSoap.getSpecialDataReminders("usernam e", "password",
"accountname",accountNameTW,userNameTW,strPassword AfterSlpit, bDriverData);
***********************************************

Here is my problem:
When automatic configuration script is being used by internet (for security reasons) then how can connection be made because in this case proxy host name and port are not know.
Please guide/help.............