Expand my Community achievements bar.

SOLVED

Programatically set wsdlConnection soapAddress

Avatar

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

Avatar

Correct answer by
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

3 Replies

Avatar

Correct answer by
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

Avatar

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.

Avatar

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.