org.imixs.workflow.webservices.soap
Class ServiceClient
java.lang.Object
org.imixs.workflow.webservices.soap.ServiceClient
public class ServiceClient
- extends Object
The ServiceClient is a WebService Client which encapsulate the SOAP
communication with a web serice endpoint. This Class is build on the Apache
Axiom and a simple URL Connection Class. The ServiceClient supports methods
for easy establishing a webservice communication. You can call a webservice
method by using the callSOAPAction method. The method expects the soap action
represended by a String object and a OMElement with the parameters for the
web service method call. The OMElement can be build on the Axiom framework or
easyly by usning the helper class DataObjectUtil. After a SOAPMethod call the
serviceClient returns also a OMElement with the soap response represendet
again by a OMElement which contains only the method response object. To
receife the hohle soap response use the getSOAPResponse method.
- Author:
- Ralph Soika
- See Also:
org.imixs.workflow.service.client.axiom.DataObjectUtil
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOAP11
public static final int SOAP11
- See Also:
- Constant Field Values
SOAP12
public static final int SOAP12
- See Also:
- Constant Field Values
ServiceClient
public ServiceClient(String aServiceEndpoint)
setCredentials
public void setCredentials(String auser,
String apw)
setSoapType
public void setSoapType(int i)
setEncoding
public void setEncoding(String aEncoding)
callSOAPAction
public Object callSOAPAction(QName soapAction,
Object requestEntity)
throws Exception
- This method calls a soap methode with the requestEntity Object in the
SOAP Body. The requestEntity must be a valid OMElement. To generate this
element you can use the helper class DataObjectUtil The method returns
the body OMElement from the SOAP request if the SOAP envelope is valid
The method makes use urlConnection instat of the
org.apache.commons.httpclient Framework.
- Parameters:
soapAction - requestEntity -
- Returns:
-
- Throws:
Exception- See Also:
org.imixs.workflow.service.client.axiom.DataObjectUtil
getLastHTTPResult
public int getLastHTTPResult()
getLastSOAPResponse
public Object getLastSOAPResponse()
Copyright © 2009-2011 Imixs Software Solutions GmbH. All Rights Reserved.