This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring Web Service - Echo example
 
Similar Threads
URL to invoke Spring webservice
XsdBasedSoap11Wsdl4jDefinitionBuilder error while generaing wsdl
how does rollbackFor work ?
HibernateException: No Hibernate Session bound to thread
running before I can crawl ( or how to add Spring to an existing Hibernate standalone app)