How to change a Logical Port URL-Destination/Endpoint at Runtime

Hi,
i am looking for a way to change the endpoint for a webservice-call without redeploying my application. (I am using a standalone-proxy).
In the SAP-Help from NetWeaver 2004s I found the following hint:
http://help.sap.com/saphelp_nw04/helpdata/en/9f/c487d701c7214db8ca7a741ba3c9d0/frameset.htm
Configuring Logical Ports:
Logical ports (LPs) contain the configuration of the client-side SOAP runtime, such as the access URL or security settings. These are required if Web service calls are executed using proxies.
The Web service port is part of the WSDL description. This defines a URL where the service is to be called. As a rule, this URL is generated directly into the proxy object. However, this can cause problems whenever the proxy is transported into a system landscape (for example, from the test system into the productive system). In this case, the proxy would still attempt to call the Web service on the test server although the proxy should point to the productive system. The proxy could be re-generated or the coding could be changed manually. Due to the risk of errors with this method, the configuration data in the SAP Web Service Framework is separated from the implementation. After transport or re-deployment of the proxy, the URL and other important parameters can be adapted using a simple editor. 
The LPs provided correspond to the Web service configurations created for the Web service.
My Question:
Where can I change the URL of the corresponding logical port at runtime?
I don't want to redeploy my application !!!
I want to change the endpoint-destination at runtime!!!
In the Visual Administrator I can see the webservice in the "Web Services Container Service Administration". I also can see the different ports from the WebService-Configuration I made.
http://help.sap.com/saphelp_nw04/helpdata/en/9f/c487d701c7214db8ca7a741ba3c9d0/frameset.htm
But it is not possible to change the "target adresses"!
Can anybody help me finding a solution concerning my question?
Regards
Steffen

You can include below method in your code and call it.
private void UpdateConfig(string key, string value, string fileName)
var cFile = ConfigurationManager.OpenExeConfiguration(fileName);
cFile.AppSettings.Settings[key].Value = value;
cFile.Save();
Here fileName is the full path + application name (eg: c:\project\WinApp.exe)
Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer :)

