org.jbpm.process.workitem.webservice
Class WebServiceCommand
java.lang.Object
org.jbpm.process.workitem.webservice.WebServiceCommand
- All Implemented Interfaces:
- org.kie.internal.executor.api.Command
public class WebServiceCommand
- extends Object
- implements org.kie.internal.executor.api.Command
Web Service executor command that executes web service call using Apache CXF.
It expects following parameters to be able to operate:
- Interface - valid interface/service name of the web service (port type name from wsdl)
- Operation - valid operation name
- Parameter - object that is going to be used as web service message
- Url - location of thw wsdl file used to look up service definition
- Namespace - name space of the web service
Web service call is synchronous but since it's executor command it will be invoked as asynchronous task any way.
Method Summary |
org.kie.internal.executor.api.ExecutionResults |
execute(org.kie.internal.executor.api.CommandContext ctx)
|
protected org.apache.cxf.endpoint.Client |
getWSClient(WorkItem workItem,
String interfaceRef)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebServiceCommand
public WebServiceCommand()
execute
public org.kie.internal.executor.api.ExecutionResults execute(org.kie.internal.executor.api.CommandContext ctx)
throws Exception
- Specified by:
execute
in interface org.kie.internal.executor.api.Command
- Throws:
Exception
getWSClient
protected org.apache.cxf.endpoint.Client getWSClient(WorkItem workItem,
String interfaceRef)
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.