Hi all,

starting from an xml schema, I generate Java classes with JAXB. Now the
question is, can I use those objects as return type or method
argument(s) of my web service methods or I must use exclusively
OMElement objects?

i.e.

say, for an in-out operation, I generate two classes from the xml
schema, RequestObject and ReplyObject. Which of the two options is the
correct one?,

// web service method
ReplyObject fooMethod(RequestObject arg) {
        ...
}

or

OMElement fooMethod(OMElement arg) {
        ...
}

Thanks,
Michele

Reply via email to