×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
From: Keith McCully <keithmccully@xxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Date: 01/17/2017 11:18 AM
Subject: IWS REST/JSON web service throws
UnrecognizedPropertyException
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>
I created a proof of concept web service using a RPGLE service program
as the resource.
IWS Config is:
Procedure name:
TESTLITE2
HTTP request method:
PUT
URI path template for method:
*NONE
HTTP response code output parameter:
HTTPSTATUS
HTTP header array output parameter:
HTTPHEADERS
Allowed input media types:
*JSON
Returned output media types:
*JSON
Input parameter mappings:
Unwrapped.
Name: WTHC
Type Struct
Input source: None (The JSON goes in the body of the request)
The JSON is just:
{
"pm_parm1":"one",
"pm_parm2":"two"
}
Which validates ok.
However, when calling the web service from SOAPUI I get the following
error:
Error 500: javax.servlet.ServletException:
org.codehaus.jackson.map.exc.UnrecognizedPropertyException:
Unrecognized field "pm_parm1" (Class iseries.wsbeans.testlite2.WTH),
not marked as ignorable at [Source:
com.ibm.ws.webcontainer.srt.SRTInputStream@45584558; line: 2, column:
13] (through reference chain:
iseries.wsbeans.testlite2.WTH["pm_parm1"])
Any suggestions as to the underlying cause of this?
Thanks,
Keith
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.