Answer the question
In order to leave comments, you need to log in
How to create automated delivery and fasten the Bitrix SOAP client?
Hello.
Please tell me, at the moment I have the task of creating my own automated delivery, which will take web service data (SOAP, WSDL) for example: When placing an order, the delivery was automatically calculated for the buyer, the price will depend on the city and on weight, on size. The data will be taken from the KAZPOCHTA service.
I sent data via PHP on my local WAMP server, everything works, now I just need to tie it to delivery.
SOAP Client code:
<?php
$client = new SoapClient("http://rates.kazpost.kz/postratesws/postratesws.wsdl");
$result = $client->GetPostRate(
[
"MailInfo" => [
"Product" => "4",
"MailCat" => "1",
"SendMethod" => "1",
"Weight" => "14000",
"From" => "14",
"To" => "05"
]
]
);
echo $result->PostRate;
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question