[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Using http post and Rest
Have you reviewed the WSDL for the web service on how the user id and
password are supposed to be formatted ?
Here is an example for accessing United Parcel Service web service
called "Time In Transit"
lAccess = getAccess();
lUserId = getUserId();
lPassWord = getPassWord();
return ' <AccessRequest xml:lang="en-US"> ' +
' <AccessLicenseNumber>' + %trimr(lAccess) + '</AccessLicenseNumber>'
' <UserId>' + %trim(lUserId) + '</UserId> ' +
' <Password>' + %trim(lPassWord) + '</Password> ' +
' </AccessRequest> ' ;
[1]www.pilotpen.us
Chris Hayden - Sr. Systems Analyst
Office: (904) 645-9999 ext.1252
Mobile: 904-654-4089
Pilot Corporation of America
3855 Regent Blvd, Jacksonville, Florida 32224 United States
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager. This message contains confidential information and
is intended only for the individual named. If you are not the named
addressee you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system. If you
are not the intended recipient you are notified that disclosing,
copying, distributing or taking any action in reliance on the contents
of this information is strictly prohibited.
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[[2]mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Rick
Holm
Sent: Thursday, September 22, 2016 10:39 AM
To: HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Using http post and Rest
I need to post an XML file to a Web Service using REST and supplying a
user id and password.
I have tried several approaches. Using the HTTPAPI command, it looks
like the file is being validated by the Web Service, but I end with a
HTTP 422 Unprocessable Entity.
I tried the http_SetAuth for the user id and password and
http_post_stmf api. The program appears to contact the Web Service but
I end up with a HTTP 415 Unsupported Media Type.
Thanks for you help
Rick Holm
References
1. http://www.pilotpen.us/
2. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------