/** * * This is a convenience method that uses the given ProxyHandler to * serialize the parameters (and deserialize the response) before * calling invoke(String, Element). * * @see #invoke(String, Element) * */ public Object invoke(ProxyHandler handler, Object[] parameters) throws SoapFault { return invoke(handler, parameters, new Element[0]); }
/** * * A generic method invocation mechanism - this can be used by other * proxy methods as well as users in order to send arbitrary requests * to a resource. * <br><br> * The parameters are wrapped in a SOAP envelope and sent to the * destination using the proxy's SoapClient. If a SOAP Fault is returned, * it is parsed and thrown as a SoapFault object. * * @return The SOAP Body from the response message, or null if there was * no response. * */ public Element invoke(String action, Element soapBody) throws SoapFault { return invoke(action, soapBody, new Element[0]); }
/** * * This is a convenience method that uses the given ProxyHandler to * serialize the parameters (and deserialize the response) before * calling invoke(String, Element). * * @see #invoke(String, Element) * */ public Object invoke(ProxyHandler handler, Object[] parameters, Element[] extraHeaders) throws SoapFault { if (handler == null) throw new NullPointerException(_MESSAGES.get("NullProxyHandler")); String action = handler.getAction(); Element body = handler.toXML(parameters); Element response = invoke(action, body, extraHeaders); return handler.fromXML(response); }