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

  • WebServiceTransportException: Not Found [404]

    Hi Spring WS Gurus,

    I am getting error :WebServiceTransportException: Not Found [404] while I try to call webservice using webserviceTemplate

    My spring config file:
    Code:
    <bean id="marshaller"
    		class="org.springframework.oxm.castor.CastorMarshaller">
    			</bean>
    <bean id="webserviceTemplate"
    class="org.springframework.ws.client.core.WebServiceTemplate">
    <property name="messageFactory">
    <bean
    				class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory" />
    		</property>
    		<property name="messageSender">
    			<bean id="messageSender"
    				class="org.springframework.ws.transport.http.HttpUrlConnectionMessageSender" />
    		</property>
    		<property name="defaultUri">
    		 <value>http://xmlns.oracle.com/Enterprise/ERP/services</value>
    		 </property>
    		<property name="marshaller" ref="marshaller" />
    		<property name="unmarshaller" ref="marshaller" />
    
    	</bean>
    Part of my WSDL look like:

    Code:
    <wsdl:definitions name="JOURNAL_LOAD_TEMPLATE.1"
    	targetNamespace="http://xmlns.oracle.com/Enterprise/ERP/services"
    	xmlns:JOURNAL_LOAD_TEMPLATE.VERSION_1="http://xmlns.oracle.com/Enterprise/Tools/schemas/JOURNAL_LOAD_TEMPLATE.VERSION_1"
    	xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    	xmlns:tns="http://xmlns.oracle.com/Enterprise/ERP/services"
    	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    .................
    ................
    <wsdl:service name="JOURNAL_LOAD_TEMPLATE">
    		<wsdl:documentation>External Acctg Entry</wsdl:documentation>
    		<wsdl:port binding="tns:JOURNAL_LOAD_TEMPLATE_Binding"
    			name="JOURNAL_LOAD_TEMPLATE_Port">
    			<soap:address
    				location="http://devfin.gmis.in.gov/PSIGW/PeopleSoftServiceListeningConnector/PSFT_FSUP2" />
    		</wsdl:port>
    	</wsdl:service>
    My client code:
    webserviceTemplate.marshalSendandReceive(myPOJO)

    POJOs generated out of WSDL does have plain java code with getters and setters

    My error stack:

    Code:
    org.springframework.ws.client.WebServiceTransportException: Not Found [404]
    	at org.springframework.ws.client.core.WebServiceTemplate.handleError(WebServiceTemplate.java:483)
    	at org.springframework.ws.client.core.WebServiceTemplate.sendAndReceive(WebServiceTemplate.java:408)
    	at org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:265)
    	at org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:253)
    	at org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:245)
    	at com.tier.uiConnect.common.webServices.business.impl.JournalLoadServiceImpl.journalLoadTemplate(JournalLoadServiceImpl.java:34)
    	at com.tier.uiConnect.common.webServices.business.impl.JournalLoadServiceImpl.callWService(JournalLoadServiceImpl.java:81)
    	at com.tier.uiConnect.common.webServices.business.TestWebService.testJournalWebService(TestWebService.java:11)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
    	at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
    	at junit.framework.TestCase.runTest(TestCase.java:154)
    	at junit.framework.TestCase.runBare(TestCase.java:127)
    	at org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:69)
    	at junit.framework.TestResult$1.protect(TestResult.java:106)
    	at junit.framework.TestResult.runProtected(TestResult.java:124)
    	at junit.framework.TestResult.run(TestResult.java:109)
    	at junit.framework.TestCase.run(TestCase.java:118)
    	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:436)
    	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:311)
    	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
    Please let me know what is wrong in my config
    Thanks in advance
Working...
X