cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shashikant Sarade <shashikantsar...@gmail.com>
Subject Running CXF Client::
Date Sat, 21 Apr 2012 15:29:38 GMT
I am using ECLISE HELLIOS,TOMCAT v7, CXF 2.6

*I want to execute client so write looking from samples*

"JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();

factory.getInInterceptors().add(new LoggingInInterceptor());

factory.getOutInterceptors().add(new LoggingOutInterceptor());

factory.setServiceClass(Login.class);

factory.setAddress("http://localhost:8080/LoginService");

Login client = (Login) factory.create();"

When I execute(((((client.verifyUser("shash","shashi")))))) I run as JAVA
APPLICATION

Apr 21, 2012 8:55:12 PM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromClass
INFO: Creating Service {http://org.shashi.com/}LoginService from class
com.shashi.org.server.client.Login
Apr 21, 2012 8:55:13 PM org.apache.cxf.services.LoginService.loginPort.login
INFO: Outbound Message
---------------------------
ID: 1
Address: http://localhost:8080/LoginService
Encoding: UTF-8
Content-Type: text/xml
Headers: {Accept=[*/*], SOAPAction=["urn:VerifyUser"]}
Payload: <soap:Envelope xmlns:soap="
http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:verifyUser
xmlns:ns2="http://org.shashi.com/
"><arg0><username>shashi</username><password>shashi</password></arg0></ns2:verifyUser></soap:Body></soap:Envelope>
--------------------------------------
Apr 21, 2012 8:55:14 PM org.apache.cxf.phase.PhaseInterceptorChain
doDefaultLogging
WARNING: Interceptor for {
http://org.shashi.com/}LoginService#{http://org.shashi.com/}verifyUser has
thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: *Could not send Message.*
at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:532)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:464)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:367)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:320)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:89)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134)
at $Proxy38.verifyUser(Unknown Source)
at com.shashi.org.server.client.main_class.main(main_class.java:41)
Caused by: org.apache.cxf.transport.http.HTTPException: *HTTP response
'404: Not Found' when communicating with http://localhost:8080/LoginService*
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1584)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1521)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1429)
at
org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:47)
at org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:195)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:659)
at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
... 9 more
Exception in thread "main" javax.xml.ws.WebServiceException: Could not send
Message.
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:145)
at $Proxy38.verifyUser(Unknown Source)
at com.shashi.org.server.client.main_class.main(main_class.java:41)
Caused by: org.apache.cxf.transport.http.HTTPException: HTTP response '404:
Not Found' when communicating with http://localhost:8080/LoginService
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1584)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1521)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1429)
at
org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:47)
at org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:195)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:659)
at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:532)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:464)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:367)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:320)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:89)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134)
... 2 more



*When I comment on client.verifyUser("ss","ss"); its working.*
*So why not when its returning boolean value...*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message