[ Index ]
 

Code source de vtiger CRM 5.0.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/include/nusoap/ -> class.soap_server.php (sommaire)

(pas de description)

Poids: 1038 lignes (37 kb)
Inclus ou requis: 2 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

soap_server:: (16 méthodes):
  soap_server()
  service()
  parse_http_headers()
  parse_request()
  invoke_method()
  serialize_return()
  send_response()
  verify_method()
  parseRequest()
  getHTTPBody()
  getHTTPContentType()
  getHTTPContentTypeCharset()
  add_to_map()
  register()
  fault()
  configureWSDL()


Classe: soap_server  - X-Ref

soap_server allows the user to create a SOAP server
that is capable of receiving messages and returning responses

NOTE: WSDL functionality is experimental

soap_server($wsdl=false)   X-Ref
constructor
the optional parameter is a path to a WSDL file that you'd like to bind the server instance to.

param: mixed $wsdl file path or URL (string), or wsdl instance (object)

service($data)   X-Ref
processes request and returns response

param: string $data usually is the value of $HTTP_RAW_POST_DATA

parse_http_headers()   X-Ref
parses HTTP request headers.

The following fields are set by this function (when successful)

headers
request
xml_encoding
SOAPAction


parse_request($data='')   X-Ref
parses a request

The following fields are set by this function (when successful)

headers
request
xml_encoding
SOAPAction
request
requestSOAP
methodURI
methodname
methodparams
requestHeaders
document

This sets the fault field on error

param: string $data XML string

invoke_method()   X-Ref
invokes a PHP function for the requested SOAP method

The following fields are set by this function (when successful)

methodreturn

Note that the PHP function that is called may also set the following
fields to affect the response sent to the client

responseHeaders
outgoing_headers

This sets the fault field on error


serialize_return()   X-Ref
serializes the return value from a PHP function into a full SOAP Envelope

The following fields are set by this function (when successful)

responseSOAP

This sets the fault field on error


send_response()   X-Ref
sends an HTTP response

The following fields are set by this function (when successful)

outgoing_headers
response


verify_method($operation,$request)   X-Ref
takes the value that was created by parsing the request
and compares to the method's signature, if available.

param: string    $operation    The operation to be invoked
param: array    $request    The array of parameter values
return: boolean    Whether the operation was found

parseRequest($headers, $data)   X-Ref
processes SOAP message received from client

param: array    $headers    The HTTP headers
param: string    $data        unprocessed request data from client
return: mixed    value of the message, decoded into a PHP type

getHTTPBody($soapmsg)   X-Ref
gets the HTTP body for the current response.

param: string $soapmsg The SOAP payload
return: string The HTTP body, which includes the SOAP payload

getHTTPContentType()   X-Ref
gets the HTTP content type for the current response.

Note: getHTTPBody must be called before this.

return: string the HTTP content type for the current response.

getHTTPContentTypeCharset()   X-Ref
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: string the HTTP content type charset for the current response.

add_to_map($methodname,$in,$out)   X-Ref
add a method to the dispatch map (this has been replaced by the register method)

param: string $methodname
param: string $in array of input values
param: string $out array of output values

register($name,$in=array()   X-Ref
register a service function with the server

param: string $name the name of the PHP function, class.method or class..method
param: array $in assoc array of input values: key = param name, value = param type
param: array $out assoc array of output values: key = param name, value = param type
param: mixed $namespace the element namespace for the method or false
param: mixed $soapaction the soapaction for the method or false
param: mixed $style optional (rpc|document) or false Note: when 'document' is specified, parameter and return wrappers are created for you automatically
param: mixed $use optional (encoded|literal) or false
param: string $documentation optional Description to include in WSDL
param: string $encodingStyle optional (usually 'http://schemas.xmlsoap.org/soap/encoding/' for encoded)

fault($faultcode,$faultstring,$faultactor='',$faultdetail='')   X-Ref
Specify a fault to be returned to the client.
This also acts as a flag to the server that a fault has occured.

param: string $faultcode
param: string $faultstring
param: string $faultactor
param: string $faultdetail

configureWSDL($serviceName,$namespace = false,$endpoint = false,$style='rpc', $transport = 'http:)   X-Ref
Sets up wsdl object.
Acts as a flag to enable internal WSDL generation

param: string $serviceName, name of the service
param: mixed $namespace optional 'tns' service namespace or false
param: mixed $endpoint optional URL of service endpoint or false
param: string $style optional (rpc|document) WSDL style (also specified by operation)
param: string $transport optional SOAP transport
param: mixed $schemaTargetNamespace optional 'types' targetNamespace for service schema or false



Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7