public static function AlterSoapComplexTypeArray(&$strComplexTypeArray) { if (!array_key_exists('Sharedetails', $strComplexTypeArray)) { $strComplexTypeArray['Sharedetails'] = Sharedetails::GetSoapComplexTypeXml(); } }