Page 1 of 1

Web service & content-type application/x-www-form-urlencoded

Posted: Wed Jun 25, 2025 2:20 pm
by sandrocarosso
Hello everyone, I am trying to consume a web service to obtain a token via user and password.
The content-type must be application/x-www-form-urlencoded.
The credentials must be passed in the format:
grant_type=client_credentials&client_id=Your_client_ID&client_secret=Your_secret.
If I try to consume the web service via SoapUI, the token is correctly returned.
If I consume it via HTTPAPI from Iseries, nothing seems to be transmitted.
I attach the log from debugging.

Thank you for your support.

Alessandro Carosso

Re: Web service & content-type application/x-www-form-urlencoded

Posted: Wed Jun 25, 2025 5:10 pm
by Scott Klement
Please don't convert the debug log to a Word document or PDF, just send the original document unaltered. Changing it to these document formats can change the way blank lines are handled, the way characters are translated, etc. Just send the original document unchanged so I can see the details as they are.

There is no obvious problem in what you've sent me.

It would also be helpful to see the RPG code.

Re: Web service & content-type application/x-www-form-urlencoded

Posted: Fri Jun 27, 2025 9:32 am
by sandrocarosso
Hi Scott, I tried again this morning and the webservice worked correctly, so I'm thinking that the error is not related to the programme.
Sorry to bother you and thanks for the support.