Hi all, I have created a web service for parsing a document which is taking two request parameters:
- Header Parameter :
Key : “Authorization”
Value : (xyz 123456) // just an example
- Body Parameter :
Key : “file”
Value : (Base64 data)
When I test it within the Web Service section by providing both the parameters, it is working fine and giving the expected output in json format.
Now, when I use the same web service in Business Process and pass the parameters correctly by storing it in process parameters, the process always gives an error on that web service element.
Error is as follows:
Terrasoft.Common.UnsupportedTypeException: Type "System.Collections.Generic.List`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" is not supported.
I am getting base64 data correctly from Business Process. Please help regarding this error.
Like
hi Prashant Jha
Creatio has its "JSON key parser" in a core assembly that works OOTB in the service section. Usually, it occurs in the Method & Body Parameters of a Web Service.
On looking at the exception, the input types are not matched here and one of the input types is Collection List.
Can we backtrack it by passing the parameters one by one? which means trying to send Parameter A, get the exception and then try passing Parameter A, and B to get the exception.
From the above information, I presume that the error lies in the below factors,
Body Parameter :
Key : “file”
Value : (Base64 data)
BR,
Bhoobalan Palanivelu
Hello,
This error could be due to incorrect handling of an array of parameters in the web service response (Result).
Try to remove parameter array from web service response.