Response is filled in the Bussiness Operation but it is empty inside Process
Hello,
We would like some help:
We have found that in the following code:
Class Operaciones.SOAP.Gasometros.GestionPacientes.SeleneHL7Service Extends Ens.BusinessOperation [ ProcedureBlock ]
{
Method operacion(pRequest As Mensajes.Request.GestionPacientes.operacionRequest, Output pResponse As Mensajes.Response.GestionPacientes.operacionResponse) As %Library.Status
{
Set ..Adapter.WebServiceClientClass = "WSCLIENTE.GestionPacientes.ConsultaCandidatos"
Set MSH=pRequest.MSH,SFT=pRequest.SFT,QPD=pRequest.QPD,DSC=pRequest.DSC
Set tSC = ..Adapter.InvokeMethod("operacion",,.MSH,.SFT,.MSA,.ERR,.QAK,.QPD,pRequest.RCP,.RSPK21QUERYRESPONSE,.DSC) Quit:$$$ISERR(tSC) tSC
Set tSC = pRequest.NewResponse(.pResponse) Quit:$$$ISERR(tSC) tSC
Set pResponse.MSH = $get(MSH),pResponse.SFT = $get(SFT),pResponse.MSA = $get(MSA),pResponse.ERR = $get(ERR),pResponse.QAK = $get(QAK),pResponse.QPD = $get(QPD),pResponse.DSC = $get(DSC)
do pResponse.RSPK21QUERYRESPONSE.Insert($get(RSPK21QUERYRESPONSE).GetAt(1))
$$$LOGINFO("pResponse: "_pResponse)
$$$LOGINFO("pResponse.MSH.MSH1.content: "_pResponse.MSH.MSH1.content)
Quit $$$OK
}
Parameter ADAPTER = "EnsLib.SOAP.OutboundAdapter";
XData MessageMap
{
<MapItems>
<MapItem MessageType="Mensajes.Request.GestionPacientes.operacionRequest">
<Method>operacion</Method>
</MapItem>
</MapItems>
}
}
We observe pResponse has contents, due to the
However we watch a curious and unexpected behaviour: the response in the visual trace is empty:
So then, inside the process, this: $$$LOGINFO("response.MSH.MSH1.content: "_response.MSH.MSH1.content) ; prints:
In addition we observe that the reference being printed in the operation is different than the one printed in the process.
Operation's referece:
Process' reference:
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...