Before you can work with that you'll have to enter a name in the "Save-as Var" box in the response Object of the WS Job. For example "TEST"
After executing your WS job, you have two possibilities to get the value.
Everyone is able to reproduce this case by using the following wsdl link for the Web Service Job, no Login is required for this
Objects:
1 x Webservice Job
1 x Webservice Conn Object
1 x Vara Object (VARA.TEST)
1.) using PREP_PROCESS_REPORT
In that specific case I used this script in the Post Process Tab to write the Value of the Response Object into the VARA.TEST object.
:SET &HND#=PREP_PROCESS_REPORT(,,,'*<AtomicWeight>*')
:PROCESS &HND#
: SET &LINE#=GET_PROCESS_LINE(&HND#)
: SET &LINE# = STR_CUT(&LINE#,50,7)
: PRINT &LINE#
: PUT_VAR VARA.TEST,"Keyword","&LINE#"
:ENDPROCESS
With the script get_var you are able to access the value.
2.) Using PREP_PROCESS_FILE
In the /bin directory of the WebService Agent there is a folder called "webserviceExecAgentVariableDir". As I mentioned at the beginning I named the "Save-as Var" in the response Object "TEST".
After executing the WS Job you'll find a file in the "webserviceExecAgentVariableDir" called null_TEST.
To get the value of the response object use the following script in the Post Process Tab to write the Value of the Response Object into the VARA.TEST object.
:SET &HND#=PREP_PROCESS_REPORT ('WIN01','…\WebServiceAgent\bin\webserviceExecAgentVariableDir\null_TEST','*<AtomicWeight>*')
:PROCESS &HND#
: SET &LINE#=GET_PROCESS_LINE(&HND#)
: SET &LINE# = STR_CUT(&LINE#,50,7)
: PRINT &LINE#
: PUT_VAR VARA.TEST,"Keyword","&LINE#"
:ENDPROCESS
With the script get_var you are able to access the value.
?