Forum Discussion
KarelHusa
9 years agoSuper Contributor
Apoorva6, you can insert a file content into a message request with the following code:
${=new File("C:/Users/MyUser/Desktop/testFile.txt").text}
In your case the request might look like this:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<dis:retrieveSiteIdSiteNameResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:dis="http://edb.mt.com/nbipvpn/dispatcher">
<result xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<![CDATA[${=new File("C:/Users/MyUser/Desktop/testFile.txt").text}]]>
</dis:retrieveSiteIdSiteNameResponse>
</soapenv:Body>
</soapenv:Envelope>
Karel