Store web service response as string - Mendix Forum

Store web service response as string


Currently, the 'Call Web Service' activity has the ability to store the response in a variable using import mapping which is tied to a specific operation.

Problem: We have multiple web service operations which return the same kind of response. With the current behavior we are creating multiple import mappings tied to each operation with the same data elements

Suggestion: If we are able to store the web service response as string instead of object though importing mapping then we could use one import mapping to import the string data from multiple service operations. This is similar to how mendix handles request mapping.

1 answers

@Rupesh You can do it by casting the latestHttpResponse object to a string after you do a (dummy) webservice call.