Extension Tool in Responder_ ParasoftVirtualize

rashmi_basaterashmi_basate Posts: 7
edited December 1 in SOAtest

Hi, I am using extension tool(Incoming Request payload--->Extension tool) in responder.
i want to convert incoming request which is in .xml into String using Java.

Please help me over this

Comments

  • Hi rasmi_basate,

    why do you want to use scripting?
    You have in Virtualize a nice tool called XML Converter, which allows you to convert inputs into XML.
    Try first to use this instead of scripting.
    Ireneusz Szmigiel

  • benken_parasoftbenken_parasoft Posts: 294 ✭✭✭

    convert incoming request which is in .xml into String using Java

    I'm not entirely sure I understand your goal here. However, if you chain an Extension tool to the Incoming Request payload then the first argument to the method in your Extension tool should already be a String object (or if not, call toString() on it).

  • rashmi_basaterashmi_basate Posts: 7

    Hi,

    I want to convert incoming request (which is .xml) into String using Java

  • jakubiakjakubiak Posts: 179 ✭✭✭

    The incoming request is already a String - you shouldn't have to convert it. If you do, you can just call toString() on the input object to your Extension Tool.

Sign In or Register to comment.