Hello,
I created a SOAP web service that calls a subprog on which I apply some logic and then call an object-based SOAP web service, like this:
Subprog CONSUMED_BY_EXTERNAL_APPLICATION(SOME_PARAMETERS) #apply some logic, verifications, etc FOO = 1 #Call another subprog that calls the object-based web service Call CALL_OBJ_WS(OTHER_PARAMETERS) End Subprog CALL_OBJ_WS(PARAM) #Define variables Local Char TEXTE(20) Local Integer I , J , K Gosub DEFVAR From WJWSMYWS #Define parameters MY_PARAMS = PARAM #Set action: creation WW_ACTION = "CREATE" : # READ, CREATE, MODIFY, DELETE, SUPLIG, INSLIG WW_IDENT = "" : # Clé de l Objet Val1~Val2 Onerrgo ERR_WS Gosub WEBSERV From WJWSMYWS Gosub ANALRESOBJ From WJWSMYWS Onerrgo End
Everything works fine if there is no problem on the object-based web service, the trouble starts with error handilng: status and messages are passed to the subprog WS (against my will) so the response to the outer program will be a fail, but I don't want to, what I want is to perform custom error handling by myself. This makes no sense to me: the response to the web service call should be related to the subprog web service, not to the object-based one.
I guess this may be due to variables that have the same name, but they all have local scope so they should be kept private when I call the inner subprog, so I don't understand.
Any ideas?
Thanks in advance