comet.CSOAP¶
- class comet.CSOAP¶
This section describes all functions for the comet.CSOAP class.
Methods¶
- CSOAP.getServer()¶
Get the server name of this connection.
- Returns:
The server name
- Return type:
- Raises:
CometError – On internal error
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CSOAP.getUser()¶
Get the user name this connection was established with.
- Returns:
The user name
- Return type:
- Raises:
CometError – On internal error
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CSOAP.getLanguage()¶
Get the language this connection was established with.
- Returns:
The language
- Return type:
- Raises:
CometError – On internal error
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CSOAP.setLanguage(language)¶
Set the connection language.
- Parameters:
language (str) – The language
- Return type:
None
- Raises:
TypeError – When parameter types are wrong
CometError – On internal error
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CSOAP.getClient()¶
Get the client name this connection was established with.
- Returns:
The client name
- Return type:
- Raises:
CometError – On internal error
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CSOAP.getCharset()¶
Get the character set this connection was established with.
- Returns:
The character set
0: System charset
1: UTF-8
2: Unicode 16 Bit
3: Unicode 32 Bit
- Return type:
- Raises:
CometError – On internal error
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CSOAP.getMessage(code)¶
Get the description for a result or errorcode.
- Parameters:
code (int) – The error or result code to get a description for.
- Raises:
CometError – On internal error
TypeError – When parameter types are wrong
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CSOAP.call(method)¶
Create a new transaction query for calls of the generic SOAP operation call.
Calling this function is the same as calling
createQuery()
followed byCQuery.send()
with the command parameter set to ‘call method’.The call has exactly one column of type
constants.kString
as the result.- Parameters:
method (str) – Method that should be called.
- Returns:
A newly created query with the provided method call.
- Return type:
- Raises:
TypeError – When parameter types are wrong
ValueError – When parameter method is empty str
CometError – On internal error
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CSOAP.getList(method)¶
Create a transaction for the SOAP operation getList.
Calling this function is the same as calling
createQuery()
followed byCQuery.send()
with the command parameter set to ‘getList method’.All SQL and SOAP key words are case IN sensitive.
- Parameters:
method (str) – Method that should be called.
- Returns:
A newly created query with the provided method call.
- Return type:
- Raises:
TypeError – When parameter types are wrong
ValueError – When parameter method is empty str
CometError – On internal error
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CSOAP.uploadFile(ID, path, description='', mimeType='')¶
Upload a file to the SOAP connection.
- Parameters:
- Return type:
None
- Raises:
TypeError – When parameter types are invalid
When parameter ID is empty
When parameter path is empty
CometError – On internal error
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CSOAP.uploadData(ID, data, dataName, description='', mimeType='')¶
Upload data to the SOAP connection.
- Parameters:
- Return type:
None
- Raises:
TypeError – When parameter types are invalid
When parameter ID is empty
When parameter dataName is empty
CometError – On internal error
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CSOAP.uploadFolder(path, prefix='')¶
Upload a local folder and all contained files and folders recursively to the SOAP connection.
- Parameters:
- Return type:
None
- Raises:
TypeError – When parameter types are invalid
ValueError – When parameter path is empty
CometError – On internal error
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CSOAP.uploadMetaData(path)¶
Upload of all description data required for the comet plugins for placeholders, scripts, … .
- Parameters:
path (str) – Path of the description data.
- Return type:
None
- Raises:
TypeError – When parameter types are invalid
ValueError – When parameter path is empty
CometError – On internal error
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CSOAP.uploadTemplates(path)¶
Upload all templates to the server.
- Parameters:
path (str) – Path of the description data.
- Return type:
None
- Raises:
TypeError – When parameter types are invalid
ValueError – When parameter path is empty
CometError – On internal error
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CSOAP.download(ID)¶
Download data from the SOAP connection which is identified by a unique ID.
- Parameters:
ID (str) – The unique ID for the SOAP service to identify the data to download.
- Returns:
The downloaded data
- Return type:
- Raises:
TypeError – When parameter types are invalid
ValueError – When parameter ID is empty
CometError – On internal error
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CSOAP.createQuery()¶
Creates a new transaction query object for this connection.
- Returns:
A new query object
- Return type:
- Raises:
CometError – On internal error
- Available:
InDesign® comet_pdf® Illustrator®
- CScript: