public class ServiceClientUtil
extends java.lang.Object
Constructor and Description |
---|
ServiceClientUtil() |
Modifier and Type | Method and Description |
---|---|
org.apache.axiom.om.OMElement |
buildMessage(java.lang.String operation,
java.lang.String[] params,
java.lang.Object[] values)
Builds a message for the deployment and management API using simple parameter
passing.
|
org.apache.axiom.om.OMElement |
send(org.apache.axiom.om.OMElement msg,
java.lang.String url)
Sends the provided message to an Axis2 deployed service.
|
org.apache.axiom.om.OMElement |
send(org.apache.axiom.om.OMElement msg,
java.lang.String url,
long timeout)
Sends the provided message to an Axis2 deployed service allowing to set a
specific timeout (in ms).
|
public org.apache.axiom.om.OMElement send(org.apache.axiom.om.OMElement msg, java.lang.String url) throws org.apache.axis2.AxisFault
msg
- the message OMElement that will be included in the bodyurl
- to send the message toorg.apache.axis2.AxisFault
- when a problem occured during the callpublic org.apache.axiom.om.OMElement send(org.apache.axiom.om.OMElement msg, java.lang.String url, long timeout) throws org.apache.axis2.AxisFault
msg
- the message OMElement that will be included in the bodyurl
- to send the message totimeout
- in millisecondsorg.apache.axis2.AxisFault
- when a problem occured during the callpublic org.apache.axiom.om.OMElement buildMessage(java.lang.String operation, java.lang.String[] params, java.lang.Object[] values)
buildMessage("listProcesses", new String[] {"filter", "orderKeys"},
new String[] {"name=DynPartnerResponder namespace=http://ode/bpel/responder " +
"deployed>=" + notSoLongAgoStr, ""});
operation
- to callparams
- list of the parameters for the operation as defined in the WSDL documentvalues
- of the parameters