You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by Marzie Dehghanipour <ma...@gmail.com> on 2015/05/06 17:41:16 UTC

Apache CXF DynamicClientFactory

Dear all,

I am trying to use CXF DynamicClientFactory in order to invoke undeploy
function of ODE deployment api. The code I used is like below:

package cc;
import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory;
import org.apache.cxf.rs.security.oauth.data.Client;
public class main {
public static void main(String[] args) throws Exception {
JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
org.apache.cxf.endpoint.Client client = dcf.createClient("
http://localhost:8080/ode/processes/DeploymentService?wsdl");

Object[] res = client.invoke("undeploy", "DynPartner");
System.out.println("Echo response: " + res[0]);

}

}