Results 1 to 1 of 1
- 02-02-2012, 08:13 AM #1
Member
- Join Date
- Dec 2009
- Posts
- 3
- Rep Power
- 0
Connecting URL when internet is using automatic configuration script for connection
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.............
Similar Threads
-
client javadb connection over internet
By OmerHalit in forum JDBCReplies: 15Last Post: 05-26-2010, 11:27 AM -
Automatic sign in?
By dunafrothint in forum NetworkingReplies: 1Last Post: 03-26-2010, 03:00 PM -
automatic email
By pracheebapate in forum New To JavaReplies: 2Last Post: 01-18-2009, 08:07 PM -
pc give internet connection to mobile
By dimitrist in forum New To JavaReplies: 0Last Post: 12-21-2008, 02:22 PM -
automatic email
By aswin in forum New To JavaReplies: 0Last Post: 11-13-2008, 08:03 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks