Calling WS from WebLogic server 8.1 that is behind a Proxy server

Hi,
I have a web application deployed on WebLogic server 8.1 sp1. And my server is
behind a http proxy server. Now one of the components in the application makes
a web service call to a service located external to the system, and it always
throws "java.net.UnknownHostException". I have set the Java system properties
http.proxyHost = my proxy server, http.proxySet = true and http.proxyPort = 80
and it still does not help.
If I try to evaluate the web service component as a stand alone client using WebLogic's
webserviceclient.jar, everything works fine. I can't figure what I have to do
to get this component working from within the WebLogic server. Can anybody provide
me with inputs, comments or suggestions.
Naveen.

Found solution. Followed Part 2 of the solution as explained in http://support.bea.com/application?namespace=askbea&origin=ask_bea_answer.jsp&event=link.view_answer_page_solution&answerpage=solution&page=wlw/S-19283.htm
What surprises me is that this solution to a common problem is hidden and hard
to find. If I am correct, no part of WLS 8.1 documentation suggests this. Rather
the doc says, set the system properties for the standard JDK 1.4 network properties
and it should work fine. If it is actually supposed to work like this, is it a
bug then?
"Naveen Kumar" <[email protected]> wrote:
>
Hi,
I have a web application deployed on WebLogic server 8.1 sp1. And my
server is
behind a http proxy server. Now one of the components in the application
makes
a web service call to a service located external to the system, and it
always
throws "java.net.UnknownHostException". I have set the Java system properties
http.proxyHost = my proxy server, http.proxySet = true and http.proxyPort
= 80
and it still does not help.
If I try to evaluate the web service component as a stand alone client
using WebLogic's
webserviceclient.jar, everything works fine. I can't figure what I have
to do
to get this component working from within the WebLogic server. Can anybody
provide
me with inputs, comments or suggestions.
Naveen.

