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?
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? 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? (without using any web service stuff. We can use JAXB like that) Thank you. Regards, Shehan From: Amila Suriarachchi [mailto:amilasuriarach...@gmail.com] Sent: 2008-12-23 17:24 To: axis-user@ws.apache.org Subject: Re: JAX-WS support in axis2 On Tue, Dec 23, 2008 at 5:02 AM, Shehan Simen <ssi...@itree.com.au<mailto:ssi...@itree.com.au>> 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:gr...@juris.de<mailto:gr...@juris.de>] Sent: 2008-12-22 19:27 To: axis-user@ws.apache.org<mailto:axis-user@ws.apache.org> 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:amilasuriarach...@gmail.com<mailto:amilasuriarach...@gmail.com>] Gesendet: Mo 22.12.2008 08:54 An: axis-user@ws.apache.org<mailto:axis-user@ws.apache.org> Betreff: Re: JAX-WS support in axis2 On Mon, Dec 22, 2008 at 12:54 PM, Shehan Simen <ssi...@itree.com.au<mailto:ssi...@itree.com.au>> 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/