infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Cloverleaf
Using java/ws-rawclient to call a GET endpoint
Ken Smith
It seems it ought to be simple, which means I am probably just overlooking a simple step. I have configured a ws-rawclient to call a GET endpoint.I can call the endpoint from curl on the command line of the server, so I know the endpoint is reachable.
There is a Bus, Conduit and RawConsumer. Conduit has default settings for connection timeout and receive timeout. The Name in the Conduit matches the Address in the RawConsumer. RawConsumer specifies GET.
I have configured this thread to be the initial thread in the process, to call the GET, receive a response, and send the response (JSON formatted data) to a file (for now, just for testing). However, I can't see any sign of the GET endpoint being called. No errors in the logging. And no response data. The logging shows this (GET_DATA_OLR is the process):
Receiving a command
Received command: 'GET_DATA_OLR_xlate xrel_post'
Doing 'xrel_post' command with args '<none>'
Receiving a command
Received command: 'GET_DATA_OLR_xlate xrel_post'
Doing 'xrel_post' command with args '<none>'
Receiving a command
Command client went away. Closing connection.
Receiving a command
Command client went away. Closing connection.
Receiving a command
Received command: 'GET_DATA_OLR_xlate xrel_post'
Doing 'xrel_post' command with args '<none>'
Receiving a command
Command client went away. Closing connection.
Find more posts tagged with
Clovertech
Comments
Paul Stein
Is this an outbound thread?
Ken Smith
I'm not exactly sure in this context. The GET is called on the first thread in the process, the result message should get written to/passed to a second (file) thread. So in that sense it may be inbound. I've attached a screenshot.
rawClient_GET.jpg
System
Originally posted by Don Martin
Using a rawclient to make an HTTP GET call would typically be used on an outbound thread, and need to be triggered by some sort of message. If you want the HTTP GET call to be the start of some type of flow, you could use a UPOC timer as the inbound thread to initiate the flow and route some sort of dummy message to the outbound rawclient thread. Make sure you have message logging turned on in the rawclient bus so you can see the outgoing call and incoming response in the logs.
Ken Smith
Thanks very much for your excellent advice. I had about reached the conclusion from examples and experiments that the rawclient would only work as the outbound thread, but couldn't quite figure the rest.