我有一个像这样的字符串XML:
<glossary>
<GlossDiv>
<GlossList>
<GlossEntry>
<Abbrev>ISO 8879:1986</Abbrev>
<Acronym>SGML</Acronym>
<GlossDef>
<GlossSeeAlso>
<e>GML</e>
<e>XML</e>
</GlossSeeAlso>
<para>A meta-markup language, used to create markup languages such as DocBook.</para>
</GlossDef>
<GlossSee>markup</GlossSee>
<GlossTerm>Standard Generalized Markup Language</GlossTerm>
<ID>SGML</ID>
<SortAs>SGML</SortAs>
</GlossEntry>
</GlossList>
<title>S</title>
</GlossDiv>
<title>example glossary</title>
</glossary>
我如何将此添加到我的XML请求中?
例如:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.webserviceX.NET">
<soapenv:Header/>
<soapenv:Body>
<web:GetWeather>
<HERE IS WHERE I'D LIKE TO PUT MY XML FROM BEFORE>
</web:GetWeather>
</soapenv:Body>
</soapenv:Envelope>
先谢谢你们。任何帮助都会很棒。
答案 0 :(得分:0)
这是通过使用Groovy Script修改soapUI上的请求值的方法。
testRunner.testCase.testSteps [ “yournameRequest”]。setPropertyValue( “请求”, “newvalueyouwanttoUse”)