on 04-16-2009 5:07 PM
Hi experts:
I have an RFCs --> XI --> SOAPs scenario. The URLs for SOAPs are always like "http://server:port/directory/xxxxxxx" and only changes "xxxxxxx". The user/passord is the same for all URLs.
My question:
There is some way to configure dynamically the URL? I have tried to use DynamicConfiguration but I must write all the URL in each (java) mapping. Server and port will change when I transport to the productive systems so I'm interested in maintaining the basis URL on the communication channel by adding the last part dynamically
Thanks
> My question:
> There is some way to configure dynamically the URL? I have tried to use DynamicConfiguration but I must write all the URL in each (java) mapping. Server and port will change when I transport to the productive systems so I'm interested in maintaining the basis URL on the communication channel by adding the last part dynamically
>
> Thanks
use dynamic configuration itself.
in your case you will have different values for different env. i.e Dev, Qa and PRD so in the code you can check what is the current sap system (based on SID) and write the logic
ex.
// Assume XID is Dev, XIQ is QA etc
String sysName = (String) System.getProperty("SAPSYSTEMNAME");
if(sysName.equals("XID"))
{
//your logic here
}
else if(sysName.equals("XIQ"))
{
//your logic here
}
else
{
// your logic
}
the above code will help you get the SID and based on it you can set the url via dynamic conf.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.