Sending XML file to Web Service
Posted: Fri Jan 31, 2025 7:32 pm
I am attempting to send an XML file from our IFS to Illinois DOR using http_req.
It appears that it is attempting to chunk the XML file as I get an error 400 Bad Request. The Error says it is unable to locate Submission ID which is most definitely in the XML file. Their services matches the passed Submission id (P$SubmissionID) to SubmissionID tag in the XML File.
Chunk of my RPG...
URL = 'https://mytax.illinois.gov/WebServicesIn/+
TobaccoUniformity/submit/TOB/1/?submission-id=' +
%trim(P$SubmissionID) + '&test-only=true';
XMLFileLength = %len(p$XMLFile);
http_xproc(http_point_addl_header:
%paddr(AddHeader));
rc = http_req('POST'
: URL
: '/IDOR/test.html'
: *Omit
: p$XMLFile
: *Omit);
If rc <> 1;
http_crash();
return;
Endif;
What am I missing?
It appears that it is attempting to chunk the XML file as I get an error 400 Bad Request. The Error says it is unable to locate Submission ID which is most definitely in the XML file. Their services matches the passed Submission id (P$SubmissionID) to SubmissionID tag in the XML File.
Chunk of my RPG...
URL = 'https://mytax.illinois.gov/WebServicesIn/+
TobaccoUniformity/submit/TOB/1/?submission-id=' +
%trim(P$SubmissionID) + '&test-only=true';
XMLFileLength = %len(p$XMLFile);
http_xproc(http_point_addl_header:
%paddr(AddHeader));
rc = http_req('POST'
: URL
: '/IDOR/test.html'
: *Omit
: p$XMLFile
: *Omit);
If rc <> 1;
http_crash();
return;
Endif;
What am I missing?