Can you type a sample fragment ?

I've added

<method name="POST" id="addBookOrBook2ComplexMediaTypes">
                    <request>
<representation mediaType="application.vnd.myvnd.some-object+xml" element="prefix1:thebook"/> <representation mediaType="application.vnd.myvnd.some-object-v2+xml" element="prefix1:theBook2"/>
                        <representation mediaType="application/json"/>
                    </request>
                    <response status="201"/>
                </method>

to a test WADL and all is generated correctly with a supportMultipleXmlReps option.

Sergey

On 15/01/14 00:07, tomstark wrote:
I have a particular wadl that has a method that has multiple representations
(different versions of the same object).  Using the -supportMultipleXmlReps,
produces method names that have invalid characters in the name.  The
representations in the wadl are something like this:

application.vnd.myvnd.some-object+xml
application.vnd.myvnd.some-object-v2+xml

The resulting method names are generated with "some-object" and
"some-object-v2" as part of the method name.

Tested this on wadl2java v2.5.2 and 2.7.8.

Similar to issue  https://issues.apache.org/jira/browse/CXF-4932
<https://issues.apache.org/jira/browse/CXF-4932>   but has to do with method
names, not parameters.




--
View this message in context: 
http://cxf.547215.n5.nabble.com/wadl2java-generates-invalid-method-names-tp5738564.html
Sent from the cxf-user mailing list archive at Nabble.com.



--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com

Reply via email to