Hello, I had a couple of questions about @RequestWrapper and @ResponseWrapper
annotations with respect to CXF:
1) For code first development, if you specify either of the wrapper
annotations it MUST include a className, correct? I believe that's what the
Javadoc says, looking for confirmation.
2) The only way to control the whether an operation parameter is optional
vs. required is using JAXB annotations within the wrapper class?
3) If you want to place operation message types within a specific namespace,
you have to use the wrapper annotations, along with the namespace attribute.
i.e.
@RequestWrapper(localName="getNameById",
targetNamespace="http://www.example.com/services/order/v1.0",
className="com.example.services.GetNameById"
or do you specify it in the wrapper class definition like:
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = { "id" } )
@XmlRootElement(name = "getNameById", namespace =
"http://www.example.com/services/order/v1.0")
public class GetNameById {
}
or in both the wrapper annotation and wrapper class definition? Are there
ways I can reduce the amount of repetition here?
Thanks
Derek
--
View this message in context:
http://cxf.547215.n5.nabble.com/Some-questions-about-RequestWrapper-ResponseWrapper-annotations-tp4746638p4746638.html
Sent from the cxf-user mailing list archive at Nabble.com.