cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Diephouse" <...@envoisolutions.com>
Subject Re: svn commit: r504967 - in /incubator/cxf/trunk: api/src/main/java/org/apache/cxf/endpoint/ rt/core/src/main/java/org/apache/cxf/endpoint/ rt/core/src/main/java/org/apache/cxf/interceptor/ rt/core/src/main/java/org/apache/cxf/wsdl11/ rt/core/src/te
Date Thu, 08 Feb 2007 17:14:36 GMT
Oops my example was a little off, it should be:

def client = DynamicClientFactory.newInstance().createClient(
  "http://www.esynaps.com/WebServices/WhoIsService.asmx?WSDL");

def cl = Thread.currentThread().contextClassLoader
def who = cl.loadClass("org.tempuri.WhoIs").newInstance()
who.domainName = "envoisolutions.com";

def res = client.invoke("WhoIs", who)
println(res[0].whoIsResult);

- Dan

On 2/8/07, dandiep@apache.org <dandiep@apache.org> wrote:
>
> Author: dandiep
> Date: Thu Feb  8 09:09:39 2007
> New Revision: 504967
>
> URL: http://svn.apache.org/viewvc?view=rev&rev=504967
> Log:
> Add "dynamic client" support. This will allow people with dynamic
> languages
> to ignore the wsdl to java step. Guillaume Alleon of Groovy SOAP has been
> using this so we can do something like this:
>
> def client = DynamicClientFactory.newInstance().createClient(
>   "http://www.esynaps.com/WebServices/WhoIsService.asmx?WSDL");
>
> def cl = Thread.currentThread().contextClassLoader
> def who = cl.loadClass("org.tempuri.WhoIs").newInstance()
> who.domainName = "envoisolutions.com";
>
> def res = client.invoke("WhoIs", "envoisolutions.com")
>
> (Except the classloading stuff will be nicely hidden).
>
> This is from Paul Brown in CXF-407. Thanks Paul!
>
>
-- 
Dan Diephouse
Envoi Solutions
http://envoisolutions.com | http://netzooid.com/blog

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