Question
· Dec 20, 2017

Business Operation SOAP WebClient

Hi,

I create a WebService in Machine One, with some process, i tested this webservice with SOAPUI, worked.

After that i create a simple Business Operation, SOAP Adapter, based on WebClient created with SOAP Wizzard, the problem with that is on response var, i have empty var on my operation, somebody have some Ideas ? 

Discussion (11)1
Log in or sign up to continue
Set tSC = $System.Status.OK()
Try{
    Set tRequest = ##class(PortalPaciente.s0.ConsultaPaciente1).%New()
    Set tResponse = ##class(PortalPaciente.s0.InformacionPaciente).%New()
    Set pResponse = ##class(PortalPaciente.Msg.OInformacionPaciente).%New()
    Set tRequest.RUT = pRequest.RUT
    Set tSC = ..Adapter.InvokeMethod("ConsultaPaciente",.tResponse,tRequest)
    if '$IsObject(tResponse)
    {
        Set tSC = $System.Status.Error(5001,"The method ConsultaPaciente did not return anything!")
        Quit
    }
    Set pResponse.EstadoConsulta = tResponse.EstadoConsulta
}
catch(tException)
{
    Set tSC = tException.AsStatus()
}
Quit tSC