On a v7r3 Power8 box, I used IBM Web Administration for i to create an
Application server called LAB_REPAIR (v2.6 web services).
It's based on a service program, RT0200S that has 2 procedures, ADDCASE
and GETCASESTATUS. Right now I'm focused on the latter, GETCASESTATUS.
It has 2 parameters, email and casenbr. Email is defined as
fixed-length 100a and casenbr is zoned decimal 7.0.
The base resource URL (using ip address for the time being; this is on a
private LAN only) is
http://1.2.3.4:10010/web/services/lab_repair
The GETCASESTATUS procedure is associated with the http GET request:
Procedure name: GETCASESTATUS
HTTP request method: GET
URI path template for method: /{email}{casenbr ^[0-9]+$}
HTTP response code output parameter: *NONE
HTTP header array output parameter: *NONE
Allowed input media types: *ALL
Returned output media types: *XML
Input parameter mappings:
Parameter name Data type Input source Identifier Default
Value
PEMAIL char *PATH_PARAM email *NONE
PCASENBR zoned *PATH_PARAM casenbr ^[0-9]+$ *NONE
The service is created and running, and the question is, what URI do I
use to test it?
When I trythe following uri in a browser
http://1.2.3.4:10010/web/services/lab_repair?email=address%40example.com&casenbr=1234567
I get an HTTP 404 response (not found).
I tried using SOAPui and got the same thing.
I'm new at this REST stuff and really new at SOAPUI, but this really
shouldn't be that hard. What am I missing?
--
*Peter Dow* /
Dow Software Services, Inc.
909 793-9050
petercdow@xxxxxxxxx <mailto:petercdow@xxxxxxxxx>
pdow@xxxxxxxxxxxxxx <mailto:pdow@xxxxxxxxxxxxxx> /
As an Amazon Associate we earn from qualifying purchases.