SoapUI : is it possible to autogenerate the value from an element in a SOAP message?

Stef Heyenrath picture Stef Heyenrath · Sep 16, 2010 · Viewed 30.3k times · Source

With SoapUI it's possible to send Soap XML message to a WCF service. I've the following SOAP message:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:my="http://myserviceprovider">
   <soap:Header/>
   <soap:Body>
      <my:ProcessOrder>
         <my:Orders>
            <my:Order>
               <my:id>randomid_1234567890</my:id>
               <my:data>ABC</my:data>
            </my:Order>
         </my:Orders>
      </my:ProcessOrder>
   </soap:Body>
</soap:Envelope>

Because the WCF service expects a unique ID for my:id, I would like to know if SoapUI provides functionality to automatically generate a random GUID?

Answer

bkaid picture bkaid · Jul 27, 2011

This will generate a globally unique id:

${=java.util.UUID.randomUUID()}