Similar Messages

  • How to change the default port of webdispatcher

    Hello Everyone,
    We wish to  know to how to change the default port of SAP webpatcher port from 81$$ to 80.
    Appreciate your response.
    Thanks,
    Vadi

    Hello Vadi
    you have to change the PORT value in your profile parameter from 81$$ to 80
    icm/server_port_0 = PROT=HTTP,PORT=81$$ to
    icm/server_port_0 = PROT=HTTP,PORT=80
    Also, in SMICM, then change http service port and activate it and above parameter will require SAP restart
    $$ is used generally to accomodate multiple port services running in SMICM and so as to avoid the parameter setting according to instance number of any system.
    thanks
    Bhudev

  • HT3625 How to change the audio port function (input, output) on OSX 10.9.2 !!!! :(

    The thing is that i saw some videos, and search for options of how to change the audio port.  And even apple says that i have to change it from system preferences, but when i try to change it, the option doesn't appear me.

  • How to change value dynamically in URL?

    Hi All,
    This seems to be a really easy yet I cannot find a working solution!
    I have a report where one column is a link which passes the following:
    f?p=&APP_ID.:28:&SESSION.::&DEBUG.:RP,:P28_PROCS_ID,P28_PROCS_VER:#PROCS_ID#,#PROCS_VER#
    What I would like to achieve is that the #PROCS_VER# variable is incremented by one like this:
    f?p=&APP_ID.:28:&SESSION.::&DEBUG.:RP,:P28_PROCS_ID,P28_PROCS_VER:#PROCS_ID#,#PROCS_VER#+1
    However this will not work and only displays the actual value behind PROCS_VER and appends '+1' to it...
    Any ideas?
    Pawel.

    I did think about it Vikas...
    Ofcourse I am not expecting the value to be magically calculated by Apache. But I was expecting the HTMLDB to be smart enough to evaluate the expression before it creates the URL string....
    If Apex can 'convert' or 'translate' my entry #PROCS_VER# into an integer like 123 then why couldn't it simply perform a simple calculation and add a 1 to it?
    All is missing here is that Apex is simply not able to perform ANY math before it blindly copies the "value" hidden under #PROCS_VER# into the string which builds up the URL...
    Also in another post by Scott (Re: How to pass a "+" in an url ? I saw that %2B was evaluated into a plus sign in a URL...

  • How to change the listener port number on a standby database

    i want to change the listener port number from 1525 to 1545, which is running on a standby database.
    i did the following steps and got some error.
    1. i stop listener and modfy listener.ora
    2. i login in standby DB and issue 'alter system set local_listener='(address=(pro=tcp)(host=10.10.10.10)(port=1545))';'
    3. i login in dg broker and issue 'edit database 's1' set property 'LocalListenerAddress'='(address=(pro=tcp)(host=10.10.10.10)(port=1545))';' and a error coming out ORA-16703: cannot set the property while the database is enabled
    4. then i disable database
    DGMGRL> disable database 'ssmscs';
    5. DGMGRL> edit database 's1' set property 'LocalListenerAddress'='(address=(pro=tcp)(host=10.10.10.10)(port=1545))';
    Error: ORA-16541: site is not enabled
    Configuration details cannot be determined by DGMGRL
    what can i do ? can anybody help me out? thanks in advance.
    Edited by: user1835127 on Nov 19, 2008 2:09 AM

    Hi
    You have to edit the following files in $ORACLE_HOME/network/admin or $TNS_ADMIN/ :
    In your listener.ora on your standby
    MQ_LIST =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = superman.dk)*(PORT = 1524))*
    TNSNAMES.ORA (on your primary and standby)
    MQ_LIST =
    (DESCRIPTION =
    (ADDRESS = (COMMUNITY = tcp.world)(PROTOCOL = TCP)(Host = superman.dk)*(PORT = 1524))*
    (CONNECT_DATA = (SID = MQ_LIST))
    after that do
    lsnrctl reload

  • How to change & manage different ports in a mixed web environment (BSP/WAD)

    Hi everybody,
    our scenario is the following:
    We constructed a mixed environment web application, consisting out of a BSP application and WAD web templates. Unfortunately the url of web templates and the bsp-application differs - meaning the server is the same, but the port is different. That's why it is not easy to link the application each other, because for transportation reasons, we would like to have relative url paths.
    After searching the SDN and reading several help files, we found out, that the port of the BSP can be changed by adding an entry to the HTTPURLLOC table.
    See also: [Configuration Table HTTPURLLOC|http://help.sap.com/saphelp_nw70/helpdata/en/42/d547ab30b6473ce10000000a114e5d/frameset.htm]
    We managed to do that and in addition we created a BEX role for our BSP application. But with the new port the BSP does not appear in the browser window. So we still didn't fulfil our requirement to call the BSP in a include item of the WAD without passing the complete URL server:port/sap/bsp/...
    Question: How can we link the BSP out of the WAD environment, respectively is it possible to call the BSP with the same port, being used by the web templates...?
    Thanks for any comments and hints!
    Best regards,
    Sebastian

    Hi Raja and everybody,
    thank you for your comments... meanwhile we just solved the problem by appliying method two mentioned above. Therefore we created a Customer web item class as denoted in [Creating an ABAP Class for the Custom Extension Web Item|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/a1c1237d753ca2e10000000a42189b/content.htm].
    In the Initialize method I constructed the IFrame HTML-Code:
      DATA: serverURL TYPE STRING.
      DATA: serverPort TYPE STRING.
      DATA: bspName TYPE STRING.
      DATA: iFrameURL TYPE STRING.
    * Fetch the BSP port from internal table
      SELECT SINGLE VALUE FROM it_table.
    * Create iFrame URL
      serverURL = 'https://www.sap.com'.
      bspName = 'myBSP'.
      CONCATENATE serverURL ':' serverPort '/' bspName INTO iFrameURL.
    * Create the iFrame Tag
      CLEAR generatedHTML.
      generatedHTML = '<iframe src="%IFRAMEURL%" valign="top" width="100%"/>'.
      REPLACE '%IFRAMEURL%' IN generatedHTML WITH iFrameURL.
    In the execute the code is parsed with the method:
    CALL METHOD cl_bics_cons_webitem_util=>string_2_utf8_xstring
    Many thanks to Raja and everybody else for helping me!
    Sebastian

  • How to change dynamically the Webservice URL

    Hi,
    I added a webservice to my projet from a WSDL.
    As my application needs to fire this webservice towards different servers, I set dynamically the URL in my code. Here is the problem. When I point to the initial server (the one I got the WSDL from), everything is fine. But when I want to fire the webservice toward another machine, my code is not taken into consideration and my application still communicates with the initial server !
    I have something like:
            URL url = null;
            StuffService stuffService = new StuffService(RIOT_url, new QName("http://web.stuff.com/", "StuffService"));
            Stuff stuffPort = stuffService.getStuffPort();
            try {
                url = new URL("http://localhost:3337StuffService/Stuff?wsdl");
            } catch (MalformedURLException ex) {
                Logger.getLogger(Page1.class.getName()).log(Level.SEVERE, null, ex);
                  //USE THE WEBSERVICEIs there something wrong in my code ?
    Do I need to change some files in the project ?
    Thanks for your help

    This has nothing to do with JSF. Rather post webservice related questions at the webservice forum: [http://forum.java.sun.com/forum.jspa?forumID=331]
    Back to the actual problem, are you using a webservice proxy? A proxy should be able to pick up the URL and port the request.

  • Providing external url for the fqdn for webfeed returns error in eventlog that shows internal url is being used - how to change to the external url?

    I've got my Rdweb accessible on both my internal and external network by using split dns locally to resolve the external url (remote.domain.com/rdweb) to resolve and everything works fine. However users don't want to use the rdweb interface (as it is slower
    than just clicking on a rdp shortcut.
    Following the notes at http://social.technet.microsoft.com/wiki/contents/articles/14488.distribution-of-remote-apps-and-desktops-in-windows-server-2012.aspx - I've tried to set up the webfeed on a Win7+ machine but when I enter the external url that
    is protected by an SSL cert the eventlog shows that the internal address is being used and it doesn't match the certificate. - "There is a problem with this connection's security certificate.
    The remote computer cannot be authenticated due to problems with its security certificate.                        
    Security certificate problems might indicate an attempt to fool you or intercept data you send to the remote computer.                       
    Windows cannot continue setting up this connection. Contact your workplace administrator for assistance.                         
    Connection name:
    Connection URL: https://internalservername/rdweb/feed/webfeed.aspx
    How do I set the servers to use the external address rather than the internal one - i'm assuming it's similar to exchange's
    Set-webservicesvirtualdirectory command but I can't find the equivalent command documented anywhere.
    http://absoblogginlutely.net

    Hi,
    Thank you for posting in Windows Server Forum.
    Please check below mention point. 
    •  Create a relevant DNS entry in the mentioned zone to point to the RDS environment’s internal IP address
    •  Create a relevant DNS entry in external DNS to point to the firewall which is publishing RDS’s external IP address
    •  You can use the below mention script to change the FQDN of the RDP files provided by RD Web Access / RemoteApp and Desktop connection feed. 
    Change published FQDN for Server 2012 or 2012 R2 RDS Deployment
    http://gallery.technet.microsoft.com/Change-published-FQDN-for-2a029b80
    In addition please check below mention thread.
    How do I change the URL to the Remote Web Access server in Windows Server 2012?
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/67dfab70-7e10-4e0b-a3c8-63ce776f2355/how-do-i-change-the-url-to-the-remote-web-access-server-in-windows-server-2012?forum=winserverTS
    Apart from this, also check the settings under; IIS in RDWeb Server as per below mention path.
    Expand the default Website >Pages >Application Settings >DefaultTSGateway >
    Enter the external address (FQDN) of the RD Gateway in the Value Field.
    Hope it helps!
    Thanks,
    Dharmesh

  • Consumer Proxy changes in Logical Port do not work

    Hi all,
    i have created a consumer proxy on ce 7.11 and i want to change the url of the endpoint on my production system. as i am using nwdi i can't change the url in the wsdl.
    when i change the endpoint url in the single service configuration, the changes are not used by the consumer proxy.
    could anybody tell me if he experienced a similiar problem and provide a solution to me ?
    br,
    martin

    I have this same problem with my Satellite C55-B.  Headphone jack and the USB port right next to it both quit working apparently at the same time.  This laptop is only a year old and I have tried loading this driver for the audio jack with no luck.  
    Realtek Audio Driver File: tc40213600i.exe DOWNLOAD Version: 6.0.1.7195 Posted Date: 2014-04-07 (recommended by moderator Peter in another thread)
    So what am I dealing with here?  A hardware issue or a software issue?  Thank you.

  • How to change the nodes open hub destination objects?

    Hi,
    How one can change the nodes of open hub destination objects?
    As there was a need to change the nodes for certain open hubs i wonder how this could be acheived?

    well,
    I have open hub destination object saved under one node ( Yes that is Infoarea only )
    but now i notice that i need to save this open hub under different info area..
    so how can i change the infoarea of an open hub with out deleting and recreating it?

  • How to change Oracle Portal PORT?

    Hi
    I installed Oracle Portal and Wireless.
    But i dont know PORT and URL to access and login to that.
    So What is the url And PORT for portal
    or should i configure any thing?
    thanks
    Pratap Reddy

    Assuming you right-clicked the image and verified that it's pointing to the images virtual path, then did you clear WebCache cache contents (as well as your browser's)?

  • Regrading how to change SLD host port?

    Hi All:
         I'd like to import some product component
    from system landscape Directory, but it fails
    because a wrong host port was assigned to it.
    do you have any idea to change host port. which
      file contain the host port
    Thank you very much!!!

    Hiii Sony !!
    When you run SXMB_IFR transaction or when you run the SLDCHECK transaction.. U can find port no.
    The default port number should be as I stated before.
    Integration Builder Address not maintained
    Check the config in tcode SLDAPICUST. Here u can change :
    for example...
    SLD hostname: is the hostname where SLD is installed. In your case it could be same as solman server name
    SLD port: 5<J2EE instance no>00 (eg. 50000)
    SLD gateway host: is the hostname where SLD is installed. In your case it could be same as solman server name
    OR
    Maintaining SLD Connection Parameters
    1. Log on to the SAP System and call transaction
    SLDAPICUST.
    The screen Maintain SLD Access Data is displayed.
    2. Choose Display<-> Change, and then proceed as follows:
    a. Choose Insert Row.
    b. Enter the connection parameters to the SLD:
    u2212 Host Name: host name of the SLD host
    u2212 Port: HTTP port of the J2EE engine (The following naming convention applies: 5<J2EE_instance_number>00. 50000, for example, if your J2EE instance is 00).
    u2212 User
    u2212 Password.
    c. Set your entry as Primary.Only the Primary marked entry is active.
    d. Save.

  • How to change TCP/IP port number on a HP CM2320 printer ?

    Hi,
    I have a HP CM2320 printer, and would like to be able to print to it from the internet.
    I have set up Port Forwarding of Port 9100 against an other printer, so I can't use the same port.
    My router is a Technicolor TG582N, I tried to setup port Translation from outside port 9102 to inside port 9100 pointing to this printer, but without any luck.
    My question would be:
    Could I change by any means the port number on  the HP CM2320 printer so that it accepts printing on port 9101 or 9102 instead of 9100?
    Thank you,
    Elemer

    Hello elemer82, and welcome to the HP Forums.
    I am sorry, but to get your issue more exposure I would suggest posting it in the commercial forums since this is a commercial product. You can do this at the LaserJet Commercial Forums..
    I hope this helps!
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • How to change All Human workflows urls in from machine name to IP Address

    I've installed oracle BPM server and when I've deployed my bpm processes i've found that all human workflows URLs are maaped by machine name.
    Hostname = "Machine Name" not the ip.
    I know that i can go inside each task and replace the name with the ip but i have a lot of processes and a lot of human workflows.
    is there any way to replace all machine name in these human workflows URLs with the server ip address. and I need the new deployments to be with the ip not machine name.

    Wouldn't it be easier to add the machine name to the dns server or the servers hosts file?
    What do you do if the IP of the host changes?
    Have you looked into the deployment plan? That's the location to change such things when deploying applications.
    Timo

  • How to change series/groups of a DVT graph at runtime?

    With my scenario, I would like to bind a graph with a dynamic query. "Dynamic" means the query constructed at runtime. So I want to detrmine the series and groups of a DVT graph at runtime. I.e., I want to do this with Java programatically.
    I read some articles and tutorials but have not found a topic on this. I think this should be a common requirement. Anyone can tell me how to do this? Thanks.

    Are you using ADF BC and data binding or regular JSF binding?
    For the first one you can try and create a VO with columns a,b and then at runtime change the VO definition similar to how it is done here:
    http://blogs.oracle.com/shay/2010/10/adf_faces_dynamic_tags_-fora.html
    (but keeping the synonyms for the columns constant).
    For case B - you just need to change the collection data that you pass to the graph.

Maybe you are looking for

  • Click Wheel Ipod says "needs software update", won't connect

    help!!! thank goodness i found this forum. I hope you can help me. i have a 20 GB dock-connector ipod running through a standard USB windows XP computer. it worked wonderfully up until i updated to itunes 6 last week. now it has multiple problems: 1)

  • New Features for OWB 9.2

    Mark Van De Wiel mentioned yesterday in this forum that OWB 9.2 is now available at http://otn.oracle.com/software/products/warehouse/content.html . From the version number it would appear that this is a major new release, and it's a separate install

  • Lightroom and Photoshop scripts

    Is there an easy way from lightroom to export a file to a photoshop script (e.g. xxx.jsx) such that the desired action in photshop can be scripted ?  I know I can export to photoshop and edit, then run the script -- just wondering if this can be done

  • Navigation and IP

    I finally have my IP working. I am using it on Page 1 of a 4 page set portlet. Each page in this set has links to the other 3 pages. From page 1, I do some validation in the IP and move to page 2. However, after doing that, I am getting two errors -

  • Forwading email Attachment problem

    HI All,      I Have a problem in my email. When i forward email with attachment email will duplicate massage body.      what can i do in this problem.      Thanks and God Bless