Answer the question
In order to leave comments, you need to log in
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);
}
}
}
}
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();
}
}
}
}
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