Here are the relevant snippets from my program:
DEFINE WORK FILE 1 “G:\TaminoSXS\employee10000000.xml”
READ WORK FILE 1 RECORD WORK-IN
COMPRESS work-xml-in WORK-IN INTO work-XML-IN LEAVING NO
END-WORK
* --------------------------------------------------- GET WEATHER DATA
#commandverb := ‘_connect’
perform request-doc
#data := work-xml-in
#commandverb := ‘_process’
perform request-doc
#data := ‘'
#commandverb := ‘_commit’
perform request-doc
#data := '’
#commandverb := ‘_disconnect’
perform request-doc
* --------------------------------------
define subroutine request-doc
* --------------------------------------
if #commandverb ne ‘_connect’
compress #DATA ‘&_sessionid=’ #sessionid ‘&_sessionkey=’ #sessionkey
into #data_plus_session leaving no
else
#data_plus_session := ''
end-if
REQUEST DOCUMENT FROM URL
WITH DATA NAME #commandverb VALUE #data_plus_session
RETURN
HEADER NAME ‘HTTP-Statustext’ VALUE HTTP-STATUS-TEXT
PAGE XML-IN
RESPONSE HTTP-STATUS
IF HTTP-STATUS = 200 THEN
… use the XML toolkit parser
END-SUBROUTINE
* ----------------------- CALLBACK HANDLER
DEFINE SUBROUTINE CALLBACK
*
…
if XML_PARSER_XPATH = ‘ino:response/@ino:sessionid’
#sessionid := XML_Parser_content
write ‘=’ #sessionid
else
if XML_PARSER_XPATH = ‘ino:response/@ino:sessionkey’
#sessionkey := XML_Parser_content
write ‘=’ #sessionkey
end-if
end-if
…
The _process is using the SXS extension, so I would have assumed there should be an event triggered.
Another question - if one just does a straight _process, which implies ending the session should the event be triggered then, or is it only when there is a _connect, _process, _commit?
Thanks… Priscilla
#Tamino#API-Management#webMethods