title: SoapUI generates JSON property for namespace
body: <p>I generate a WADL with CXF as described in <a href="http://www.devsumo.com/technotes/2015/01/cxf-missing-wadl-method-parameter-element-types-with-json-jax-rs-services/" rel="nofollow">CXF – Missing WADL method parameter element types with JSON JAX-RS services</a>. </p>
  
  <p>I tried to generate the JSON request body in SoapUI ("Recreates a default representation from the schema"), but I get the wrong JSON including namespace.</p>
  
  <p><strong>Code:</strong></p>
  
  <p>CXF configuration:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;bean id="wadlGenerator" class="org.apache.cxf.jaxrs.model.wadl.WadlGenerator"&gt;
      &lt;property name="linkJsonToXmlSchema" value="true" /&gt;
  &lt;/bean&gt;
  
  &lt;jaxrs:server address="/rest/1" id="test" staticSubresourceResolution="true"&gt;
      &lt;jaxrs:serviceBeans&gt;
          &lt;ref bean="testResource" /&gt; 
      &lt;/jaxrs:serviceBeans&gt;
      &lt;jaxrs:providers&gt;
          &lt;bean class="com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider" /&gt;
          &lt;ref bean="wadlGenerator" /&gt;
      &lt;/jaxrs:providers&gt;
  &lt;/jaxrs:server&gt;
  </code></pre>
  
  <p><strong>WADL:</strong></p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0"?&gt;
  &lt;application xmlns:prefix1="http://www.test.com/test" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://wadl.dev.java.net/2009/02"&gt;
      &lt;grammars&gt;
          &lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.test.com/test" targetNamespace="http://www.test.com/test" elementFormDefault="unqualified" attributeFormDefault="unqualified"&gt;
              &lt;xs:import/&gt;
              &lt;xs:element name="testModel" type="testModel"/&gt;
          &lt;/xs:schema&gt;
          &lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.test.com/test" targetNamespace="http://www.test.com/test" elementFormDefault="unqualified" attributeFormDefault="unqualified"&gt;
              &lt;xs:complexType name="testModel"&gt;
                  &lt;xs:sequence&gt;
                      &lt;xs:element name="id" type="xs:string"/&gt;
                      &lt;xs:element name="name" type="xs:string" minOccurs="0"/&gt;
                  &lt;/xs:sequence&gt;
              &lt;/xs:complexType&gt;
          &lt;/xs:schema&gt;
      &lt;/grammars&gt;
      &lt;resources base="http://localhost:8080/test-app/services/rest/1"&gt;
          &lt;resource path="/test"&gt;
              &lt;method name="POST"&gt;
                  &lt;request&gt;
                      &lt;representation mediaType="application/json" element="prefix1:testModel"/&gt;
                  &lt;/request&gt;
                  &lt;response status="204"/&gt;
              &lt;/method&gt;
          &lt;/resource&gt;
      &lt;/resources&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p><strong>JSON:</strong></p>
  
  <pre><code>{
     "@xmlns:test": "http://www.test.com/test",
     "id": "?",
     "name": "?"
  }
  </code></pre>
  
  <p>Is that a bug/missing feature of SoapUI or is there something wrong with my WADL?</p>