on 06-26-2007 12:00 PM
Hi Experts,
Scenario : Webservice -> XI -> JDBC (Synh)
Pass the EmpId as a webservice request and get the corresponding Emp address as a response.
Q: How to set the error description/error message, If we don't have address info. for the requested EmpId?
Regards
Sara
Hi
I believe you should be able to do that in the "response" message mapping by checking the value for the address node and after that set the value of the response to say "Invalid id" or something
regards
krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you using integration process?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sara,
You would have mapped the response mapping from the result of the JDBC select to the outbound message type.
In the response mapping, if you can check if the value of the resultset is "null", which means there is no address for the ID. In that case you can change the result to be some custom error message.
You would be needing to use the standard boolean function "if" and a standard "Constant" function, where you would enter your custom error message and map the output of the if condition to the source/outbound element node.
regards
krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.