× 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.



You are specifying input source of PATH_PARAM but are passing the data as
query string,



"WEB400" <web400-bounces@xxxxxxxxxxxxxxxxxx> wrote on 03/11/2019 02:15:31
PM:

From: Stephen Piland <Stephen@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
To: "web400@xxxxxxxxxxxxxxxxxx" <web400@xxxxxxxxxxxxxxxxxx>
Date: 03/11/2019 03:00 PM
Subject: [WEB400] IWS and REST GET HTTP 405
Sent by: "WEB400" <web400-bounces@xxxxxxxxxxxxxxxxxx>

When calling a REST GET, I'm receiving an HTTP 405 (Method not
allowed). Additional info below, but we are on 7.1 and IWS is V2.6.
The much more complicated POST we wrote, in the same SRVPGM, works
fine to eliminate other connectivity issues. Any thoughts?

URL used in Postman... http://<servername>:50010/web/services/cac/?
orderNumber=ABC123

General Tab in IWS
Base resource URL:

http://<server>:50010/web/services/cac



Methods Tab in IWS
Procedure name:

CAC_RETRIEVE

HTTP request method:

GET

URI path template for method:

/{orderNumber:\w{100}}

HTTP response code output parameter:

httpStatus

HTTP header array output parameter:

httpHeaders

Allowed input media types:

*ALL

Returned output media types:

*JSON


Input parameter mappings:

Parameter name

Data type

Input source

Identifier

Default Value

eCommOrderNo

char

*PATH_PARAM

orderNumber

*NONE







--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://urldefense.proofpoint.com/v2/url?

u=https-3A__lists.midrange.com_mailman_listinfo_web400&d=DwICAg&c=jf_iaSHvJObTbx-
siA1ZOg&r=1i-jGlz0-JTK1aLHcsU-

ew&m=oisC_d1mxv8QpVdu3tMrNOY6w0QQCFznUKlrDYWYVpM&s=reUiihB2WDWbK5yGBkioo3VtM76ftUD3_hDOWsBQjSU&e=
or email: WEB400-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://urldefense.proofpoint.com/v2/url?
u=https-3A__archive.midrange.com_web400&d=DwICAg&c=jf_iaSHvJObTbx-
siA1ZOg&r=1i-jGlz0-JTK1aLHcsU-

ew&m=oisC_d1mxv8QpVdu3tMrNOY6w0QQCFznUKlrDYWYVpM&s=RugtHxfb49rMqlIi9Av5iz8H5Eior7ODVtM42faf40k&e=
.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.