0

Currently we are implementing the InDesign LBQ into our application. This is supposed to replace our old custom made LBQ'er and provide us with more requested functionality.

Except we are wondering if the XML response sent back to the client by the server is customizable. For example, if a String in an InDesign poster text block is too long and doesn't fit, send this flaw back in an error message in the response so the client who sent in the job will see this error along with the result (It still gets the result, since it will still be made succesfull but the client will know something isn't the way it's supposed to be and will be able to adjust this).

Thanks.

1 Answers1

0

I do not think you can return a custom error and the result of the script at the same time.

I suggest you trap the error in your InDesign script, add and return it with the result XML as an extra error node?

Nicolai Kant
  • 1,391
  • 1
  • 9
  • 23
  • This is pretty much what i meant, does this mean it is possible to add a xml node which can contain the error generated by our check to the result send by InDesign? – Bas Lafeber Oct 14 '16 at 08:06
  • You have control over what you return, could be a number, string or xml. So you can build your xml, add error node if you need it and return it back to the soap request. So, return "25"; at the end of your script should do it. – Nicolai Kant Oct 14 '16 at 16:38
  • And this response, will this be send directly to the client, or to the load balancer after which it will go to the client? – Bas Lafeber Oct 19 '16 at 11:39
  • It is going to the client, but if load balancer receives it first, I am not sure. – Nicolai Kant Oct 20 '16 at 17:05