Assuming this is the example you're following, then It tells you here doesn't it?
https://www.ibm.com/developerworks/ibmi/library/i-rest-web-services-server2/index.html
[
http://www.ibm.com/developerworks/i/dw-social-201508.png]<
https://www.ibm.com/developerworks/ibmi/library/i-rest-web-services-server2/index.html>
Building a REST service with integrated web services ...<
https://www.ibm.com/developerworks/ibmi/library/i-rest-web-services-server2/index.html>
For several years now, IBM i users have had the ability to deploy ILE programs and services programs as web services based on the SOAP protocol using the integrated web services server support that is part of the operating system.
www.ibm.com
So "<context-root>/ftoc/{temp}" where <context-root> is the base URI of your web application. Again, according to the docs, the default should be:
"/web/services/ftoc/123 *
Note: The above URI assumes that the default context root (/web/services) was not changed for the server."
In your example URI "web/services/ConvertTempService/ConvertTemp" it looks like you might be either confusing the SOAP and REST implementations or the service program name and the mapped resource name that points to it. Steps 2.2, 2.3 and 2.4 in the above documentation describe this mapping.
Tim
________________________________
From: WEB400 <web400-bounces@xxxxxxxxxxxx> on behalf of Booth Martin <booth@xxxxxxxxxxxx>
Sent: 11 November 2018 02:30
To: Web Enabling the AS400 / iSeries
Subject: [WEB400] web services ConvertTemp
A question:
What is an example of a URI that includes the parms for Fahrenheit to
Celsius or Celsius to Fahrenheit, and the parm for the temperature to be
converted?
An example might be:
url =10.10.10.99:10050/
path = "web/services/ConvertTempService/ConvertTemp"
and "FtoC" and "90"
I am not to sure about the FtoC and CtoF - that gets mentioned about
half the time but is never in the examples. It would seem that would be
essential, but? I have tried all of the combinations and constructions
I can think of.
--
Booth Martin
https://eur02.safelinks.protection.outlook.com/?url=www.martinvt.com&data=02%7C01%7C%7C3cac186b90bb4edd4c5008d647755a4e%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636774966677500988&sdata=R529AKKXgHtNKTkHr24IwRWWSoQdCKNyGeZjI0sH5Fc%3D&reserved=0
(870)576-9371
(802)461-5349
There are some micro-organisms that exhibit characteristics of both
plants and animals. When exposed to light they undergo photosynthesis;
and when the lights go out, they turn into animals. But then again,
don't we all?
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.midrange.com%2Fmailman%2Flistinfo%2Fweb400&data=02%7C01%7C%7C3cac186b90bb4edd4c5008d647755a4e%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636774966677500988&sdata=JvlOkYpr2GMPU5EVsQecnWyxtbjZHROwKgvRQZcsRTw%3D&reserved=0
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Fweb400&data=02%7C01%7C%7C3cac186b90bb4edd4c5008d647755a4e%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636774966677500988&sdata=fGPwpIXfiQACScKD%2BmB55QrVF2OICSNjwWGgDUph81A%3D&reserved=0.
As an Amazon Associate we earn from qualifying purchases.