Suggestion: use @WebParam cues when auto-generating request wrappers for
Doc/Lit/Wrapped
----------------------------------------------------------------------------------------
Key: CXF-1235
URL: https://issues.apache.org/jira/browse/CXF-1235
Project: CXF
Issue Type: Improvement
Components: JAX-WS Runtime
Affects Versions: 2.1
Reporter: Benson Margulies
Assignee: Daniel Kulp
Open up org.apache.cxf.javascript.fortest.SimpleDocLitWrapped, and comtemplate
'beanFunction'.
It takes two parameters: one of type TestBean1, and one of type TestBean1[].
TestBean1 has an XmlRootElement annotation.
RFSB and JAXB build out the unwrapped parts and the schema by using the
XmlRootElement and ignore the @WebParams on the params. The result is a schema
with a sequence of two <element ref='ns:testBean1'/> (one of the two has
maxOccurs set for the array). Thus, two elements/parts with the same name,
which is not a good thing, and the whole idea of the WebParam(name="x") is to
allow the coder to avoid it. The suggestion is to suppress the isElement=true
in this case, and just build a complexType that has two local elements with the
names from the WebParams in them.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.