I'm stuck trying to follow http://static.springframework.org/sp...ucho-protocols, to create a SOAP service.
Here are my files:
web.xml
myapp-soap-servlet.xmlCode:<web-app> <servlet> <servlet-name>myapp-soap</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>myapp-soap</servlet-name> <url-pattern>/soap/*</url-pattern> </servlet-mapping> </web-app>
When I load this up, and goto the following URL (note it's loaded in the document root '/myapp/'):Code:<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"> <bean name="/MyApp" class="org.springframework.remoting.caucho.HessianServiceExporter"> <property name="service"> <ref bean="myAppService" /> </property> <property name="serviceInterface" value="com.name.myapp.remote.service.MyAppRemoteService" /> </bean> <!-- yes, this bean's class implements com.name.myapp.remote.service.MyAppRemoteService --> <bean id="myAppService" class="com.name.myapp.service.impl.MyAppServiceImpl"> <property name="dao"> <!-- wiring in my DAO here --> </property> </bean> </beans>
...I get the error:Code:http://localhost/myapp/soap/MyApp?WSDL
Fair enough. So I do the following from the command prompt:Code:Status 405 - HessianServiceExporter only supports POST requests
...and I get the following in the logs:Code:wget --post-data="test" http://localhost/myapp/soap/MyApp?WSDL
Should "http://localhost/myapp/soap/MyApp?WSDL" (either POST or GET) work in getting the WSDL? If it should, what is going wrong here? If not, what is the proper way to get the WSDL?Code:org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/myapp/soap/MyApp/] in DispatcherServlet with name 'myapp-soap'


Reply With Quote