Dynamically pass server-port address in web.show_document

Dear All,
we have hardcoded server and port in
WEB.SHOW_DOCUMENT('http://10.4.2.2:7778/common/users/payroll/test.rtf');
how can i pass "'http://10.4.2.2:7778/" dynamically to web.show_document,Is there any environment file setting from where it can dynamically pick up the
<server>:<port> at runtime.
thanks in advance
Shikha

thanks for ur advice.
I have already tried .
i declared
my_web in .env file and assigned value http://10.4.4.2:7778/ to it.
then used
tool_env.Getvar(my_web,var),
but when we use
WEB.SHOW_DOCUMENT(var||mnt2/usegp1/user/payroll/test.rtf');
it takes path
http://10.4.2.3:7778/forms90/mnt2/users/shikha/common/psl/test.rtf');
i don't know from where it is adding /forms90 in path.
plz help.

Similar Messages

  • How to find manager server port address

    hi
    i want to know managed server (soa_server1) port address in order to seed/remove community using demoCommunitySeedServlet. where to find out that one information
    regards
    ashok.v

    Go to your %ORACLE_MIDDLEWARE_HOME%/user_projects/domains/ or your domain folder, edit %ORACLE_MIDDLEWARE_HOME%/user_projects/domains/<your_domain_name>/config/config.xml. Inside this file check the ->
    <server>
    <name>soa_server1</name>
    <ssl>
    <name>soa_server1</name>
    <listen-port>8002</listen-port>
    </ssl>
    <machine>LocalMachine</machine>
    <listen-port>8001</listen-port>
    <listen-address></listen-address>
    <server-diagnostic-config>
    <name>soa_server1</name>
    <diagnostic-context-enabled>true</diagnostic-context-enabled>
    </server-diagnostic-config>
    </server>

  • Server IP & Server Port Address

    I purchased Synoload From Ovi Store for download through torrent. But the start up screen of the app want server ip , server port . But I don't know that . Please help me , provide me those Server IP & Server Port which is need for downloading via torrent in Synoload .
    Send From My Nokia 700

    Hi mj,
    in that case I wish you good luck with building a script that does do that.
    Here's a
    good post to get you started.
    For further inspiration on how to do this, check out the
    learning center or the
    Script gallery.
    Cheers and good luck with your script,
    Fred
    There's no place like 127.0.0.1

  • Dynamically set the soap address for web services

    Hi,
    I am developing an Oracle J2ee1.3 web service for Oracle application server 10.1.2.
    The web service needs to be deployed on to multiple servers. Hence the host and port for the soap:address needs to be changed for each server.
    Eg: For the 1st server the soap:address is http://www.server1.com/test/MyWebService
    For 2nd server the soap:address is http://www.server2.com/test/MyWebService
    Is there any way to dynamically change this address based on the server the Web Service is deployed to?
    Any help is highly appreciated.
    Thanks,
    Subashini

    It helps to post a link to a thread when you refer to it.  If you are trying to implement that solution though, you can look at the parameter of the corresponding method being called.  The parameter has type 'SIMPLE' which means that it is compatible with all of the predefined elementary ABAP types.  In this case, you should use 'STRING'.

  • WEB.SHOW_DOCUMENT . Publish reports character mode directly within browser!

    hello!
    I'm having the problem.
    When I want to publish reports character mode directly within browser!
    The code is as follows!
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, RUNTIME);
      SET_REPORT_OBJECT_PROPERTY(repid, REPORT_COMM_MODE, SYNCHRONOUS);
      SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESTYPE,  FILE);
      SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESFORMAT, '');
      SET_REPORT_OBJECT_PROPERTY(repid, REPORT_SERVER, server );
      v_rep := RUN_REPORT_OBJECT(reportFile,mparamlist_id);
      rep_status := REPORT_OBJECT_STATUS(v_rep);
         if rep_status = 'FINISHED' then
            vjob_id :=substr(v_rep,length(server)+2,length(v_rep));
      WEB.SHOW_DOCUMENT('../reports/rwservlet/getjobid'||vjob_id||'?server='||server,'_blank');
         else
      message('Fail to create Report!');
         end if;
    The report is generated,
    But it does not open directly in browser!
    The browser will download a file without extension / format, with the name 'getjobid38'!
    When I change the code to 'TXT'
    WEB.SHOW_DOCUMENT('../reports/rwservlet/getjobid'||vjob_id||'.txt?server='||servidor,'_blank');
    The following error is returned:
    rep-50003 the command line is invalid: getjobid38.txt
    Already grateful!

    working with forms 11gR2 (11.1.2.1)

  • Web.show_document does not open browser anymore

    We upgraded our production database over the weekend from 10g to 11g. When it was still 10g, our Forms application used to open a PDF embedded in IE. After moving to 11g, it does not open IE anymore and shows no error messages. Clicking the button with the web.show_document command does nothing. Our test database is also 11g but does not have this problem. What could have gotten wrong?

    I can't explain why it seems to started failing all of a sudden. We often hear comments like this only to later discover that either someone else made changes of which you are unaware or possbily a software update occurred automatically. For example, the JRE version may have been auto-updated.
    As for recoding in an alternative fashion, it will be difficult for me to say specifically because I don't know the app nor do I know your needs. The biggest, and it isn't all that big, deal will be to identify from where the pdf being opened comes from. In other words, does it already exist on the client machine or is it downloaded to the client from the/a server? Also important to know is whether or not the file name is known or not.
    So, if you want to change the code, first figure out how you want the application to complete the task. Here are my suggestions:
    Suggestion 1.
    <blockquote>If the file (pdf in your case) originally resides on a remote server, then leave it there. The document can be opened using a direct url to the file on the remote server. For example:
    WEB.SHOW_DOCUMENT ('http://server/somepath/my.pdf','_blank');If the file lives within the Forms directories, you can even use a relative path rather than the fully qualified one above. For example, if the files live in \forms\java\foo then you can do this:
    -- The exact entry may differ slightly depending on which
    -- Forms version you are using and where you locate the files
    WEB.SHOW_DOCUMENT ('/forms/java/foo/my.pdf','_blank');This makes the application a little more flexable given that you would not need to change the app code if the server name changed. Once the file has been opened on the client side, whatever pdf reader the end-user is using will offer a "Save" option. So if they choose to save the file locally, they can do so as they desire.</blockquote>
    Suggestion 2.
    <blockquote>If, for whatever reason, the file is downloaded to the client or just happens to already exist on the client, you can use WebUtil's CLIENT_HOST (or WEBUTIL_HOST.HOST) command to open the file locally. There are several ways to do this and which method you choose will depend on a few factors. For example, are all the client machines Windows based? I will assume, for this example that the client machines are Windows based. And, because I like to write code as generically as possible, here is a way to open documents on Windows without the need to know which application normally handles it. In other words, you don't need to know that it will be Adobe Acrobat that opens pdf files or that MS Word will open doc files.
    -- In this example, the value of myPathAndFile is the path and filename.
    -- For example, myPathAndFile := 'C:\Users\<USER_NAME>\Documents\foo.pdf';
    CLIENT_HOST('rundll32 shell32,ShellExec_RunDLL '|| myPathAndFile);This is a bit of an old school way of accomplishing the task, but it is very effective and flexiable. Alternatively, you could use CLIENT_HOST to directly call the file, but this may not always work. For example:
    CLIENT_HOST('C:\Users\<USER_NAME>\Documents\foo.pdf');</blockquote>

  • JAX-WS Port address

    hi ,
    Our Webservice implementation has deployed into http://wixt.wload.global:7806/mcfe/InvolvedPartyManagement.
    Webservice client code is reading this port address from WSDL file through the following API
    protected Service(URL wsdlDocumentLocation, QName serviceName)
    is there any way to pass the port address as an argument for the method on any jax-ws class?
    although i have tried the addPort(QName portName, String bindingId, String endpointAddress) in service class.However its not useful for our scenarion
    Any help on this highly appreciated?
    Thanks
    Kamal

    Is your issue that the port in the soap:address location is incorrect in the WSDL? I have had problems before where the soap:address location is incorrect because a lot of the time it depends on where the client is connecting from (for example not all clients can hit an external facing IP and port, especially if the client is inside the network and cannot get out). The answer is to override the soap:address location using BindingProvider. For example if the port 7806 should be 8000 you could so something like this (obviously the service, host and port will not be correct in this example):
    final InvolvedPartyManagementService ss = new InvolvedPartyManagementService(
      new URL("http://wixt.wload.global:7806/mcfe/InvolvedPartyManagement?wsdl"), // wsdl url
      SERVICE_NAME
    InvolvedPartyManagementWebService port = ss.getInvolvedPartyManagementWebServicePort();
    // override the endpoint address (fixes incorrect soap:address)
    final BindingProvider bp = (BindingProvider) port;
    bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
      "http://wixt.wload.global:8000/mcfe/InvolvedPartyManagement"); // endpointThe endpoint address ("http://wixt.wload.global:8000/mcfe/InvolvedPartyManagement" in this example) can be anything and it will override the soap:address location.

  • My application needs to access web server. So, from that application how do i call firefox ? and how do i pass an argument such as url/web server ip address?

    My application needs to a access web server. So, from that application how do i call Firefox ? And how do i pass an argument such as the url/web server ip address?
    == This happened ==
    Not sure how often

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox.
    [http://forums.mozillazine.org/viewforum.php?f=25]
    You'll need to register and login to be able to post in that forum.

  • Hide address bar w/WEB.SHOW_DOCUMENT

    I am currently using WEB.SHOW_DOCUMENT to run Reports with
    Developer Server. It is outputing as a PDF in IE5. It works
    great. But I have a security concern. The report has to know
    who the current user is to properly fill in some parameters. I
    use the GET_APPLICATION_PROPERTY in Forms to get the USERID and
    PASSWORD. These get passed to the browser as part of the
    visible URL when the report is output as a PDF in the browser.
    I would like to hide the browsers address bar for these reports.
    Is there a way to do this?
    Thanks for any suggestions in advance!
    null

    I can actually answer that! I had the same problem initially.
    I spent a whole day searching both Microsoft and Adobe
    documentation
    and websites. I finally found the answer buried in Acrobat
    Reader's
    documentation.
    In your Adobe folder(I don't remember exactly where) you will
    find
    a file called Nppdf32.dll.
    Simply copy it to C:\program files\internet explorer\plugins
    You should now be able to view pdf files in IE5.
    FYI - Acrobat Reader 4 appears to have some sort of bug in it.
    Once it is installed it will mess up IE5's ability to download by
    clicking on a download link.
    When you click on a link for a download it tries to start Acrobat
    Reader 4 and then the download just fails.
    You can work around this by right-clicking
    on the link and selecting save as. But if it is a button that
    you
    click on to initiate a download you can't do that.
    I have not been able to undo this so if you can I would recommend
    using Acrobat Reader 3
    nirali (guest) wrote:
    : Hi!
    : I dont have answer for your ???
    : But I have one ??? for you if dont mind.
    : I could not get PDF output in IE5. Please let me know
    : what preferences I have to change on IE5 to get PDF output.
    : Thank You
    : Nirali
    : Dennis Lunt (guest) wrote:
    : : I am currently using WEB.SHOW_DOCUMENT to run Reports with
    : : Developer Server. It is outputing as a PDF in IE5. It
    works
    : : great. But I have a security concern. The report has to
    know
    : : who the current user is to properly fill in some
    parameters. I
    : : use the GET_APPLICATION_PROPERTY in Forms to get the USERID
    and
    : : PASSWORD. These get passed to the browser as part of the
    : : visible URL when the report is output as a PDF in the
    browser.
    : : I would like to hide the browsers address bar for these
    : reports.
    : : Is there a way to do this?
    : : Thanks for any suggestions in advance!
    null

  • ITSmobile service pass system/port/client dynamically in the URL

    Hi all,
        The ITSmobile service we have created redirects to another service in different server using ~redirectURL.
    so the ~redirectURL =  http://splhrd398.baplc.com:8005/sap/bc/gui/sap/its/zdemo_mobile?sap-client=150
    is there anyway to pass
    system : splhrd398.baplc.com ( This is the name of  the different server)
    port no: 8005
    sap-client=150
    dynamically in the URL.
    because when we transport the same to Testing and production. i need to know whether we have to do manually .
    If you have  any option to do  dynamically let me know.
    please throw some light,
    thanks  in advance
    Deepak

    Hi ,
    Create a technical system and bussienss system of type WEB AS ABAP and use this bussiness system for source system in XI and try it.
    Thanks & Regards,
    Sekhar

  • Help: Passing parameter to WEB.SHOW_DOCUMENT problem.

    In the following sample code:
    DECLARE
    rep_url varchar2(2000);
    BEGIN
    rep_url:=‘/reports/rwservlet?server=repserv10g@fnimphiu-pc&report=reptest.rdf’
    ||’&desformat=htmlcss&destype=cache&userid=scott/tiger@orcl’
    ||’&p_deptno=10&paramform=no’;
    WEB.SHOW_DOCUMENT(rep_url,’_blank’);
    END;
    Instead of hard coding, I tried to pass a made assignment to &p_deptno by writing:
    &p_deptno=:PARAMETER.p_depno
    where :PARAMETER.p_depno is an existing parameter with value. It does not work.
    Any suggestions?
    Thank you in advance.
    Jimmy

    Not sure if this is what you want, are you trying to hide the value or just assign it when web-show_document is called:
    rep_url:=‘/reports/rwservlet?server=repserv10g@fnimphiu-pc&report=reptest.rdf’
    ||’&desformat=htmlcss&destype=cache&userid=scott/tiger@orcl’
    ||’&p_deptno='||:PARAMETER.p_deptno||'&paramform=no’;
    WEB.SHOW_DOCUMENT(rep_url,’_blank’);
    You will see the value in the URL, but it will populate the value when web.show_document is called.
    Richard

  • Problem when using WEB.SHOW_DOCUMENT and passing in lexical parameter

    Hi,
    I got a blank page with error "An error has occured while trying to use this document" when I tried to use web.show_document and passing a lexical parameter to 10g report on 10gAS. The URL in the web.show_document is:
    http://<srvname>:<portnum>/reports/rwservlet?server=repserver90&report=myrpt.rdf&destype=Cache&desformat=pdf&userid=<usr>/<pw>@<db>&where_clause=where%20product_type%20in%20('REPORT')
    If I change the desformat to htmlcss, it is fine to display the report. But doesn't work with desformat=pdf. The pdf file has been generated in the cache. Why can't it display on the screen.
    Also I tried to use double quote the value for where_clause. The pdf report showed up. But it ignored the where clause.
    Experts please help.
    Ying

    I use lexical parameters and they work fine, but I use a parameter list. The code is contained in a form that is called by all forms that wish to run a report. This way you only need the logic for printing in a single form. If you want the form, email me at [email protected]

  • Disabling Weblogic's http server port - Using an external web server

    Hi,
    We are using Weblogic 8.1 as application server and IWS as web server. We have
    siteminder web agent configured on the web server for implementing authentication
    and authorization.
    All our requests first go to the web server which redirects them to the application
    server.
    Since Weblogic itself has a http listen port, user can still send requests directly
    to the application server(which does not have any siteminder configuration on
    it). Is it possible to ensure that all http requests made directly to the application
    server are not processed so that the user is forced to hit the web server first.
    Thanks,
    Akash

    When you say redirect, do you mean you use an HTTP redirect to send it to your
    WLS servers URL? Or do you mean you proxy the requests from the webserver to
    the WLS instance? In the former case, you must expose WLS's HTTP server to the
    clients in order to redirect them to the address and you will not be able to
    stop them from going directly there. In the case of the latter, you can put
    your WLS instance behind the firewall so external users can't get to it. If you
    also need to protect it from internal users you should probably not use
    siteminder as your authentication mechanism. You may be able to configure
    siteminder so that it has to authenticate itself to send requests to weblogic
    and then protect all weblogic resources with that role requirement.
    Sam
    [email protected] wrote:
    Hi,
    We are using Weblogic 8.1 as application server and IWS as web server. We have
    siteminder web agent configured on the web server for implementing authentication
    and authorization.
    All our requests first go to the web server which redirects them to the application
    server.
    Since Weblogic itself has a http listen port, user can still send requests directly
    to the application server(which does not have any siteminder configuration on
    it). Is it possible to ensure that all http requests made directly to the application
    server are not processed so that the user is forced to hit the web server first.
    Thanks,
    Akash

  • Passing parameter to Called form through Web.Show_document.

    i am calling a form say 'form2.fmx' from 'form1.fmx' using web.show_document. the parameter is concatenated with the URL string properly but this parameter is not accessible in the called form.
    Please Help
    thanks

    i am running forms Of 10G developer suit. i want to call and pass a parameter
    'emp_no'(employee no) to a form say 'form2.fmx' from the form say 'form1.fmx' on button
    click. so i have created a parameter named "emp_no" in the object navigator of "form2.fmx".
    in form1.fmx, i am using web.show_document(URL) function as given below.
    web.show_document('http://111.111.111.11:8889/forms90/f90servlet?form=form2.fmx&emp_no=7156&userid=scott/tiger@mysid','_blank');
    This function successfully call the "form2.fmx" but in this form the value of parameter
    "emp_no" is null even when i have passed it in the URL (as shown in the above code line)
    i.e; the value of emp_no is null.
    Note :
    7156 is the value of emp_no parameter.
    111.111.111.11 is the supposed ip address. etc.

  • 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

Maybe you are looking for

  • SharePoint Foundation 2013 - Master Pages

    I am trying to create a SharePoint Intranet site but am quickly running into a number of issues and am looking for help. I need to create a site that has multiple subsites (one for each department) however all of the subsites need to have a consisten

  • Happy 6th birthday to my internet woes

     -:MY BT PROBLEMS:- If you wish to skip to the current problem at this precise time feel free to skip down, I just thought if I provide everything then there's a greater chance someone might see the problem. The red writhing contains the current prob

  • I want to configure my email live adress in my iPhone

    I'm trying to configure my email account in my iPhone but I couldn't. I try to make it with exchange and outlook. Could somebody tell me how I have to configure it my email address is live.com.mx

  • Newbie question but need some advice!!!

    Hi, I Have Flash CS3 and am constructing an SWF for a presentation that will be shown on a TV The presentation is a large video file with audio already edited and finished Additionally i need a news ticker across the bottom of the screen to disaply s

  • Airport Extreme, need old firmware, help

    I have an airport extreme and I need to revert back to an older version of the firmware. Specifically I need the 7.2.1 firmware. A link is here, http://support.apple.com/kb/DL218  And it does not work... Where can I find a copy of that specific firmw