public class XMLClient extends Object
| Constructor and Description |
|---|
XMLClient() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getEffectiveNamespaceURI(Properties props,
String merchantID)
Returns the effective namespace URI for the specified merchant id.
|
static Document |
runTransaction(Document request,
Properties props)
Runs a transaction.
|
static Document |
runTransaction(Document request,
Properties props,
Logger _logger,
boolean prepare,
boolean logTranStart)
Runs a transaction.
|
public static Document runTransaction(Document request, Properties props) throws FaultException, ClientException
request - request to send.props - properties the client needs to run the transaction.
See README for more information.FaultException - if a fault occurs.ClientException - if any other exception occurs.public static Document runTransaction(Document request, Properties props, Logger _logger, boolean prepare, boolean logTranStart) throws FaultException, ClientException
request - request to send.props - properties the client needs to run the transaction.
See README for more information._logger - Logger object to used for logging.prepare - Flag as to whether or not the logger's
prepare() method should be called.logTranStart - Flag as to whether or not the logger's
logTransactionStart() method should be called.FaultException - if a fault occurs.ClientException - if any other exception occurs.public static String getEffectiveNamespaceURI(Properties props, String merchantID) throws ClientException
MerchantConfig.getProperty() for the search
behavior. This method is provided so that the nvpSample application
can dynamically plug the correct namespace URI into the nvpSample XML
inputs. You do not need to call it if you have the namespace URI
hardcoded in your XML documents.props - Properties object to look up the properties in.merchantID - merchant ID whose effective namespace URI is wanted.
It may be null, in which case, the generic effective
namespace URI is returned.ClientException - if a ConfigException occurs. Call
getInnerException() to get at the
ConfigException.Copyright © 2022. All rights reserved.