Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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?

like image 298
Stef Heyenrath Avatar asked Sep 16 '10 08:09

Stef Heyenrath


People also ask

How do I get a response from a SOAP request?

HTTP ResponseClick the 'RAW' Tab in SOAP-UI Response Window to understand how the response is sent via HTTP. After processing the request, the http response code (200) is shown which means it is a success. The web-server has processed it successfully.

What are the elements a SOAP message contains?

A SOAP message is encoded as an XML document, consisting of an <Envelope> element, which contains an optional <Header> element, and a mandatory <Body> element. The <Fault> element, contained in <Body> , is used for reporting errors.


1 Answers

This will generate a globally unique id:

${=java.util.UUID.randomUUID()} 
like image 158
bkaid Avatar answered Sep 22 '22 15:09

bkaid