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



Thanks Tim
Once I finish with my meetings - I will look into that

Alan Shore
E-mail : ASHORE@xxxxxxxx
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
‘If you're going through hell, keep going.’
Winston Churchill

-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of Tim Rowe
Sent: Tuesday, February 19, 2019 9:25 AM
To: midrange-l@xxxxxxxxxxxxxxxxxx
Cc: midrange-l@xxxxxxxxxxxxxxxxxx
Subject: [EXTERNAL] Re: Problem with proof of concept program utilizing IWS

 
THe Wizard assigns a port that is currently open on your IBM i. It does
not take into account if your fire wall has that port open and
connectable.  If you look at the Manage Deployed Services section in the
Web Admin GUI you will notice a sample services that is created and
shipped.  ConvertTemp.  A very simple web service that can be used to make
sure that your IWS server can actually be connected to by the outside
world.  I have an example service running on the Common1 system, for
example the URL for ConvertTemp on mine
is [1]http://common1.frankeni.com:10213/web/services/ConvertTempService/ConvertTemp?wsdl
 
That will show you the WSDL file ro that SOAP based Web Service.  You can
change the URL using your host name and the port you referenced below.  IF
you do not get any response.
You will have to either change the Port number of the server using the
Change port wizard to a port that is available through your firewall. OR,
contact your network administrator to get  
that port open.  
 
Tim

message: 5
date: Tue, 19 Feb 2019 13:48:01 +0000
from: Alan Shore via MIDRANGE-L <midrange-l@xxxxxxxxxxxxxxxxxx>
subject: Problem with proof of concept program utilizing IWS
(Integrated Web Services)

Hi everyone
Before I forget - we are on V7r3
If you are sitting comfortably - then I will begin

I am writing a "simple" proof of concept program, for testing IWS
(Integrated Web Services)
I have created a new service program, with a procedure in it
It has
Ctl-opt PgmInfo(*PCML:*MODULE)
To create the Program Call Markup Language

I have tested the procedure within a program and it works withy no
problems

I followed the following web pages

Creating Web Services With Integrated Web Services
[2]http://ibmsystemsmag.com/ibmi/developer/general/using_iws/

Providing RPG Web Services on IBM i
[3]https://scottklement.com/presentations/Providing%20RPG%20Web%20Services%20on%20IBM%20i.pdf

by Jon Paris and Scott Klement (BOTH HIGHLY recommended)

and I have also used the following web site as well
[4]ftp://public.dhe.ibm.com/systems/support/i/iws/systems_i_software_iws_pdf_WebServicesServer_new.pdf

Following the wizard, I created the web service (creating REST output) and
can start and stop the server from a browser and can see the server in the
QHTTPSVR subsystem

However, when I run the following
[5]http://NBTYS20:10108/web/services/GETCUSTINF/02/882955

in SOAP UI, I get no response
The same is also true in Internet explorer
However, in Chrome, I do receive the following
HTTP ERROR 415

Googling this does not give me much to use

Now - 10108 is the port that was given to this process as part of the
wizard
So I did google
AS400 ports
And found the following web page
[6]https://search400.techtarget.com/tip/How-to-use-NETSTAT-to-troubleshoot-your-iSeries-network-connections

from here I tried the command
NETSTAT *CNN
Which displayed the "Work with IPv4 Connection Status" screen
I then pressed F15, which displayed the "Subset Connection List" screen,
where I can enter the port number (10108) in the
Local port range:
  Lower value  .
Pressing Enter (twice), displays Subset of IPv4 Connections showing that
port 10108 is in Listen State
     Remote           Remote     Local
Opt  Address          Port       Port       Idle Time  State
     *                *          10108      000:00:01  Listen

When I resubmit
[7]http://NBTYS20:10108/web/services/GETCUSTINF/02/882955
from Chrome, and press F5 (Refresh) on the Subset of IPv4 Connections
screen, I get the following displayed
        Remote               Remote           Local
Opt  Address               Port                 Port                 Idle
Time  State
     *                              *                       10108        
     000:00:01  Listen
     172.31.61.13          57077              10108              000:00:01
 Time-wait
     172.31.61.13          57078              10108              000:00:01
 Established
     172.31.61.13          57079              10108              000:00:01
 Established

This is where I am now - but I don't know where to go to from here

Alan Shore
E-mail : ASHORE@xxxxxxxx
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
'If you're going through hell, keep going.'
Winston Churchill

------------------------------

Subject: Digest Footer

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) digest list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: [8]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 [9]https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: [10]https://amazon.midrange.com

------------------------------

End of MIDRANGE-L Digest, Vol 18, Issue 294
*******************************************
 

References

Visible links
1. http://common1.frankeni.com:10213/web/services/ConvertTempService/ConvertTemp?wsdl
2. http://ibmsystemsmag.com/ibmi/developer/general/using_iws/
3. https://scottklement.com/presentations/Providing%20RPG%20Web%20Services%20on%20IBM%20i.pdf
4. ftp://public.dhe.ibm.com/systems/support/i/iws/systems_i_software_iws_pdf_WebServicesServer_new.pdf
5. http://nbtys20:10108/web/services/GETCUSTINF/02/882955
6. https://search400.techtarget.com/tip/How-to-use-NETSTAT-to-troubleshoot-your-iSeries-network-connections
7. http://nbtys20:10108/web/services/GETCUSTINF/02/882955
8. https://lists.midrange.com/mailman/listinfo/midrange-l
9. https://archive.midrange.com/midrange-l
10. https://amazon.midrange.com/
--
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@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com

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.