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.

Access incoming request xml in stubs

LegacyForum
LegacyForum Posts: 1,664 ✭✭
edited December 2016 in SOAtest
Hello,
We have the below requirement.
We are using SOATest as the stub server environment. When a stub is invoked by the webservice client the stub should read a specific value in the request xml (SOAP message) and populate the response element with the request value.
How can we implement this intellegence into the Stub?
Please help
Tagged:

Comments

  • LegacyForum
    LegacyForum Posts: 1,664 ✭✭
    Hello Prashant,

    I would be happy to help out.

    In order to read a specific value in the incoming request XML, you can create an XML Data Bank chained in the stub server itself. With it you will be able to see every XML value in the request, be able to extract a specific value, and put it in a table with a variable name that the rest of the stub can use. The stub can then create a response with that parametrized value by using its name in the table, so that every response will contain the input element.

    In the help document for SOATest, you can look up the XML Data Bank in Parasoft SOAtest User's Guide > Reference > Available Tools > XML Tools > XML Databank. If you also need more help with the stub server response, you can go to Parasoft SOAtest User's Guide > SOAtest Tutorial > Creating and Deploying Stubs > Creating Stubs for an Application that Does Not Exist Yet. If you need any more help, or you figure out the solution, feel free to make another post so I know.

    Best Regards
    -Baxter Campbell

Tagged