SSH through http proxy

Hi,
Currently I have to pass all traffic through a http proxy that only lets ports 25, 80 and 443 through.
I'd like to ssh to a machine in our office outside of the above network and using Putty on Windows I can set the proxy details with username and password and it works fine as I have set my listing machine to use port 443.
How can I achieve the same access through the proxy with ssh on Mac? I have tested that ssh with port 443 works when not using the proxy so it seems the proxy is the issue.

You could use Corkscrew
<http://wiki.kartbuilding.net/index.php/Corkscrew-_ssh_overhttps>
You might also look into Hamachi (VPN)
<http://www.macupdate.com/app/mac/36286/logmein-hamachi>
Message was edited by: BobHarris

Similar Messages

  • Configure through HTTP Proxy

    Hello People,
    I programmed a mail client and i deployed it to a jar file
    I Then wrapped the jar inside a exe file so that i can run as a native code..
    The program is working fine through direct internet connection.
    I want to use that application through a proxy server.
    Can any one help me out to configure java to use my application through a proxy server.....
    Thanks in advance...

    [http://java.sun.com/products/javamail/FAQ.html#proxy|http://java.sun.com/products/javamail/FAQ.html#proxy]

  • Connecting through HTTP Proxy

    How can I make connection to a port of some remote server when I am connected to internet using HTTP Proxy?

    If you are going to use the URL object then set your proxy IP and Port in your system properties before you create your URL object.
    For example:
    System.getProperties().put( "proxyHost", proxyIp );
    System.getProperties().put( "proxyPort", proxyPort );
    URL url = new URL("http://www.foo.com" );

  • EDonkey Activity ID: 11018 "Through HTTP Proxy"

    Is there a signature to capture edonkey etc. via the proxy server? Id 11018 seams to only trap the connection from the proxy to the internet address. I would like to be able to be able to identify the internal device connection to the proxy. I have modified he signature to include the port of the proxy but this has not helped.

    I have a strange problem here with eDonkey.pdlm
    I am using IOS c1700-k9sy7-mz.122-15.T13.bin, eDonkey.pdlm is the latest to download at the time I write these lines.
    My configuration is:
    class-map match-any P2P
    match protocol kazaa2
    match protocol bittorrent
    match protocol gnutella
    match protocol winmx
    match protocol edonkey
    match protocol http url "\.hash=*"
    match protocol http url "/.hash=*"
    policy-map QOS-WAN
    class P2P
    police cir percent 15
    conform-action transmit
    exceed-action drop
    violate-action drop
    interface ATM0.1 point-to-point
    ip address 10.1.1.1 255.255.255.0
    pvc 0/167
    service-policy output QOS-WAN
    The problem is simple and strange (at least for the momment for me). I can see edonkey/emule traffic if I apply 'ip nbar protocol-discovery' at atm0.1 but the router is unable to match that traffic at the policy-map:
    #sh policy-map int atm0.1
    Service-policy output: QOS-WAN
    Class-map: P2P (match-any)
    0 packets, 0 bytes
    5 minute offered rate 0 bps, drop rate 0 bps
    Match: protocol kazaa2
    0 packets, 0 bytes
    5 minute rate 0 bps
    Match: protocol bittorrent
    0 packets, 0 bytes
    5 minute rate 0 bps
    Match: protocol gnutella
    0 packets, 0 bytes
    5 minute rate 0 bps
    Match: protocol winmx
    0 packets, 0 bytes
    5 minute rate 0 bps
    Match: protocol edonkey
    0 packets, 0 bytes
    5 minute rate 0 bps
    Match: protocol http url "\.hash=*"
    0 packets, 0 bytes
    5 minute rate 0 bps
    Match: protocol http url "/.hash=*"
    0 packets, 0 bytes
    5 minute rate 0 bps
    police:
    cir 15 %
    cir 19000 bps, bc 1500 bytes, be 1500 bytes
    conformed 0 packets, 0 bytes; actions:
    transmit
    exceeded 0 packets, 0 bytes; actions:
    drop
    violated 0 packets, 0 bytes; actions:
    drop
    conformed 0 bps, exceed 0 bps, violate 0 bps
    Any suggestions? Any comments?
    Thanks in advanced.
    Luis Miguel Cruz.

  • HTTP Proxy setting for SOA server

    Hi,
    my intention is to enable SOA Server to connect through HTTP Proxy to external services. This occurred when I am trying to connect to Yahoo Mail Server, via User Messaging Service but it keep throwing connection time out. One of the possible solution is to make the service to connect via the HTTP Proxy server in our network.
    There are no mention of how to setup HTTP Proxy connection for UMS, as well as SOA Server in any documents.
    Please advice or direct me to the relevant solutions.
    Appreciate any help rendered :)
    yee thian

    I have not worked in SoA server, but since it uses weblogic server underlying (I assume), you can try setting the -Dhttp.proxyHost , -Dhttp.proxyPort system properties ( https for secured URL's) to WLS to specify the proxy details. Also the product might not have the capability to pass user credentials for authentication at the proxy. The version of OSB we are using had this problem. To overcome this you might require to add the URL to the proxy free list in your proxy server. This prevents the proxy from prompting for the user name when you access that URL.

  • Since installation of last 4.0b12 version, I'm unable to connect to any https site through a proxy. Connection works if no proxy is involved, with proxy I receive a message like "proxy refuses the connection". Thank you for your answer

    I'm connected to a customer's network and I have to use a proxy.
    I correctly authenticate myself to the proxy and I try to access https://mail.google.com.
    I receive a message that the proxy refuses the connection.
    I noticed that this happens with all the https sites.
    If I connect with my mobile internet key without proxy, I'm able to connect: the combination of proxy and https is failing.
    Other computers on the same network with different browsers can connect to https through the proxy.

    I'm working with the Firefox development team on this one. As far as I can tell, they seem to think that there are 2-3 different problems with the same/very similar symptoms, all involving proxies. They think they've fixed them all for RC1.
    Right now, it looks like we just want people to test an early build.
    You can get that here:
    [http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2011-03-03-12-mozilla-central/firefox-4.0b13pre.en-US.win32.installer.exe]
    Install that somewhere (not in your current install directory), quit all open Firefox instances and try it. Let me know if it works.

  • [SOLVED] How cat I make an http proxy from ssh?

    Hi.
    I can tunnel to ssh server using this:
    ssh -N -D $myport $user@$serverip
    It's working good. I tunneled to the server.
    But I have a problem!
    the created proxy is a Socks v5 proxy. I want to create a http proxy how can i do it?
    Thanks! I waiting for your answers...
    Last edited by ojZim (2013-05-26 17:55:36)

    Gusar wrote:
    You can't. What you can do is run a local http proxy that uses the ssh-created Socks5 as parent. Example config for polipo:
    daemonise=true
    proxyAddress=127.0.0.1
    proxyName=localhost
    allowedClients=127.0.0.1
    socksParentProxy=localhost:7777
    socksProxyType=socks5
    7777 is an example, use $myport there. The default polipo port is 8123, meaning apps should be configured to use localhost:8123 as proxy.
    Thanks for your help! It's worked very good and my problem is solved.
    For installing and configuration polipo, other users can read this:
    https://wiki.archlinux.org/index.php/Polipo
    Last edited by ojZim (2013-05-26 17:56:39)

  • Using a HTTP destination through a HTTP proxy

    Hi there!
    I have written a Web Dynpro application that connects to a web service using a web service model. The request is configured to use a HTTP destination by means of the _setHTTPDestinationName() method. I configured the HTTP destination in the visual administrator and it uses Logon ticket to authenticate.
    All this works perfectly in my test environment. Unfortunately in my production environment the web service must be accessed through a HTTP proxy and I could not find where to configure the proxy settings for HTTP destinations.
    I found some information about "open a transaction in SICF" an so on which doesn't help me because I have no ABAP client.
    I found some information about configuring proxies in the NWA but this does not seem to apply to my NW version, wich is 2004 SP16.
    Any clues?
    Thanks in advance.

    Hi Olivier,
    thank you for your reply.
    Is there really a possiblity to configure a proxy for any given HTTP Destination in ABAP? Because if there is, I cannot believe that there is no equivalent in Java. As there is no such a thing as a HTTP Destination "for ABAP" and a HTTP Destination "for Java", what would happen if I used the HTTP Destination with proxy settings created in ABAP for my Java program?
    There is another way to use a proxy which I found by analysing the generated Java classes of my web service model. You can do the following:
    SomeServiceImpl service = SomeDMSModel.getServiceImpl();
    service.setHTTPProxyResolver(new HTTPProxyResolver() {
      HTTPProxy proxy;
      public HTTPProxy getHTTPProxyForHost(String host) throws RemoteException {
        if (this.proxy == null) {
          this.proxy = new HTTPProxy();
          this.proxy.setProxyHost("proxy.company.com");
          this.proxy.setProxyPort(1234);
        return this.proxy;
    This is NOT a good way to do it, as it transfers a portal administration task to the programmer, but it shows that the functionality is present in Java.
    So I haven't given up on finding where it has to be configured...
    Edited by: Robert Rodewald on Jan 18, 2008 11:01 AM

  • How can i create a socket connection through an http proxy

    i'm trying to make a socket connection send an email - i have code that works when you don't have to go through a proxy server but i can't make it pass the proxy server.
    import java.net.*;
    import java.io.*;
    import java.util.*;
    public class Mail
    public String to_address = "[email protected]";
    public String from_address = "[email protected]";
    public String sendSub = "HeHeHe";
    public String sendBody = "hehehe - it worked";
    // This is created to allow data to be read in by the keyboard.
    BufferedReader in = new BufferedReader(
    new InputStreamReader(System.in));
         private void Mail(String to_address, // recipient's addresses
    String from_address, // sender's address
    String sendSub, // subject
    String sendBody) // Message
                   throws IOException, ProtocolException,      UnknownHostException {
         Socket socket;                // creates a Socket named socket
         PrintStream out;               // stream to write to socket
         String host = "imap.btopenworld.com";          // identification of the mail server host
    // creates a new socket for connection to the mail server
    // as well as two variables for the read and write streams
         socket = new Socket(host, 25); // opens socket to host on port 25 (SMTP port)
         out = new PrintStream(socket.getOutputStream());
    // read the initial message
         in.readLine();
    // Dialog with the mail server
    // send HELO to SMTP server HELO command is given by a connecting SMTP host
         out.println( "HELO " + host );
         out.flush() ;
         in.readLine();
    // Once we are connected to the mail server we start sending the email...
    // send "from"
         out.println( "MAIL FROM: " + from_address );
         out.flush() ;
         in.readLine();
    // send "to"
         out.println( "RCPT TO: " + to_address );
         out.flush() ;
         in.readLine();
    // prepare the mailserver to receive the data
         out.println( "DATA" );
         out.flush() ;
         in.readLine();
    // Send actual email
         out.println("From: " + from_address);
         out.println("To: " + to_address);
         out.println( "Subject: " + sendSub + "\n" );
         out.flush() ;
         out.println("");
         out.println( sendBody ) ;
         out.println(".") ; // standard to determine end-of-body
         out.flush() ;
         in.readLine();
    //Quit and closes socket
         out.println("QUIT");
         out.flush();
         in.close() ;
         socket.close() ;
         return ;
    public static void main (String [] args) throws IOException
    Mail themail = new Mail();
    }

    i've tried that but it doesn't seem to do nething - this is how i implemented it...
    import java.net.*;
    import java.io.*;
    import java.util.*;
    public class Mail
    public String to_address = "[email protected]";
    public String from_address = "[email protected]";
    public String sendSub = "HeHeHe";
    public String sendBody = "hehehe - it worked";
    // This is created to allow data to be read in by the keyboard.
    BufferedReader in = new BufferedReader(
    new InputStreamReader(System.in));
         private void Mail(String to_address, // recipient's addresses
    String from_address, // sender's address
    String sendSub, // subject
    String sendBody) // Message
                   throws IOException, ProtocolException,      UnknownHostException {
         Socket socket;                // creates a Socket named socket
         PrintStream out;               // stream to write to socket
         String host = "imap.btopenworld.com";          // identification of the mail server host
    // creates a new socket for connection to the mail server
    // as well as two variables for the read and write streams
         socket = new Socket(host, 25); // opens socket to host on port 25 (SMTP port)
         out = new PrintStream(socket.getOutputStream());
    // read the initial message
         in.readLine();
    System.getProperties().put( "proxySet", "true" );
              System.getProperties().put( "proxyHost", "144.124.16.28" );
              System.getProperties().put( "proxyPort", "8080" );
    // Dialog with the mail server
    // send HELO to SMTP server HELO command is given by a connecting SMTP host
         out.println( "HELO " + host );
         out.flush() ;
         in.readLine();
    // Once we are connected to the mail server we start sending the email...
    // send "from"
         out.println( "MAIL FROM: " + from_address );
         out.flush() ;
         in.readLine();
    // send "to"
         out.println( "RCPT TO: " + to_address );
         out.flush() ;
         in.readLine();
    // prepare the mailserver to receive the data
         out.println( "DATA" );
         out.flush() ;
         in.readLine();
    // Send actual email
         out.println("From: " + from_address);
         out.println("To: " + to_address);
         out.println( "Subject: " + sendSub + "\n" );
         out.flush() ;
         out.println("");
         out.println( sendBody ) ;
         out.println(".") ; // standard to determine end-of-body
         out.flush() ;
         in.readLine();
    //Quit and closes socket
         out.println("QUIT");
         out.flush();
         in.close() ;
         socket.close() ;
         return ;
    public static void main (String [] args) throws IOException
    Mail themail = new Mail();
    }

  • Sending files via File Adapter through FTP having a HTTP proxy as firewall

    Dear  experts,
    I am having a issue trying to send a file via FTP with the File Adapter. My client has a HTTP proxy with authentification required as firewall  in order to send files via FTP.
    I've tried several solutions but I cannot find a way to add the proxy name, user and password in the communication channel.
    Any ideas?
    Thanks in advance.
    Best Regards

    Hi,
    Unfortunately those changes didn't work. The adapter is not able to establish a connection within the FTP server. These are the parameters I added:
    -Dhttp.proxy.user=<usename>
    -Dhttp.proxy.password=<userpassword>
    -Dhttp.proxyHost=<proxy.domain...>
    -Dhttp.proxyPort=80
    -Dhttp.nonProxyHost="*domain1.com domain2com"
    -Dhttps.proxy.user=<usename>
    -Dhttps.proxy.password=<userpassword>
    -Dhttps.proxyHost=<proxy.domain...>
    -Dhttps.proxyPort=80
    -Dhttps.nonProxyHost="*domain1.com domain2com"
    And just in case, we tried with these other parameters at the same time.
    -Dftp.proxy.user=<usename>
    -Dftp.proxy.password=<userpassword>
    -Dftp.proxyHost=<proxy.domain...>
    -Ddftp.proxyPort=80
    -Dftp.nonProxyHost="*domain1.com domain2com"
    The errors in the adapter engine's log are:
    Error MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: ConnectException: Socket connection timed out: <ftp ip address>
    Error Exception caught by adapter framework: Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: ConnectException: Socket connection timed out: <ftp ip address>
    Error Delivery of the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: ConnectException: Socket connection timed out: <ftp ip address>
    By the way, we are using  PI 7.0.
    Thanks in advance
    Edited by: SAPIMSA . on Apr 20, 2011 4:08 PM

  • VPN and unwanted HTTP proxy

    I have a VPN tunnel working to my customer's site. However, it forces an HTTP proxy setting which routes all my http traffic through their proxy server. A side effect of this is that I can't access internal machines because the proxy server is only set up to access machines outside their network. This kind of defeats the point of the VPN.
    So, my goal is no http or https proxy. DNS should resolve based on search domains. This all works for non http/https requests. My mac can resolve all the domain names properly and can send traffic to the machines just fine. Ssh, vnc and other non-web access works great, both hosts over the VPN tunnel or just out my WAN interface.
    It's just the web proxy that is causing grief.
    Thanks for any help.

    Another piece of information. I screwed up and had a bogus entry in the /etc/hosts file for the machine I was testing web access to. Now I can access internal machines at my customer's site. However it looks like the web proxy is still in effect. If I set the Bypass proxy settings for these Hosts & Domains to * I see the change take effect with the scutil --proxy command. However my traffic still goes through their proxy server.

  • How to use Axis to access a web service through Authentication  proxy

    Using axis access internat web service is success,but access a web service through Authentication proxy is failure.But other java classes connect through a proxy to the internet which works very well:
    please help me ,thank you!!!
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import javax.xml.namespace.QName;
    //this is my access webservice faliure   codes
    public class TestClient
       public static void main(String [] args) {
           try {
                System.getProperties().setProperty("http.proxySet", "true");
                System.getProperties().setProperty("http.proxyHost","proxy.com");
                System.getProperties().setProperty("http.proxyPort", "8080");
                System.getProperties().setProperty("http.proxyUser", "username");
                System.getProperties().setProperty("http.proxyPassword","password");
               String endpoint =
                        "http://nagoya.apache.org:5049/axis/services/echo";
               Service  service = new Service();
               Call     call    = (Call) service.createCall();
               call.setTargetEndpointAddress( new java.net.URL(endpoint) );
               call.setOperationName(new QName("http://soapinterop.org/", "echoString") );
               String ret = (String) call.invoke( new Object[] { "Hello!" } );
               System.out.println("Sent 'Hello!', got '" + ret + "'");
           } catch (Exception e) {
               System.err.println(e.toString());
       }I get an "(407)Proxy authorization required" error?

    I am also looking for a solution. Does any one know how to do through code instead of jvm settings?
    Thanks in advance!

  • How do I create a Https Proxy server

    hi,
    I am writing a Proxy server in java. But my pogram do not support https protocol.Could you please tell me how can I implement a https proxy server.some sample code is more helpful.
    This is very URGENT for me.
    Thanks
    Sujith Varghese

    Hi Varghese,
    Reading the thread I am able to make out u r facing the same problem as I do.
    current scenario#1:
    Machine#1 client (using URLConnection("https://...") ----> Machine#2 (Server https port)
    what I want scenario#2
    Machine#3 client (using URLConnection("https://...") ---> Machine#1 (Proxy for https)----> Machine#2 (Server https port)
    In scenario#1
    - I have a Client machine at Location#1 which can connect to on Location#2
    - I only have SSH connection to machine at Location#1
    now this scenario#2 is what I would like to run so that
    - I am able to connect to mc#2 at loc#2 from a machine at loc#3 with mc#3
    - effectively starting a https proxy at location number mc#1 at loc#1.
    Hope that clears the problem domain.
    any help will be greatly appreciated.
    regards-
    _Jagsir                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • SAMLAssertionID error while invoking webservice through webservice proxy

    I have created a web service proxy client using service WSDL deployed to weblogic standalone server as per the Fusion Dev guide [http://fmwdocs.us.oracle.com/doclibs/fmw/E10285_01/appslib7/web.1111/b31974/web_services.htm#CJADCDBG]. When i try to invoke the web service through the proxy i am seeing this error
    Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Unable to add security token for identity, token uri =http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.0#SAMLAssertionID
         at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:197)
         at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:122)
         at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:125)
         at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:95)
         at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:136)
         at $Proxy42.findTerritoriesInPartition(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.wsee.jaxws.spi.ClientInstanceInvocationHandler.invoke(ClientInstanceInvocationHandler.java:84)
         at $Proxy43.findTerritoriesInPartition(Unknown Source)
         at oracle.apps.sales.territoryMgmt.territories.serviceProxy.findTerritories.TerritoryServiceSoapHttpPortClient.main(TerritoryServiceSoapHttpPortClient.java:56)
    Please suggest how i can get rid of this error.
    I looked at the wsdl, i see that wss_saml_or_username_token_service_policy is added.
    <wsp:Policy orawsp:provides="{http://docs.oasis-open.org/ns/opencsa/sca/200903}authentication, {http://docs.oasis-open.org/ns/opencsa/sca/200903}clientAuthentication, {http://docs.oasis-open.org/ns/opencsa/sca/200903}clientAuthentication.message" wsu:Id="wss_saml_or_username_token_service_policy">
    Code in my proxy client:
    public class TerritoryServiceSoapHttpPortClient
    @WebServiceRef
    private static TerritoryService_Service territoryService_Service;
    private static final AddressingVersion WS_ADDR_VER = AddressingVersion.W3C;
    public static void main(String [] args)
    territoryService_Service = new TerritoryService_Service();
    TerritoryService territoryService = territoryService_Service.getTerritoryServiceSoapHttpPort();
    // Get the request context to set the outgoing addressing properties
    WSBindingProvider wsbp = (WSBindingProvider)territoryService;
    WSEndpointReference replyTo =
    new WSEndpointReference("http://adc60059fems.us.oracle.com:6035/salesTerrMgmtTerritories/TerritoryService", WS_ADDR_VER);
    String uuid = "uuid:" + UUID.randomUUID();
    wsbp.setOutboundHeaders( new StringHeader(WS_ADDR_VER.messageIDTag, uuid), replyTo.createHeader(WS_ADDR_VER.replyToTag));
    // Add your code to call the desired methods.
    try{
    wsbp.getRequestContext().put(WSBindingProvider.USERNAME_PROPERTY, "SALES_ADMIN");
    wsbp.getRequestContext().put(WSBindingProvider.PASSWORD_PROPERTY, "Welcome1");
    FindTerritoriesInPartition terr = new FindTerritoriesInPartition();
    terr.setPartitionType("PRODUCTION");
    terr.setTerritoryService(territory);
    territoryService.findTerritoriesInPartition(terr);
    catch(ServiceException se){
    Thanks,
    Sekar

    Hi Subramanyam,
    There is a very simple way to invoke web service through code using ServiceFactory classes. See if you can access this link[http://fmwdocs.us.oracle.com/doclibs/fmw/E10285_01/appslib7/doc.1111/e10308/uc_adf_to_adf.htm#BDCEDDDC]. Looks like creating proxy through Jdev and writing client code using ServiceDelegateImpl is a very costly approach, it creates lot of files and it fails to invoke service when SAML is enabled in the server side.
    If you could not access this link, follow these steps
    1. In connections.xml
    <Reference name="{http://xmlns.oracle.com/apps/sales/territoryMgmt/territories/territoryService/}TerritoryService" className="oracle.jbo.client.svc.Service" xmlns="">
    <Factory className="oracle.jbo.client.svc.ServiceFactory"/>
    <RefAddresses>
    <StringRefAddr addrType="serviceInterfaceName">
    <Contents>oracle.apps.sales.territoryMgmt.territories.territoryService.TerritoryService</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="serviceEndpointProvider">
    <Contents>ADFBC</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="jndiName">
    <Contents>TerritoryServiceBean#oracle.apps.sales.territoryMgmt.territories.territoryService.TerritoryService</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="serviceSchemaName">
    <Contents>TerritoryService.xsd</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="serviceSchemaLocation">
    <Contents>oracle/apps/sales/territoryMgmt/territories/territoryService/</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="jndiFactoryInitial">
    <Contents>weblogic.jndi.WLInitialContextFactory</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="jndiProviderURL">
    <Contents>t3://adc60108fems.us.oracle.com:6046</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="jndiSecurityPrincipal">
    <Contents>SALES_ADMIN</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="jndiSecurityCredentials">
    <Contents>Welcome1</Contents>
    </StringRefAddr>
    </RefAddresses>
    </Reference>
    2. Create a java file with a main method, sample code to invoke service
    import commonj.sdo.helper.DataFactory;
    import oracle.jbo.client.svc.ServiceFactory;
    public static void territoryGet(){
    String TERRITORY_SERVICE_NAME = "{http://xmlns.oracle.com/apps/sales/territoryMgmt/territories/territoryService/}TerritoryService";
    TerritoryService terrService = (TerritoryService)ServiceFactory.getServiceProxy(TERRITORY_SERVICE_NAME);
    DataFactory dataFactory = ServiceFactory.getDataFactory(terrService);
    // Create Territory
    Territory territory = (Territory)dataFactory.create(Territory.class);
    territory.setTerritoryLevel(1L);
    territory.setStatusCode("FINALIZED");
    java.util.Date currentDate = new java.util.Date();
    Calendar cal = Calendar.getInstance();
    cal.setTime(currentDate);
    territory.setEffectiveEndDate(new java.sql.Date(cal.getTimeInMillis()));
    territory.setEffectiveStartDate(new java.sql.Date(cal.getTimeInMillis()));
    List<Territory> lst = terrService.findTerritoriesInPartition(territory, "PRODUCTION");
    System.out.println("Size: " + lst.size());
    I also had succeeded using ServiceDeleteImpl, but i prefer ServiceFactory which is very simple. I can also share how to achieve using the proxy which jdev generates.
    ~Sekar

  • How to use RDP client through a proxy ?

    Hi,
    we have some users in our LAN that have to connect to external RDP servers.
    Those servers don't use RDP Gateway (and we are not the owner of those servers).
    We dont want to open specific trafic from our LAN to those IP Adress on port 3389; we prefer to let this trafic goes through our proxy server (for security reason, because the direct connection will not be supervised).
    So, my question is : Is there a way to configure the RDP Client (the official one or another one) to connect through a local proxy instead of trying to directly connect to the external IP address of the RDP Server ? 
    Thank you

    You could do this with an ssh tunnel and putty very easily. Most web proxies won't actually allow port forwarding like that and restricted to 80 and 443.
    If you want to know how to do it with a ssh tunnel and putty let me know.
    Opening outgoing 3389 from one internal subnet to specific external IP is not such a security risk. Just don't open inbound 3389 from those hosts and you should be fine?
    I am not sure if outbound RDP will require inbound ports to be opened. Its quite rare that any external RDP is opened in my experience as its such a security risk (on the part of the external rdp hosts).
    ITs much better to VPN to the external hosts then initiate local (via vpn) rdp connections.

Maybe you are looking for

  • I recently used the migration assistant and now my music has not transferred and it wont play, any ideas on how to get all my music and films to actually work?

    Hello, I recently used the migration assistant on my old macbook air to transfer my data to my new macbook pro, yet it seems that my music and Films have not fully transferred over. i have used macs for a while now and haven't had any problems before

  • How do I uninstall Firefox from my Mac?

    I downloaded Firefox to my Mac OS X 10.7.2 when a script I wanted to install wasn't compatible with Safari. However, now i want to uninstall Firefox, but when I drag it to the trash and try to delete it, a window pops up that says it can't be deleted

  • Create New Adapter for BPEL

    Hallo, I would like to write my own new adapter in JDeveloper to work with BPEL process. Can anybody put here any links about tis topic.... I couldn't find

  • Software Install Error

    I tried to download the latest version of adobe reader and got this installation error twice: installer: Package name is Adobe Rader XI (11.0.09) Installing at base path/installer.  The install failed. Installer encountered an error that caused the i

  • Mixing with M-Audio Project Mix

    I mix to picture using Logic 7 with a Projectmix I/O as a control surface. But I find that the deeper I get into the mix, the more likely that making a fader move on the Projectmix will cause Logic to crash. The same thing used to happen with my Mack