How to pass arguments in web service client

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
midmaxds
Premium Member
Premium Member
Posts: 71
Joined: Mon Oct 26, 2015 11:44 am

How to pass arguments in web service client

Post by midmaxds »

Hi,

We are using a web service client stage to connect to Salesforce.com.
I have the username and password plus the token ID and are am to connect via the DS job created.The result is written to a seq file.

I am calling the login service from the imported WSDL file inside the web service client.
The 2 input arguments for this service are "username" and "password"

The issue here is, I am hard coding them in the job inside the input arguments tab.
Is there is way I can pass this as a parameter, just as in a normal job?
Or any other alternatives, please? If you need more information, kindly let me know. Thank you.
Midhun
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Re: How to pass arguments in web service client

Post by chulett »

midmaxds wrote:Is there is way I can pass this as a parameter, just as in a normal job?
I don't know why not... have you tried it yet?
-craig

"You can never have too many knives" -- Logan Nine Fingers
boolseye
Participant
Posts: 18
Joined: Mon Jul 15, 2013 4:01 am

Post by boolseye »

you can use parameters.. i tested a WS call with local parameters and used it in security tab as #pmUserID#
-----------------
Thanks
midmaxds
Premium Member
Premium Member
Posts: 71
Joined: Mon Oct 26, 2015 11:44 am

Post by midmaxds »

I tried and it worked,created two parameters and saved them to a parameter set and was able to refer them inside Input arguments.

I should have tried it out first before posting the question.
Thank you, Craig and boolseye :)
Midhun
Post Reply