on 07-06-2012 1:10 PM
Hi All,
Currently the scenario is, we are using a Function Library to call the BRFPlus service using the SOAP Adapter channel containg the SOAP URL of the service to be called. It is working properly.
But the issue is with the getChannel function, In this function, the parameters used are Service and the channel name.
The channel name is same across all the systems i.e Dev, Quality and Production, But the Service name is different. It is a little tedious to go in every environment and change the service name.
So, 1 option that we thought of was to use Value Mapping and check if the PI system is Dev system then use the Dev system Service for BRF call and similarly for Quality and Production i.e put in 3 conditions.
I being new to PI have not used Value Mapping till date.
Request you to please help me with how I can use the Value Mapping to satisfy the above issue. Please tell me if there are any questions.
Thanks and Regards,
NehaSingh
Hi Neha,
At first you should know in mapping runtime where PI enviroment is executing and later to use the value mapping to decide the service. You could check this wiki http://wiki.sdn.sap.com/wiki/display/XI/Value+mapping
To know your PI enviroment you can use PI constants if you for example change any parameter in each enviroment. There are some ways to access http://scn.sap.com/docs/DOC-3530
To know the machine you can use the next java code:
InetAddress addres = InetAddress.getLocalHost(); | |
String host = addres.getHostAddress(); |
Regards,
Message was edited by: Iñaki Vila
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We used value mapping and the constant for PI system to satisfy the requirement.
Thanks and Regards,
NehaSingh
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.