Y
Y
Yuri2014-12-15 13:00:49
PHP
Yuri, 2014-12-15 13:00:49

Problem connecting to SOAP server with non-standard port?

SOAP server is located at an address with a non-standard port
trying to connect

$soap = new SoapClient('http://domen.ru:5080/api.wsdl');

gives an error message
SoapClient::SoapClient(http://domen.ru:5080/api.wsdl): failed to open stream: Connection timed out

If you remove the port on the server, then everything works, but the problem is that access to the server via external ip can only be with any port other than 80.
How can I fix this problem with connecting a soap client?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2014-12-15
@SashaSkot

You are describing a strange situation. Want to connect via 5080, but the server is running on port 80. This should not happen - if you want the connection to be made on 5080 - change it on the server.

M
Maxim Barulin, 2014-12-15
@Slavenin999

domen.ru:5080/api.wsdl is some strange address, as a rule something like domen.ru:5080/api?wsdl is used everywhere. Does your wsdl come off in the browser?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question