public class SimpleCtsService extends java.lang.Object implements CtsService
| Constructor and Description |
|---|
SimpleCtsService(java.lang.String url,
java.lang.String wsName,
java.lang.String bindingName)
Creates SimpleCtsService instance
|
| Modifier and Type | Method and Description |
|---|---|
CtsWsUploadResponse |
appendBytesIntoFile(byte[] bytes,
java.lang.String fileHandle)
Appends file
|
CtsWsTraResponse |
attachToRequest(CtsWsTransportEntity entity,
java.lang.String requestId)
Attaches uploaded file to given request
|
CtsWsRequestResponse |
getDefaultRequest(java.lang.String description,
java.lang.String refreshMode,
CtsWsRequestFilter filter)
Contacts export web service by sending configured @CtsWsRequestFilter and gets default request information like
request id
|
CtsWsTraResponse |
submitRequest(java.lang.String requestId)
Submits request
|
CtsWsUploadResponse |
uploadBytesIntoFile(byte[] bytes,
java.lang.String fileName)
Uploads file
|
public SimpleCtsService(java.lang.String url,
java.lang.String wsName,
java.lang.String bindingName)
url - - URL leading to export web servicewsName - - basing on configuration of export web service binding in SOAMANAGER transaction this parameter
represents service name and is case sensitivebindingName - - basing on configuration of export web service binding in SOAMANAGER transaction this parameter
represents binding name and is case sensitivepublic CtsWsRequestResponse getDefaultRequest(java.lang.String description, java.lang.String refreshMode, CtsWsRequestFilter filter)
getDefaultRequest in interface CtsServicedescription - - description of the requestrefreshMode - - refresh modefilter - - @CtsWsRequestFilterpublic CtsWsUploadResponse uploadBytesIntoFile(byte[] bytes, java.lang.String fileName)
uploadBytesIntoFile in interface CtsServicebytes - - file's bytesfileName - - file namepublic CtsWsUploadResponse appendBytesIntoFile(byte[] bytes, java.lang.String fileHandle)
appendBytesIntoFile in interface CtsServicebytes - - file's bytesfileHandle - - file handlepublic CtsWsTraResponse attachToRequest(CtsWsTransportEntity entity, java.lang.String requestId)
attachToRequest in interface CtsServiceentity - - @CtsWsTransportEntity holding file meta-datarequestId - - id of the request that file should be attached topublic CtsWsTraResponse submitRequest(java.lang.String requestId)
submitRequest in interface CtsServicerequestId - - id of the request to be submittedCopyright © 2018 SAP SE. All Rights Reserved.