Author |
Message
|
Jhap |
Posted: Mon Aug 31, 2015 4:39 am Post subject: WebServiceRegistryAddress |
|
|
Novice
Joined: 18 Feb 2010 Posts: 18
|
Hi !
How to set WebServiceRegistryAddress ?
Below gives Incorrect funtion or procedure name 'WebServiceRegistryAddress' or argument count.
SET InputLocalEnvironment.common.webserviceLocation.registryAddress = common.GetApplicationProperty('WebServiceRegistryAddress');
SET OutputLocalEnvironment.Destination.HTTP.RequestURL = InputLocalEnvironment.common.webserviceLocation.registryAddress; |
|
Back to top |
|
 |
smdavies99 |
Posted: Mon Aug 31, 2015 5:05 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
|
Back to top |
|
 |
Jhap |
Posted: Mon Aug 31, 2015 5:21 am Post subject: |
|
|
Novice
Joined: 18 Feb 2010 Posts: 18
|
Thanks
How about to use configurable service ? |
|
Back to top |
|
 |
smdavies99 |
Posted: Mon Aug 31, 2015 5:26 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
|
Back to top |
|
 |
Jhap |
Posted: Mon Aug 31, 2015 6:49 am Post subject: |
|
|
Novice
Joined: 18 Feb 2010 Posts: 18
|
Hi !
Configurableservice is ready, but what is wrong with esql clauses because I get error in broker develompent view "Incorrect funtion or procedure name 'WebServiceRegistryAddress' or argument count". right when write...
SET InputLocalEnvironment.common.webserviceLocation.registryAddress = common.GetApplicationProperty('WebServiceRegistryAddress');
SET OutputLocalEnvironment.Destination.HTTP.RequestURL = InputLocalEnvironment.common.webserviceLocation.registryAddress; |
|
Back to top |
|
 |
Vitor |
Posted: Mon Aug 31, 2015 6:57 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Call me crazy but where do you get this from:
Jhap wrote: |
Code: |
SET InputLocalEnvironment.common.webserviceLocation.registryAddress = common.GetApplicationProperty('WebServiceRegistryAddress'); |
|
I'm not familiar with that as an IIB function. Got a link? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Jhap |
Posted: Mon Aug 31, 2015 7:46 am Post subject: |
|
|
Novice
Joined: 18 Feb 2010 Posts: 18
|
Maybe I found answer....
"The UserDefined configurable service is only accessible via a Java compute node. It cannot be accessed directly in ESQL. If you want to use ESQL, you need to create the code in Java and then use a function call to the Java code." |
|
Back to top |
|
 |
Vitor |
Posted: Mon Aug 31, 2015 8:27 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
If the property you're trying to obtain is indeed in a user defined configurable service, then yes you do need to write a function called "GetApplicationProperty" and not just imagine a function called "GetApplicationProperty" exists without anyone writing it.
If you're actually trying to obtain an endpoint from WSRR (as you implied) and use it in the ESQL, you need to use the inbuilt nodes to access WSRR and then use the returned values in your ESQL. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
smdavies99 |
Posted: Mon Aug 31, 2015 9:18 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Vitor wrote: |
If the property you're trying to obtain is indeed in a user defined configurable service, then yes you do need to write a function called "GetApplicationProperty" and not just imagine a function called "GetApplicationProperty" exists without anyone writing it.
If you're actually trying to obtain an endpoint from WSRR (as you implied) and use it in the ESQL, you need to use the inbuilt nodes to access WSRR and then use the returned values in your ESQL. |
Which was why I pointed the OP at the developerworks article. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
Jhap |
Posted: Mon Aug 31, 2015 9:24 am Post subject: |
|
|
Novice
Joined: 18 Feb 2010 Posts: 18
|
|
Back to top |
|
 |
|