title: Updating a WsdlRequest value via SoapUI Pro
body: <p>I want to update a WsdlRequest parameter values at runtime using groovy.
  Say I have a WsdlRequest that contains two parameters: name, address.  I’d like to pass to this WsdlRequest the values I would like the request to have prior to creating a WsdlSubmit instance.  I know the base code is this:</p>
  
  <pre><code>WsdlProject project = new WsdlProject()
  WsdlInterface iface = WsdlInterfaceFactory.importWsdl(project, wsdl, true)[0]
  WsdlOperation operation = (WsdlOperation) iface.getOperationAt(3)
  WsdlRequest request = operation.addNewRequest(requestName)
  request.setRequestContent (requestContent);
  </code></pre>
  
  <p>The requestContent is the soapxml in a String format. Is there a good way to insert my values (say I want name value to be ‘Test’ and address value to be ‘Example’ for the request)?  I’d rather not store the xml as a string and update this if I already have that information when I generate the request. </p>
  
  <p>Here is an example of the xml:</p>
  
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:data="http://test.com"&gt;
     &lt;soapenv:Header/&gt;
     &lt;soapenv:Body&gt;
        &lt;data:updateFieldName&gt;
           &lt;fieldId&gt;?&lt;/fieldId&gt;
           &lt;!--Optional:--&gt;
           &lt;newFieldId&gt;?&lt;/newFieldId&gt;
        &lt;/data:updateFieldName&gt;
     &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>Prior to creating the WsdlRequest, I have created a groovy object that contains the values I want to fill into the above soap xml message.  Let's say this object states the fieldId = 10 and the newFieldRequest = 15.  I a not sure how to pass those values into the request.  Is there a way to do this with the SoapUI API?  I do have a pro license also.</p>