Hi,
I access the command line and consume a service without any problems as follows:
response = http_string( 'POST': URL: SOAP: 'text/xml')
But if I do it this way, by first making a post:
data-gen reqds %data(request) %gen('YAJLDTAGEN')
response = http_string('POST':url:request:'application/json');
Next in other program
response = http_string( 'POST': URL: SOAP: 'text/xml')
and it shows me the error MCH1210 en HTTPAPIR4 ( %len(resultstr) = Len;)
because Len = -1.
What caused this error?
error MCH1210 in HTTPAPIR4 Len = -1
Re: error MCH1210 in HTTPAPIR4 Len = -1
I'd recommend first setting debug options before calling http_string:
and review the log written int text file.
Code: Select all
http_debug(*on: '/tmp/httpdebug.txt');-
Scott Klement
- Site Admin
- Posts: 945
- Joined: Sun Jul 04, 2021 5:12 am
Re: error MCH1210 in HTTPAPIR4 Len = -1
Are you up-to-date on HTTPAPI? There was a bug like this a couple of years ago...
If you are already running version 1.52 of HTTPAPI and still receiving this error, please tell us how to reproduce the problem on our machines.
If you are already running version 1.52 of HTTPAPI and still receiving this error, please tell us how to reproduce the problem on our machines.