Return ACK from Process
Hello,
We would need some help, please
First of all thanks for your time used reading this question
Also, thanks for your patience
We need to generate an ACK in a Process and return it to the Service to reply
We have currently written a code block with:
//Devolvemos ACK AA a DragoAP para indicar que no procesamos las prepeticiones
set pOutput = ##class(%GlobalCharacterStream).%New()
//set ACKer7 = ..GetAck(mensajeHL7, "AA")
set ACKer7 = ##class(ITB.HL7.BS.XMLService).GetAck(context.mensajeHL7, "AA")
set ACKxml = ##class(ITB.HL7.Util.Convert).ER7ToXML(ACKer7,.tSC)
set inicioCabecerasSOAP = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=""http://schemas.xmlsoap.org/soap/envelope/""><SOAP-ENV:Header/><SOAP-ENV:Body>"
set finCabecerasSOAP = "</SOAP-ENV:Body></SOAP-ENV:Envelope>"
do pOutput.Write(inicioCabecerasSOAP_ACKxml.Read()_finCabecerasSOAP)
When we test this code, we observe:
ERROR <Ens>ErrException: <METHOD DOES NOT EXIST>zS5+6^Procesos.Laboratorio.EnrutadorLaboratorio.Thread1.1 *GetAck,ITB.HL7.BS.XMLService -- - registrado como '-' número - @' set ACKer7 = ##class(ITB.HL7.BS.XMLService).GetAck(context.mensajeHL7, "AA")' |
Why do we get this error message?
As you would notice we have written:
set ACKer7 = ##class(ITB.HL7.BS.XMLService).GetAck(context.mensajeHL7, "AA")
When we press F12 above ITB.HL7.BS.XMLService
We observe the desired GetAck method
How could we further debug, understand, and solve this issue?
➡️ We have read:
https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls...
https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls...
https://community.intersystems.com/post/reply-custom-ack
https://www.intersystems.com/wp-content/uploads/sites/10/WiFISEasyConnec...
➡️ Thanks for your replies