PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WEBDEV 2024 → [WebDev27] External WebService
[WebDev27] External WebService
Started by ARV, Dec., 07 2022 5:14 PM - 1 reply
Registered member
498 messages
Popularité : +8 (8 votes)
Posted on December, 07 2022 - 5:14 PM
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
Registered member
498 messages
Popularité : +8 (8 votes)
Posted on December, 07 2022 - 10:55 PM
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