ClassLoader cl = Thread.currentThread().getContextClassLoader();
JaxWsDynamicClientFactory dcf =JaxWsDynamicClientFactory.newInstance();
org.apache.cxf.endpoint.Client clientA = dcf.createClient(wsdlfile);
Thread.currentThread().setContextClassLoader(cl);
Object res=clientA.invoke("helloWorld",new Object[]{"Dog"});
It's giving me result like [Ljava.lang.Object;@1332b63
I didn't getting the original value, Its Apache CXF, so if anybody can help me for fetching the value from res in String representation.