Move Web service from one server to another

Hi
        i am calling a web service from R3 which i have moved from one server to another what i need to do in my web dynpro application as it will call the web service from new location?
do i need to rebuild the whole application or need to change some settings here and there?
NOTE: webservice and function module of the web service is not changed just moved from one server to another.
THANKS
Ninad

Hi,
  Try with this code. Dynamically Server will get change.
Create a HTTP Destination in visual administrator which stores the server name and port.
String prefixURL = "http://";     
// your Service Address...remove the first part from service url.
String serviceURL = "/TestService/Config1?style=document";
DestinationService dstService = (DestinationService) obj;          
Destination destination = dstService.getDestination("HTTP","ApplicationServer");
Properties destprop = destination.getDestinationProperties();
HTTPDestination httpDestination = (HTTPDestination) destination;
String serverName = httpDestination.getUrl();
prefixURL = prefixURL + serverName;
String testURL = prefixURL + serviceURL;
Request<Obj> testReq = new Request<Obj>();
testReq._setEndPoint(testURL);
You need to import below files into your project.
import com.sap.security.core.server.destinations.api.Destination;
import com.sap.security.core.server.destinations.api.DestinationService;
import com.sap.security.core.server.destinations.api.HTTPDestination;
import java.net.HttpURLConnection;
import java.util.Properties;

