Created
July 9, 2014 13:15
-
-
Save isergey/8873f8095625bdc12332 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$client = new SoapClient( | |
"http://portal.alexfitness.ru/WebSait/ws/WebSait?wsdl" , | |
array( | |
'login' => "admin", | |
'cache_wsdl' => WSDL_CACHE_NONE | |
) | |
); | |
$DATE_TIME_SMPL = '2002-05-30T09:00:00'; | |
$DATE_SMPL = '2014-05-30'; | |
$BOOL_SMPL = true; | |
$istochInfo = array( | |
'Drugoe'=> $BOOL_SMPL, | |
'IstochInfoElement'=>'IstochInfoElement' | |
); | |
$adres = array( | |
'Reg'=>'Reg', | |
'Gor'=>'Gor', | |
'Uli'=>'Uli', | |
'Dom'=>'Dom', | |
'Korp'=>'Korp', | |
'Stroen'=>'Stroen', | |
'Kvart'=>'Kvart', | |
); | |
$dokum = array( | |
'VidDok'=>'VidDok', | |
'Seria'=>'Seria', | |
'Nomer'=>'Nomer', | |
'DateV'=>$DATE_SMPL, | |
'DateDest'=>$DATE_SMPL, | |
'KemVid'=>'KemVid', | |
'KodPodr'=>'KodPodr', | |
'MestoRojd'=>'MestoRojd', | |
'DateRojd'=>$DATE_SMPL, | |
'MestoReg'=>'MestoReg', | |
'MestoProj'=>'MestoProj', | |
); | |
$infoKlient = array( | |
'Famil'=>'Famil', | |
'Imia'=>'Imia', | |
'Otch'=>'Otch', | |
'Pol'=>$BOOL_SMPL, | |
'DateR'=>$DATE_SMPL, | |
'Tel'=>'123456856', | |
'Email'=>'Email', | |
'RebVzr'=>$BOOL_SMPL, | |
'IstochInfo'=>$istochInfo, | |
'DateObr'=>$DATE_SMPL, | |
'OtkSms'=>$BOOL_SMPL, | |
'Adres'=>$adres, | |
'Dokum'=>$dokum, | |
'VidKont'=>'VidKont', | |
); | |
$klientPlatel = array( | |
'Klient'=>$infoKlient, | |
//'Platel'=>'', | |
); | |
$infoAbon = array( | |
'KodAb'=>'KodAb', | |
'KodKlub'=>'KodKlub' | |
); | |
$infoOpl = array( | |
'SummPr'=>'100.0', | |
'Skid'=>'200.0', | |
'OsnSkid'=>'OsnSkid', | |
'SummOpl'=>'5000.0', | |
'DateOpl'=>$DATE_TIME_SMPL, | |
); | |
$infoSl = array( | |
'DateOtpr'=>$DATE_TIME_SMPL | |
); | |
$rowTabZak = array( | |
'KlientPlatel'=>$klientPlatel, | |
'InfoAbon'=>$infoAbon, | |
'InfoOpl'=>$infoOpl, | |
'InfoSl'=>$infoSl, | |
'IDZakaza'=>'id12345' | |
); | |
$params = array('Param'=>$rowTabZak); | |
var_dump($client->ZagruzkaZakaza($params)); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment