KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm currently implementing a spring web service using jaxb. But when I trying to consume the web service created a WebServiceTransportException: Not Found [404] error is encountered. I did try to search the net but could not able to find a possible root cause. Below I have show my source codes. application-context.xml <bean class="org.springframework.ws.server.endpoint.adapter.GenericMarshallingMethodEndpointAdapter"> <constructor-arg ref="marshaller" /> </bean> <bean id="marshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller"> <property name="classesToBeBound"> <list> <value>com.ph.domain.EightBallRequest</value> <value>com.ph.domain.EightBallResponse</value> </list> </property> </bean> <bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="prefix"> <value>/jsp/</value> </property> <property name="suffix"> <value>.jsp</value> </property> </bean> <bean id="simpleUrlHandlerMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping" lazy-init="true"> <property name="mappings"> <props> <prop key="/test.asp">LandingController</prop> </props> </property> </bean> <bean name="LandingController" class="com.ph.controller.LandingController"> <property name="stub" ref="eightBallClient"/> </bean> Client for webservice public class EightBallClient extends WebServiceGatewaySupport { private Resource request; public void setRequest(Resource request) { this.request = request; } public String AskQuestion(String question) throws IOException
Tags (comma-separated)
Save Edits
Cancel