Pregunta
· 1 oct, 2020

Debug SOAP Web Service Client

Hello

 

We have the following Operation's method:

Method obtenerConstantesBynumExpediente(pRequest As Mensajes.Request.DragoAP.ResumenPaciente.obtenerConstantesBynumExpedienteRequest, Output pResponse As Mensajes.Response.DragoAP.ResumenPaciente.obtenerConstantesBynumExpedienteResponse) As %Library.Status
{
 Set ..Adapter.WebServiceClientClass = "WSCLIENTE.DragoAP.ResumenPaciente.WsResumenPaciente"
 Set tSC = ..Adapter.InvokeMethod("obtenerConstantesBynumExpediente",.obtenerConstantesBynumxpdntRslt,pRequest.numExpediente)  Quit:$$$ISERR(tSC) tSC

 
 Set tSC = pRequest.NewResponse(.pResponse)  Quit:$$$ISERR(tSC) tSC
 Set pResponse.obtenerConstantesBynumxpdntRslt = $get(obtenerConstantesBynumxpdntRslt)
 
 set ^pResponse = pResponse
 set ^contenido = pResponse.obtenerConstantesBynumxpdntRslt
 Quit $$$OK
}

 

Besides we have the following method in the WebService Client:

Method obtenerConstantesBynumExpediente(numExpediente As %String) As EsquemasDatos.DragoAP.ResumenPaciente.tns.Constantes [ Final, ProcedureBlock = 1, SoapBindingStyle = document, SoapBodyUse = literal, WebMethod ]
{
 Quit ..WebMethod("obtenerConstantesBynumExpediente").Invoke($this,"http://tcsa.es/obtenerConstantesBynumExpediente",.numExpediente)
}

 

In the Message Viewer we observe:

 

     ERROR #6237: Etiqueta inesperada en la entrada XML: linea (finaliza en la línea 1, carácter 536).

 

We have tried to view the LOGSOAP using the following Terminal commands:

 

➡️ However after sending with the SoapUI we observe that the ^ISCSOAP("Log")="ios" dissappears:

 

And the LOGSOAP file is not being generated

 

➡️ How could we continue trying to debug this Web Service Client?

 

How could we allow the LOGSOAP to be created?

 

We have also read:

https://cedocs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?K...

https://community.intersystems.com/post/debugging-web-client

https://community.intersystems.com/post/iscsoap-error-console-log

 

Thanks for your time

Comentarios (1)1
Inicie sesión o regístrese para continuar

Hello,

Your XML is not valid for that webservice you are trying to access. That's why in the ^ISCSOAP you won't be able to see anything, because it is not being sent to the webservice.

I would recommend to save your xml content to a xml file and check its tags in a external simple text editor. Even you could try to create a project in SoapUI and try your xml. Soon or later you will find some problem with your xml content (maybe it is a not closed tag, a character with no tags, etc.)

Hope it helps,

Carlos

P.S.: Your ^ISCSOAP configuration is ok but it will register all your webservices request/response so probably it is not the best name for that file ;)