|
Thank you Scott for all you do!!
I will get that upgraded.
This is outside my knowledge set by trying to learn.
The vendor just sent me this message:
Yes. This should how a working http header look like.
POST https://api.rlcarriers.com/1.0.3/ShipmentTracingService.asmx
HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "http://www.rlcarriers.com/TraceShipment"
Content-Length: 845
Host: api.rlcarriers.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of
Scott Klement
Sent: Wednesday, September 2, 2020 1:36 PM
To: rpg400-l@xxxxxxxxxxxxxxxxxx
Subject: Re: Calling Web Service Passing XML
Hi Jerry,
Change your code to:
rc = http_post_stmf( TrackingURL
: '/iAccess/HTML/TrackingRequest.xml'
: '/iAccess/HTML/TrackingResponce.xml'
: HTTP_TIMEOUT
: HTTP_USERAGENT
: 'application/xml'
: PUT THE CORRECT SOAP ACTION HERE );
Also, not sure if you're aware, but you're using the old routines in HTTPAPI. Please consider updating your code to use http_stmf() or http_req().
monitor;
http_setOption('soap-action': PUT THE CORRECT ACTION HERE); http_stmf( 'POST'
: TrackingURL
: '/iAccess/HTML/TrackingResponce.xml'
: '/iAccess/HTML/TrackingRequest.xml'
: 'application/xml' );
on-error;
// check http_error to find out what went wrong
endmon;
-SK
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.