title: Spring does not add namespace for type String in SOAP message
body: <p>I have generated by Java objects using JAXB2.2. I am using Spring 3.0.1, Java 1.6, and JBoss AS 5.</p>
  
  <p>My problem is that when my application sends generates and sends a SOAP message, I have an element that is of type anyType, generated as an Object in Java. The sent request message will be formed like this:</p>
  
  <pre><code>&lt;field xsi:type="xs:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
  </code></pre>
  
  <p>But the schema expects this:</p>
  
  <pre><code>&lt;field xsi:type="xs:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;
  </code></pre>
  
  <p>As you can see, the missing namespace definition is this:</p>
  
  <pre><code>xmlns:xs="http://www.w3.org/2001/XMLSchema"
  </code></pre>
  
  <p>The generated java output for this element is:</p>
  
  <pre><code>@XmlAccessorType(XmlAccessType.FIELD)
  @XmlType(name = "MetadataElement", namespace = "http://...", propOrder = {
  "field"
  })
  public class MetadataElement {
  
  @XmlElement(required = true)
  protected Object field;
  </code></pre>
  
  <p>Any ideas on how I can generate the missing namespace?</p>