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.

Controlling the Content-ID of an attachment

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

My web-service requires the attachment ID to be specified as a parameter inside the SOAP envelope, for defining the different actions to be taken on each attachment.
For this I need to be able to define the content-id of a specific attachment, or get the content-ID, and use it as a parameter inside the request.

Is this possible with SOAPtest?

Thanks
Uri
Tagged:

Comments

  • LegacyForum
    LegacyForum Posts: 1,664 ✭✭
    Options
    Hello Uri,

    Yes, this absolutely is possible in SOAtest.

    You can define the Content-Id of an attachment by doing the following:

    1. Go the the Attachment tab on your SOAP Client tool.
    2. Click on the Edit Headers button.
    3. Add a header with the name "Content-Id" and fill the value section with what you want to specify.


    A possible use case would be to have a Data Source with the Content-Id numbers and parameterize the element in your SOAP message and the value of the header with the column of the Content-Id numbers from the Data Source.

    Please let me know if you have any further questions.

    Best Regards,

    - Graeham

Tagged