public class WebserviceInvoker
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BASIC_AUTHENTICATION
Authentication types
|
| Constructor and Description |
|---|
WebserviceInvoker(java.lang.String wsdlURL)
Creates an instance of the WebServiceInvoker
|
WebserviceInvoker(java.lang.String wsdlURL,
int authType,
java.lang.String username,
java.lang.String password)
Creates an instance of the WebServiceInvoker
|
| Modifier and Type | Method and Description |
|---|---|
javax.xml.soap.SOAPMessage |
getLastReply(java.lang.String wsOperation)
Get the last SOAP response message
|
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>> |
getOperations()
Get a aggregated Map of operations, containing operation name, message, and its parts.
|
java.lang.String |
getWSDLPath()
Get the WSDL URL
|
java.util.ArrayList<java.lang.String> |
loadXSD()
Get a list of XSD imports
|
org.w3c.dom.Node |
readNode(org.w3c.dom.Node node,
java.lang.String element)
This operation recursively checks inside a xml node and gets a named element.
|
void |
sendRequest(java.lang.String method,
java.util.Map<java.lang.String,java.lang.String> params)
Send a web service request to a certain operation.
|
public static final int BASIC_AUTHENTICATION
public WebserviceInvoker(java.lang.String wsdlURL)
throws ifs.fnd.base.IfsException
wsdlURL - WSDL location URLifs.fnd.base.IfsExceptionpublic WebserviceInvoker(java.lang.String wsdlURL,
int authType,
java.lang.String username,
java.lang.String password)
throws ifs.fnd.base.IfsException
wsdlURL - WSDL location URLauthType - Authentication type for the WSDL locationusername - Username to be used for authenticationpassword - Password to be used for authenticationifs.fnd.base.IfsExceptionpublic java.lang.String getWSDLPath()
public javax.xml.soap.SOAPMessage getLastReply(java.lang.String wsOperation)
wsOperation - operation namepublic void sendRequest(java.lang.String method,
java.util.Map<java.lang.String,java.lang.String> params)
throws ifs.fnd.base.IfsException
method - Web service operationparams - Map of name value pairs as input for the web service operationifs.fnd.base.IfsExceptionpublic java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>> getOperations()
throws ifs.fnd.base.IfsException
ifs.fnd.base.IfsExceptionpublic java.util.ArrayList<java.lang.String> loadXSD()
public org.w3c.dom.Node readNode(org.w3c.dom.Node node,
java.lang.String element)
node - Parent node to recursively search,element - Element name