A
A
Adik Izat2019-05-17 17:28:09
PHP
Adik Izat, 2019-05-17 17:28:09

I have a wsdl document. How to connect to the gateway using PHP?

Good afternoon, forum users! Forgive the newbie, perhaps an inadequate question. I have a WSDL document ( link ). And I don't know how to connect to it via php) The documentation has a connection example using .Net Framework 3.5 and higher:

using System; using WcfClient.Gate; 
 
namespace WcfClient 
 { 
    class Program 
    { 
        static void Main() 
        { 
            // создаём экземпляр обёртки для работы с поисковым сервисом 
            using (var gate = new Soap11GateClient()) 
            { 
                // указываем данные для авторизации на сервисе 
                var authInfo = new AuthData() { Login = "********", Password = "********" }; 
                // далее нам доступен вызов любых методов сервиса 
                var cities = gate.GetDepartCities(authInfo); 
            } 
        } 
    } 
}

And for .NET 1.0 - 2.0:
using System; using WebClient.Gate; 
 
namespace WebClient 
{ 
    class Program 
    { 
        static void Main() 
        { 
            // создаём экземпляр обёртки для работы с поисковым сервисом 
            using (var gate = new Soap11Gate()) 
            { 
                // указываем данные для авторизации на сервисе 
                gate.AuthInfo = new AuthData() { Login = "********", Password = "********" };  
                // далее нам доступен вызов любых методов сервиса 
                var cities = gate.GetDepartCities(); 
            } 
        } 
    } 
}

The above examples return a list of cities to depart as an array. Can someone tell me how to implement this gateway in PHP.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
d-stream, 2019-05-17
@JaxAdam

The first search result for "wcf client php" leads to a fat man's blog with instructions "how to do it"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question