Class nusoap_server_mime

Description

nusoap_server_mime server supporting MIME attachments defined at http://www.w3.org/TR/SOAP-attachments. It depends on the PEAR Mail_MIME library.

  • access: public
  • version: $Id: nusoapmime.php,v 1.12 2007/04/17 16:34:03 snichol Exp $
  • author: Scott Nichol <snichol@users.sourceforge.net>
  • author: Thanks to Guillaume and Henning Reich for posting great attachment code to the mail list

Located in /nusoapmime.php (line 284)

nusoap_base
   |
   --nusoap_server
      |
      --nusoap_server_mime
Direct descendents
Class Description
 class nusoapservermime nusoap_server_mime server supporting MIME attachments defined at http://www.w3.org/TR/SOAP-attachments. It depends on the PEAR Mail_MIME library.
Variable Summary
Method Summary
 string addAttachment (string $data, [string $filename = ''], [string $contenttype = 'application/octet-stream'], [string $cid = false])
 array getAttachments ()
 string getHTTPBody (string $soapmsg)
 string getHTTPContentType ()
 mixed parseRequest (array $headers, string $data)
Variables
Methods
addAttachment (line 318)

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.

  • return: The content-id (cid) of the attachment
  • access: public
string addAttachment (string $data, [string $filename = ''], [string $contenttype = 'application/octet-stream'], [string $cid = false])
  • 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)
clearAttachments (line 338)

clears the MIME attachments for the current response.

  • access: public
void clearAttachments ()
getAttachments (line 352)

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.

  • return: The attachments.
  • access: public
array getAttachments ()
getHTTPBody (line 363)

gets the HTTP body for the current response.

  • return: The HTTP body, which includes the SOAP payload
  • access: private
string getHTTPBody (string $soapmsg)
  • string $soapmsg: The SOAP payload

Redefinition of:
nusoap_server::getHTTPBody()
gets the HTTP body for the current response.
getHTTPContentType (line 422)

gets the HTTP content type for the current response.

Note: getHTTPBody must be called before this.

  • return: the HTTP content type for the current response.
  • access: private
string getHTTPContentType ()

Redefinition of:
nusoap_server::getHTTPContentType()
gets the HTTP content type for the current response.
getHTTPContentTypeCharset (line 438)

gets the HTTP content type charset for the current response.

returns false for non-text content types.

Note: getHTTPBody must be called before this.

  • return: the HTTP content type charset for the current response.
  • access: private
string getHTTPContentTypeCharset ()

Redefinition of:
nusoap_server::getHTTPContentTypeCharset()
gets the HTTP content type charset for the current response.
parseRequest (line 453)

processes SOAP message received from client

  • return: value of the message, decoded into a PHP type
  • access: private
mixed parseRequest (array $headers, string $data)
  • array $headers: The HTTP headers
  • string $data: unprocessed request data from client

Redefinition of:
nusoap_server::parseRequest()
processes SOAP message received from client

Inherited Methods

Inherited From nusoap_server

 nusoap_server::nusoap_server()
 nusoap_server::add_to_map()
 nusoap_server::configureWSDL()
 nusoap_server::fault()
 nusoap_server::getHTTPBody()
 nusoap_server::getHTTPContentType()
 nusoap_server::getHTTPContentTypeCharset()
 nusoap_server::invoke_method()
 nusoap_server::parseRequest()
 nusoap_server::parse_http_headers()
 nusoap_server::parse_request()
 nusoap_server::register()
 nusoap_server::send_response()
 nusoap_server::serialize_return()
 nusoap_server::service()
 nusoap_server::verify_method()

Inherited From nusoap_base

 nusoap_base::nusoap_base()
 nusoap_base::appendDebug()
 nusoap_base::clearDebug()
 nusoap_base::contractQname()
 nusoap_base::debug()
 nusoap_base::expandEntities()
 nusoap_base::expandQname()
 nusoap_base::formatDump()
 nusoap_base::getDebug()
 nusoap_base::getDebugAsXMLComment()
 nusoap_base::getDebugLevel()
 nusoap_base::getError()
 nusoap_base::getGlobalDebugLevel()
 nusoap_base::getLocalPart()
 nusoap_base::getmicrotime()
 nusoap_base::getNamespaceFromPrefix()
 nusoap_base::getPrefix()
 nusoap_base::getPrefixFromNamespace()
 nusoap_base::isArraySimpleOrStruct()
 nusoap_base::serializeEnvelope()
 nusoap_base::serialize_val()
 nusoap_base::setDebugLevel()
 nusoap_base::setError()
 nusoap_base::setGlobalDebugLevel()
 nusoap_base::varDump()
 nusoap_base::__toString()

Documentation generated on Tue, 06 Nov 2007 10:40:40 -0500 by phpDocumentor 1.3.0RC3