You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Sagsr <sa...@oracle.com> on 2009/06/23 10:36:07 UTC

How to test writing-a-service-with-spring example at cwiki.apache.org

Hi,

I am very new to Apache CXF and web services. I tried the example at -
http://cwiki.apache.org/CXF20DOC/writing-a-service-with-spring.html
I am using eclipse and Tomcat5.0, Service is created and I am getting a PORT
link as {http://spring.demo/}HelloServiceImplPort 
 at http://localhost:8090/CFXDemo/, while clicking on that I am able to see
a WSDL.

I have used “CXFDemo” as my project name and the class name as
HelloServiceImpl instead of HelloWorldImpl rest all is same as that in the
example given.
My question is how to test this web service? In this example at Service
Implementation a System.out.println("sayHi called"); is used but it is not
getting displayed.
Please tell me how to invoke these methods.

Waiting for your reply.

-- 
View this message in context: http://www.nabble.com/How-to-test-writing-a-service-with-spring-example-at-cwiki.apache.org-tp24162063p24162063.html
Sent from the cxf-dev mailing list archive at Nabble.com.


Re: How to test writing-a-service-with-spring example at cwiki.apache.org

Posted by Sagsr <sa...@oracle.com>.


Sagsr wrote:
> 
> Hi,
> 
> I am very new to Apache CXF and web services. I tried the example at -
> http://cwiki.apache.org/CXF20DOC/writing-a-service-with-spring.html
> I am using eclipse and Tomcat5.0, Service is created and I am getting a
> PORT link as {http://spring.demo/}HelloServiceImplPort 
>  at http://localhost:8090/CFXDemo/, while clicking on that I am able to
> see a WSDL.
> 
> I have used “CXFDemo” as my project name and the class name as
> HelloServiceImpl instead of HelloWorldImpl rest all is same as that in the
> example given.
> My question is how to test this web service? In this example at Service
> Implementation a System.out.println("sayHi called"); is used but it is not
> getting displayed.
> Please tell me how to invoke these methods.
> 
> Waiting for your reply.
> 
> 
One more thing I want to share is, I am using URL as
http://localhost:8090/CFXDemo/HelloService/sayHi
to invoke my message at that time it gives exception 
org.apache.cxf.interceptor.Fault: wrong number of arguments
Hope I am able to describe my problem.Please help or guide me how to test
this.
Thanks, Sagar
-- 
View this message in context: http://www.nabble.com/How-to-test-writing-a-service-with-spring-example-at-cwiki.apache.org-tp24162063p24162635.html
Sent from the cxf-dev mailing list archive at Nabble.com.