Similar Messages

  • Creating a socket behind a proxy server

    How can I create a socket to a server if the client is behind a proxy server? I know java.net's HTTP-related classes have built-in proxy server support but this is not for a HTTP-based application.

    Hi,
    I also need to do this but not found any way yet. Somewhere I read that we can set the socket proxies (because mine was an application which tries to open socket connection over the network) through command line or by setting the system properties "socksProxyHost=<proxy_host_address>" and "socksPoxyPort=<proxy_port>". I tried to solve my proxy issue this way but all invain. While setting these system properties it is required that your proxy server is using the SOCKS service which I think is mostly the case but it still didn't work for me. You people try and c if it works for you. If anyhow you manage to get this issue resolved then please tell me also by posting a message.
    regards

  • Pulling data from a second sharepoint site that is on a different server

    Hi,
    I need to pull some news stories located in a list on a separate sharepoint site on a separate server. I will also be filtering the stories pulled using a custom column on the list on the source site. Can anyone tell me what would need to configure
    to be able to do this?
    thanks,
    Sherazad
    Sherazad

    Hi,
    According to your post, my understanding is that you want to pull data from a second SharePoint site that is on a different server.
    If the two servers are in the same domain, you can enter the site url in the brower directly.
    If the two servers are in the different domains, you need to create a trust between the domains.
    More information:
    http://stackoverflow.com/questions/12780886/cross-domain-access-in-sharepoint-2010
    http://www.boostsolutions.com/blog/how-to-add-trust-domains-in-a-sharepoint-farm/
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • HTTP connection from OSB web service to external system via a Proxy Server

    Dear experts,
    May I know has anyone tried to use HTTP protocol to send a request from OSB web service to external system via a proxy server? Heard that we need to establish some sort of tunnel (socket) to talk to Proxy Server. Can you please any have sample code or configuration steps to share?
    Thank you very much!!

    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/consolehelp/global_resources.html#wp1137294
    Adding Proxy Servers
    Use the Summary of Proxy Servers page to add and configure Proxy Server resources and make them available in Oracle Service Bus as a system resource. You must be in an active session to configure or reconfigure Proxy Server resources.
    1. If you have not already done so, click Create to create a new session or click Edit to enter an existing session. See Using the Change Center.
    2. Select System Administration > Proxy Servers.
    3. Click Add.
    4. In the Name field, enter a name for the Proxy Server resource. This is a required field.
    5. In the Description field, enter a short description for the Proxy Server resource.
    6. In the Host-Port Parameters section, enter the following information:
    1. In the Server Host field, enter the host name or IP address of the Proxy Server. This is a required field.
    The Server Host name for the Oracle Service Bus proxy server must be identical to the server host name of the actual proxy server.
    2. In the Clear Text Port field, enter the Proxy Server clear-text port number.
    3. In the SSL Port field, enter the Proxy Server SSL port number. You must enter either a clear text or SSL port number.
    4. Click Add.
    You can configure multiple Proxy Servers for each Proxy Server resource. This enables Oracle Service Bus to perform load balancing and offer fault tolerance features for the Proxy Server resource.
    7. If the Proxy Server performs proxy authentication, enter a user name in the User Name field, and the associated password in the Password and Confirm Password fields.
    These fields are optional, and required only if the Proxy Server is secured.
    8. Click Save to create and save the Proxy Server resource in the current session.
    9. To end the session and deploy the configuration to the run time, click Activate under Change Center.

  • Can Air application connect behind a proxy server

    Can Air application connect behind a proxy server using HTTP
    or SOCKS.
    thanks

    I tried it but its not working. I am using XMLSocket
    var socket:XMLSocket = new XMLSocket();
    socket.connect( server, 5000 );
    It returns "no response from server", It works fine if i
    directly connected to internet.
    My browser is able to connect to internet means all
    configurations are fine.

  • Places look-up crashes iPhoto '09 8.1.2 when behind a proxy server

    Places in iPhoto was always a problem for those imprisoned behind a proxy server, however since the 8.1.2 update this has caused iPhoto to hang forever when iPhoto tries to add new places automatically, E.G. when you plug your iPhone in.
    As a work-around I deleted com.apple.iPhoto.plist from my Username > Library >Preferences folder and then told it not to look up locations automatically when it asked about it on startup.
    Not ideal but it does work without hanging now!
    Ideally Apple would fix the Proxy support in iPhoto...

    Welcome to the Apple Discussions.
    Ideally Apple would fix the Proxy support in iPhoto...
    You'll have to ask Apple directly at http://www.apple.com/feedback/iphoto.html

  • Web service client behind a proxy server connecting to web service over SSL

    Hi Friends,
    A web service is exposed by an external system over SSL. We are behind a proxy server and are trying to get connected to web service over SSL. <p>
    We are getting the following error on the test browser of workshop<p><p>
    External Service Failure: FATAL Alert:HANDSHAKE_FAILURE - The handshake handler was unable to negotiate an acceptable set of security parameters.<p><p>
    the whole trace is <p>
    <p>JDIProxy attached
    <Sep 24, 2005 9:27:25 AM EDT> <Warning> <WLW> <000000> <Id=creditCheckCtrl:salesExpertServiceControl; Method=creditcheckcontr
    ol.SalesExpertServiceControl.doCreditVerification(); Failure=com.bea.control.ServiceControlException: SERVICE FAULT:
    Code:javax.net.ssl.SSLHandshakeException
    String:FATAL Alert:HANDSHAKE_FAILURE - The handshake handler was unable to negotiate an acceptable set of security parameters
    Detail:
    END SERVICE FAULT>
    <Sep 24, 2005 9:27:26 AM EDT> <Warning> <WLW> <000000> <Id=creditCheckCtrl; Method=creditcheckcontrol.CreditCheck.testCreditC
    heck(); Failure=com.bea.control.ServiceControlException: SERVICE FAULT:
    Code:javax.net.ssl.SSLHandshakeException
    String:FATAL Alert:HANDSHAKE_FAILURE - The handshake handler was unable to negotiate an acceptable set of security parameters
    Detail:
    END SERVICE FAULT [ServiceException]>
    <Sep 24, 2005 9:27:26 AM EDT> <Warning> <WLW> <000000> <Id=top-level; Method=processes.CreditCheck_wf.$__clientRequest(); Fai
    lure=com.bea.wli.bpm.runtime.UnhandledProcessException: Unhandled process exception [ServiceException]>
    <Sep 24, 2005 9:27:26 AM EDT> <Error> <WLW> <000000> <Failure=com.bea.wli.bpm.runtime.UnhandledProcessException: Unhandled pr
    ocess exception [ServiceException]><p>
    I am not able to make out what could be possibly wrong. Please let me know if you guys have any ideas about how to resolve it.
    Thanks
    Sridhar

    did you resolve this problem. I am looking at the same issue. If you did I would really appreciate your response.
    Thanks.

  • Rich-client Java application that is client to WLS6.1 but behind corporate proxy server

    We have a rich-client Java application that is a client to WLS6.1 that can't
    connect to the WLS6.1 server when the client is behind a corporate proxy
    server. What is a remedy for this?
    Thanks,
    Jim Weavere

    Found solution. Followed Part 2 of the solution as explained in http://support.bea.com/application?namespace=askbea&origin=ask_bea_answer.jsp&event=link.view_answer_page_solution&answerpage=solution&page=wlw/S-19283.htm
    What surprises me is that this solution to a common problem is hidden and hard
    to find. If I am correct, no part of WLS 8.1 documentation suggests this. Rather
    the doc says, set the system properties for the standard JDK 1.4 network properties
    and it should work fine. If it is actually supposed to work like this, is it a
    bug then?
    "Naveen Kumar" <[email protected]> wrote:
    >
    Hi,
    I have a web application deployed on WebLogic server 8.1 sp1. And my
    server is
    behind a http proxy server. Now one of the components in the application
    makes
    a web service call to a service located external to the system, and it
    always
    throws "java.net.UnknownHostException". I have set the Java system properties
    http.proxyHost = my proxy server, http.proxySet = true and http.proxyPort
    = 80
    and it still does not help.
    If I try to evaluate the web service component as a stand alone client
    using WebLogic's
    webserviceclient.jar, everything works fine. I can't figure what I have
    to do
    to get this component working from within the WebLogic server. Can anybody
    provide
    me with inputs, comments or suggestions.
    Naveen.

  • Fetching a URL  from a socket output or input stream in a proxy server

    We have written a proxy server in java .
    It connects with a client on some local port and forwards the request of the client to main server through socket connections.
    The code is as follows...
    * BasicProxyServer.java
    * A simple multithreaded proxy server.
    * A client connects to theserver. The server starts a
    * separate threads for data flow though two Sockets.
    * The first socket communicates with the socket of the client.
    * The second socket is used to communcate with the main server
    * for which this server is a proxy. The sockets are connected by pipes.
    import java.net.*;
    import java.io.*;
    public class BasicProxyServer {
         private static int serverPort;
         private static String primaryServerHost;
         private static int primaryServerPort;
         // 1st arg: port to listen on
         // 2nd arg: primary server IP
         // 3rd arg: primary server port
         public static void main(String [] args) {
              serverPort = Integer.parseInt(args[0]);
              primaryServerHost = args[1];
              primaryServerPort = Integer.parseInt(args[2]);
              BasicServer bserv = new BasicServer(serverPort,primaryServerHost,primaryServerPort);
    class BasicServer extends Thread {
         private int serverPort;
         private String primaryHost;
         private int primaryPort;
         private ServerSocket servSock = null;
         public BasicServer(int port, String primSrv, int primPort) {
              serverPort = port;
              primaryHost = primSrv;
              primaryPort = primPort;
              start();
         public void run() {
              Socket clientSock = null;
              Socket primaryServerSock = null;
              try {
                   servSock = new ServerSocket(serverPort);
              catch (IOException e) {
                   e.printStackTrace();
              while(true) {
                   try {
                        clientSock = servSock.accept();
                        primaryServerSock = new Socket(primaryHost, primaryPort);
                        PipedInputStream fromClient = new PipedInputStream();
                        PipedOutputStream toMainServer = new PipedOutputStream(fromClient);
                        PipedInputStream fromMainServer = new PipedInputStream();
                        PipedOutputStream toClient = new PipedOutputStream(fromMainServer);
                        Talk clientToMainServer = new Talk(clientSock, fromClient, primaryServerSock, toMainServer);
                        Talk mainServerToClient = new Talk(primaryServerSock, fromMainServer, clientSock, toClient);
                        clientToMainServer.start();
                        mainServerToClient.start();
                   catch (IOException e) {
                        e.printStackTrace();
         // Override finalize() to close server socket
    protected void finalize() {
    if (servSock != null) {
    try {
    servSock.close();
    } catch (IOException e) {
    e.printStackTrace();
    servSock = null;
    class Talk extends Thread {
         private Socket incoming;
         private Socket outgoing;
         private InputStream in;
         private OutputStream out;
         private InputStream from;
         private OutputStream to;
         Talk(Socket inSock, InputStream in, Socket outSock, OutputStream out) {
              this.in = in;
              this.out = out;
              incoming = inSock;
              outgoing = outSock;
         public void run() {
              int aByte;
              try {
                   from = incoming.getInputStream();
                   to = outgoing.getOutputStream();          
                   while(( aByte = from.read()) != -1 ) {     //read from socket
                        out.write(aByte);     // write to pipe`
                        // read the byte from the pipe
                        to.write(in.read());          // write it to the output socket stream
                        to.flush();
                   to.close();
                   from.close();
                   if(incoming != null) {
                        incoming.close();
                        incoming = null;
                   if(outgoing != null) {
                        outgoing.close();
                        outgoing = null;
              catch (SocketException e) {
              // there is one for a closed socket. Seems to have no effect.
              //     e.printStackTrace();
              catch (IOException e) {
                   e.printStackTrace();
    Here,when client gives any URL in the address bar in the web browser the request is forwarded to this proxy server.
    We want to fetch the URL which client enters in order to implement content filtering and also store the most visited sites by each user .
    But we don't know how to fetch the URL from the socket input or output stream.
    Can you suggest any suitable solution for the same??

    Shailesh24 wrote:
    We want to fetch the URL which client enters in order to implement content filtering and also store the most visited sites by each user .
    But we don't know how to fetch the URL from the socket input or output stream.
    Can you suggest any suitable solution for the same??Yes. Write a proxy server that actually speaks HTTP.

  • Anytime i try and eprint from my ipad the printer says i need a proxy server and code?

    Bought new Photosmart 6510e all in one. Set up went well including wireless internet setup. When I try to use my ipad and send document to print the printer says I need a "Proxy server name and code" I don't know what this means or how to find this server?
    What can I do to get this going?The computer I have is an Acer with Windows Vista.   

    Hello Manny12,
    I would start but suggesting you power cycle the printer. You can do this by following these steps:
    While the printer is still on, unplug the power cord from the printer, leave it unplugged for 30 seconds, then reconnect the power cord to the printer. Once plugged back in the printer should power on automatically.
    You also may try restoring the network defaults and re-connecting your printer back to your wireless network. If you are still experiencing issues you may also want to disable and re-enable Web Services.
    If you have any further issues or questions you can reply to this post and I will try to assist you.
    If I have solved your issue, please feel free to provide kudos and make sure you mark this thread as solution provided!
    Although I work for HP, my posts and replies are my own opinion and not those of HP.

  • Front Row trailers behind a Proxy server

    Hi there
    Im currently at University and my internet connection is provided through a proxy server.
    When i try to watch trailers in Front row it hangs and i have to reset the computer
    Therefore my question is,
    Is Front row aware of network settings or does it have to have a dirrect connection to the Net.
    Thanks

    Can you watch the trailers by going to Apple's Web site with Safari inside your network? QuickTime streams like that are specifically blocked by my work's proxy server.
    http://www.apple.com/trailers/
    -Doug

  • Messages with Server 3.1.2 behind a proxy server

    Help ...
    I am familiar with earlier iterations of the Mac OS X server software and set up a largish 16TB system in a UK hospital before I retired.  I am now working for a charity in a remote location and testing the latest version running on a recycled MacBook Pro to see if it could be used in earnest to provide local services to support the volunteer community here.  Access to the internet is very slow and heavily restricted by a Squid proxy server and I find the lack of a comprehensive OS X Server manual frustrating at times (if there is one please point me to it!).
    I have File Sharing running fine, but I am struggling to find the workable settings for a cross platform local messaging service.  I am trying AIM initially, but whatever settings at the user end I select I keep getting either 'server refusing connections' or 'unidentified AIM socket error' messages.
    Any assistance would be really appreciated ... especially as this is my foray into the world of Messages!
    Thanks in anticipation,
    Ian
    Test system: Server: MacBook Pro running Server 3.1.2 on Mac OS X 10.9.4    Client: MacBook Air running Mac OS X 10.9.4

    Since posting this I have been able to download more information and also search the ASC threads - and see I should be using Jabber.
    So - I may still need some advice but I am working towards the solution ... hopefully!

  • ATA 186 behind windows Proxy Server

    Hi Friends, i have been using Cisco ATA boxex behind Cisco routers and they work really fine. Is it possible to configure this box behind a Windows Proxy Server with a Dial-ip configuration? I know the configuration will be difficult due to NAT and H323 issue.. but any of you Experts can guide me Technically I will really appreciate..
    Thank You.
    Sandeep

    I feel now it's possible. Please refer the following link for more information.
    http://www.cisco.com/en/US/products/hw/gatecont/ps514/prod_release_note09186a0080109764.html#47964

  • c:redirect behind a proxy server

    I have a two servers and a browser:
    Browser A --------FW 1 ---------- Apache HTTP B ----- FW 2-------- Tomcat C
    24.150.4.10 192.168.1.16 128.1.1.3
    On tomcat, I'm using a <c:redirect url="relative.jsp" /> to forward a user to a relative URL.
    The problem is when the redirect occurs, it's providing the browser with the IP Address of the Apache server as seen inside the Firewall instead of the IP Address of the firewall that is portmapped to the Apache Server (which is the IP Address that the Browser originally issued the request to.
    I think this is because the redirect is not honoring the x-forwarded-host header that contains the hostname given by fw2?
    Has anyone elxe experienced with this? I found this post: http://lists.fourthought.com/pipermail/4suite-dev/2003-June/001418.html which sounds like an exact match.

    Contact your ISP for instructions on how to obtain a direct connection.

  • Finesse Fail over behind a proxy server

    As per the following link
    https://developer.cisco.com/site/collaboration/contact-center/finesse/overview/technical.gsp
    summary :- The gadget includes JavaScript and references to various web services. Browser can't have connections to servers in multiple domains due to security considerations so Cisco Finesse functions as web proxy so all requests from the browser use a single domain.
    How does the Side A and Side B concept works when Finesse is configured behind proxy?
    As per the following link
    https://developer.cisco.com/site/collaboration/contact-center/finesse/overview/technical.gsp
    summary :- The gadget includes JavaScript and references to various web services. Browser can't have connections to servers in multiple domains due to security considerations so Cisco Finesse functions as web proxy so all requests from the browser use a single domain.
    How does the Side A and Side B concept works when Finesse is configured behind proxy?

    Contact your ISP for instructions on how to obtain a direct connection.

Maybe you are looking for