php - SoapClient result "failed to open stream: HTTP request failed" -


i'm trying open socket between server , other server, returns following warring msg :

soapclient::soapclient() [soapclient.soapclient]: failed open stream: http request failed

my soapclient should connected using specific ip, i'm using following code:

$aopts = array('socket' => array('bindto' => 'my ip')); $rstreamcontext = stream_context_create($aopts);

$client = new soapclient($this->_wsdl_test_url, array('stream_context'=>$rstreamcontext));

the server keep giving me same warning, failed open stream: http

finally fixed, problem encryption of file, put utf8 without bom instead of utf8


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -