|
We have Scott's LIBHTTP v1.39 installed and I'm having issues adding Basic Authentication to a process that was previously working great.
The code below is the shell of what is going on. We added the http_setauth line. Maybe I'm doing it in the wrong order. We are connecting according to the debug log. With the same info, I'm able to connect and post using SoapUI. However, we receive a HTTP 400 Bad Request back in our RPG code. That same HTTP 400 is returned in SoapUI if I pass in a bad UserId and/or password.
Any thoughts? Thanks!
http_setOption('SoapAction': '"InventoryByStore"');
pComm = http_persist_open(URL);
http_setauth(HTTP_AUTH_BASIC:UID:Password);
response = http_string('POST': URL: SOAP_Message: 'text/xml');
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.