title: jaxb adding namespace to element
body: <p>According to my task I have to invoke SOAP service. So, I have generated java classes from wsdl using xjc. But I have a problem invoking SOAP service. My application generates this request:</p>
  
  <pre><code>    &lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
  &lt;SOAP-ENV:Header xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"/&gt;&lt;soap:Body&gt;
  &lt;typ:SendMessage xmlns:ns4="http://test.user.kz/UserInfo" xmlns:q1="http://test.user.kz/CustomerInfo" xmlns:typ="http://test.user.kz/MyChannel/v1/Types"&gt;
      &lt;request&gt;
          &lt;requestInfo&gt;
              &lt;messageId&gt;26e96b11-8f82-421e-829a&lt;/messageId&gt;
          &lt;/requestInfo&gt;
          &lt;requestData&gt;
              &lt;data xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="q1:PaymentPackageRequestType"&gt;
                  &lt;q1:methodName&gt;testMethod&lt;/q1:methodName&gt;
              &lt;/data&gt;
          &lt;/requestData&gt;
      &lt;/request&gt;
  &lt;/typ:SendMessage&gt;&lt;/soap:Body&gt;&lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>But I need in my SOAP request I need to specify namespace in data tag, lik this:</p>
  
  <pre><code>     &lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
  &lt;SOAP-ENV:Header xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"/&gt;&lt;soap:Body&gt;
  &lt;typ:SendMessage xmlns:ns4="http://test.user.kz/UserInfo" xmlns:q1="http://test.user.kz/CustomerInfo" xmlns:typ="http://test.user.kz/MyChannel/v1/Types"&gt;
      &lt;request&gt;
          &lt;requestInfo&gt;
              &lt;messageId&gt;26e96b11-8f82-421e-829a&lt;/messageId&gt;
          &lt;/requestInfo&gt;
          &lt;requestData&gt;
                          &lt;data xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xsi:type="q1:PaymentPackageRequestType"  **xmlns:q1="http://payments.bee.kz/PaymentPackage"**&gt;
                  &lt;q1:methodName&gt;testMethod&lt;/q1:methodName&gt;
              &lt;/data&gt;
          &lt;/requestData&gt;
      &lt;/request&gt;
  &lt;/typ:SendMessage&gt;&lt;/soap:Body&gt;&lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>Otherwise target SOAP service gives me error:</p>
  
  <pre><code>XML namespace prefix 'q1' is not defined.
  </code></pre>
  
  <p>How it possible to specify namespace in data tag?
  This is my current package-info:</p>
  
  <pre><code>@javax.xml.bind.annotation.XmlSchema(
          xmlns = {
              @javax.xml.bind.annotation.XmlNs(prefix = "typ",
                      namespaceURI = "http://test.user.kz/MyChannel/v1/Types"),
              @javax.xml.bind.annotation.XmlNs(prefix = "q1",
                      namespaceURI = "http://test.user.kz/CustomerInfo")
          },
     elementFormDefault = javax.xml.bind.annotation.XmlNsForm.UNQUALIFIED,
     attributeFormDefault = javax.xml.bind.annotation.XmlNsForm.UNSET
  )
  package kz.uni.gen;
  </code></pre>
  
  <p>So I couldn't add namespace xmlns:q1="http://test.user.kz/CustomerInfo" to data tag in SOAP request. How can I add this namespace declaration or move namespace declaration from SendMessage tag?</p>