title: org.xml.sax.SAXParseException The prefix "a" for element "a:IDType" is not bound in groovy script
body: <p>I am trying to replace some node in my existing soap envelope using groovy script in SOAPUI tool
  Below is my exting envelop</p>
  
  <pre><code>&lt;s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"&gt;
      &lt;s:Header&gt;
          &lt;o:Security s:mustUnderstand="0" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"&gt;
              &lt;u:Timestamp u:Id="_0"&gt;
                  &lt;u:Created&gt;2019-11-28T08:18:33.396Z&lt;/u:Created&gt;
                  &lt;u:Expires&gt;2019-11-28T08:23:33.396Z&lt;/u:Expires&gt;
              &lt;/u:Timestamp&gt;
          &lt;/o:Security&gt;
      &lt;/s:Header&gt;
      &lt;s:Body&gt;
          &lt;ViewUserResponse xmlns="urn:myapp-com:Security.2014.pop.service.operation1"&gt;
              &lt;ViewUserResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance"&gt;
                  &lt;LoginID xmlns:a="urn:myapp-com:Security.2012.pop.service.operation2"&gt;
  
                      &lt;a:IDType&gt;
                          &lt;a:ID&gt;pop&lt;/a:ID&gt;
                          &lt;a:Type&gt;UserName&lt;/a:Type&gt;
                      &lt;/a:IDType&gt;
                      &lt;a:IDType&gt;
                          &lt;a:ID&gt;pop@we.com&lt;/a:ID&gt;
                          &lt;a:Type&gt;email&lt;/a:Type&gt;
                      &lt;/a:IDType&gt;
                  &lt;/LoginID&gt;
                  &lt;Address xmlns:a="urn:myapp-com:Security.2012.pop.service.operation2"&gt;
                      &lt;a:City&gt;MH&lt;/a:City&gt;
                      &lt;a:State&gt;IND&lt;/a:State&gt;
                      &lt;a:Pincode&gt;1234&lt;/a:Pincode&gt;
                  &lt;/Address&gt;
                    .
                    .
                    .
  </code></pre>
  
  <p>I try to replace the LoginID part with a new content the new content is </p>
  
  <pre><code>                    &lt;a:IDType&gt;
                          &lt;a:ID&gt;pop_new&lt;/a:ID&gt;
                          &lt;a:Type&gt;UserName&lt;/a:Type&gt;
                      &lt;/a:IDType&gt;
                      &lt;a:IDType&gt;
                          &lt;a:ID&gt;pop_new@we.com&lt;/a:ID&gt;
                          &lt;a:Type&gt;email&lt;/a:Type&gt;
                      &lt;/a:IDType&gt;
  </code></pre>
  
  <p>Below is my code </p>
  
  <pre><code>def g = new XmlSlurper(false,false).parseText(newXml).declareNamespace(a:'urn:myapp-com:Security.2012.pop.service.operation2');
  
      existingXml.LoginID.replaceBody(g)
  </code></pre>
  
  <p>This throws an error 
  <strong><em>org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 137; The prefix "a" for element "a:IDType" is not bound.</em></strong></p>