Announcement Announcement Module
Collapse
No announcement yet.
problems with Holiday Web Service Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • problems with Holiday Web Service

    Hi everyone!
    I'm newbie using spring web services. I'm following the holiday tutorial but I 'm having a problem. When I try to access to the wsdl throught an internet browser: http://localhost:8080/holidayService...e/holiday.wsdl it bring me the wsdl correctly.

    But when I try to send a request using soapui it responds with a message: the required resource is not available.

    Also when I try http://localhost:8080/holidayService...e/holiday?wsdl it doesn't work.

    my spring-ws-servlet.xml file is:

    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:sws="http://www.springframework.org/schema/web-services"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
    http://www.springframework.org/schem...-beans-3.0.xsd
    http://www.springframework.org/schema/web-services
    http://www.springframework.org/schem...rvices-2.0.xsd
    http://www.springframework.org/schema/context
    http://www.springframework.org/schema/context/spring-context-3.0.xsd">

    <context:component-scan base-package="com.mycompany.hr"/>

    <sws:annotation-driven/>

    <sws:dynamic-wsdl id="holiday"
    portTypeName="HumanResource"
    locationUri="/holidayService/"
    targetNamespace="http://mycompany.com/hr/definitions">
    <sws:xsd location="/WEB-INF/hr.xsd"/>
    </sws:dynamic-wsdl>

    <bean class="org.springframework.ws.soap.addressing.serv er.AnnotationActionEndpointMapping" />
    </beans>

    my web.xml file is:


    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4">

    <display-name>Archetype Created Web Application</display-name>

    <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>true</param-value>
    </init-param>
    </servlet>

    <servlet-mapping>
    <servlet-name>spring-ws</servlet-name>
    <url-pattern>/*</url-pattern>
    </servlet-mapping>

    </web-app>


    thanks in advance

    Gonzalo
Working...
X