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.

SOAP Response element extract

LegacyForum
LegacyForum Posts: 1,664 ✭✭
edited December 2016 in SOAtest
Hi,

From the soap response , how do I extract the only required values and write it separate file .

ex: my soap response contains

<name> Puneeth </name>
<SSN> 143333 </SSN>
<age> 24 </age>

so here I just want to fetch the ssn and write to output file , rather than writing all details .

Thanks.
Tagged:

Comments

  • LegacyForum
    LegacyForum Posts: 1,664 ✭✭
    Hey Jagath,

    I'd be happy to help you with this.

    To achieve the goal you asked about, simply chain an XML transformer tool to the response SOAP envelope, have the transformer tool extract the desired element, and then chain a write file tool to the XML transformer tool to write that element to a file.

    Hope this helps! Please let me know if issues persist and/or if there are any additional questions...

    Regards,
    Adam
  • LegacyForum
    LegacyForum Posts: 1,664 ✭✭
    Hi Adam,

    Thank you very much , it is working as expected .

Tagged