D
D
Dos7712016-05-27 09:31:44
SOAP
Dos771, 2016-05-27 09:31:44

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;
?>

Please advise options.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-05-27
@gangstarcj

Look at how other deliveries are made and do it by analogy.
Does the standard Kazpost module not fit?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question