IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Error while running web tool kit REXX to call an API


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Zilla

New User


Joined: 03 Jun 2023
Posts: 11
Location: india

PostPosted: Sat Jun 03, 2023 7:39 pm
Reply with quote

Hi Folks, trying to run out of the box web toolkit rexx on Z/OS for calling web api HWTHXRX1 but facing this error:
HTTP Web Enablement Toolkit Sample Begin
Issuing GET request to www.example.org/

*ERROR* (hwthrqst) at time: 22:08:51
Rexx RC: 0, Toolkit ReturnCode: 262
DiagArea.Service: 589824
DiagArea.ReasonCode: 1121
DiagArea.ReasonDesc: EDC8121I Connection reset.


** hwthrqst failure **
HTTP Web Enablement Toolkit Sample End
***
Does anyone know what could be the fix for this?
Thanks
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2592
Location: Silicon Valley

PostPosted: Sat Jun 03, 2023 8:49 pm
Reply with quote

re: Rexx RC: 0, Toolkit ReturnCode: 262

Only with the slightest bit of debugging info... it seems like rexx is working okay but something wrong with the web setup.

Are you sure EXAMPLE.ORG is a real thing? When I typed it into browser, it says "This domain is for use in illustrative examples in documents."

I am not familiar with Web Enablement Toolkit, but if it has an HTTP server, then you need to change the rexx to refer to your domain and server name.
Back to top
View user's profile Send private message
Zilla

New User


Joined: 03 Jun 2023
Posts: 11
Location: india

PostPosted: Sat Jun 03, 2023 9:28 pm
Reply with quote

Thanks Pedro, but same error comes no matter which URI I give. I will see further if somehow I can figure it out.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2592
Location: Silicon Valley

PostPosted: Sun Jun 04, 2023 12:04 am
Reply with quote

I do not think it can be an arbitrary URL. The server has to be able to understand the request and return a response.

This is not really a rexx issue. Perhaps ask your question in the 'All other mainframe topics' section of this forum site, as I see some HTTP topics discussed there. You might get a better audience for your question.

ibmmainframes.com/viewforum.php?f=35
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Sun Jun 04, 2023 12:42 am
Reply with quote

googling with "hwthrqst" returned some interesting links

one of them hinted about getting a trace

here the link at the manual

www.ibm.com/docs/en/zos/2.4.0?topic=values-capturing-trace-data-through-environment-variables
Back to top
View user's profile Send private message
Zilla

New User


Joined: 03 Jun 2023
Posts: 11
Location: india

PostPosted: Mon Jun 05, 2023 5:32 am
Reply with quote

Thank you guys, yes not a REXX issue but since it is related to REXX so I shut maybe someone might have faced it , sure, will post in other thread and try the verbose option as suggested. Cheers!!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts TSO ALLOC In REXX Needs Improvement JCL & VSAM 3
No new posts Help on IMS -API URL migrating from P... IMS DB/DC 1
No new posts REXX/CMS How to place command console... CLIST & REXX 4
No new posts Help needed in automation cics transa... CLIST & REXX 1
No new posts Reroute print output via REXX/SDSF TSO/ISPF 6
Search our Forums:

Back to Top