Orchestration Designer: 7.1
Tomcat: 8.0
Java: 1.8/8.0
I have a rest web service operation that I'm trying to invoke and have run into a couple of problems. The details of the rest service operation are as follows:
HTTP Method: Post
URL Format: Query or Path
Input Parameters: None
Message Body: <XML formatted string>
Output Parameters: decryptedValue
Output Format: String
Use Java Object: Checked
Customer Content Type: text/plain
For the first issue, when I attempt to execute the rest operation, the application hangs until when the request is sent to the server. I see a log entry on the server when the request is received, and when it's sent back. However, the OD application sits there even after the request has been received from the server, until the time out value has been reached.
If I add each of the variables from the XML formatted string to the Input Parameters dialog, the rest operation works without fail. The problem is this causes the variables and values to be added to the query string or the path string, which means the information is logged to standard tomcat server request logs. This exposes the information, which fails the customers security requirements.
Why is the Input Parameters a required element?
For the second issue, the rest service returns plain text. No XML, no JSON, no HTML. Although the return has no effect (I've tried every combination so far), the returned value does not get assigned to the Output Parameter assigned variable. I see the result in the web service response, but the value is not assigned to the variable. I've tried both with and without the "Use Java Object" checkbox selected. Currently, the value is selected because that's the only way to select the "String" Output Format, however no matter what is selected, the returned value does not get assigned to the variable. Unfortunately, since the value is not assigned to the variable, I can't even attempt to post-process the results in a custom servlet.
How can I obtain the rest result value?
If needed, I can provide a working sample rest service application and speech application. IDK if it matters, but the rest services are based on Jersey.
Thank you,
Michael
|