Spring CXF Client Test

I am working on sending a request to a web service and analyzing the response. I have to use Spring 3 and Apache CXF. Using Maven wsdl2java, I was able to generate request and response objects from wsdl. These classes have been created now, and I see basically what seems POJO annotated. It is not clear that the next step is to actually send the request to web services. All I see is ObjectFactory for creating an initial web service.

What is the next step? I need to create Spring bean configuration file, how is it?

<jaxws:client id="XXXX" serviceClass="XXXX" address="http://localhost:8080/xxxx /> 

Any help would be greatly appreciated as I am not sure how to send the actual request to the Internet or what will be my next step. Thanks

+4
source share
2 answers

If you want to see a web service without using spring, you can use the created stubs and call the service in the program with the main one. Sort of..

http://61.153.44.88/apache/cxf/2.0/developing-a-consumer.html

If you want to use spring, see the section "Creating a client" here

http://cxf.apache.org/docs/writing-a-service-with-spring.html

+2
source

All Articles