I’m working with flowservices in webMethods and I have this client i have to send responses to. Obviously the response is changing in function of if it works or not and i need to force a specific response into my client (for example an object if the call works or a string or another object if it doesn’t).
The problem i have is that with webMethods the only way i know to have only one thing in return is to drop the variables i don’t want but i may need them in some cases. I tried to drop variables into an if / else statement but that doesn’t work.
For exemple if i’m in an error case, i only want the error to show in postman and not the rest of the response (other response of previous flowservice that are called before for example). But if i don’t drop everything else in webMethods, I have them all in postman.
Anyone with a tips on it ?