It may be as simple as changing your 'application/xml' to 'text/xml' to match his sample header and the samples you get if you go to <
https://api.rlcarriers.com/1.0.3/ShipmentTracingService.asmx?op=TraceShipment>
https://api.rlcarriers.com/1.0.3/ShipmentTracingService.asmx?op=TraceShipment
But looking at the WSDL at <<a%20href="
https://api.rlcarriers.com/1.0.3/ShipmentTracingService.asmx?WSDL">
https://api.rlcarriers.com/1.0.3/ShipmentTracingService.asmx?WSDL</a> You>
https://api.rlcarriers.com/1.0.3/ShipmentTracingService.asmx?WSDL you appear to be missing some required elements. FormatResults, IncludeBlind, and OutputFormat all show minOccurs of 1. You may want to see if you can make it work in SoupUI first and then port your message back to httpapi.
On Wed, 2020-09-02 at 20:00 +0000, (WalzCraft) Jerry Forss wrote:
Scott,
Yep, did that and now I get:
The server cannot service the request because the media type is unsupported.
-----Original Message-----
From: RPG400-L <
<mailto:rpg400-l-bounces@xxxxxxxxxxxxxxxxxx>
rpg400-l-bounces@xxxxxxxxxxxxxxxxxx
On Behalf Of Scott Klement
Sent: Wednesday, September 2, 2020 2:27 PM
To:
<mailto:rpg400-l@xxxxxxxxxxxxxxxxxx>
rpg400-l@xxxxxxxxxxxxxxxxxx
Subject: Re: Calling Web Service Passing XML
Jerry,
Ok, so where I typed PUT THE CORRECT ACTION HERE, replace that with '"
<
http://www.rlcarriers.com/TraceShipment"'>
http://www.rlcarriers.com/TraceShipment"'
like you received from the vendor.
-SK
On 9/2/2020 1:47 PM, (WalzCraft) Jerry Forss wrote:
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>
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>
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 <
<mailto:rpg400-l-bounces@xxxxxxxxxxxxxxxxxx>
rpg400-l-bounces@xxxxxxxxxxxxxxxxxx
On Behalf Of
Scott Klement
Sent: Wednesday, September 2, 2020 1:36 PM
To:
<mailto:rpg400-l@xxxxxxxxxxxxxxxxxx>
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
Subject to Change Notice:
WalzCraft reserves the right to improve designs, and to change specifications without notice.
Confidentiality Notice:
This message and any attachments may contain confidential and privileged information that is protected by law. The information contained herein is transmitted for the sole use of the intended recipient(s) and should "only" pertain to "WalzCraft" company matters. If you are not the intended recipient or designated agent of the recipient of such information, you are hereby notified that any use, dissemination, copying or retention of this email or the information contained herein is strictly prohibited and may subject you to penalties under federal and/or state law. If you received this email in error, please notify the sender immediately and permanently delete this email. Thank You
WalzCraft PO Box 1748 La Crosse, WI, 54602-1748
<
http://www.walzcraft.com<
http://www.walzcraft.com>>
www.walzcraft.com<
http://www.walzcraft.com>
Phone: 1-800-237-1326
[
https://www.medtronsoftware.com/img/MedtronMinilogo.bmp] Kevin Bucknum
Senior Programmer Analyst
MEDDATA / MEDTRON
120 Innwood Drive
Covington LA 70433
Local: 985-893-2550
Toll Free: 877-893-2550
https://www.medtronsoftware.com
CONFIDENTIALITY NOTICE
This document and any accompanying this email transmission contain confidential information, belonging to the sender that is legally privileged. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, or the employee of agent responsible to deliver it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or action taken in reliance on the contents of these documents is STRICTLY PROHIBITED. If you have received this email in error, please notify the sender immediately to arrange for return or destruction of these documents.
As an Amazon Associate we earn from qualifying purchases.