error MCH1210 in HTTPAPIR4 Len = -1
Posted: Thu Nov 06, 2025 11:14 pm
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?
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?