Skip to Content
Former Member
Jul 23, 2010 at 05:22 PM

environment dependant variables



I have integrated a web service call into our B2B/B2C system. During development I hard coded the URL of the webservice into my class. This URL is for the Dev system of the provider. I would like to set the customizations to uses the correct URL for each environment (Dev B2x -> Provider Dev URL, QA B2x -> Provider QA URL, etc)

What is the best approach to accomplish this? Check for SAP System name (ie, ERD, ERQ,ERP) and use appropriate URL? Is there a way to add custom fields to XCM and reference them in the code (I like this idea the most, since we would be able to enter the URL for the Dev/QA/Prod into the respective XCM, but do not know if its possible or how to do it..)?

Thank you for your help