Page 1 of 1

How to pass arguments in web service client

Posted: Wed Nov 04, 2015 11:02 am
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.

Re: How to pass arguments in web service client

Posted: Wed Nov 04, 2015 12:13 pm
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?

Posted: Wed Nov 04, 2015 1:39 pm
by boolseye
you can use parameters.. i tested a WS call with local parameters and used it in security tab as #pmUserID#

Posted: Thu Nov 05, 2015 6:26 pm
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 :)