xml - SOAP Authentication Through cURL PHP Returns "HTTP GET method not implemented" 500 error -


so working on soap request using php curl. want invoke operations before want test authentication part. below code:

$username = 'myusername'; $password = 'mypassword'; $host = 'http://xx.xx.xx.xx:xxxxx';  $process = curl_init($host); curl_setopt($process, curlopt_httpauth, curlauth_any);  curl_setopt($process, curlopt_header, true); curl_setopt($process, curlopt_httpheader, array(                                                                           'content-type: text/xml',     "authorization: basic " . base64_encode($username.":".$password) )); curl_setopt($process,curlopt_useragent,'xxxxx/x.x'); curl_setopt($process, curlopt_returntransfer, 1); curl_setopt($process, curlopt_verbose, 1); curl_setopt($process, curlopt_failonerror, false); $return = curl_exec($process); print_r($return);  curl_close($process); 

i need use base64 username/password. found how on other question. when print_r($return) received

http/1.1 500 internal server error server: xxxxx/x.x content-type: text/xml; charset=utf-8 content-length: 883 connection: close soap-env:client http method not implemented 

i not sure error means plus not found questions on kind of error. perhaps explain me going on here? thank in advance.

the error stating service trying reach not have httpget functionality implemented. without knowing trying reach , documentation of api trying reach or description of trying there no way error.

normally error 500 internal server error , not not implemented error receiving. below or descriptions of response code standards.

http://www.w3.org/protocols/rfc2616/rfc2616-sec10.html


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -