โ08-26-2021 04:21 AM
Hello,
I have to design a pipe line which is based on SOAP request. I have the wsdl. This is my first SOAP pipeline I have few queries.
The SOAP Execute snap has three fields
The wsdl file I have has โExecuteApplicationโ endpoint or method. I need to execute this with request payload when the input filed $Action equal to โdirectoryโ.
I designed a pipe line like this
Here Json parser takes the input and Mapper will prepare the payload for SOAP executor. But this pipeline throwing error.
โmessageโ: โHTTP Code: 400 Status: POST to pipeline that does not have an unlinked input view Errors: Noneโ
Pls suggest how to execute this SOAP request .
thanks
arun
โ08-31-2021 04:54 AM
โ08-31-2021 05:16 AM
@Spiro_Taleski resp.txt (977 Bytes)
โ08-31-2021 07:39 PM
@Spiro_Taleski , did you get chance to check the sample SOAP response file.
โ09-01-2021 02:23 AM
Hello @arunnp
The provided JSON in the ExecuteApplicationResult field itโs not valid json. The main issue is the double quotes after string โWindowsโ
You can try to remove it with regex, but that wonโt guarantee that this will be working solution in the future.
Try to map it ExecuteApplicationResult to result and pass it like that.
Regards,
Pero Manchevski
โ09-01-2021 02:24 AM
Hi @arunnp ,
You can use this expression:
JSON.parse($['s:Body'].ExecuteApplicationResponse.ExecuteApplicationResult.replaceAll('Windows"', "Windows "))
This will parse all the data and transform it into JSON object, but I had to change the โWindowsโ part because is invalid. I removed the " from โWindows"โ.
Result: