Share this page

# Example: web_convert_to_formatted

This example shows a call to web_convert_to_formatted with the data format extension specified in the Extensions argument.

To use this sample code:

- Create chains named myChainName1, myChainName2, and myChainName3 using the Data Format Extension user interface.
- Define a parameter named myBinaryDataBuffer. The parameter stores binary data.

    web_convert_to_formatted (
        "RawData= {\"firstName\": \"John\",\"lastName\": \"Smith\"}",
        "TargetParam=DFE_Param1",
        "ChainName=myChainName1",
        LAST );

    web_convert_to_formatted (
        "RawData/EscapedBinary=\\xAC\\xED\\x00\\x05sr\\x005"
            "org.springframework.remoting.support.RemoteInvocation_l"
            "\\x8B\\x9F\\xF6\n\\x11\n"
            "\\x02\\x00\\x04[\\x00\targumentst"
            "\\x00\\x13[Ljava/lang/Object;L\\x00\n"
            "attributest\\x00\\x0FLjava/util/Map;L\\x00\n"
            "methodNamet\\x00\\x12Ljava/lang/String;"
            "[\\x00\\x0EparameterTypest\\x00\\x12"
            "[Ljava/lang/Class;xpppt\\x00\\x0BisAvailableur"
            "\\x00\\x12[Ljava.lang.Class;"
            "\\xAB\\x16\\xD7\\xAE\\xCB\\xCDZ\\x99"
            \\x02\\x00\\x00xp\\x00\\x00\\x00\\x00",
        "TargetParam=DFE_Param2",
        "ChainName=myChainName2",
        LAST );

    web_convert_to_formatted (
        "RawData/BinaryParam= myBinaryDataBuffer",
        "TargetParam=DFE_Param3",
        "ChainName=MyChainName3",
        LAST );

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: