Forum Discussion

Bruce_Silver's avatar
16 years ago

read xml file into test request

Newbie question.  Request body is very complex, hundreds of elements, many optional.  I am trying to use directory datasource, or directory + xml datasource, to read file test.xml into test request body as one block (not one element at a time).  When I use just directory datasource, the xml is wrapped in CDATA, e.g.

<br /><SendSubmissionRequest xmlns="http:// ... etc<br /><br />instead of <br /><br /><soapenv:Body><br />&nbsp; <SendSubmissionRequest xmlns="http:// ... etc<br /><br />With xml datasource reading this datasource I have not succeeded in anything other than transferring one element at a time.<br /><br />How can I get complex xml on disk into test requests?

1 Reply

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi!

    hmm.. how are you transferring the file content to the request? Property-Transfer? Property-Expansion?

    regards,

    /Ole
    eviware.com