Expand my Community achievements bar.

How to make/edit custom variables as configurable

Avatar

Level 7

Hi,

I want to edit the WebServiceSettingBean custom variable as configurable parameter. Please let me know.

i have to change everytime wsdl url in invoke webservice acitivity whenver my code is deployed to different server.

i want to configure wsdl url using adminui. Please let me know how do i do it

Thanks in Advance for any help.

Regards

Sunil

3 Replies

Avatar

Level 10

You cannot make WebServiceSettingsBean variable configurable through Adminui.

However, you can have a String variable as configuration parameter that holds WSDL URL. 

Using this variable you can populate the WebServiceSettingsBean within the process.

Makes sense?

Nith

Avatar

Level 7

Hi Nith,

We can not use WSDL URL, because it fetches other parameters (like request/ response xml) and papulate in other variables.

I had already tried this before posting but it didnt work.

Regards
Sunil

Avatar

Level 4

Create a string parameter cfg_TgtURL and specify it as a Configuration Parameter.

Create a WebServiceSettingBean parameter and populate the WSDL URL (Dev env) and other info (Port, Target URL, Op)

In your WF process before you inovke your web service add a SetValue activity.

Set the mapping..

Location = /process_data/WebServiceSettingBeanParameter/object/@targetUrl

Expression = /process_data/@cfg_TgtURL

You can set any of the web service parameters this way.

When you migrate your WF to another env, go into adminui and set the config param for the new env.