To clarify, when I say you can use both, I mean a web service that uses
path variables can also have query variables.

So something like
/customer/ABC123/currentbalance?includeDetails=true
vs query only parms
/customer/currentbalance?custId=ABC123&includeDetails=true

The backend code would expect at least 2 parameters
custId and includeDetails

HTH,
Charles


On Wed, Jan 15, 2025 at 11:10 AM Charles Wilt <charles.wilt@xxxxxxxxx>
wrote:

Web services can have two types of parameters, and you can use either or
both at the same time.

"path" /customer/ABC123/currentbalance
"query" /customer/currenbalance?custId=ABC123

The backend RPG code would be the same...but the way you define it to IWS
would be different.

HTH,
Charles



On Wed, Jan 15, 2025 at 11:02 AM (WalzCraft) Jerry Forss <
JForss@xxxxxxxxxxxxx> wrote:

From the example in Scott's doc the parameters are separated by /, not ?

-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of
Gavin Inman
Sent: Wednesday, January 15, 2025 10:15 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: External Re: IWS

Are you sending any parameters?

Those should be at the end of the resource
example:
/web/services/CustAdrBal?var=something


On 1/15/2025 10:41 AM, (WalzCraft) Jerry Forss wrote:

It is a Rest.

From Swagger
"swagger": "2.0",
"info": {
"title": "CustAdrBal APIs",
"description": "APIs available for CustAdrBal",
"version": "1.0.0"
},
"host": "IBMi IP:10010",
"schemes": [
"http"
],
"basePath": "/web/services/CustAdrBal",
"tags": [
{
"name": "CustAdrBal APIs",
"description": "APIs available for CustAdrBal"
}
],

-----Original Message-----
From: MIDRANGE-L<midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of
Gavin Inman
Sent: Wednesday, January 15, 2025 9:36 AM
To: Midrange Systems Technical Discussion<midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: External Re: IWS

CAUTION: This email originated from outside of the organization. Do not
click links or open attachments unless you recognize the sender and know
the content is safe.

Is the service SOAP or Rest. I've found REST are easier to work with.
Download the WSDL file and import it into SOAPUI and it will set
everything up for you automagicly

Gavin.


On 1/15/2025 9:29 AM, (WalzCraft) Jerry Forss wrote:

Hi All

I am trying to set up a web service that will be for internal
communications only between the IBMi and the network.

Currently I use Stored Procedures that are called from the network side
and I return parameters or result sets.

We have a new application on the server where I want them to use the IWS
to request info.

I went through Scotts handout Providing RPG Web Services (Thank You
Scott!!!) and set up the server (WCIService) and deployed a new service
(CustAdrBal).
My problem is that I can't seem to get the URL right for trying it. I am
SURE it's something basic.

I am using SoupUI to test it.
URL ishttp://IP of IBMi:10010/web/services/CustAdrBal/AA/780

What the heck am I doing wrong?





Subject to Change Notice:

WalzCraft reserves the right to improve designs, and to change
specifications without notice.

Confidentiality Notice:

This message and any attachments may contain confidential and privileged
information that is protected by law. The information contained herein is
transmitted for the sole use of the intended recipient(s) and should "only"
pertain to "WalzCraft" company matters. If you are not the intended
recipient or designated agent of the recipient of such information, you are
hereby notified that any use, dissemination, copying or retention of this
email or the information contained herein is strictly prohibited and may
subject you to penalties under federal and/or state law. If you received
this email in error, please notify the sender immediately and permanently
delete this email. Thank You

WalzCraft PO Box 1748 La Crosse, WI, 54602-1748www.walzcraft.com<
http://www.walzcraft.com> Phone: 1-800-237-1326


--
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 athttps://
archive.midrange.com/midrange-l.

Please contactsupport@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.




Subject to Change Notice:

WalzCraft reserves the right to improve designs, and to change
specifications without notice.

Confidentiality Notice:

This message and any attachments may contain confidential and privileged
information that is protected by law. The information contained herein is
transmitted for the sole use of the intended recipient(s) and should "only"
pertain to "WalzCraft" company matters. If you are not the intended
recipient or designated agent of the recipient of such information, you are
hereby notified that any use, dissemination, copying or retention of this
email or the information contained herein is strictly prohibited and may
subject you to penalties under federal and/or state law. If you received
this email in error, please notify the sender immediately and permanently
delete this email. Thank You

WalzCraft PO Box 1748 La Crosse, WI, 54602-1748 www.walzcraft.com<
http://www.walzcraft.com> Phone: 1-800-237-1326


--
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@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.




Subject to Change Notice:

WalzCraft reserves the right to improve designs, and to change
specifications without notice.

Confidentiality Notice:

This message and any attachments may contain confidential and privileged
information that is protected by law. The information contained herein is
transmitted for the sole use of the intended recipient(s) and should "only"
pertain to "WalzCraft" company matters. If you are not the intended
recipient or designated agent of the recipient of such information, you are
hereby notified that any use, dissemination, copying or retention of this
email or the information contained herein is strictly prohibited and may
subject you to penalties under federal and/or state law. If you received
this email in error, please notify the sender immediately and permanently
delete this email. Thank You

WalzCraft PO Box 1748 La Crosse, WI, 54602-1748
www.walzcraft.com<http://www.walzcraft.com> Phone: 1-800-237-1326
--
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@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2025 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.