cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vjacheslav V. Borisov" <slav...@gmail.com>
Subject Re: Consuming mutiple xml representations on resource
Date Tue, 06 Oct 2015 10:35:30 GMT
2015-10-05 18:28 GMT+04:00 Sergey Beryozkin <sberyozkin@gmail.com>:

> Done for 3.1.4-SNAPSHOT
>

Thanks again, we will try it. Upgrading from 3.0.4 found strange behavior
(started at 3.0.6)
When method request contains xml and json representation and both contain
"element" reference
                <method name="PUT" id="edit">
                    <request>
                        <representation mediaType="application/xml"
element="cb:session"/>
                        <representation mediaType="application/json"
element="cb:session"/>
                    </request>
                </method>

wadl2java generates perameter with javax.xml.transform.Source istead of
Session

but when i remove element on json representation, it generates element of
Session, so after upgrading need to remove element attribute on json
representations

                <method name="PUT" id="edit">
                    <request>
                        <representation mediaType="application/xml"
element="cb:session"/>
                        <representation mediaType="application/json"/>
                    </request>
                </method>

does this change made on purpose?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message