You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Raughan <dc...@perimeterusa.com> on 2009/10/23 22:04:30 UTC

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

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: 
http://www.nabble.com/file/p26032499/test.zip 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
-- 
View this message in context: http://www.nabble.com/Trouble-wireing-up-Spring-DM-Server---CXF-in-Eclipse-%28with-Maven-support%29-tp26032499p26032499.html
Sent from the cxf-user mailing list archive at Nabble.com.


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

Posted by Raughan <dc...@perimeterusa.com>.
This has been a long and complicated research project, but I finally have
such a web service up and running. Below, in no particular order, are links
that I found useful:

http://cxf.apache.org/dosgi-spring-dm-demo-page.html
http://minddiary.com/2009/06/10/creating-web-services-using-apache-cxf-part-1-the-basics/
http://www.springsource.org/node/361
http://www.jquantlib.org/index.php/How_to_create_a_Spring-DM_bundle_project_using_Maven_%28and_Eclipse...%29
http://jee-bpel-soa.blogspot.com/2009/03/apache-cxf-and-spring-25.html
http://static.springsource.com/projects/dm-server/1.0.x/programmer-guide/html/ch05s02.html
http://wiki.ops4j.org/display/ops4j/Getting+the+benefits+of+maven-bundle-plugin+in+other+project+types
http://static.springsource.org/s2-dmserver/2.0.x/programmer-guide/html/ch06s04.html
-- 
View this message in context: http://old.nabble.com/Trouble-wireing-up-Spring-DM-Server---CXF-in-Eclipse-%28with-Maven-support%29-tp26032499p26203984.html
Sent from the cxf-user mailing list archive at Nabble.com.


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

Posted by vickatvuuch <vl...@gmail.com>.
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: 
> http://www.nabble.com/file/p26032499/test.zip 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
> 

-- 
View this message in context: http://www.nabble.com/Trouble-wireing-up-Spring-DM-Server---CXF-in-Eclipse-%28with-Maven-support%29-tp26032499p26043954.html
Sent from the cxf-user mailing list archive at Nabble.com.


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

Posted by vickatvuuch <vl...@gmail.com>.
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: 
> http://www.nabble.com/file/p26032499/test.zip 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
> 

-- 
View this message in context: http://www.nabble.com/Trouble-wireing-up-Spring-DM-Server---CXF-in-Eclipse-%28with-Maven-support%29-tp26032499p26040922.html
Sent from the cxf-user mailing list archive at Nabble.com.