-
Access net via Automatic Configuration Script
I need to access a wsdl file from my java program. I have the url for the wsdl. I use wsdl4j to read it. The user informs me in advance if he is using a proxy. He provides port+ip OR Automatic Configuration Script address. port ip part done. Automatic Configuration Script creating problem.. dunno how to do it..
My limitation number one is that I can use only jdk 1.4.0_2 (or below!).
Number two, I am working behind a firewall. Internet Explorers need to use Automatic Configuration Script to access the net. The script address reads something like : "http://213.543.12.1/co-domain-intranet-internet.proxy". I cannot open the url directly, access denied.
Currently using the proxy IP and port the program works. I need to do the same using the script... Any suggestions? The code goes:
public void readWsdl(String wsdlUrl){
if(useUsingProxy){
String proxyHostStr = proxyHostTxtField.getText();
String proxyPortStr = proxyPortTxtField.getText();
Properties prop = System.getProperties();
prop.setProperty("http.proxyHost", proxyHostStr);
prop.setProperty("http.proxyPort", proxyPortStr);
}
try{
WSDLFactory wsdlFactory = WSDLFactory.newInstance(); WSDLReader wsdlReader = wsdlFactory.newWSDLReader();
Definition definition = wsdlReader.readWSDL(wsdlURI);
}
catch(Exception expn){
System.out.println("problem in reading wsdl");
return;
}
}
Similar Threads
-
By jackal in forum VB Classic
Replies: 6
Last Post: 04-03-2003, 07:19 AM
-
By Alintex in forum dotnet.announcements
Replies: 0
Last Post: 12-16-2002, 02:30 AM
-
By Chris in forum Database
Replies: 3
Last Post: 08-20-2002, 12:14 AM
-
By MacDeath in forum VB Classic
Replies: 2
Last Post: 02-14-2001, 05:44 AM
-
By Todd B - Agendum Software in forum vb.announcements
Replies: 0
Last Post: 12-20-2000, 12:22 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks