my dog learned polymorphism*
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Spring Web Service - Echo example