Announcement Announcement Module
No announcement yet.
WebServiceTransportException: Not Found [404] Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • WebServiceTransportException: Not Found [404]

    Hi ,I am practising on making a Spring WS and consuming that WS using the WebServiceTemplate.

    My WSDL runs fine but when i try to consume WS using the WebServiceTemplate i get the following error .

    INFO : pplicationContext - Refreshing pplicationContext@10a3b24: startup date [Fri Nov 09 10:47:20 CST 2012]; root of context hierarchy
    INFO : org.springframework.beans.factory.xml.XmlBeanDefin itionReader - Loading XML bean definitions from file [C:\SPRINGCONFFILES\test\HelloWorldExample.xml]
    INFO : istableBeanFactory - Pre-instantiating singletons in istableBeanFactory@737371: defining beans [ ultAnnotationExceptionResolver#0,hotelServiceWSTes tClient,messageFactory,marshaller]; root of factory hierarchy ate@1d9e282
    Exception in thread "main" xception: Not Found [404]
    at ate.handleError(
    at ate.doSendAndReceive(
    at ate.sendAndReceive(
    at ate.marshalSendAndReceive( 384)
    at ate.marshalSendAndReceive( 378)
    at ate.marshalSendAndReceive( 370)
    at com.example.hotelservices.client.HotelServiceWSTes tClient.bookHotelRoom(HotelServiceWSTestClient.jav a:88)
    at com.example.hotelservices.client.HotelServiceWSTes tClient.main(

    The WSDL which gets generated is and ran fine (http://localhost:8080/springhoteroom...elService.wsdl)

    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    + <wsdl:definitions xmlns:wsdl="" xmlns:sch="http://localhost:8080/springhoteroombookingws" xmlns:soap="" xmlns:tns="http://localhost:8080/springhoteroombookingws" targetNamespace="http://localhost:8080/springhoteroombookingws">

    the client application context is

    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns=""

    class=" .SoapFaultAnnotationExceptionResolver" />

    <bean id="hotelServiceWSTestClient" class="com.example.hotelservices.client.HotelServi ceWSTestClient">
    <property name="defaultUri" value="http://localhost:8080/springhoteroombookingws/HotelService" />
    <property name="marshaller" ref="marshaller" />
    <property name="unmarshaller" ref="marshaller" />
    <property name="messageFactory" ref="messageFactory" />
    <property name="messageSender">
    class=" rlConnectionMessageSender">

    <bean id="messageFactory" class=" ssageFactory" />
    <bean id="marshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshalle r">
    <property name="contextPath" value="com.example.hotelservices"/>
    Last edited by neerajgirdhar; Nov 9th, 2012, 01:06 PM.

  • #2
    Can any body help me on this?Thanks in advance.