GoogleApiAdsCommon
[ class tree: GoogleApiAdsCommon ] [ index: GoogleApiAdsCommon ] [ all elements ]

Class: SoapRequestXmlFixer

Source Location: /Common/Util/SoapRequestXmlFixer.php

Class Overview


The SOAP XML request fixer used to fix some inconsistencies among the different versions of the PHP SoapClient.


Methods



Class Details

[line 38]
The SOAP XML request fixer used to fix some inconsistencies among the different versions of the PHP SoapClient.



[ Top ]


Class Methods


constructor __construct [line 56]

SoapRequestXmlFixer __construct( boolean $addXsiTypes, boolean $removeEmptyElements, boolean $replaceReferences, boolean $redeclareXsiTypeNamespaceDefinitions)

Constructor to determine how the XML should be fixed.



Tags:

access:  public


Parameters:

boolean   $addXsiTypes   TRUE if xsi:types should be added to all complex type elements
boolean   $removeEmptyElements   TRUE if all empty elements should be removed from the XML request
boolean   $replaceReferences   TRUE if element references should be replaced with a copy of the element.
boolean   $redeclareXsiTypeNamespaceDefinitions   TRUE if the namespace prefixes used in xsi:type values should be redeclared on the element.

[ Top ]

method FixXml [line 71]

string FixXml( string $request, $arguments)

Fixes the XML based on the parameters specified in the constructor.



Tags:

return:  the prepared request ready to be sent to the server
access:  public


Parameters:

string   $request   the raw request produced by the SOAP client
array   $arguments   the arguments passed to the SOAP method

[ Top ]


Documentation generated by phpDocumentor 1.4.3