Similar Messages

  • How can you move the objects from one server to another?

    how can you move the objects from one server to another?

    Hi,
    Collecting objects for Transporting
    1. rsa1->transport connection
    2. left panel choose 'object type', middle panel choose 'infocube' and 'select objects'
    3. then choose your infocube and 'transfer'
    4. will go to right panel, choose collection mode 'manual' and grouping only 'necessary objects'
    5. after objects collection finished, create request
    6. If they are $TMP, then change the package.
    7. When you click the Save on the change package, it will prompt for transport. Here you can provide an existing open transport request number, or if you like here itself you can create a new one.
    8. You can check the request in SE09 to confirm.
    Releasing Transport Request  
    Lets say you are transporting from BWD to BWQ
    Step 1: In BWD go to TCode SE10
    Step 2: Find the request and release it (Truck Icon or option can be found by right click on request #)
    Note: First release the child request and then the parent request
    Steps below are to import transport (generally done by basis )
    Step 1: In BWQ go to Tcode STMS
    Step 2: Click on Import queue button
    Step 3: Double Click on the line which says BWQ (or the system into which transport has to be imported)
    Step 4: Click on refresh button
    Step 5: High light the trasnport request and import it (using the truck icon)
    Transport
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b5/1d733b73a8f706e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/0b/5ee7377a98c17fe10000009b38f842/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/224381ad-0701-0010-dcb5-d74236082bff
    Hope this helps.
    thanks,
    JituK

  • I need a shell script to move latest archivelogs from one server to another server..

    Hi,
         I need a shell script to move latest archivelogs from one server to another server..
    Thanks&Regards,
    Vel

    ea816fb9-f9ea-45ac-906f-36a8315970d0 wrote:
    Thanks it's really helpfull..
    Now i have pasted a shell script which generates archivelog and shows latest archivelog time..
    just check let me know the answer, that how i need to execute it..
    # Force a logswitch to get the last archivelog to the standby host
    ORACLE_SID=ORCL
    ORAENV_ASK=NO
    . oraenv >/dev/null 2>&1
    SwitchLogfile()
      # Do logswitch 
      RESULT=`echo "Alter system switch logfile;" | sqlplus -S / as sysdba | grep 'System altered'`
      if [ "$RESULT" = "System altered." ]
      then
      export RETURN=1
      else
      export RETURN=0
      fi
      # Do we need to do something with this return value?
      export RETURN
    GetArchiveTime()
      CURYEAR=`date +%Y`
      echo "set heading off;" > temp.sql
      echo "set termout off;" >> temp.sql
      echo "select to_char(first_time,'YYYY-MM-DD HH24:MI:SS') from v\$archived_log where sequence#=(select sequence# - 1 from v\$log where status='CURRENT');" >> temp.sql
      sqlplus -S / as sysdba <
    spool tempres.txt
    @temp.sql
    quit
    EOF
    cat tempres.txt | grep ${CURYEAR} | grep -v grep | awk '{print $1" "$2}'
    #rm -f temp.sql  tempres.sql
    SwitchLogfile
    GetArchiveTime
    You seem to have ignored Dude's VERY good advice and continue to press down this ill-advised path.  If you continue this approach, you WILL have problems at the very time you do not need any additional problems.  Trying to recover your production database at 2:00 in the morning is not the time to be getting errors from rman because it can't find what it needs - because you decided to move them around yourself.
    Please reconsider.

  • Moving services from one server to another

    Hi all,
    I moved Access Database Services and Excel Services from one app server to another app server by starting those services on the new server and stopping them on the old one. However, in the app logs and ULS, SharePoint errors out cuz it still tries to make
    the calls to the old server. Why is this? I did the iisreset on the old server, but it made no difference. What am I missing?

    Hi ,
    According to your description, my understanding is that you got an error when you moved Access Services and Excel Services from one server to another server.
    As Trevor said, please do an IISRESET on the new server, and compare the result.
    Please restart the new server running Access Services and Excel Services applications. If restarting the server does not correct the problem, confirm that the hardware of the server is functioning correctly, or reinstall Access Services Application
    and re-add the server to the server farm.
    Here are some similar posts for you to take a look at:
    http://technet.microsoft.com/en-us/library/ee513104(v=office.14).aspx
    http://answers.flyppdevportal.com/categories/sharepoint2010/sharepoint2010setup.aspx?ID=dc48676c-43f6-45f9-ab46-2ed6515c9660
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Move a database from one server to another

    Hello All,
    I am using Oracle 11g R2 on Oracle Enterprise Linux 32 bit.
    I have 2 servers , LinuxActive and LinuxPassive. I am trying to dismount the file system of the datafiles and control files ... from one server and mount it on the other.
    I previously opened a thread here concerning this subject and reached a result that it can be done, now i have questions about the details.
    I have installed Oracle software on both servers where ORACLE_BASE is /u01/app/oracle and ORACLE_HOME is /u01/app/oracle/product/11.2.0/db_1 on both servers.
    I created an orcl database on LinuxActive where all its datafiles, control files, redo logs, flash_recovery_area is on a disk group mounted under /oradata.
    I want to dismount /oradata from LinuxActive and mount it to LinuxPassive and start up the orcl database from LinuxPassive instead of LinuxActive.
    I may need to revert back /oradata to LinuxActive.
    What steps should I do? should I migrate my spfile also to /oradata?
    Should I create an orcl database on LinuxPassive?
    Do I start up my database like i do when i build an Oracle dataguard database ? from a pfile of the old database?
    Regards,
    Edited by: NB on Feb 27, 2012 5:25 PM

    NB wrote:
    Hello All,
    I am using Oracle 11g R2 on Oracle Enterprise Linux 32 bit.
    I have 2 servers , LinuxActive and LinuxPassive. I am trying to dismount the file system of the datafiles and control files ... from one server and mount it on the other.
    I previously opened a thread here concerning this subject and reached a result that it can be done, now i have questions about the details.
    I have installed Oracle software on both servers where ORACLE_BASE is /u01/app/oracle and ORACLE_HOME is /u01/app/oracle/product/11.2.0/db_1 on both servers.
    I created an orcl database on LinuxActive where all its datafiles, control files, redo logs, flash_recovery_area is on a disk group mounted under /oradata.
    I want to dismount /oradata from LinuxActive and mount it to LinuxPassive and start up the orcl database from LinuxPassive instead of LinuxActive.
    What steps should I do? should I migrate my spfile also to /oradata?
    Do I start up my database like i do when i build an Oracle dataguard database ? from a pfile of the old database?
    Regards,Thanks for your detailed information.
    RMAN duplicate will be simpler.
    As you are in 11g, you can perform duplicate from active database.
    Create PFILE in new location,
    Change "CONTROL_FILES" parameter to new mounpoint.
    Perform RMAN duplicate
    In both the cases you have to take care of parameters, DB_FILE_NAME_CONVERT & LOG_FILE_NAME_CONVERT.
    Refer some links
    How to Move/Restore DB to New Host and File System using RMAN [ID 1338193.1]
    http://docs.oracle.com/cd/B28359_01/backup.111/b28270/rcmdupdb.htm#CHDJJBCF

  • Move CF Application from one server to another

    I have built and configured a new CF 9 server and used a .car file to deploy donfigurations.
    How do I Move CF Application from the old server to the new server?
    thanks you

    Rick, isn't this just another way of asking the same question you did a couple of days ago?
    Migration CF Application to a New Server
    http://forums.adobe.com/thread/794823?tstart=0
    I offered an answer there but never heard back from you.
    /charlie

  • How to move EP installation from one server to another server

    Hi All,
    we have a EP server installed. Now we have to move this EP instance onto a different machine. The source and target hardwareosDB would be the same.
    Can some one tell me how to do it.
    Is Homogeneous System Copy a solution for this. Or I have to install a new EP instance on the new server and then copy the contents from the old EP instance?
    If I move the EP instance to the new server then will the portal run normally without any error or will i loose it and have to install it again?
    thanks
    PK

    Hi,
    Q1: Is Homogeneous System Copy a solution for this.
    A1: Yes it is, its quick and works good now a days... (one small remark, I don't know if it still is true but System Copy with 6.40 required that the SID of the Source and Destination could not be the same, so if someone can fill me in on that?)
    Q2: Or I have to install a new EP instance on the new server and then copy the contents from the old EP instance?
    A2: Also a solution but, takes a bit more time and when you want a clone then you need to know exactly what was done when installing the inital system.
    Cheers,
    Benjamin Houttuin

  • Script to move data recordings from one server to another automatically

    Hi,
    I have windows server 2003 enterprise edition. The purpose of the server is to record the CCTV footage's and store them on the local hard drive. Currently we are manually copying the recordings to another server using the below script.
    **********ROBOCOPY f:\sourcefolder \\destinationserver\path\  /E /COPYALL /R:1 /W:5 /NP (which is working fine but takes longer time to copy huge files)************
    We want to automate this manual process using scripting (eg. a bat file / powershell script). Kindly suggest on the ways to implement it or how to proceed from here. I am not well versed in scripting and any suggestions would be greatly appreciated.
    Thank you.

    Hi,
    You can stick with robocopy if you're comfortable with it (and it's easy to schedule). Look into the /mon and /job switches:
    http://ss64.com/nt/robocopy.html
    Don't retire TechNet! -
    (Don't give up yet - 12,575+ strong and growing)

  • [Help] Move ECC system from one server to another - Considerations

    Hi Guys
    We currently have two SAP ECC 5.0 Instances over DB2 9.7/AIX 6.1 on a same server (WS01), and now we are splitting this, by leaving Development box on WS01 and moving QA to WS08
    What would you think/recommend the best approach to fulfill this requirement
    Im taking in mind such things like, transport system, RFC connections, Database and SAP Profiles
    What steps would you think are mandatory to have QA system fully working on a brand new server
    Is an option to install an system from scratch on that new server (WS08), and they restore the actual database and perform the post processing steps just like a refresh, and then adding that system to the actual ECC landscape
    Best Regards
    Martin

    > We currently have two SAP ECC 5.0 Instances over DB2 9.7/AIX 6.1 on a same server (WS01), and now we are splitting this, by leaving Development box on WS01 and moving QA to WS08
    >
    > What would you think/recommend the best approach to fulfill this requirement
    >
    > Im taking in mind such things like, transport system, RFC connections, Database and SAP Profiles
    >
    > What steps would you think are mandatory to have QA system fully working on a brand new server
    This process is called "system copy".
    > Is an option to install an system from scratch on that new server (WS08), and they restore the actual database and perform the post processing steps just like a refresh, and then adding that system to the actual ECC landscape
    It's an option but not necessary to first install a full featured system and then "overwrite" the database.
    You can install a new system using the database backup of the original system.
    http://service.sap.com/instguides
    Markus

  • Move Web Pages from one mac to another

    Hey
    I have a website created and published on my MB Pro uisng Iweb'08. I want to continue all my website work going forward on my Mac Pro. Is there a procedure one needs to follow to make the transfer smooth?
    Thanks
    Rpk

    Hi Rpk,
    have a look at the following page:
    http://alyeska.altervista.org/en/iWebTransferSite.html
    Also read Note1 of that page.
    Regards,
    Cédric

  • Issue in migrating analysis service job from one server to another

    Hi All,
    I'm migrating analysis services from one server to another, within the source server there is a job with the name
    denreportingprocess which executes a batch file within local drive on server. I have moved all the analysis services cubes from the source server to destination and all the databases on the source server have been restored to destination.Verified
    cubes are pointing to the correct database by modifying the connection string within the datasource part of the cube databases.
    I have copied the entire process folder from source to destination and edited the code within the run file and code within the job pointing the locations to new server.
    Below is the job code, it is running a batch file placed in E drive
    E:\MSSQL10_50.MSSQLSERVER\process\run.cmd
    Below is the text within the batch file (windows command script)
    E:\MSSQL10_50.MSSQLSERVER\process\ASCMD -S "servername" -i "E:\MSSQL10_50.MSSQLSERVER\process\Process.xmla"
    -o "E:\MSSQL10_50.MSSQLSERVER\process\Log.txt"
    Below are the list of files within the folder E:\MSSQL10_50.MSSQLSERVER\process
    ASCMD
    process.xmla
    Logs.txt
    run
    When I run the job it is failing with below error message
    Ascmd: Exception trying to impersonate user: Access to the path 'E:\MSSQL10_50.MSQLSERVER\process\log.txt' is denied.
    Ascmd: Execution failed: Access to the path 'E:\MSSQL10_50.MSQLSERVER\process\log.txt' is denied.
    Thanks in Advance.
    Regards, Kranthi

    Hi Visakh,
    Thanks for the reply, I have mapped the account under which the job was running to D drive, now it can access the file but job is still failing and error is not that informative.
    Below is the error message with which the job is failing, where can i find this output file with errors
    Executed as user abc_agent. C:\Windows\system32>E:\MSSQL10_50.MSSQLSERVER\process\ASCmd -S "servername" -i "E:\MSSQL10_50.MSSQLSERVER\process\process.xmla" -o "E:\MSSQL10_50.MSSQLSERVER\process\Log.txt"   Microsoft
    (R) Analysis Services 2008 Command Line Tool  Version 10.0.87.5 X86  Copyright (C) 2008 Microsoft Corporation.  All Rights Reserved.Ascmd: Check the output file for errors.  Process Exit Code 1.  The step failed.

  • How to move folders from one server to another serve using unix command

    Hi All,
    How to move the folders from one server to another server using unix command.
    scp -r armops@sjarmprd01:/ARM/scripts [email protected]:/ARM/scripts/
    but it is giving an error like not a regular file .. what it means .. please let me know if any one knows about it
    Thanks
    Sreedhar

    not a regular file .. what it meansProbably you have some fifo (named pipe) files...
    Said that this has nothing to do with database (you should post on some nix forum, for example http://forums.oracle.com/forums/forum.jspa?forumID=135), you may try rsync* command (man rsync).

  • Best Way to Migrate an application from one server to another

    I couldn't seem to find the best way to this by Googling. If you have two instances of Sun Web Server 7, and you want to migrate a web application from one server to another, what is the best way to that?

    I am sorry. My question was poorly worded after some hours of frustration. What I am really trying to do is develop a base virtual machine snapshot with Sun Web Server Loaded and a base set of applications.
    When the need arises, I need to deploy another VM and start it up. There seems to be some issue with the host name of the VM and the administration server, or something. It is my impression that as longs as I have everything contained in one directory like /webserver, I should be able to copy everything to a new machine and start it up. I know I need the listeners listening on all ip addresses and the jdk being used would need to be in that directory as well. Is there anything I am missing here or that I need to watch out for?

  • How can I move the ODI Work Repository from one server to another server?

    How can I move the ODI Work Repository from one server to another server?

    Hi,
    If you would like to move your source models, target models and project contents from Work repository 1 to another work repository.
    I.e. Dev. server to Prod Server.
    1. Firstly, replicate the master repository connections i.e. with same naming conventions manually
    2. Go to Dev. Server work repository -> File Tab -> Click on Export work repository (save it in a folder)
    3. After exporting, you can view the xml files in the folders.
    4. Now, Open the Prod. server and make sure you already replicated mas. rep. details.
    5. Now, right click on model and import source model in synonym mode insert_update (select source model from the folder where your xml file located)
    6. Similarily, import again target then Project.
    Now, check. It should work.
    Thank you.

  • Move VM from one server to another using Local Repositories

    There is the following structure:
    ovhost-01 with first_repo
    ovhost-02 with second_repo
    Oracle VM version: 3.1.1
    Both first_repo and second_repo are Local Repositories.
    On ovhost-01 I have VM named "TestOVM" with status Stopped .
    Task:
    Move VM from ovhost-01 to ovhost-02 using "Clone or Move" section from VM Manager ( http://docs.oracle.com/cd/E27300_01/E27309/html/vmusg-vm-manage.html#vmusg-vm-move )
    Whenever I try VM moving virtual disk stays on the first_repo.
    With shared NFS-storage this feature working well.
    Question:
    Is it possible to move VM from one server to another with Local Repositories ?

    Neither ovhost-01 nor ovhost-02 have access to each other. It move or copy... the admin server that is connected to the local repository would have to have access to the target repository.

Maybe you are looking for

  • Color Management in Lightroom 4

    By default, Lightroom uses the Pro Photo color space "with the same gamma curve as sRGB," according to something I read somewhere. Now Pro Photo is a very wide color space, wider than any monitor can display - even my wide-gamut (Adobe RGB) monitor.

  • Need help in Module Programming

    Hi Friends,           Can anyone send me the step by step document for creating a module program. It will be helpfull even if you send me sample code for creating a module program. Regards, Ranjith

  • Better method than using a large number of shift registers?

    I'm trying to work with example code provided free by stanford research systems (http://www.srsys.com/downloads/soft.htm). Their example software alows the user to run an analog scan across 100 masses (the x axis) which progressively produces a graph

  • Regarding   Reinitialization in LO-extraction

    hi guyz, what is Reinitialization ? In general, when we use Reinitialization ? In which scenarios' we can go for it...........Can u people explain with good example.(Especially with LO-cockpit)

  • Saving an Image

    Hi i have got a problem i'm writting a program that reads in a image, get the image pixels, alter the pixels and then write the image back out again. the problem is that when i write it back out the image goes from colour to gray scale and also when