service/core/NusoapSoap.php

Show: inherited
Table of Contents

Constants

Constant  sugarEntry = true

\NusoapSoap

Package: SugarCRM

This is an abstract class for the soap implementation for using NUSOAP. This class is responsible for making all NUSOAP call by passing the client's request to NUSOAP server and seding response back to client

All type of web services should provide proper implementation of all the abstract methods

Parent(s)
\SugarSoapService < \SugarWebService
Children
\SugarSoapService2
Api
 

Properties

Propertyprotected  $excludeFunctions= 'array()'
Default valuearray()Details
Type
n/a
Inherited_from
\SugarWebService::$$excludeFunctions  
Inherited_from
\SugarSoapService::$$excludeFunctions  
Propertyprotected  $implementationClass= ''SugarWebServiceImpl''
inheritedInherited from: \SugarSoapService::$$implementationClass
Default value'SugarWebServiceImpl'Details
Type
n/a
Inherited_from
\SugarSoapService::$$implementationClass  
Propertyprotected  $namespace= ''http://www.sugarcrm.com/sugarcrm''
inheritedInherited from: \SugarSoapService::$$namespace
Default value'http://www.sugarcrm.com/sugarcrm'Details
Type
n/a
Inherited_from
\SugarSoapService::$$namespace  
Propertyprotected  $registryClass= '""'
inheritedInherited from: \SugarSoapService::$$registryClass
Default value""Details
Type
n/a
Inherited_from
\SugarSoapService::$$registryClass  
Propertyprotected  $server= 'null'
Default valuenullDetails
Type
n/a
Inherited_from
\SugarWebService::$$server  
Inherited_from
\SugarSoapService::$$server  
Propertyprotected  $soapURL= '""'
inheritedInherited from: \SugarSoapService::$$soapURL
Default value""Details
Type
n/a
Inherited_from
\SugarSoapService::$$soapURL  
Propertyprotected  $soap_version= ''1.1''
inheritedInherited from: \SugarSoapService::$$soap_version
Default value'1.1'Details
Type
n/a
Inherited_from
\SugarSoapService::$$soap_version  

Methods

methodpublic__construct( String $url ) : void

This is the constructor. It creates an instance of NUSOAP server.

Parameters
Name Type Description
$url String
  • This is the soap URL
Details
Access
public  
methodpublicerror( \SoapError $errorObject ) : void

This function sets the fault object on the NUSOAP

Parameters
Name Type Description
$errorObject \SoapError
  • This is an object of type SoapError
Details
Access
public  
methodpublicgetNameSpace( ) : String
inherited

This method returns the namespace

Inherited from: \SugarSoapService::getNameSpace()
Returns
Type Description
String - namespace
Details
Access
public  
methodpublicgetRegisteredClass( ) : String
inherited

This mehtod returns registry class

Inherited from: \SugarSoapService::getRegisteredClass()
Returns
Type Description
String - registryClass
Details
Access
public  
methodpublicgetRegisteredImplClass( ) : String
inherited

This mehtod returns registered implementation class

Inherited from: \SugarSoapService::getRegisteredImplClass()
Returns
Type Description
String - implementationClass
Details
Access
public  
methodpublicgetServer( ) : String
inherited

This mehtod returns server

Inherited from: \SugarSoapService::getServer()
Returns
Type Description
String -server
Details
Access
public  
methodpublicgetSoapURL( ) : String
inherited

This method returns the soapURL

Inherited from: \SugarSoapService::getSoapURL()
Returns
Type Description
String - soapURL
Details
Access
public  
methodpublicgetSoapVersion( ) : void
inherited

Inherited from: \SugarSoapService::getSoapVersion()
methodpublicregister(  $excludeFunctions = array() ) : void
Parameters
Name Type Description
$excludeFunctions
methodpublicregisterClass( String $registryClass ) : void

Sets the name of the registry class

Parameters
Name Type Description
$registryClass String
Details
Access
public  
methodpublicregisterFunction( String $function, Array $input, Array $output ) : void

This method registers all the functions you want to expose as services with NUSOAP

Parameters
Name Type Description
$function String
  • name of the function
$input Array
  • assoc array of input values: key = param name, value = param type
$output Array
  • assoc array of output values: key = param name, value = param type
Details
Access
public  
methodpublicregisterImplClass( String $implementationClass ) : void

This function registers implementation class name with NUSOAP so when NUSOAP makes a call to a funciton, it will be made on this class object

Parameters
Name Type Description
$implementationClass String
Details
Access
public  
methodpublicregisterType( String $name, String $typeClass, String $phpType, String $compositor, String $restrictionBase, Array $elements, Array $attrs = array(), String $arrayType = '' ) : void

This method registers all the complex type with NUSOAP server so that proper WSDL can be generated

Parameters
Name Type Description
$name String
  • name of complex type
$typeClass String
  • (complexType|simpleType|attribute)
$phpType String
  • array or struct
$compositor String
  • (all|sequence|choice)
$restrictionBase String
  • SOAP-ENC:Array or empty
$elements Array
  • array ( name => array(name=>'',type=>'') )
$attrs Array
  • array(array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'xsd:string[]'))
$arrayType String
  • arrayType: namespace:name (xsd:string)
Details
Access
public  
methodpublicserve( ) : void

It passes request data to NUSOAP server and sends response back to client

Details
Access
public  
methodpublicsetObservers( ) : void
inherited

This method sets the soap server object on all the observers

Inherited from: \SugarSoapService::setObservers()
Details
Access
public  
methodpublicshutdown( ) : void

Fallback function to catch unexpected failure in SOAP

Documentation was generated by DocBlox 0.18.1.