V
V
Vladimir2019-03-04 18:44:15
PHP
Vladimir, 2019-03-04 18:44:15

How to send username and password via SoapClient?

Good day!
I'm trying to make a request with soap

$client = new SoapClient($serviceUrl, array('login' => "Clien***", 'password' => "******"));

Gives an error
5c7d479150f4f172609887.jpeg
if you manually go to $serviceUrl and enter the password, I get an XML screen

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladimir L, 2019-03-06
L

Everything worked, I did not understand what was the error

K
ky0, 2019-03-04
@ky0

Your site cannot reach the IP port specified in the exception. You need to check network connectivity. If it's the same server, it's obviously better to use localhost.

O
Oleg, 2019-03-04
@402d

https://infostart.ru/public/63082/
Web services from 1C to PHP or a rake that I stepped on.
and other articles on infostar google

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question