Hi Ajith,

I'm sorry, but can you be more clear, please? Could you show me a
practical example?

Thanks,
Michele

Ajith Ranabahu wrote:
> Hi,
> yes this is possible :) Axis2 explicitly allows any databinding to be
> plugged in and infact if you codegen for different frameworks like
> xmlbeans/adb/jaxme you'll see how  the codegenerator generates the
> skeletons referring to the generated databinding classes.
> 
> if you are doing it by hand then you'll have to write your custom
> message receiver and write the fromOM and toOM conversion methods as
> well (the implementation of these methods are dependent on the
> databinding framework)
> My guess is the best choice for you would be to run the codegen with
> XMLbeans and look at the generated code. You can then replace the
> necessary classes and rewrite the conversion methods.
> 
> 
> On 4/25/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
>> 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
>>
> 
> 
> --
> Ajith Ranabahu

Reply via email to