Trouble wireing up Spring-DM Server & CXF in Eclipse (with Maven support)

View: New views
4 Messages — Rating Filter:   Alert me  

Trouble wireing up Spring-DM Server & CXF in Eclipse (with Maven support)

by Raughan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am trying to write a simple hello world web service using CXF and the Spring-DM Server in Eclipse. Right now, I just want to see an auto-generated wsdl so that I know it is working. I have been playing with this for a couple of weeks now, and have hit a wall. Any assistance that could be given would be appreciated.

My source code can be found here: test.zip

I have found two seemingly competing ways to implement, however neither work:
 * http://cxf.apache.org/docs/writing-a-service-with-spring.html
 * http://cxf.apache.org/dosgi-spring-dm-demo-page.html

In the first one, it shows the code using import statements in the context xml file. This gives me a file not found error for any of the files referenced using "classpath". Also the "jaxws:endpoint" element is not being recognized.

The second one doesn't throw any errors, but doesn't seem to do anything either. I can't seem to get the wsdl to show up.

On the plus side, I have been able to get a test html page to show up. But that excitement has since worn off.

Thanks,
Dennis

Re: Trouble wireing up Spring-DM Server & CXF in Eclipse (with Maven support)

by vickatvuuch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I wouldn't mix eclipse into that right upfront.

Start with a clean maven project and build.
Pull in all the cxf dependencies and config files into the beans.xml.

Define one jaxws endpoint (as in one of the samples)
Then when you can build a war file, drop it into tomcat and check if
you can get a WSDL out of your endpoint.
Then add more stuff until you have a handle on it.

Java 1st definitely works as well as RESTful webservices - CXF rocks!!
Axis will be history especially after CXF became a core of WS stack on JBoss.

My goal is also 0 manual WSDL and RESTful webservices through annotations.
Read jaxws and jaxrs specs.
Then WS-I specs etc. There is a lot.. but the point is not to try it all at once..

Raughan wrote:
I am trying to write a simple hello world web service using CXF and the Spring-DM Server in Eclipse. Right now, I just want to see an auto-generated wsdl so that I know it is working. I have been playing with this for a couple of weeks now, and have hit a wall. Any assistance that could be given would be appreciated.

My source code can be found here: test.zip

I have found two seemingly competing ways to implement, however neither work:
 * http://cxf.apache.org/docs/writing-a-service-with-spring.html
 * http://cxf.apache.org/dosgi-spring-dm-demo-page.html

In the first one, it shows the code using import statements in the context xml file. This gives me a file not found error for any of the files referenced using "classpath". Also the "jaxws:endpoint" element is not being recognized.

The second one doesn't throw any errors, but doesn't seem to do anything either. I can't seem to get the wsdl to show up.

On the plus side, I have been able to get a test html page to show up. But that excitement has since worn off.

Thanks,
Dennis

Re: Trouble wireing up Spring-DM Server & CXF in Eclipse (with Maven support)

by vickatvuuch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There is a project with maven I attached earlier, remove any interceptors I had in there
and there you have a simple project with maven build all setup.

http://www.nabble.com/java-first-how-to-add-WS-Security-header-to-WSDL-to25977266.html

Raughan wrote:
I am trying to write a simple hello world web service using CXF and the Spring-DM Server in Eclipse. Right now, I just want to see an auto-generated wsdl so that I know it is working. I have been playing with this for a couple of weeks now, and have hit a wall. Any assistance that could be given would be appreciated.

My source code can be found here: test.zip

I have found two seemingly competing ways to implement, however neither work:
 * http://cxf.apache.org/docs/writing-a-service-with-spring.html
 * http://cxf.apache.org/dosgi-spring-dm-demo-page.html

In the first one, it shows the code using import statements in the context xml file. This gives me a file not found error for any of the files referenced using "classpath". Also the "jaxws:endpoint" element is not being recognized.

The second one doesn't throw any errors, but doesn't seem to do anything either. I can't seem to get the wsdl to show up.

On the plus side, I have been able to get a test html page to show up. But that excitement has since worn off.

Thanks,
Dennis

Re: Trouble wireing up Spring-DM Server & CXF in Eclipse (with Maven support)

by Raughan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message