Skip to content

Instantly share code, notes, and snippets.

@isergey
Created July 9, 2014 13:15
Show Gist options
  • Save isergey/8873f8095625bdc12332 to your computer and use it in GitHub Desktop.
Save isergey/8873f8095625bdc12332 to your computer and use it in GitHub Desktop.
<?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