RE: JAX-WS support in axis2
If you want JAX-WS and JAXB data bindings I would not use the wsdl2java tool that comes with Axis2. I would reccommend that you use wsimport which is the SUN tool to generate JAX-WS artifacts and JAXB data bindings. The wsimport tool is available in the JDK I believe starting with JDK1.5. It is also available in the WSDP also available from SUN. The code generated with this tool will run just fine in Axis2. Happy Holidays Bill Date: Wed, 24 Dec 2008 12:28:01 +0530From: amilasuriarach...@gmail.comto: axis-u...@ws.apache.orgsubject: Re: JAX-WS support in axis2 On Tue, Dec 23, 2008 at 12:37 PM, Shehan Simen 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:amilasuriarach...@gmail.com] Sent: 2008-12-23 17:24 To: axis-u...@ws.apache.orgsubject: Re: JAX-WS support in axis2 On Tue, Dec 23, 2008 at 5:02 AM, Shehan Simen 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]sent: 2008-12-22 19:27To: axis-u...@ws.apache.orgsubject: AW: JAX-WS support in axis2Hi,> 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]gesendet: Mo 22.12.2008 08:54An: axis-u...@ws.apache.orgbetreff: Re: JAX-WS support in axis2On Mon, Dec 22, 2008 at 12:54 PM, Shehan Simen 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 SuriarachchiWSO2 Inc.blog: http://amilachinthaka.blogspot.com/ -- Amila SuriarachchiWSO2 Inc.blog: http://amilachinthaka.blogspot.com/-- Amila SuriarachchiWSO2 Inc.blog: http://amilachinthaka.blogspot.com/
Re: JAX-WS support in axis2
On Tue, Dec 23, 2008 at 12:37 PM, Shehan Simen 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: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 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] > Sent: 2008-12-22 19:27 > To: 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] > Gesendet: Mo 22.12.2008 08:54 > An: axis-user@ws.apache.org > Betreff: Re: JAX-WS support in axis2 > > On Mon, Dec 22, 2008 at 12:54 PM, Shehan Simen > 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/
RE: JAX-WS support in axis2
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 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 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/
Re: JAX-WS support in axis2
On Tue, Dec 23, 2008 at 5:02 AM, Shehan Simen 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] > Sent: 2008-12-22 19:27 > To: 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] > Gesendet: Mo 22.12.2008 08:54 > An: axis-user@ws.apache.org > Betreff: Re: JAX-WS support in axis2 > > On Mon, Dec 22, 2008 at 12:54 PM, Shehan Simen > 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/
RE: JAX-WS support in axis2
Hi Amila, Can you explain your answer further more? It is not much helpful. Regards, Shehan -Original Message- From: Grimm, Markus [mailto:gr...@juris.de] Sent: 2008-12-22 19:27 To: 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] Gesendet: Mo 22.12.2008 08:54 An: axis-user@ws.apache.org Betreff: Re: JAX-WS support in axis2 On Mon, Dec 22, 2008 at 12:54 PM, Shehan Simen 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/
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] Gesendet: Mo 22.12.2008 08:54 An: axis-user@ws.apache.org Betreff: Re: JAX-WS support in axis2 On Mon, Dec 22, 2008 at 12:54 PM, Shehan Simen 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/ <>
Re: JAX-WS support in axis2
On Mon, Dec 22, 2008 at 12:54 PM, Shehan Simen 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/
JAX-WS support in axis2
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? 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.