Created
November 8, 2018 13:03
-
-
Save aashestakov/ccf653e97e2af38dbdc9484ffe8b35a9 to your computer and use it in GitHub Desktop.
SOAP CALL
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
$client = new SoapClient('http://10.10.65.201/gk_complex_dev/ws/ws1.1cws?wsdl', | |
[ | |
'cache_wsdl' => WSDL_CACHE_NONE, | |
'login' => 'WS', | |
'password' => 'ak&Gc8@v(lkJ0-Yu' | |
] | |
); | |
$r = $client->CreateOrder( | |
[ | |
'Orders' => [ | |
'Id' => 2, | |
'Date' => '2002-05-30T09:00:00', | |
'Number' => '123', | |
'DateOfEntry' => '2002-05-30T09:00:00', | |
'DeliveryDate' => '2002-05-30T09:00:00', | |
'CounterpartyId' => '1', | |
'Description' => 'Описание', | |
'Status' => 'ordered', | |
'Paid' => '100', | |
'Delivery' => 'ByTransportCompany', | |
'BasketItems' => [ | |
[ | |
'KIN' => '7f7b6111-e082-11e2-b892-00505688000e', | |
'StorageUnitId' => '2', | |
'Quantity' => '2', | |
'Price' => '1000', | |
'Sum' => '2000', | |
'TaxRate' => '18', | |
'SumRate' => '18', | |
'TotalSum' => '2000', | |
'ItemStatus' => 'ordered' | |
] | |
] | |
] | |
] | |
); | |
\Aero\Tools\Util::debug($r); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment