Dynamic Host and Port for Web Proxy

hi,
When I create a web proxy in JDev I supply the hostname and the port for the web service. The code is then compiled and then deployed. However I want the host and port to be dynamic (kept in a varaible) so when I move my deployment from Development to Test server I just need to change a value in a database or text file. I don't want to re-compile and deploy the code when I move servers. Is there any way to do this??
Thanks
Stephen

Hi,
not so in the WSDL file that is created. If from the client side access, then WS poxy classes allow you to do this
Frank

Similar Messages

  • Change/Configure Host and Port for the Web Service Proxy with Server

    Hi,
    Is there a way to configure Host and Port in generated proxy for Web service depending upon server. (ADF 11g)
    Scenario:
    We are consuming Credit Card web service from a service provider and have different Host and Port details for development, QA and Prod.
    So we created proxy classes using wsdl for development and things work fine, but when deploying code to QA or Prod we need to change the Host
    and Port details.
    Is their a way we could user variable's for Host and Port which looks to some configuration file to evaluate their values
    based on server.
    I am a bit new to this web service .. will appreciate if someone could provide an example.
    Thanks.

    Are you using Web Service Proxy or Web Service Data Control?
    If you are using Web Service Proxy. Right click on your Proxy --> Properties --> Port Endpoints. Here you can change the IP & Port details for each port.
    Venkat

  • BM access rule and port for Web Manager

    The Netware Webacess and the Netware Web Manager is working fine
    internally. What are the ports to open and the rules to create on the
    Border Manager so it can be access froum outside. How to configure the BM
    Omar

    In article <MLMqe.411$[email protected]>, wrote:
    > The Netware Webacess and the Netware Web Manager is working fine
    > internally. What are the ports to open and the rules to create on the
    > Border Manager so it can be access froum outside. How to configure the BM
    >
    WebAccess just (normally) wants port 80. You can static NAT it, or reverse
    proxy it through BMgr. Older versions of BMgr (3.6 or earlier) put in
    default filter exceptions for reverse proxy (both port 80 and 443), but
    later versions require you to add your own filter exceptions.
    NetWare Web Manager - do you mean for Novonyz Web Server? If so, the port
    used depends on what you configured for it. You could use static NAT, or
    generic tcp proxy, or (I think) reverse proxy for whatever port Web Manager
    is using. Newer web manager for Apache uses port 2200, I think.
    Craig Johnson
    Novell Support Connection SysOp
    *** For a current patch list, tips, handy files and books on
    BorderManager, go to http://www.craigjconsulting.com ***

  • Server Host and Port for HTTP Client Too

    Hi All,
    I'm using the HTTP Client tool to connect to XI. How can i find out the ServerHost, ServerPort and Client values.
    Thanks,
    Sandeep

    Hi Michal, Thanks for the response,
    But when i use these values and connect. I get the Response - Resource not found . See the HTML below
    Result:  
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
         <title>Error Report</title>
    <style>
    td {font-family : Arial, Tahoma, Helvetica, sans-serif; font-size : 14px;}
    A:link
    A:visited
    A:active
    </style>
    </head>
    <body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0">
    <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75">
    <tr bgcolor="#FFFFFF">
        <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="4" color="#666666"><b>  404 &nbsp Not Found</b></font></td>
    </tr>
    <tr bgcolor="#3F73A3">
        <td height="23" width="84"><img width=1 height=1 border=0 alt=""></td>
        <td height="23"><img width=1 height=1 border=0 alt=""></td>
        <td align="right" height="23"><font face="Arial, Verdana, Helvetica" size="2" color="#FFFFFF"><b>SAP J2EE Engine/6.45 </b></font></td>
    </tr>
    <tr bgcolor="#9DCDFD">
        <td height="4" colspan="3"><img width=1 height=1 border=0 alt=""></td>
    </tr>
    </table>
    <br><br><br><br><br><br>
    <p><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><b>  The requested resource does not exist.</b></font></p>
    <p><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><table><tr><td valign="top"><b> Details:</b></td><td valign="top"><PRE>Go to <A HREF="/" target="_parent">main page</A> of this application!</PRE></font></td></tr></table></font></p>
    </body>
    </html>
    The interface, service all are correct. Do you think something else is wrong?
    Thanks,
    Sandeep

  • Web Service Proxy with Dynamic IP and Port

    hi,
    I am currently looking at the Web Service Proxy generation in JDev 11g. I can generate proxies fine, but the proxies are generated with static host and port. I want to substitute the host and port during runtime if required, for instance read the values from a database. I need to do this to avoid compiling the application for every deployment we make dev, test and production. Is there an easy way to set the generated proxy host and port? Are there any examples?
    Thanks in advance!
    Stephen

    Hi,
    Maybe you should have a look on XML Catalogs feature, but I am not sure if JDeveloper support it and how to support it.
    -LJ

  • HTTP Proxy: My grogram runs even I put a wrong proxy host and port

    I'm new to network programming, so I just use System.setProperty() for easy. But I don't know why this piece of code runs with whatever proxy I set:
    (I download a file and display in a in JTextArea, this is the ActionListener for 'Download' button)
         private class GetFileListener implements ActionListener
              public void actionPerformed(ActionEvent event)
                   if (completeRadioButton.isSelected())
                       try
                            viewFileTextArea.setText("");
                        System.setProperty("http.proxyHost", "http://123.123.123.123");
                        System.setProperty("http.proxyPort", "123");
                        System.setProperty("proxySet", "true");
                           URL url = new URL(completeURLTextField.getText());
                           BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
                           String str;
                           while ((str = in.readLine()) != null)
                               viewFileTextArea.append(str + "\n");
                           in.close();
                       catch (MalformedURLException e)
                            viewFileTextArea.setText("URL not found!");
                       catch (IOException e)
         }Please help! Thank you very much!

    This is the new version:
         private class GetFileListener implements ActionListener
              public void actionPerformed(ActionEvent event)
                   if (completeRadioButton.isSelected())
                       try
                            viewFileTextArea.setText("");
                        SocketAddress addr = new InetSocketAddress("123.123.123.123", 123);
                        Proxy proxy = new Proxy(Proxy.Type.HTTP, addr);
                        URL url = new URL(completeURLTextField.getText());
                        URLConnection conn = url.openConnection(proxy);
                           BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
                           String str;
                           while ((str = in.readLine()) != null)
                               viewFileTextArea.append(str + "\n");
                           in.close();
                       catch (MalformedURLException e)
                            viewFileTextArea.setText("URL not found!");
                       catch (IOException e)
         }but it still runs regardless of what proxy host and port I set in InetSocketAddress. Did I wrongly use Proxy class in the code above?

  • Find host and port

    My J2EE application has an EJB module and web module. I need to call the servlet in the web module from EJB module, via HTTPUrl connection. To make the web application portable and not-hardcoded, is there any way for EJB module to find out programatically the host and port number of where my J2EE application is deployed?

    Hi,
    I don't know weather it helps you or if you need the information now:
    I have a "half" solution for it: With the instance-number you can calculate all standard(!)-ports. I saw this calculating-ports-stuff in a word-doc.
    //HTTP-Port = 50000InstanceNumber*1000
    String InstanceNumber = java.lang.System.getProperty("SAPSYSTEM");
    int temp = 50000 + Integer.valueOf(InstanceNumber).intValue() * 100;
    String port = String.valueOf(temp);
    For the IP...maybe you can use "localhost"? But my problem with this solution is: I don't know weather the standard ports can be changed manually. When yes: this solution can have a problem...
    regards,
    Remo

  • Error in Logical port for Consumer proxy in SOAMANAGER

    HI Experts,
    While creating Logical port for Consumer proxy in SOAMANAGER I am facing problem
    "SRT Framework exception: Uninstantiated object "subject sidl service" in method IF_SRT_WSP_CONFIG_SIDL~CREATE_CLNT_CFG_FROM_WSDL_D of class CL_SRT_WSP_CONFIG_SIDL ".
    Kindly suggest.

    Hi Milan,
    this kind of error occurs when there is no service and end point description in the WSDL of provider who's service you are trying to consume using Consumer Proxy.
    Just open the provider's WSDL URL that you have given while creating Logical port for the consumer proxy   and check if service and end point exists there.
    Thanks
    Sunil Singh

  • BPM Worklist Problem After Setting Frontend Host and Port

    Hi all,
    I was following the EDG for SOA 11.1.1.5 and was encountering a problem with the BPM Worklist after setting the Frontend Host and Port. We have a topology that includes a load balancer that terminates SSL, two OHS instances, and two SOA instances on separate VMs. When BPM Worklist was loading, it was calling webservices internally through the load balancer, but WebLogic was expecting them as http://. It was not able to resolve the HTTPS port that was being sent from the load balancer through the 80 to 443 redirect.
    What the current EDG does not tell you, is that you have to also turn on "Enable Weblogic Plug-In" for WebLogic to use the OHS plug-in. I did it at the domain level, as all traffic will go through the load balancer. This essentially tells WebLogic that all URLs are https://
    Here is an exerpt from the SOA.out log file:
    <Sep 8, 2011 9:32:06 PM PDT> <Error> <oracle.soa.services.workflow.worklist> <BEA-000000> <<.> Service error.
    Internal Error; Service error occurs in IdentityService in method lookupUser.
    Refer to the log file that is configured for oracle.soa.services.identity for more details on this error and contact Oracle Support Services
    ORABPEL-10585
    Service error.
    Internal Error; Service error occurs in IdentityService in method lookupUser.
    Refer to the log file that is configured for oracle.soa.services.identity for more details on this error and contact Oracle Support Services
    Caused By: javax.xml.soap.SOAPException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html; charset=UTF-8
    What it is also missing, is that you should also set the SOA Infrastructure ServerURL mbean for the load balancer, to match the frontend host and port. Do this through Fusion Middleware Contol. Otherwise, you could encounter URL mismatches.
    I hope this helps someone else.
    I've asked Oracle to add this to the EDG for SOA. It's in the IDM guide, but not in any other EDGs.

    Thanks Josh. It helped me infact in 11.1.1.4 Enable Weblogic Plug-In is not required. But 11.1.1.5 I thing it is mandatory. Oracle should have a clear documentaion.

  • Error establishing socket to host and port: EPM11:1433

    Hi Planning Experts,
    I am trying to configure EPM 11.1.2.1 (Planning)
    RDBMS: SQL server 2005 (Express Edition)
    OS: 2008 R2 x64
    i am getting error after providing RDBMS credentials "error establishing socket to host and port: EPM11:1433 Reson: connection refused: connect"
    Please help....
    Regards
    Kumar

    You may need to enable tcp/ip
    SQL Server Express listens on local named pipes and shared memory. With a default installation, you cannot remotely connect to SQL Server Express. You will need to enable TCP/IP and check if the firewall is enabled.
    To enable TCP/IP:
    From the Start menu, choose All Programs, point to Microsoft SQL Server 2005, point to Configuration Tools, and then click SQL Server Configuration Manager.
    Optionally, you can open Computer Manager by right-clicking My Computer and choosing Manage. In Computer Management, expand Services and Applications, expand SQL Server Configuration Manager.
    Expand SQL Server 2005 Network Configuration, and then click Protocols for InstanceName.
    In the list of protocols, right-click the protocol you want to enable, and then click Enable.
    The icon for the protocol will change to show that the protocol is enabled.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Defining port for a proxy at runtime.

    HELLO FRIENDS...
    Is there anyway we can define the port for a proxy at runtime ?
    THANK
    PranaV.

    Interesting scenario.
    Never tried it, but my thought is that even if you can achieve this dynamically, it will not be a very performant solution. Also what is the requirement which makes you take this route to dynamic lov region?
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • What does virtual host and port mean in a system in ESB console

    Hi !
    When you click on a system in ESB console you can see and change 'cluster name' , 'Virtual host' and 'Port' .
    What does this mean ?
    As default the port is 8888 even though the installation uses port 80.
    If I change the port, I see no difference.
    Could someone please explain ?

    It is used to generate the endpoint urls in the wsdl's for the services you have deployed. It needs to be set to the esb server and port number where the services are installed. So if your esb installation uses port 80 you need to change 8888 to 80. Try the wsdl and look at the url of the endpoint.
    Kind Regards,
    Andre

  • Self Signed Certificate for Web Proxy 4.0.2

    Does anyone have instructions on how to create and install self signed Certificate for Web Proxy Server 4.0.2? My OS is RHEL 4.
    Shed.

    Unfortunately you will not be able to do that from the GUI.
    You will have to use certutil frin proxy-install/bin/proxy/admin/bin/certutil
    Make sure that your LD_LIBRARY_PATH includes proxy-install/bin/proxy/lib
    (start -shell will give you a shell with all necessary paths set.)
    create a file called password-file which contains your password to your cert database
    your cert database resides in the alias directory of proxy installation.
    certutil -S -s "CN=My Issuer" -n myissuer -x -t "C,C,C" -1 -2 -5 -m 1234
    -f password-file -d certdir

  • Java Message Mapping : Dynamic FileName and Directory for ASMA

    How to Put Dynamic FileName and Directory for ASMA Properties of File Receiver adapter in Java Message Mapping ???
    I know How to Do this in UDF , But In Java Type Message Mapping . How to do this ????
    Regards
    PS.

    Hi
    chk this:
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=95093307
    Thanks
    Amit

  • Photoshop crashes when I try and save for web and devices. Making the image size smaller does not help.

    I'm trying to make a lopping .gif from an animation that I made. It's 147 total frames. It's crashed about 6 times now every time I either try and Save for Web or even just save the document on my desktop so in case it crashes I can reopen PS and recover it. Making the image size smaller (original size is 1920 x 1080 with resolution 72) does not help, it still makes the *ding* error when I attempt to save. I made the image more than half of the original size and the Save for Web box actually came up that time, but when I tried clicking save it said there was an error and PS crashed without warning.

    Look at the crash report for your Photoshop crashes see what they show

Maybe you are looking for

  • How do I transfer my files from iTunes to WindowsXP Pro or visa versa?

    I'd like to be able to figure out how to transfer music files out of iTunes to Windows Media, and from Windows media to itunes. I've got a bunch of lecutures in both, but both don't do what I need them to do. In a perfectworld, I'd be able to get iTu

  • Invisible withholding tax amounts in FBL1N

    Hello, When I display vendor open items through FBL1N t-code I cannot see some of the withholding tax amounts although they really have been posted, as I can see them when I display the document number through FB03. Can anybody give me any explanatio

  • How to get the cursor position from screen in module pool program

    Hi, I am doing the module pool program, I have one table control in one screen. I have to give functionality to the user that when the user enters first record in the table control and after filling the last field when he presses enter the cursor wil

  • XWS-Security

    Are there any tutorials or examples demonstrating how to setup a webservice and client using XWS-Security from scratch? I've setup the sample applications that come with JWSDP, but I would like a tutorial that walks through the process of setting up

  • Can not convert to .doc

    I have just signed up for one year of pdf Export. The first time I try to convert a pdf file i get message that reader does not have to send files. What do I need to do?