• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Access net via Automatic Configuration Script

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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){
String proxyHostStr = proxyHostTxtField.getText();
String proxyPortStr = proxyPortTxtField.getText();

Properties prop = System.getProperties();
prop.setProperty("http.proxyHost", proxyHostStr);
prop.setProperty("http.proxyPort", proxyPortStr);

WSDLFactory wsdlFactory = WSDLFactory.newInstance();WSDLReader wsdlReader = wsdlFactory.newWSDLReader();
Definition definition = wsdlReader.readWSDL(wsdlURI);
catch(Exception expn){
System.out.println("problem in reading wsdl");
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
passwords must contain 14 characters, a number, punctuation, a small bird, a bit of cheese and a tiny ad.
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic