Inheritance diagram for nusoapservermime:
Public Member Functions | |
addAttachment ($data, $filename= '', $contenttype= 'application/octet-stream', $cid=false) | |
clearAttachments () | |
getAttachments () | |
getHTTPBody ($soapmsg) | |
getHTTPContentType () | |
getHTTPContentTypeCharset () | |
parseRequest ($headers, $data) |
nusoapservermime::addAttachment | ( | $ | data, | |
$ | filename = '' , |
|||
$ | contenttype = 'application/octet-stream' , |
|||
$ | cid = false | |||
) |
adds a MIME attachment to the current response.
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.
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) |
nusoapservermime::clearAttachments | ( | ) |
clears the MIME attachments for the current response.
public
nusoapservermime::getAttachments | ( | ) |
gets the MIME attachments from the current request.
Each array element in the return is an associative array with keys data, filename, contenttype, cid. These keys correspond to the parameters for addAttachment.
nusoapservermime::getHTTPBody | ( | $ | soapmsg | ) |
gets the HTTP body for the current response.
string | $soapmsg The SOAP payload |
Reimplemented from soap_server.
nusoapservermime::getHTTPContentType | ( | ) |
gets the HTTP content type for the current response.
Note: getHTTPBody must be called before this.
Reimplemented from soap_server.
nusoapservermime::getHTTPContentTypeCharset | ( | ) |
gets the HTTP content type charset for the current response. returns false for non-text content types.
Note: getHTTPBody must be called before this.
Reimplemented from soap_server.
nusoapservermime::parseRequest | ( | $ | headers, | |
$ | data | |||
) |
processes SOAP message received from client
array | $headers The HTTP headers | |
string | $data unprocessed request data from client |
Reimplemented from soap_server.