I've checked in a fix, the latest automated build should include it.
Marc.
On Dec 11, 2009, at 4:29 PM, Andrew Glowik wrote:
> Marc,
>
> Thanks. Your workaround, understood as such, unblocked us.
>
> -Andrew.
>
> On Fri, Dec 11, 2009 at 3:53 PM, Marc Hadley <Marc.Hadley_at_sun.com> wrote:
> OK, I took a look and a quick workaround is to separate the xml and json types into separate methods like this (I removed the parameters for clarity):
>
> <application xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://research.sun.com/wadl/2006/10">
> <resources base="http://example.com/">
> <resource path="norm">
> <method id="normalization-and-extraction-xml" name="POST">
> <doc>
> Post single list for normalization and/or extraction. HTTP respose contains the results.
> </doc>
> <request>
> <representation id="AttachmentXml" mediaType="application/xml" status="200" element="nm:ExtractAndNormalize">
> <doc>
> ExtractAndNormalize.xsd
> </doc>
> </representation>
> </request>
> <response>
> <representation id="AcceptXml" mediaType="application/xml" element="nm:ExtractAndNormalize" status="200"/>
> </response>
> </method>
> <method id="normalization-and-extraction-json" name="POST">
> <doc>
> Post single list for normalization and/or extraction. HTTP respose contains the results.
> </doc>
> <request>
> <representation id="AttachmentJson" mediaType="application/json" status="200">
> <doc>
> JSON equivalent of ExtractAndNormalize.xsd
> </doc>
> </representation>
> </request>
> <response>
> <representation id="AcceptJson" mediaType="application/json" status="200"/>
> </response>
> </method>
> </resource>
> </resources>
> </application>
>
> I realize this isn't ideal since a client might want to send xml and get back json (or vice versa) so I'll continue to look at this but I thought an early solution might be useful in case you are blocked by it.
>
> Marc.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_wadl.dev.java.net
> For additional commands, e-mail: users-help_at_wadl.dev.java.net
>
>