PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WEBDEV 2024 → [WebDev27] External WebService
[WebDev27] External WebService
Iniciado por ARV, 07,dic. 2022 17:14 - 1 respuesta
Miembro registrado
498 mensajes
Popularité : +8 (8 votes)
Publicado el 07,diciembre 2022 - 17:14
Hi

I have a problem trying to integrate a external Webservice

I have the link, I have the user and password to access to the web service I have the documentation to make it work, but it always launch me an error when I try to call the procedure of the web service

here:







I have all of these even on the types I have everything I need, I do everything the documentation said but it doesn`t work

I have a class to initializate all the variables I need here's a portion of the code I can show:

gclDocElectronico is DocumentoElectronico

eEnviar is Enviar
eEnviarResponse is EnviarResponse1

Service.Enviar(gsTokenEmpresa)
Trace(eEnviarResponse.EnviarResult.mensaje)


But this doesn't work the webservice wasn't develope on windev
Anyone have an idea how to make it work?
Anyone has made to work a external webservice on windev?

If you need more information tell me what you need and I try to post it if I can

Thanks!

--
Best Regards
ARV
Miembro registrado
498 mensajes
Popularité : +8 (8 votes)
Publicado el 07,diciembre 2022 - 22:55
Hi I change I little bit of the code like this:

gclDocElectronico is DocumentoElectronico

Respuesta is EnviarResponse

gclDocElectronico.Factura()

Respuesta = Enviar(eEnviar)

Info(Respuesta.resultado)


the problem is in there:

Respuesta = Enviar(eEnviar)


the server of the SOAP web service returns to me the following:
Object Moved
This document may be found here

Not so sure about this

I follow everything I could find about web service and how to consume it and this is the best shot I could get.

anyone have an idea why is this happening?

--
Best Regards
ARV