Thanks for your reply Booth
Im doing a GET
Is there anything that I can debug to see whats happening?
Like I said - the actual procedure definitely works as part of a simple program on the AS/400
Alan Shore
E-mail : ASHORE@xxxxxxxx
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
‘If you're going through hell, keep going.’
Winston Churchill
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of Booth Martin
Sent: Tuesday, February 19, 2019 11:26 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: [EXTERNAL] Re: Problem with proof of concept program utilizing IWS (Integrated Web Services)
"The HTTP |*415 Unsupported Media Type*| client error response code indicates that the server refuses to accept the request because the payload format is in an unsupported format.
The format problem might be due to the request's indicated
|Content-Type|
<
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type>
or |Content-Encoding|
<
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding>,
or as a result of inspecting the data directly."
Are you doing a POST or a GET?
I prefer Postman to SOAP UI.
Here is the simple svcpgm I used:
h nomain pgminfo(*PCML:*MODULE:*DCLCASE)
* -- Procedures included in this Service Program -----
d DayName pr
d dateIn 10 const
d dayOut 30
// ==================================================
p DayName b export
d DayName pi
d dateIn 10 const
d dayOut 30
d wDateIn s 10
d wDateOut s 10
/free
test(de) *iso dateIn;
if %error;
wDateIn = %char(%date(): *iso);
dayOut = 'x';
else;
wDateIn = dateIn;
clear dayOut;
endif;
exec sql set :wDateOut = dayName(:wDateIn);
if dayOut = 'x';
dayOut = 'Today is a ' + wDateOut;
else;
dayout = wDateOut;
endif;
p DayName e
// ==================================================
On 2/19/2019 7:48 AM, Alan Shore via MIDRANGE-L wrote:
HTTP ERROR 415
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.