inputVar in webservicequery function

Certified Lead Developer

Hi All,

I am trying to give 'inputVar' parameter value dynamically as there are multiple input tags available for the SOAP service but all exclusive i.e if one is there another cannot be passed.

Example below:

RequestMsg: {
                      Request: {
                                      headerRequest: {
                                                                requestingSystem: ABC,
                                                                userType: XYZ,
                                                                authenticationSystem: PQR,
                                                                requestTimestamp: now(),
                                                                externalTransactionIdentifier: 123,
                                                               },
                                                Search1: {
                                                                Reference1: XXX
                                                               },

                                                Search2: {
                                                                Reference2: YYY
                                                               },

                                                Search3: {
                                                                Reference3: ZZZ
                                                               }
                                     }
                     }

 

In the above example, user can either give search option 1,2 or 3 but only one at a time. I am trying to put if else logic around the search criteria tags but the expression is not allowing to add anything there and throws an error for inputVar parameter. Can someone please suggest how can we do the conditional search tag formation in the inputVar parameter.

 

Thanks.

Hitesh

  Discussion posts and replies are publicly visible