[Geoserver-users] WPS ComplexData mimeType "text/xml; subtype=gml/2.1.2" not recognized?

Hello everyone!

I'm making some tests with the WPS extension in Geoserver 2.1.1 and I have
some issues with the mimeType.
When I send

<wps:Execute version="1.0.0" service="WPS"
xmlns="http://www.opengis.net/wps/1.0.0&quot;
xmlns:wps="http://www.opengis.net/wps/1.0.0&quot;
xmlns:ows="http://www.opengis.net/ows/1.1&quot;
xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:xlink="http://www.w3.org/1999/xlink&quot;&gt;
  <ows:Identifier>JTS:area</ows:Identifier>
  <wps:DataInputs>
    <wps:Input>
      <ows:Identifier>geom</ows:Identifier>
            <wps:Data>
                <wps:ComplexData mimeType="application/wkt">
POLYGON((1 1,5 1,5 5,1 5,1 1))
                </wps:ComplexData>
            </wps:Data>
    </wps:Input>
  </wps:DataInputs>
  <wps:ResponseForm>
    <wps:RawDataOutput>
        <ows:Identifier>result</ows:Identifier>
    </wps:RawDataOutput>
  </wps:ResponseForm>
</wps:Execute>

I get 16.0 => OK

Same when I send

<wps:Execute version="1.0.0" service="WPS"
xmlns="http://www.opengis.net/wps/1.0.0&quot;
xmlns:wps="http://www.opengis.net/wps/1.0.0&quot;
xmlns:ows="http://www.opengis.net/ows/1.1&quot;
xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:xlink="http://www.w3.org/1999/xlink&quot;&gt;
  <ows:Identifier>JTS:area</ows:Identifier>
  <wps:DataInputs>
    <wps:Input>
      <ows:Identifier>geom</ows:Identifier>
            <wps:Data>
                <wps:ComplexData mimeType="text/xml; subtype=gml/3.1.1">
<gml:Polygon><gml:exterior><gml:LinearRing><gml:posList>0 0 0 1 1 1 1 0 0
0</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon>
                </wps:ComplexData>
            </wps:Data>
    </wps:Input>
  </wps:DataInputs>
  <wps:ResponseForm>
    <wps:RawDataOutput>
        <ows:Identifier>result</ows:Identifier>
    </wps:RawDataOutput>
  </wps:ResponseForm>
</wps:Execute>

I get 1.0 => OK

But when I send

<wps:Execute version="1.0.0" service="WPS"
xmlns="http://www.opengis.net/wps/1.0.0&quot;
xmlns:wps="http://www.opengis.net/wps/1.0.0&quot;
xmlns:ows="http://www.opengis.net/ows/1.1&quot;
xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:xlink="http://www.w3.org/1999/xlink&quot;&gt;
  <ows:Identifier>JTS:area</ows:Identifier>
  <wps:DataInputs>
    <wps:Input>
      <ows:Identifier>geom</ows:Identifier>
            <wps:Data>
                <wps:ComplexData mimeType="text/xml; subtype=gml/2.1.2">
<gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>0,0 0,1
1,1 1,0
0,0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon>
                </wps:ComplexData>
            </wps:Data>
    </wps:Input>
  </wps:DataInputs>
  <wps:ResponseForm>
    <wps:RawDataOutput>
        <ows:Identifier>result</ows:Identifier>
    </wps:RawDataOutput>
  </wps:ResponseForm>
</wps:Execute>

I get 0.0 => KO

Could you help here please? I don't understand what I'm doing wrong...

Thanks ^^

Laure-Hélène Bruneton