Radamanf
Radamanf

Reputation: 477

PHP SOAP local server error

I'm struggling to get SOAP working on server locally. It's running on server and from my local PC I can use it, but when I'm using ssh to the server (both PC on linux) php gives me the error:

Error occurred: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://192.168.1.2:8080/WebServices/SetValues?WSDL' : failed to load external entity "http://192.168.1.2:8080/WebServices/SetValues?WSDL"

I tried Lynx locally from server and it's working fine. So problem is somewhere in PHP, SOAP...

Upvotes: 1

Views: 1370

Answers (2)

Radamanf
Radamanf

Reputation: 477

setsebool -P httpd_can_network_connect 1

SE Linux was my problem!!! If anything happens with networking (even locally) blame SE Linux or firewall.

Upvotes: 1

Yuriy Vikulov
Yuriy Vikulov

Reputation: 2499

Is your server binded to local (127.0.0.1)? Try to bind to 0.0.0.0

Upvotes: 0

Related Questions