Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Programatically set wsdlConnection soapAddress

vozeldr
Level 2
Level 2

I want to dynamically change the server that my web service connections point to in my LiveCycle forms but when I do xfa.connectionSet.MyConnection.soapAddress.value = myUrl it is ignored. How can I set the soapAddress dynamically at runtime?

1 Accepted Solution
Srini_Dhulipall
Correct answer by
Level 10
Level 10

You need to clone your connection to set the value at runtime..

In the below example, replace SearchData with your Data Connection name.

var oCS = xfa.connectionSet.SearchData.clone(1);

oCS.soapAddress.value = "http://YourWebServiceURL?wsdl";

oCS.execute(0);

Thanks

Srini

View solution in original post

0 Replies
Srini_Dhulipall
Correct answer by
Level 10
Level 10

You need to clone your connection to set the value at runtime..

In the below example, replace SearchData with your Data Connection name.

var oCS = xfa.connectionSet.SearchData.clone(1);

oCS.soapAddress.value = "http://YourWebServiceURL?wsdl";

oCS.execute(0);

Thanks

Srini

View solution in original post

vozeldr
Level 2
Level 2

Thank you very much. I wasn't sure at first but it seems to work great and even fires the postExecute events (wired up directly in the XML source of the XDP) and retains all bindings.

jajjodas
Level 2
Level 2

HI,

I'm trying to use your suggestion but I don't see the CLONE after my data connection. Can you please suggest where I might be going wrong.

Regards,

Tushar.