Get host and port to construct url for report call [SOLVED]

I'm calling reports via web.show_document and want to dynamically construct the URL based upon where the form is running.
I have sys_context('USERENV', 'HOST') for the host part.
How can I get the port?
Edited by: New Rodeo on Sep 19, 2008 12:32 PM

Storing the reports url in a db-table works for configurations with one ias, but in applications which are spread other more than one ias, all accessing the same db you may come into rouble.
We created a new entry in the [APPLICATION].env like REPORTSSERVER_URL=http://myhost:myport/reports/rwservlet?server=XYZ and then
read this in forms at runtime usinf TOOL_ENV-builtins.
hope this helps

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

  • 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

  • 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/

  • 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?

  • Cannot construct URL for runtime check using entries in SLD

    Hi,
    we are using high availability for PI 7.1 and are facing to the problem to construct the url for Communication channel monitoring etcv. in rwb.
    In the exchange profile it looks good. Is there another place to check parameters for sld?
    Thanks in advance
    Frank
    Message: Cannot construct URL for runtime check using entries in SLD for component af.rbi.s3p1028; correct the entries in SLD
    Stacktrace:
    com.sap.aii.rwb.exceptions.OperationFailedException: Cannot construct URL for runtime check using entries in SLD for component af.rbi.s3p1028; correct the entries in SLD
    at com.sap.aii.rwb.core.XIJavaRTCComponent.getConnector(XIJavaRTCComponent.java:211)
    at com.sap.aii.rwb.core.XIRTCComponent.ping(XIRTCComponent.java:209)
    at com.sap.aii.rwb.web.componentmonitoring.model.CompTestModel.doPing(CompTestModel.java:623)
    at com.sap.aii.rwb.web.componentmonitoring.viewcontroller.CmDynPage.doPing(CmDynPage.java:428)
    at com.sap.aii.rwb.web.componentmonitoring.viewcontroller.CmDynPage.updateTests(CmDynPage.java:528)
    at com.sap.aii.rwb.web.componentmonitoring.viewcontroller.CmDynPage.selectNode(CmDynPage.java:555)
    at com.sap.aii.rwb.web.componentmonitoring.viewcontroller.CmDynPage.process_treeClick(CmDynPage.java:484)

    Hello
    A combination of the notes below should resolve this error:
    #764176 Error in XI due to inconsistent SLD contents                
    #1117249 Incomplete Registration of PI components in SLD            
    #1334053 No automatic PI 7.10 SLD Registration                      
    #1278563 Specification of message server host in Exchange Profile   
    Regards
    Mark

  • 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

  • Host and Port

    Hi
    WHere can I get the Host and Port no of the PI Server
    Thanks
    PR

    Hi,
    In addition to above, Just FYI that in PI 7.1 the Http and J2ee port are same..
    The discussion about same can be found [here|Re: Architecture of PI 7.1] and [here|Re: ABAP & Java ports in PI 7.1?]
    and to check all the info @ single place:
    Login to XI ABAP stack -> Run tcode SXMB_IFR -> Choose Option Administration -> Properties Administration ->All properties
    Sachin
    Edited by: Sachin Dhingra on Apr 2, 2009 10:01 AM

  • Determining Message Server Host and Port information

    Hi,
    I am working on the NWDS creating a Java WD application and I was told which Netweaver system I should work on but I was not told the Message Server Host  information neither the Port information. I ran transaction SM51 (right click->details)in the Netweaver system but the information it is not working. Even though I can telnet this server port if I go to the J2EE Engine window within the NWDS I do not see the green light. I just see "N/A". I also tried to deploy my application but I keep getting this message: "Cannot determine sdm host (is empty). Please configure your engine/sdm correctly".
    Please advice,
    Diego.

    Hi Diego,
    in order to see Message Server Host information and Port information go to SAP J2EE Engine start page: e.g. http://system-name:57100/index.html (use administrator pws).
    Then click on System Information, here on the top you can read the Message Server Host and Port.
    Hope this help you.
    Bye,
    Vito

  • 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

  • The Creative Cloud application becomes inoperable continually on both my Windows 7 and 8.1 operating systems. I'm tired of re installing the application after deleting the OOBE file to get updates and syn settings between computers for Photoshop. Is this

    The Creative Cloud application becomes inoperable continually on both my Windows 7 and 8.1 operating systems. I'm tired of re installing the application after deleting the OOBE file to get updates and syn settings between computers for Photoshop. Is this an endemic problem with others? I'm using Google Chrome as my browser. Is this an issue with the problem?

    Similar problem just happened to me with the Creative Cloud Update 1.7.1.418—slightly different so I thought I'd share. I have multiple Adobe Creative Cloud programs installed on my computer, all working just fine. I updated the Cloud App to the latest version and then it shows me that I have only one program installed! All my previously installed programs (Photoshop and the like) still work but show as "install" instead of "Up to date". Initially I thought I'd have to re-install the Cloud app or recreate the OPM data base but then I noticed that some of the Cloud app preferences (Apps > Settings > App Language) were different to what I had set previously. I use English (International) language, the update had reverted the app back to English (North American). I flicked back to my previous language and bam, all my apps now show as being installed correctly.

  • Smtp and pop3 host and port name of gmail server?????

    can any body give me smtp and pop3 host and port name of gmail server?????to send a mail......

    Just do a new initial context and lookup the datasource, in case you need other info like host name and port you can use MBEans like:
              InitialContext ctx = null;
                   // fetch managed server name by accessing the
                   // RuntimeServerMBean using the
                   // MBeanServer interface
                   ctx = new InitialContext();
                   MBeanServer server = (MBeanServer) ctx
                             .lookup("java:comp/env/jmx/runtime");
                   ObjectName service = new ObjectName(
                             "com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean");
                   managedServerName = (String) server.getAttribute(service,
                             "ServerName");

  • Find portal oracle database host and port

    HI ,
    We have EP 7.0 sp15 with oracle database,
    Is there a way to find the host and port of oracle database programatically

    Hello namit,
    I'm the same problem, do you solved it ?
    Tks,
    best regards.

  • Find portal database host and port programatically

    HI ,
    We have EP 7.0 sp15 with oracle database,
    Is there a way to find the host and port of  oracle database

    Hello namit,
    I'm the same problem, do you solved it ?
    Tks,
    best regards.

Maybe you are looking for