Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #13499

Re: Get dafrom API REST (method GET)

From D.J.W. van Kooten <vankooten@removethis.ic2.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Get dafrom API REST (method GET)
Date 2021-12-25 02:18 +0100
Organization IC2
Message-ID <ocrcsgdd1c2dhacrpkrh005tff4462i645@4ax.com> (permalink)
References <45999a49-09a1-47fe-8305-0f1f80f536a8n@googlegroups.com>

Show all headers | View raw


Replying on message of Fri, 24 Dec 2021 07:02:23 -0800 (PST) from
Sebastián BASSANO:


 Hello Sebastián

>Hi, i'm trying to consume API REST from VO.
>For example:
>
>https://test.senasa.gov.ar/agrotraza/src/api/Consulta_Tipo_Envase?authUser=USER&authPass=PASSWORD
>
>returns
>
>["Error de autenticaci\u00f3n (2) USER"]
>
>but from VO i always get empty response.


We've had some trouble REST API's (Sending XML) as well, in the X#
forum I asked this question:

https://www.xsharp.eu/forum/public-product/659-rest-service-does-not-work#4634

I don't recall all details but the main problem eventually was that
from VO a user name was not used somehow and when the password was
added directly before the xml (extra key-value-pair in the POST body),
something like this, it worked:

secret=123456&xml=  <Root> etc.

Not sure if this helps you but maybe it's eventually the
authentication that fails so the result is empty. We got a test URL
which did not require a login and this returned the right values so we
knew the authentication was the problem.

If you would use an X# based DLL, which you can call from VO, you will
have more logical (.Net) code and many more samples and you will
probably solve it faster.

Dick

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Get dafrom API REST (method GET) Sebastián BASSANO <ccyasa.sbassano@gmail.com> - 2021-12-24 07:02 -0800
  Re: Get dafrom API REST (method GET) D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2021-12-25 02:18 +0100
    Re: Get dafrom API REST (method GET) Sebastián BASSANO <ccyasa.sbassano@gmail.com> - 2021-12-26 08:17 -0800

csiph-web