string addAttachment(
string
$data, [string
$filename = ''], [string
$contenttype = 'application/octet-stream'], [string
$cid = false]
)
|
|
adds a MIME attachment to the current request.
If the $data parameter contains an empty string, this method will read the contents of the file named by the $filename parameter.
If the $cid parameter is false, this method will generate the cid.
Parameters:
|
string |
$data: |
The data of the attachment |
|
string |
$filename: |
The filename of the attachment (default is empty string) |
|
string |
$contenttype: |
The MIME Content-Type of the attachment (default is application/octet-stream) |
|
string |
$cid: |
The content-id (cid) of the attachment (default is false) |
API Tags:
| Return: | The content-id (cid) of the attachment |
| Access: | public |
clears the MIME attachments for the current request.
API Tags:
gets the MIME attachments from the current response.
Each array element in the return is an associative array with keys data, filename, contenttype, cid. These keys correspond to the parameters for addAttachment.
API Tags:
| Return: | The attachments. |
| Access: | public |
string getHTTPBody(
string
$soapmsg
)
|
|
gets the HTTP body for the current request.
Parameters:
|
string |
$soapmsg: |
The SOAP payload |
API Tags:
| Return: | The HTTP body, which includes the SOAP payload |
| Access: | protected |
Redefinition of:
- mysoapclient::getHTTPBody()
- gets the HTTP body for the current request.
string getHTTPContentType(
)
|
|
gets the HTTP content type for the current request.
Note: getHTTPBody must be called before this.
API Tags:
| Return: | the HTTP content type for the current request. |
| Access: | protected |
Redefinition of:
- mysoapclient::getHTTPContentType()
- gets the HTTP content type for the current request.
string getHTTPContentTypeCharset(
)
|
|
gets the HTTP content type charset for the current request.
returns false for non-text content types.
Note: getHTTPBody must be called before this.
API Tags:
| Return: | the HTTP content type charset for the current request. |
| Access: | protected |
Redefinition of:
- mysoapclient::getHTTPContentTypeCharset()
- gets the HTTP content type charset for the current request.
mixed parseResponse(
array
$headers, string
$data
)
|
|
processes SOAP message returned from server
Parameters:
|
array |
$headers: |
The HTTP headers |
|
string |
$data: |
unprocessed response data from server |
API Tags:
| Return: | value of the message, decoded into a PHP type |
| Access: | protected |
Redefinition of:
- mysoapclient::parseResponse()
- processes SOAP message returned from server