Announcement Announcement Module
Collapse
No announcement yet.
MessageDispatchServlet - WSDL and any Http Request Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • MessageDispatchServlet - WSDL and any Http Request

    Hi,
    I am using MessageDispatcherServlet to map all requests coming in
    I am able to access dynamically generated wsdl fine but when I tried to access any web page i am getting 405 Error,
    how do I set up my app to access wsdl and any web pages??

    Any example is appreciated.


    Regards
    Harshi.

    Here is my web.xml and in my spring-ws I have configured PayloadRootQNameEndpointMapping.

    <servlet>
    <servlet-name>spring-ws</servlet-name>
    <servlet-class>org.springframework.ws.transport.http.Messag eDispatcherServlet</servlet-class>
    <init-param>
    <param-name>transformWsdlLocations</param-name>
    <param-value>false</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>

    <!--Map all requests to this servlet -->
    <servlet-mapping>
    <servlet-name>spring-ws</servlet-name>
    <url-pattern>/*</url-pattern>
    </servlet-mapping>

  • #2
    Well, simply change the url-pattern in the servlet-mapping to anything else then /*. For instance, change it to /services.

    Comment


    • #3
      thanks Arjen.
      Last edited by harshi; Nov 22nd, 2007, 10:09 PM.

      Comment

      Working...
      X