Web Service with JAXB issue
Hi,
Im new with this Spring WS and to this forum so I have no idea were should this post to be put, please bear with me.
I have a current problem with spring web service with jaxb. when I tried to consume the web service created, an 404 not found webtransport exception is displayed. Below are the details.
My WSLD is
http://localhost:8888/services/share...mfService.wsdl
This is the part of web.xml
Code:
<servlet>
<servlet-name>dispatcher</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/config/application-web.xml
</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>dispatcher</servlet-name>
<url-pattern>*.asp</url-pattern>
<url-pattern>*.pdf</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>sunlink-ws</servlet-name>
<servlet-class>org.springframework.ws.transport.http.MessageDispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/config/spring-ws-servlet.xml</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>sunlink-ws</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>sunlink-ws</servlet-name>
<url-pattern>*.wsdl</url-pattern>
</servlet-mapping>
This is the content of spring-ws-servlet.xml
Code:
<bean class="org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping">
</bean>
<bean class="org.springframework.ws.server.endpoint.adapter.MarshallingMethodEndpointAdapter">
<description>Enables the MessageDispatchServlet to invoke methods requiring OXM marshalling.</description>
<constructor-arg ref="marshaller"/>
</bean>
<bean id="mfService" class="org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition">
<property name="schema" ref="schema" />
<property name="portTypeName" value="RetrieveMFTransaction" />
<property name="locationUri" value="http://mycompany.com/mftransaction/service" />
<property name="targetNamespace" value="http://mycompany.com/mftransaction/service/schema"/>
</bean>
<bean id="serviceEndPoint"
class="ph.com.sunlife.sunlink.service.endpoint.MFTransactionsServiceEndPoint">
<!-- --><property name="mfTransactionService" ref="eightBallService"/>
</bean>
<bean id="schema" class="org.springframework.xml.xsd.SimpleXsdSchema">
<property name="xsd"
value="/WEB-INF/classes/ph/com/sunlife/sunlink/schema/eightball.xsd" />
</bean>
And this is my EndPoint
Code:
@PayloadRoot(localPart = "EightBallRequest", namespace = "http://mycompany.com/mftransaction/service/schema")
public EightBallResponse doit(EightBallRequest request) {
My error before was 404 not found, did search the net and found some possible solution but when I tried to test it again using Web Service Explorer of Eclipse, below error displayed.
IWAB0135E An unexpected error has occurred.
407
authenticationrequired
And when tried to test it with application, it just displaying error
org.springframework.ws.client.WebServiceIOExceptio n: I/O error: Connection timed out: connect; nested exception is java.net.ConnectException: Connection timed out: connect
org.springframework.ws.client.core.WebServiceTempl ate.sendAndReceive(WebServiceTemplate.java:507)
org.springframework.ws.client.core.WebServiceTempl ate.marshalSendAndReceive(WebServiceTemplate.java: 350)
org.springframework.ws.client.core.WebServiceTempl ate.marshalSendAndReceive(WebServiceTemplate.java: 344)
org.springframework.ws.client.core.WebServiceTempl ate.marshalSendAndReceive(WebServiceTemplate.java: 336)
ph.com.sunlife.sunlink.service.client.EightBallCli ent.AskQuestion(EightBallClient.java:28)
Please help... i'm 5 days stuck with this problem..http://forum.springsource.org/images...on9.png.thanks