public static function createCustomerXml($customer)
 {
     $docXml = self::createResponseXml();
     $request = $docXml->createElement("request");
     $customerElem = $docXml->createElement("Client_Web");
     $customerElem->setAttribute('Code_Site_Web', GlobalConfig::getWebSiteCode());
     $customerElem->setAttribute('Login', $customer['id_customer']);
     $customerElem->setAttribute('Civilite', Mapping::psCivility2OsiCivility($customer['id_gender']));
     $customerElem->setAttribute('Nom', $customer['customerLastname']);
     $customerElem->setAttribute('Prenom', $customer['customerFirstname']);
     $customerElem->setAttribute('Societe', $customer['company']);
     $customerElem->setAttribute('Adresse_1', $customer['address1']);
     $customerElem->setAttribute('Adresse_2', $customer['address2']);
     $customerElem->setAttribute('Code_Postal', $customer['postcode']);
     $customerElem->setAttribute('Ville', $customer['city']);
     $customerElem->setAttribute('Code_Pays', $customer['iso_code']);
     $phone = $customer["phone"] != "" ? $customer["phone"] : $customer["phone_mobile"];
     $customerElem->setAttribute('Telephone', $phone);
     $customerElem->setAttribute('Email', $customer['email']);
     $request->appendChild($customerElem);
     $docXml->appendChild($request);
     return $docXml->saveXML();
 }