Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Extension Tool in Responder_ ParasoftVirtualize

rashmi_basate
rashmi_basate Posts: 12
edited December 2017 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

  • Ireneusz Szmigiel
    Ireneusz Szmigiel Posts: 227 ✭✭✭

    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_parasoft
    benken_parasoft Posts: 1,228 ✭✭✭

    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).

  • Hi,

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

  • jakubiak
    jakubiak Posts: 795 admin

    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.