Hello,
I need to send pdf form via soap to a webservice. I am currently using execute button + wsdl-schema data connection that is bind to each form input element.
The problem is, that I need to be sure, that if server returns soap-fault or if there is even some connection error, so that Adobre Reader alerts always some message to the user.
In a fact, there is msg attribute in the soap response and I am binding this to a hidden field. When the value of hidden-message field changes, I programaticly alert the message.
I feel that this is not very reliable way. Is it possible to e.g. preserve this kind of "gui-mapping" (so not to completely script it in JavaScript) and only
implement some event/method, which would be called after each soap call ? Or some try/catch code arround execEvent("click") ?
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
Instead of invoking the click event of the button, you can call the web service as:
try
{
xfa.connectionSet.DataConnection.execute(0);
}catch(e)
{
app.alert("Your custom error message:"+e);
}
Hope this may handle any issues with SOAP operation.
Nith
Views
Replies
Total Likes
Instead of invoking the click event of the button, you can call the web service as:
try
{
xfa.connectionSet.DataConnection.execute(0);
}catch(e)
{
app.alert("Your custom error message:"+e);
}
Hope this may handle any issues with SOAP operation.
Nith
Views
Replies
Total Likes
This is exactly what I have been searching for.
Thanks a lot for help Nith.
Views
Replies
Total Likes
Views
Likes
Replies