Java proxy auto-configuration and Microsoft PAC script extensions

Hi,
Within our proxy auto-configuration PAC script, we have to use the Microsoft IPv6 PAC script extensions such as myIPAddressEx rather than the old myIPAddress. This is required in order to get the PC's internal 10.0.0.0/8 IPv4 address rather than the IPv6 or wi-fi card addresses that are often returned when using myIPAddress.
However, as soon as we change from myIPAddress to myIPAddressEx, Java seems to be unable to process the PAC script.
Here are the extensions (introduced many years ago:
IPv6-Aware Proxy Helper API Definitions (Windows)
Question - does Java support these extensions or have plans to?
Thanks,
Kev.

Proxy auto config files are Javascripts that parse the requested URL and return a response to the browser telling it where to go to get the content.
More info is available in multiple formats

Similar Messages

  • Proxy auto-configuration (PAC) files

    After some advice on how to create and serve proxy auto-configuration (PAC) files..?
    How to set one up. Syntax, etc.
    Thanks in advance,
    Tim.

    Proxy auto config files are Javascripts that parse the requested URL and return a response to the browser telling it where to go to get the content.
    More info is available in multiple formats

  • Using a java proxy with XI to execute a Script located in external server

    HI
    I have recived help from here about this. But i don´t know how to work with java proxy. Is someone there who can help me in it.
    Many thanks in advance.
    Noelia

    Hi Noelia,
    You can have 2 types of Java proxies viz. client(putting data into xi pipeline) & server (xi pipeline sends request to these proxies.)
    From system point of view, the requirements vary in case of these two. for server proxies you can have a webas java business system and associated technical system in sld.in case of client proxies, refer SAP note #809420.
    The basic difference between ABAP proxies and Java proxies is ABAP proxies reside on the perticular application system(CRM or R/3) but java proxies reside on SAP Web AS J2EE stack of your XI server.
    Just search SDN pointers on Java proxy developement and you will get good pointers. There is one How-to guide on service marketplace by the name "HowToWorkWithJavaProxies.pdf".
    Regarding your dev environment, you can always make use of NWDS, you need to be very much familier with EJB concepts and deployment. Check help.sap.com for more details.
    Java Proxies and SAP XI - The Inside Story, Part 1
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
    Java Proxies and SAP XI - The Inside Story, Part II
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
    SAP XI 1.0 Configuring your PC or Laptop as a Java Receiving System
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f5b19b90-0201-0010-9bb0-81c235713d8d
    Also go through these links:
    /people/prasad.ulagappan2/blog/2005/06/27/asynchronous-inbound-java-proxy
    /people/rashmi.ramalingam2/blog/2005/06/25/an-illustration-of-java-server-proxy
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501
    http://help.sap.com/saphelp_nw2004s/helpdata/en/97/7d5e3c754e476ee10000000a11405a/frameset.htm
    Here you can download code samples for inbound and outbound Java Proxies which you can use together with the Flight Booking Scenario.
    http://de.geocities.com/stefan_grube/JavaProxyExample.zip
    I hope it helps........
    Regards,
    Abhy

  • Windows 8.1 Apps and Proxy Auto Configuration files

    We have installed an app on a number of Surface Pro devices for my client.  After installation, the app is unable to connect to the backend service.  The following details the configuration:
    The apps are installed on Surface Pro 2 devices running Windows 8.1 Professional with an Enterprise Sideloading License
    The devices are connected to the company's corporate domain wifi network.
    The service is hosted on the same domain network
    The network has a proxy configured via the following PAC file:
           function FindProxyForURL(url, host) {
          // URLs within this network are accessed through
          if (shExpMatch(url,"*checklistapp.uhs-pruitt.com/*"))      {return "DIRECT";}
          if (shExpMatch(url,"*asgs01.uhs-pruitt.com/*"))      {return "DIRECT";}
          // All other requests go through port 8080 of proxy.example.com.
          // should that fail to respond, go directly to the WWW:
          return "PROXY wsas360-01.uhs-pruitt.com:80; DIRECT";
    The proxy requires authentication when not using a DIRECT connection
    When using this PAC file, the app cannot connect to the service (which is at
    https://checklistapp.uhs-pruitt.com/Service ), despite the fact that netsh shows that the app is using a direct (no-proxy) connection.
    The app connot connect if last line of the PAC file is changed to
    DIRECT; PROXY wsas360-01.uhs-pruitt.com:80
    When hard coding the proxy (The url below is hosted at 10.100.255.250), the app is able to connect

    Hi Ryan, 
    If you use an Internet proxy server that requires authentication, you may encounter problems when you use apps that connect to the Internet. 
    Please refer to following article to configure your settings: 
    Using authenticated proxy servers together with Windows 8
    http://support.microsoft.com/kb/2778122/en-us
    Kate Li
    TechNet Community Support

  • Access proxy from terminal using proxy auto-config

    I know about using ntlmaps to wrapper my proxy configurations e get access from Terminal, iTerm2, &c exporting http_proxy variable and others. But I don't want go on using this approach because it simply ***** (forgive me for this word...) for a lot of issues.
    I would like simply setup my proxy environment on Network Preferences/Advanced/Automatic Proxy Configuration: (host: http://myproxy/proxy.pac) and using this setup for a whole system, including my terminals. Therefore, are there any way to reach it?
    Another details, my proxy is authenticated and uses ntlm type and in browser I use internet without problems.
    Thanks a lot for any help!
    -Leo

    I am not quite sure what you are looking for. Mac OS X has supported auto proxy configuration since 10.6 Snow Leopard was introduced (acutally in response to a request I made ). If you open System Preferences, click on Network, then go to the Advanced settings for your network interface, in the Proxies tab there is an option called Auto Proxy Discovery. This is different to Automatic Proxy Configuration which was also available in previous versions of OS X. Automatic Proxy Configuration uses a selected PAC file (Proxy Auto Configuration file) but Auto Proxy Discovery uses the WPAD method of finding your proxy server.
    See this article for information about WPAD (Web Proxy Automatic Detection).
    http://en.wikipedia.org/wiki/Web_Proxy_Autodiscovery_Protocol
    WPAD uses either an option advertised from your DHCP server giving the address of your proxy server, or WPAD can use a standard URL based on your domain name to download a dat file containing your proxy server details.
    I have seen reports saying the the DNS method is problematic with Mac OS X but also seen reports that the DHCP method does work with this option successfully. So my suggestion is to define the DHCP option code 252 to advertise your proxy server.
    Note: Thanks to yet another request I made in the past the Mac OS X DHCP Server can be manually configured to define additional DHCP option codes including option 252. The ability to define DHCP option codes was added in Mac OS X 10.5 Server (Leopard).

  • Blank size between Sun and Microsoft

    i use JTextPane to input and display data in gui,after save its data into database,i will output data into rtf file which will be opened by word. my problem is: i found Java's blank size is not equal to Microsoft's blank size,so cause the data which aligned as i request in JTextPane cannot align in word file. anyone can help guide what's difference between Java's blank size and Microsoft's blank size, what's their scale?
    Thanks for any information.
    Susan

    Use a monospaced font and you shouldn't have a problem.

  • New way generating of Java Proxy to support parallel processing

    Hi All!!
    To the Java Proxy Server supports the processing of several executions in parallel way, a new way or generation has been released. On the Integration Directory, when you select an Inbound Message Interface and go to Java Proxy Generation, 2 .zip archives are generated, one for the execution in sequential way (XXX.ZIP) and other for the execution in parallel way (XXX_PARARELL.ZIP).
    I have tried to generate the Java Proxy only with XXX_PARARELL.ZIP and I think is not possible, because no EJB Candidate is generated.
    Somebody knows how I can generate the Java Proxy?
    Thanks and regards,
    Manuel Míguez.

    a bit of light reading for you
    http://onesearch.sun.com/search/developers/index.jsp?and=java.lang.ClassFormatError+Bad+magic+number&nh=10&Search.x=26&Search.y=11&phr=&qt=&not=&field=&since=&col=devforums&rf=0

  • Client Java Proxy

    Hi,
    I have a Java Proxy to BAPI scenario.
    On the sender side I have "ExchangeRates_Out" Outbound Service Interface. I have created a client java proxy for this and deployed it.
    I dont know how to test this proxy or run the interface end to end.
    Please help.
    Thanks,
    Aravind

    Check some links on proxies.
    Concepts and examples for Proxy, Abap Client Proxy and Abap server Proxy
    JAVA Proxies:
    Asynchronous inbpund java Proxies
    /people/prasad.ulagappan2/blog/2005/06/27/asynchronous-inbound-java-proxy
    More on Java Proxy-
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7d4db211-0d01-0010-1e8e-9b07fc2113ab
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    SAP Exchange Infrastructure 3.0: Java Proxy Runtime 3.0 - J2EE Integration
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30572c6a-d311-2a10-99ab-f646ec3b5b12
    How to Work with Java Proxies
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d06315a6-e66e-2910-039c-ba8bbbd23702
    Java Proxies in XI
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=java+proxy&adv=false&sortby=cm_rnd_rankvalue#
    Java Proxies in XI
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=java+proxy&adv=false&sortby=cm_rnd_rankvalue#
    SAP Network Blog: Pre requisites for Client Java Proxies
    /people/yugapreetha.t/blog/2007/12/03/pre-requisites-for-client-java-proxies

  • Proxy automatic configuration with PAC script file

    Dears,
    Regarding HTTP communications, I would like to auto-detect proxy settings based on system settings.
    I can get information on manually configured proxy, using the following code:
    import java.net.Proxy;
    import java.net.ProxySelector;
    import java.net.URI;
    import java.net.URISyntaxException;
    import java.util.List;
    public class Test {
         public static void main(String[] args) {
              System.setProperty("java.net.useSystemProxies", "true");
              try {
                   List<Proxy> list = ProxySelector.getDefault().select(new URI("http://www.google.be/"));
                   for(int i=0; i<list.size(); i++){
                        System.out.println(list.get(i));
              } catch (URISyntaxException e) {
                   e.printStackTrace();
    }But ...
    I haven't found a way yet to get proxy information from automatic proxy configuration script (pac files).
    Has anyone encountered/solved this problem yet?
    Many thanks for your help,
    Eric

    well the simple fact, as far as i know, is there just is no autoproxydetection out of the box library for standalone java apps.
    there are some libraries out there, but none of which integrate all the functionality as the java plugin/webstart does. and i could not be able to integrate the webstart jar (javaws.jar, deploy.jar, etc.) into a standalone app. a promising project is the "proxy vole" project on kenai, but that's only beta and not all necessary stuff is there.
    i noticed that the eclipse project has some proxy autodetection code and there are a few hints & tricks sites out on the web, explaining how you can do proxy autodetection yourself, like reading, at least for windows, registry keys and a dll to process a proxy pac file, but for instance, no support for windows WAPD through DNS/DHCP.
    I've spent quite some hours to do research on all these things, and it's just missing for standalone apps. i was really surprised that sun does not provide the same stuff for standalone apps as they do for webstart apps, which in my opinion is really really dissapointing. maybe they plan to do that, but i wasn't able to find any information about that.
    well, that's all i know so far.

  • Returning Invalid type when reading auto configuration script

    Hi Everyone,
    I�m using the JDK 1.5 plug-in API for reading the proxy settings. It working fine for HTTP and DIRECT connection, but it�s not working with automatic configuration script. I followed the below procedure for reading the settings
    1. Installed and configured the Apache HTTP Server as a proxy server.
    2. Created a �proxy.pac� file and placed it in the �C:\WINDOWS� folder. Content of the file is given below.
    function FindProxyForURL(url, host)
    if (isInNet(myIpAddress(), "192.168.1.0", "255.255.255.0"))
      return "PROXY 192.168.1.165:80";
    else
      return "DIRECT";
    }3.Changed the Internet setting in IE by specifying the proxy automatic configuration location as �file://c:/windows/proxy.pac�
    4.Accessed the browser and it�s working fine as I can see in the apache log file.
    5.When I executed the below code it showing me the proxy connection as the Direct one.
    private static void detectProxyUsingJDK15()
        try
          System.setProperty("java.net.useSystemProxies", "true");
          List list = ProxySelector.getDefault().select(new URI(PROXY_DETECT_URL));
          for (Object aList : list)
            Proxy proxy = (Proxy) aList;
            System.out.println("Proxy : "+proxy);
            InetSocketAddress address = (InetSocketAddress) proxy.address();
            System.out.println("address : "+address);
            if (address == null)
              System.out.println("Proxy not defined");
            else
              System.out.println("" + address.getPort());
              System.out.println("" + address.getHostName());
              System.out.println("" + proxy.type().toString());
        catch (Exception e)
          e.printStackTrace();
      }Please note that when I executed the above code after changing the settings IE by disabling the automatic configuration script and giving the proxy server details it showed me the proxy connection as HTTP
    If anyone has any idea on how to fix this issue then please let me know
    Thanks

    Try to configure Java consolle to use the .pac file and not to use "browser setting"
    OA

  • Cannot set Proxy Auto Config in iPhone/iPad Configuration Profile

    Hi, All.
    Our enterprise uses internal and external DNS, and we leverage Proxy Auto Config (PAC) files to determine how to resolve hostnames.
    I can create a VPN Configuration Profile with the URL for the PAC file, so that when the VPN is enabled, it will start using the PAC file to resolve.
    However, there is no such option in the WiFi Configuration Profile.
    Any idea if there is a way to automate this, or if Apple intends to include this in a future version of iOS or iPCU?
    Thanks,
    David

    Ooops. Sorry, I meant "10/8", not "10/24" IP range.

  • Proxy auto-config (PAC) impacts ssh, scp, sftp

    Dear all,
    I have this problem I am trying to find leads on how to understand and eventually solve it.
    I am doing a lot of development under Unix. I'm spending most of my time at work on X11 (XQuartz) logged in on remote Unix servers using all "S" versions of standard protocols.  I'm under Snow Leopard because Lion is no good to my workflow (sorry to say this).
    Since my employer has contracted an external company to filter all outgoing HTTPS traffic - and has updated the legacy proxy PAC file accordingly - I encounter huge latency problems with my ssh, scp and sftp traffic with my remote Unix servers : all "S" protocols are routed through the external company HTTPS filter.
    I have created one Network Location (network sys prefs) that uses "Automatic Proxy Configuration" to point to the PAC file server (a).
    I have create another Network Location that activates a distinct proxy setting for HTTP and the same for HTTPS protocols. I've set up as Web Proxy server the one defined as PROXY  in the PAC file (b).
    Using (a) Network preference, all my ssh and scp traffic initiated under X11 is slow as a drag (10kb/s on a 100baseT full duplex to the server in the same building) because it gets piped through the external https traffic filter.
    Using (b) Network preference, no problem at all with ssh and scp, and Safari can browse both http and https sites as per company rules.
    My question is how can this setting of Network preference - combined with a PAC file - can influence a traffic that is secured through ssl but is not HTTP nor HTTPS ! 
    I am looking for some documentation that would help me understand how Proxy auto-config is implemented in the network layer and if there are any recommendations I can do to my network team to fix their PAC file, perhaps, to restrict the proxy configuration to only http and https.
    Any lead will help.
    Thanks,
    Thierry
    The PAC file (stripped of restricted info). Note: The remote servers I'm working on are in the 10/24 IP range and a segment of a Class B my company owns.
    function FindProxyForURL(url, host)
              var proxy = "PROXY XXX.YYY.ZZZ.1:80; PROXY XXX.YYY.ZZZ.2:80" ;
    if (
              shExpMatch(host, "10.*.*.*")  ||
              shExpMatch(host, "192.168.*.*")
              return "DIRECT";
    else
              return proxy;

    Ooops. Sorry, I meant "10/8", not "10/24" IP range.

  • Java proxy client logical port transport to Q and prod issue in target addr

    Hi All,
    I have a java proxy client having a logical port (configured using NWDS) to consume a web service in the provider system.
    In the logical port, I have given target address, and logical port name. While moving this client proxy NWDI dev track to Q and prod,
    how do I change this target address to point to Q and prod respectively. In other words, even though I am using Visual admin to configure the destination url for the logical port, to point to Q and prod, its still referring to the dev environment provider service after moving the proxy client to Q and prod. What is the suggested approach to take care of this issue
    Thx
    mike

    Hi Michael,
    I can only help from that point of view that I believe this question belongs to the forum
    Service-Oriented Architecture (SOA) and SAP
    Please try to raise this question there.
    Thanks and Regards,
    Ervin

  • Direct Connection ABAP Proxy and Java Proxy possible ????

    Hi Folks ,
    As i read as direct connection possible between 2 SAP systems only ..
    and also i read as WS Direct Connection u2013 (Java) ..
    What it means ?? is it ABAP Proxy to Java Proxy using Direct connection ??  Like Java Client Proxy and ABAP Server proxy
    I am not clear on this.. Could you please explain or help me on this . ??
    Siva..

    Hi ,
    +You can do both for java proxies as well Abap proxies.+
    As per the following points
    1. Point-to-point connection is a new capability available with SAP NW PI 7.1. It allows applications or systems to send messages using WS-RM without going through a middleware, e.g. PI, but still using a centralized tool to design and
    configure the interfaces and connection properties.
    2. SAP XI 3.0/PI 7.00 or higher releases can be licensed based on the total volume of messages in
    gigabytes (GB) that is processed per month. The size of the payload is determined in the integration
    server. The information is then aggregated according to sender and receiver system.
    Question :
    1. If Message exchange between 2 SAP applications using direct connection .. Then dont we need to consider about licencing cost for volume of messages per month ?
    2. So if i use ABAP Client Proxy to Java Server proxy  scenario.. can i use direct connection  ? Eg., SAP ECC to java application ?
    In both the cases PI Runtime is not required  .. Am i right ?
    Please clarify..
    Siva..

  • XI Configuration incase of Java Proxy

    Hello
    I am trying Java Proxy scenario in which I generated Java Proxies of my XI interface.I used NetWeaver Developer Studio to implement my business logic using the generated classes from XI.
    But I guess its not connecting to XI when tried to execute from NWDS.On XI side I configured Business System with no sender configuration and configured Receiver Determination for the business system (basically similar to what we configure for HTTP Adapter).
    Just wanted to get clear whether we need to define Sender(sender comm channel) incase of Proxies or any business system instead of business service.As far as I know since its invoking a EJB directly from the lookup it should not require that but not sure.
    Thanks in advance.
    Regards
    Ashish

    Hi,
    take a look at Java Proxy Inside Storys:
    Part I:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/java proxies and sap xi - the inside story,%20Part%201.pdf
    Part II:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/java proxies and sap xi - the inside story,%20Part%20II.pdf
    Regards,
    Robin

Maybe you are looking for