Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: changed the dynamic client factory demo code to use the right class loader

...

Code Block
java
java
URLClassLoader classLoader = ...;
DynamicClientFactory dcf = DynamicClientFactory.newInstance();
Client client = dcf.createClient("people.wsdl", classLoader);
 
Object//The context class loader has been reset by the dynamic client factory's create client codeObject person = classLoaderThread.currentThread().getContextClassLoader().loadClass("com.acme.Person").newInstance();
 
Method m = person.getClass().getMethod("setName", String.class);
m.invoke(person, "Joe Schmoe");
 
client.invoke("addPerson", person);

...