Expand my Community achievements bar.

Change of webb service through javascript?

Avatar

Former Community Member
Hi all



A quick post before I go home for the weekend...

We are in the need to be able to update a webb service call dynamically through javascript. When changing the properties like below, the result is an error that the form cannot post to the new address. If I use the address as the default data source, it's no problem. My guess is that it has to do with the enabling of the rights through Reader Extensions, but how would we get around it then? We simply want to be able to redirect the SOAP call depending on what ID the current form has.



Maybe I'm a bit weak in my explanation, but what I need to know is:

1. Is the calls below correct or not to change source for the dataconnection?

2. Is ReaderExtensions blocking from changing the dataconnection for me?



xfa.connectionSet.DataConnection.soapAddress.value = "http://147.13.134.205:8080/compound2";

xfa.connectionSet.DataConnection.wsdlAddress.value = "http://147.13.134.205:8080/compound2.wsdl";

xfa.connectionSet.DataConnection.soapAction.value = "echoEmployee";*/
0 Replies