This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Web Services and the fly likes Spring Web Service - Echo example Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "Spring Web Service - Echo example" Watch "Spring Web Service - Echo example" New topic
Author

Spring Web Service - Echo example

Sam Gehouse
Ranch Hand

Joined: Jul 21, 2003
Posts: 281
Any adviice will be appreciated. I looked at the documentation, downloaded the sample code. Unable to get the WSDL published. This is what I did:

web.xml


WEB-INF\spring-ws-servlet.xml








WEB-INF\echo.xsd


My Questiions:
1. WSDL is not getting exposed under : http://localhost:9080/echoservice/echo.wsdl

Is my prop EchoRequest in spring-ws-servlet.xml incorrect? I get error as: Error 404: No target servlet configured for uri: /echoservice/echo.wsdl

2. Is my namespace in echo.xsd incorrect?

What do I need to do to expose the WSDL?
emmanuel durand
Greenhorn

Joined: Mar 17, 2011
Posts: 2
Hello,
i had the same problem. If you look at the applicationContext.xml in the client package you will see that the defaultURI is : http://localhost:8080/echo-server/services.
So you can try http://localhost:8080/echo-server/services/echo.wsdl or http://localhost:9080/echo-server/services/echo.wsdl
But i can't explain it.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Spring Web Service - Echo example
 
It's not a secret anymore!