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



Booth:   (private reply)
Use SoapUI in a browser and use the 'debug console' to see what is sent back and forth ...

Mark

From: Booth Martin <booth@xxxxxxxxxxxx>
To: Web Enabling the IBM i (AS/400 and iSeries) <web400@xxxxxxxxxxxx>
Sent: Sunday, November 11, 2018 5:12 PM
Subject: Re: [WEB400] web services ConvertTemp

Has anyone here actually gotten any of these various guides'
instructions to work?  SoapUI does give the right conversion; therefore
the server appears to be doing something right, and the connection seems
to be open and available.

Returns "*Not Found*":

  * http://the.domain.com:10101/web/services/ftoc/123
  * http://the.domain.com:10101/web/services/ConvertTemp/ftoc/123
  * http://the.domain.com:10101/web/services/ConvertTemp/123


On 11/11/2018 5:15 AM, Tim Fathers wrote:
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&amp;data=02%7C01%7C%7C3cac186b90bb4edd4c5008d647755a4e%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636774966677500988&amp;sdata=fGPwpIXfiQACScKD%2BmB55QrVF2OICSNjwWGgDUph81A%3D&amp;reserved=0.



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.