public class NetSuiteSoapConnection extends Object implements com.mulesoft.connectors.commons.template.connection.ConnectorConnection
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
NetSuiteSoapConnection.TransformationSupplier<T> |
| Modifier and Type | Field and Description |
|---|---|
static DateTimeFormatter |
DATETIME_FORMAT_FROM_NETSUITE |
static DateTimeFormatter |
DATETIME_FORMAT_TO_NETSUITE |
static String |
LOCAL_WSDL_FILE |
| Constructor and Description |
|---|
NetSuiteSoapConnection(org.mule.runtime.http.api.client.HttpClient httpClient,
org.mule.soap.api.client.SoapClient soapClient,
String endpoint,
Supplier<org.mule.runtime.api.util.MultiMap<String,String>> headersSupplier,
Supplier<String> wsdlUrlSupplier,
Integer responseTimeout,
Optional<WsdlVersion> wsdlVersion,
org.mule.runtime.api.el.MuleExpressionLanguage expressionExecutor,
org.mule.runtime.api.transformation.TransformationService transformationService,
ConcurrencyAwareCaller<org.mule.soap.api.message.SoapResponse> concurrencyAwareCaller) |
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
asyncSearch(NetSuiteSoapConfig config,
InputStream message,
boolean bodyFieldsOnly,
boolean returnSearchColumns,
int pageSize) |
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
changeEmail(NetSuiteSoapConfig config,
String newEmail,
String currentCredentials,
boolean justThisAccount) |
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
changePassword(NetSuiteSoapConfig config,
String newPassword,
String currentCredentials) |
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
checkAsyncStatus(NetSuiteSoapConfig config,
String jobId) |
void |
disconnect() |
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
get(NetSuiteSoapConfig config,
RecordRefAndTypeParameterGroup key,
InputStream message) |
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
getAll(NetSuiteSoapConfig config,
String recordType) |
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
getAsyncResult(NetSuiteSoapConfig config,
String jobId,
Integer pageIndex) |
org.mule.runtime.api.util.LazyValue<Map<String,String>> |
getComplexTypesMap()
Returns the complex types map
|
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
getDataCenterUrls(NetSuiteSoapConfig config,
String accountId) |
com.predic8.wsdl.Definitions |
getDefinitions()
Returns the wsdl
Definitions |
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
getDeleted(NetSuiteSoapConfig config,
InputStream message,
InputStream searchPreferences) |
NetsuiteDocumentFactory |
getDocumentFactory() |
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
getPostingTransactionSummary(NetSuiteSoapConfig config,
InputStream message) |
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
getSavedSearch(NetSuiteSoapConfig config,
String searchType) |
org.mule.runtime.api.util.LazyValue<Map<String,String>> |
getSchemaMap()
Returns the schema map for record types
|
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
getSelectValue(NetSuiteSoapConfig config,
InputStream message) |
org.mule.wsdl.parser.model.WsdlModel |
getWsdlModel() |
Optional<WsdlVersion> |
getWsdlVersion() |
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
invoke(NetSuiteSoapConfig config,
String operation,
String preferencesXmlHeaders,
String searchPreferencesHeader,
InputStream message,
boolean useEndpointFromWsdl) |
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
invokeAdvancedOperation(NetSuiteSoapConfig config,
String operation,
InputStream message) |
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
invokeAsyncOperation(NetSuiteSoapConfig config,
String operation,
InputStream message) |
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
invokeInviteeOperation(NetSuiteSoapConfig config,
String operation,
InputStream message) |
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
invokeItemOperation(NetSuiteSoapConfig config,
String operation,
InputStream message) |
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
invokeOperationWithCustomFields(NetSuiteSoapConfig config,
String operation,
InputStream message,
String recordType) |
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
invokeRecordOperation(NetSuiteSoapConfig config,
String operation,
InputStream message) |
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
invokeWithHeaderPreferences(NetSuiteSoapConfig config,
String operation,
String searchPreferencesHeader,
InputStream message,
boolean useEndpointFromWsdl)
Invoke with standard header preferences
|
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
invokeWithoutBody(NetSuiteSoapConfig config,
String operation) |
protected com.predic8.wsdl.Definitions |
loadLocalWsdlDefinitions() |
protected com.predic8.wsdl.Definitions |
loadRemoteWsdlDefinitions() |
protected com.predic8.wsdl.Definitions |
loadWSDLDefinitions()
Parses
Definitions from netsuite's local wsdls, or online wsdl |
protected org.mule.wsdl.parser.model.WsdlModel |
loadWsdlModel() |
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
search(NetSuiteSoapConfig config,
InputStream message,
boolean bodyFieldsOnly,
boolean returnSearchColumns,
int pageSize) |
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
searchMoreWithId(NetSuiteSoapConfig config,
String searchId,
Integer pageIndex,
boolean bodyFieldsOnly,
boolean returnSearchColumns,
int pageSize) |
void |
validate() |
public static final DateTimeFormatter DATETIME_FORMAT_TO_NETSUITE
public static final DateTimeFormatter DATETIME_FORMAT_FROM_NETSUITE
public static final String LOCAL_WSDL_FILE
public NetSuiteSoapConnection(org.mule.runtime.http.api.client.HttpClient httpClient,
org.mule.soap.api.client.SoapClient soapClient,
String endpoint,
Supplier<org.mule.runtime.api.util.MultiMap<String,String>> headersSupplier,
Supplier<String> wsdlUrlSupplier,
Integer responseTimeout,
Optional<WsdlVersion> wsdlVersion,
org.mule.runtime.api.el.MuleExpressionLanguage expressionExecutor,
org.mule.runtime.api.transformation.TransformationService transformationService,
ConcurrencyAwareCaller<org.mule.soap.api.message.SoapResponse> concurrencyAwareCaller)
public void disconnect()
disconnect in interface com.mulesoft.connectors.commons.template.connection.ConnectorConnectionpublic void validate()
validate in interface com.mulesoft.connectors.commons.template.connection.ConnectorConnectionpublic org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> invokeWithHeaderPreferences(NetSuiteSoapConfig config, String operation, String searchPreferencesHeader, InputStream message, boolean useEndpointFromWsdl)
config - The NetSuite soap config.operation - The name of the operationmessage - The request to complete.searchPreferencesHeader - The header for search preferencesuseEndpointFromWsdl - Whether use the endpoint or notpublic org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> invoke(NetSuiteSoapConfig config, String operation, String preferencesXmlHeaders, String searchPreferencesHeader, InputStream message, boolean useEndpointFromWsdl)
public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> get(NetSuiteSoapConfig config, RecordRefAndTypeParameterGroup key, InputStream message)
public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> getAll(NetSuiteSoapConfig config, String recordType)
public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> getSavedSearch(NetSuiteSoapConfig config, String searchType)
public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> search(NetSuiteSoapConfig config, InputStream message, boolean bodyFieldsOnly, boolean returnSearchColumns, int pageSize)
public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> searchMoreWithId(NetSuiteSoapConfig config, String searchId, Integer pageIndex, boolean bodyFieldsOnly, boolean returnSearchColumns, int pageSize)
public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> asyncSearch(NetSuiteSoapConfig config, InputStream message, boolean bodyFieldsOnly, boolean returnSearchColumns, int pageSize)
public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> changeEmail(NetSuiteSoapConfig config, String newEmail, String currentCredentials, boolean justThisAccount)
public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> changePassword(NetSuiteSoapConfig config, String newPassword, String currentCredentials)
public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> getAsyncResult(NetSuiteSoapConfig config, String jobId, Integer pageIndex)
public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> checkAsyncStatus(NetSuiteSoapConfig config, String jobId)
public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> getDeleted(NetSuiteSoapConfig config, InputStream message, InputStream searchPreferences)
public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> getDataCenterUrls(NetSuiteSoapConfig config, String accountId)
public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> getPostingTransactionSummary(NetSuiteSoapConfig config, InputStream message)
public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> getSelectValue(NetSuiteSoapConfig config, InputStream message)
public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> invokeAdvancedOperation(NetSuiteSoapConfig config, String operation, InputStream message)
public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> invokeRecordOperation(NetSuiteSoapConfig config, String operation, InputStream message)
public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> invokeAsyncOperation(NetSuiteSoapConfig config, String operation, InputStream message)
public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> invokeInviteeOperation(NetSuiteSoapConfig config, String operation, InputStream message)
public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> invokeItemOperation(NetSuiteSoapConfig config, String operation, InputStream message)
public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> invokeOperationWithCustomFields(NetSuiteSoapConfig config, String operation, InputStream message, String recordType)
public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> invokeWithoutBody(NetSuiteSoapConfig config, String operation)
operation - The operation to invokeconfig - The configuration to usepublic NetsuiteDocumentFactory getDocumentFactory()
public org.mule.runtime.api.util.LazyValue<Map<String,String>> getSchemaMap()
LazyValue with Map typepublic com.predic8.wsdl.Definitions getDefinitions()
DefinitionsLazyValue with Definitions typepublic org.mule.wsdl.parser.model.WsdlModel getWsdlModel()
protected org.mule.wsdl.parser.model.WsdlModel loadWsdlModel()
protected com.predic8.wsdl.Definitions loadWSDLDefinitions()
Definitions from netsuite's local wsdls, or online wsdlDefinitionsprotected com.predic8.wsdl.Definitions loadRemoteWsdlDefinitions()
throws IOException
IOExceptionprotected com.predic8.wsdl.Definitions loadLocalWsdlDefinitions()
throws IOException
IOExceptionpublic org.mule.runtime.api.util.LazyValue<Map<String,String>> getComplexTypesMap()
LazyValue with Map typepublic Optional<WsdlVersion> getWsdlVersion()
Copyright © 2025 MuleSoft, Inc.. All rights reserved.