XML Unmarshalling

The GLU process for unmarshaling XML involves converting the XML data into JSON format, followed by the unmarshaling of the JSON. If the connector request calls for XML, the JSON data is then converted back to XML.

Example payload to UnMarshall



You can copy the XML body into a JSON Converter to make it more readable:
Code Beautify


GLU needs to be told where the parameters are, so you need to read into the XML body for the parameter location.


Examples

First define the parameter name.



In the Unmarshalling section, the attribute name to unmarshal from is specified within the attributes section, with the unmarshalling operation originating from the Body of the SOAP message. Specifically, for the parameter offlineMode, its path within the SOAP message is delineated as follows:

  • Parameter Name: offlineMode
  • Path: soap:Envelope.soap:Body.ns1:datadictionaryResponse.return


This configuration indicates that the offlineMode parameter is located within the SOAP message’s Body, specifically under the datadictionaryResponse.return node. The attributes section would define additional details related to unmarshalling, such as the attribute’s name within the SOAP message structure.


In the Object / Collection Path field, you would specify the path to access the attribute within the SOAP message. For the offlineMode parameter, this path is:

kotlinCopy codesoap:Envelope.soap:Body.ns1:datadictionaryResponse.return
Save to grepper

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support
Fill the form and we’ll contact you shortly

    I agree with

    cookies
    We uses cookies to make your experience on this website better. Learn more
    Accept cookies