On Tue, Dec 23, 2008 at 12:37 PM, Shehan Simen <[email protected]> wrote:
> Hi Amila, > > Thank you for the reply. > > Please answer my questions separately. > > I saw jaxbri is still in experimental level. How far ADB and JAXB > compatible? > > If I validate an xml document against JAXB, does it mean that xml is > compatible with ADB as well? > > Are there any conflicts between them? > jaxbri and ADB are two different databinding frameworks. there is no compatibility or conflict among them. Try to generate the code with both frameworks. > > > Basically I have xml documents which are validated against a schema using > JAXB. I have use the same schema to generate the wsdl2java code using ADB. > Do you think those xml documents(validated against JAXB) are compatible with > the ADB generated classes? > yes. if it is a valid xml then ADB will not give any problem. ADB validates the request while parsing it. > I want to pass those xml documents via the axis2 ADB web service. > > > > Is there a way that I can use ADB separately to validate an xml document > against a schema? > you need to generate the code with ADB. please see here[1] > (without using any web service stuff. We can use JAXB like that) > > > thanks, Amila. [1] http://wso2.org/library/2068 > Thank you. > > > > Regards, > > Shehan > > > > *From:* Amila Suriarachchi [mailto:[email protected]] > *Sent:* 2008-12-23 17:24 > *To:* [email protected] > *Subject:* Re: JAX-WS support in axis2 > > > > > > On Tue, Dec 23, 2008 at 5:02 AM, Shehan Simen <[email protected]> wrote: > > Hi Amila, > Can you explain your answer further more? It is not much helpful. > > > this is not about jaxws. > > you can generate axis2 dependent code using wsdl2java tool for a wsdl > file. wsdl2java tool uses a databinidng framework to generate the > databinding code. i.e to compile the xsd part of the wsdl. > > By default it uses ADB as the databinding tool. But you can specify one of > the following databinding frameworks as well. so you can give jaxbri as an > alternative. > > thanks, > Amila. > > > > Regards, > Shehan > > > -----Original Message----- > From: Grimm, Markus [mailto:[email protected]] > Sent: 2008-12-22 19:27 > To: [email protected] > Subject: AW: JAX-WS support in axis2 > > Hi, > > > I would like to know how far Axis2 supports JAX-WS. > > That's a good question. How far Axis2 1.5 supports this standard (JAX-WS > and JAXB) ??? > > Thanks, > Markus > > > > > -----Ursprüngliche Nachricht----- > Von: Amila Suriarachchi [mailto:[email protected]] > Gesendet: Mo 22.12.2008 08:54 > An: [email protected] > Betreff: Re: JAX-WS support in axis2 > > On Mon, Dec 22, 2008 at 12:54 PM, Shehan Simen <[email protected]> > wrote: > > > Hi, > > > > I would like to know how far Axis2 supports JAX-WS. > > > > Metro fully uses JAX-WS. If I want to use jax-ws, is there any reason > that > > I should select axis2 instead of Metro? > > > > The reason to use Jax-ws is that I can use jaxb separately in other > > projects to validate the xml files. And then feed those xml files to the > web > > service directly, then for sure I know that there won't be any mismatch > > between the xml syntax. > > > > > > > > If I use ADB instead of JAXB, can I guarantee that I can pass an xml > > document to the web service, which is validated against JAXB? > > > One option here is to use the jaxbri data binding with the wsdl2java tool. > (-d jaxbri) then you have the jaxbri code for data binding. > > > Or is there a way that I can validate an xml document against ADB > separate > > from web service? It is also a viable option for me. (to select axis2 > > instead of Metro) > > > > > > > > Please axis2 gurus, reply me. > > > > > > > > Thanks. > > > > > > > > > > -- > Amila Suriarachchi > WSO2 Inc. > blog: http://amilachinthaka.blogspot.com/ > > > > > -- > Amila Suriarachchi > WSO2 Inc. > blog: http://amilachinthaka.blogspot.com/ > -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/
