You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Bruce Z <co...@gmail.com> on 2007/11/22 18:01:27 UTC
How to get wsdl for java_first_jaxws on Tomcat
Hi Guys,
I deployed java_first_jaxws from cxf-2.0.3\samples to Tomcat using "ant
deploy-tomcat", and helloworld.war is deployed to my Tomcat webapp folder.
However, when I tried to get it's wsdl from by browser using:
http://localhost:8080/helloworld/services/helloWorld?WSDL
from Tomcat console I got:
WARNING: Can't find the the request for
http://localhost:8080/helloworld/services/HelloWorld's Observer
After I put cxf-servlet.xml to helloworld\WEB-INF folder, I got the wsdl.
Do I need this cxf-servlet.xml to get it work?
If this file is mandatory, then why it's not included in this
java_first_jaxws sample?
Any feedback is appreciated. Thanks.
Re: How to get wsdl for java_first_jaxws on Tomcat
Posted by Bruce Z <co...@gmail.com>.
thanks for the clarification.
Re: How to get wsdl for java_first_jaxws on Tomcat
Posted by Willem2 <ni...@iona.com>.
Hi Bruce,
I just checked the java_first_jaxws test , we definitely missed the
cxf-servlet.xml in wsdl directory.
Thank you for pointing it out , I will fix it in my next commit.
Willem.
Bruce Z wrote:
>
> Hi Jervis,
>
> Thanks for the reply.
> I followed the instructions as described in samples\README.txt, the evn
> variables are properly set.
>
> From folder samples\java_first_jaxws, I ran "ant war", and "ant
> deploy-tomcat" to deploy helloworld.war to Tomcat.
>
> According to message from
> http://cwiki.apache.org/CXF20DOC/servlet-transport.html, there are two
> ways
> to publish a service, using CXF API, or using an XML.
> Since this war file is deployed to Tomcat, I assume the XML is the
> expected
> way to publish it.
> However, I didn't find a cxf-servlet.xml inside the helloworld.war file.
> Still I can't get this helloworld wsdl.
>
> did I miss something?
>
> On Nov 22, 2007 9:17 PM, Liu, Jervis <jl...@iona.com> wrote:
>
>> All CXF demos can be deployed into a Servlet container. Please refer to
>> samples directory README for building demos in a servlet container.
>>
>> Cheers,
>> Jervis
>>
>> > -----Original Message-----
>> > From: Bruce Z [mailto:computermuscle@gmail.com]
>> > Sent: 2007年11月23日 1:01
>> > To: cxf-user@incubator.apache.org
>> > Subject: How to get wsdl for java_first_jaxws on Tomcat
>> >
>> > Hi Guys,
>> > I deployed java_first_jaxws from cxf-2.0.3\samples to Tomcat using "ant
>> > deploy-tomcat", and helloworld.war is deployed to my Tomcat webapp
>> > folder.
>> > However, when I tried to get it's wsdl from by browser using:
>> > http://localhost:8080/helloworld/services/helloWorld?WSDL
>> > from Tomcat console I got:
>> > WARNING: Can't find the the request for
>> >
>> http://localhost:8080/helloworld/services/HelloWorld's<http://localhost:8080/helloworld/services/HelloWorld%27s>Observer
>> >
>> > After I put cxf-servlet.xml to helloworld\WEB-INF folder, I got the
>> wsdl.
>> >
>> > Do I need this cxf-servlet.xml to get it work?
>> > If this file is mandatory, then why it's not included in this
>> > java_first_jaxws sample?
>> >
>> > Any feedback is appreciated. Thanks.
>>
>> ----------------------------
>> IONA Technologies PLC (registered in Ireland)
>> Registered Number: 171387
>> Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
>>
>
>
--
View this message in context: http://www.nabble.com/How-to-get-wsdl-for-java_first_jaxws-on-Tomcat-tf4857452.html#a13931613
Sent from the cxf-user mailing list archive at Nabble.com.
Re: How to get wsdl for java_first_jaxws on Tomcat
Posted by Bruce Z <co...@gmail.com>.
Hi Jervis,
Thanks for the reply.
I followed the instructions as described in samples\README.txt, the evn
variables are properly set.
>From folder samples\java_first_jaxws, I ran "ant war", and "ant
deploy-tomcat" to deploy helloworld.war to Tomcat.
According to message from
http://cwiki.apache.org/CXF20DOC/servlet-transport.html, there are two ways
to publish a service, using CXF API, or using an XML.
Since this war file is deployed to Tomcat, I assume the XML is the expected
way to publish it.
However, I didn't find a cxf-servlet.xml inside the helloworld.war file.
Still I can't get this helloworld wsdl.
did I miss something?
On Nov 22, 2007 9:17 PM, Liu, Jervis <jl...@iona.com> wrote:
> All CXF demos can be deployed into a Servlet container. Please refer to
> samples directory README for building demos in a servlet container.
>
> Cheers,
> Jervis
>
> > -----Original Message-----
> > From: Bruce Z [mailto:computermuscle@gmail.com]
> > Sent: 2007年11月23日 1:01
> > To: cxf-user@incubator.apache.org
> > Subject: How to get wsdl for java_first_jaxws on Tomcat
> >
> > Hi Guys,
> > I deployed java_first_jaxws from cxf-2.0.3\samples to Tomcat using "ant
> > deploy-tomcat", and helloworld.war is deployed to my Tomcat webapp
> > folder.
> > However, when I tried to get it's wsdl from by browser using:
> > http://localhost:8080/helloworld/services/helloWorld?WSDL
> > from Tomcat console I got:
> > WARNING: Can't find the the request for
> > http://localhost:8080/helloworld/services/HelloWorld's<http://localhost:8080/helloworld/services/HelloWorld%27s>Observer
> >
> > After I put cxf-servlet.xml to helloworld\WEB-INF folder, I got the
> wsdl.
> >
> > Do I need this cxf-servlet.xml to get it work?
> > If this file is mandatory, then why it's not included in this
> > java_first_jaxws sample?
> >
> > Any feedback is appreciated. Thanks.
>
> ----------------------------
> IONA Technologies PLC (registered in Ireland)
> Registered Number: 171387
> Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
>
RE: How to get wsdl for java_first_jaxws on Tomcat
Posted by "Liu, Jervis" <jl...@iona.com>.
All CXF demos can be deployed into a Servlet container. Please refer to samples directory README for building demos in a servlet container.
Cheers,
Jervis
> -----Original Message-----
> From: Bruce Z [mailto:computermuscle@gmail.com]
> Sent: 2007年11月23日 1:01
> To: cxf-user@incubator.apache.org
> Subject: How to get wsdl for java_first_jaxws on Tomcat
>
> Hi Guys,
> I deployed java_first_jaxws from cxf-2.0.3\samples to Tomcat using "ant
> deploy-tomcat", and helloworld.war is deployed to my Tomcat webapp
> folder.
> However, when I tried to get it's wsdl from by browser using:
> http://localhost:8080/helloworld/services/helloWorld?WSDL
> from Tomcat console I got:
> WARNING: Can't find the the request for
> http://localhost:8080/helloworld/services/HelloWorld's Observer
>
> After I put cxf-servlet.xml to helloworld\WEB-INF folder, I got the wsdl.
>
> Do I need this cxf-servlet.xml to get it work?
> If this file is mandatory, then why it's not included in this
> java_first_jaxws sample?
>
> Any feedback is appreciated. Thanks.
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland