This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply 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 agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Spring Web Service - Echo example
 
Similar Threads
HibernateException: No Hibernate Session bound to thread
how does rollbackFor work ?
URL to invoke Spring webservice
XsdBasedSoap11Wsdl4jDefinitionBuilder error while generaing wsdl
running before I can crawl ( or how to add Spring to an existing Hibernate standalone app)