1 Reply Latest reply: Dec 5, 2012 4:08 PM by EJP RSS

    Problem Retrieving wsdl using ProxySelector

      Hi everybody,
      I have built a WS client and I tried using a class that extends ProxySelector, lets call it MyProxySelector.
      While the program tries to retrieve the wsdl from the internet (https://some_web_service/Financial?wsdl)
      i get exception
      javax.xml.ws.WebServiceException: Failed to access the WSDL at: https://some_web_service/Financial?wsdl. It failed with:
           Unknown proxy type : HTTP.

      I think it might be because it is an httpS and not http site but i am not sure. (*EDIT:* I have just used it to access http site and still get the same exception)

      my Code: :
      MyProxySelector2(String h, String p) {
      theHost = h;
      thePort = Integer.parseInt(p);
      deff = ProxySelector.getDefault();
      proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(theHost, thePort));
      return my_List;
      return default_list;

      Edited by: 974027 on Dec 5, 2012 7:27 AM