I think you have the wrong address. You are using:
http://172.27.14.24/WcfService_Normal/wsBindingSessionServiceImp.svc?wsdl
as the address for both the wsdl and the endpoint. Most likely, you'll
need to pull the ?wsdl off for the endpoint address. If that doesn't help,
definitely check the server side for any issues in the logs there.
Dan
On Wednesday, April 04, 2012 07:55:33 AM ssigabudeen wrote:
> Hi,
>
> When i tried communicate with WCF webservice using CXF Reliable messages,
> i get SocketTimeout Exception follweed by, kindly someone provide me a
> sample, if someone comeacross..
>
> WARNING: Interceptor for
> {http://tempuri.org/}wsBindingSessionServiceImp#{http://tempuri.org/}Incre
> mentBy10 has thrown exception, unwinding now
> *org.apache.cxf.interceptor.Fault: Failed to send RM protocol message
> {http://schemas.xmlsoap.org/ws/2005/02/rm}CreateSequence.* at
> org.apache.cxf.ws.rm.AbstractRMInterceptor.handleMessage(AbstractRMInterce
> ptor.java:103) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorCha
> in.java:263) at
> org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:533) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:463) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:366) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:319) at
> org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:88) at
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134)
> at $Proxy38.incrementBy10(Unknown Source)
> at com.qr.test.Client.main(Client.java:53)
> *Caused by: org.apache.cxf.ws.rm.RMException: Failed to send RM protocol
> message {http://schemas.xmlsoap.org/ws/2005/02/rm}CreateSequence.* at
> org.apache.cxf.ws.rm.Proxy.invoke(Proxy.java:287)
> at org.apache.cxf.ws.rm.Proxy.createSequence(Proxy.java:175)
> at org.apache.cxf.ws.rm.RMManager.getSequence(RMManager.java:453)
> at
> org.apache.cxf.ws.rm.RMOutInterceptor.handle(RMOutInterceptor.java:131)
> at
> org.apache.cxf.ws.rm.AbstractRMInterceptor.handleMessage(AbstractRMInterce
> ptor.java:83) ... 9 more
> Caused by: org.apache.cxf.interceptor.Fault: Could not send Message.
> at
> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInt
> erceptor.handleMessage(MessageSenderInterceptor.java:64) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorCha
> in.java:263) at
> org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:533) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:463) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:375) at
> org.apache.cxf.ws.rm.Proxy.invoke(Proxy.java:277)
> ... 13 more
> Caused by: java.net.SocketTimeoutException: SocketTimeoutException
> invoking
> http://172.27.14.24/WcfService_Normal/wsBindingSessionServiceImp.svc?wsdl
> : Read timed out
>
> *Attached the code used *
>
> SpringBusFactory busFactory = new SpringBusFactory();
> URL cxfConfig = new File("ws-rm.xml").toURL();
> Bus bus = busFactory.createBus(cxfConfig);
> busFactory.setDefaultBus(bus);
>
>
> String addresses =
> "http://172.27.14.24/WcfService_Normal/wsBindingSessionServiceImp.svc?wsdl
> "; URL urlAddress = new URL(addresses);
> WsBindingSessionServiceImp service = new WsBindingSessionServiceImp(
> urlAddress);
> IwsBindingSessionServiceImp iService = service
> .getWSSecurityBinding1(/*new AddressingFeature()*/);
> BindingProvider bp = (BindingProvider) iService;
> bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
> addresses);
> iService.incrementBy10()
>
> Thanks & Regards
> Jawahar
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/getting-Timeout-WCF-CXF-WS-Reliable-Messa
> ging-tp5618000p5618000.html Sent from the cxf-user mailing list archive at
> Nabble.com.
--
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com