Php Soap 500 Internal Server Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might soapfault internal server error have Meta Discuss the workings and policies of this site About 500 internal server error soap request Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads 500 internal server error web service call with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million the remote server returned an error (500) internal server error. c# web service programmers, just like you, helping each other. Join them; it only takes a minute: Sign up PHP Make SOAP Client Request Returns 500 Internal Server Error up vote 0 down vote favorite I'm using PHP to make SOAP request. I do have information of the web service from the third party. Basically what they have
Soapclient 500 Internal Server Error
give me: The full URI request ( http://xx.xx.xx.xx:xxxxxx/some/services/BasicDo ) Username & Password I am pretty new however I could understand a bit how PHP SOAP things work. However in the example I found the URL called is something like http://xx.xx.xx.xx/services/myservice?wsdl which is not really same with what I have with me. Additional question here is what should I ask them? Perhaps what is the name of wsdl file? Also so far I have this code with me: try{ $client = new SoapClient("http://xx.xx.xx.xx:xxxxx/some/services/BasicDo?wsdl", array('login'=>"myusername",'password'=> "mypwd")); } catch(SoapFault $fault) { trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR); } But from the console, I received status 500 Internal Server Error. I don't know how this can be, I am expecting something from the catch block. Somebody please clarify me this. Thank you in advance. php web-services soap wsdl share|improve this question edited Mar 12 '15 at 3:53 asked Mar 12 '15 at 3:22 UserProg 430414 Hi, did you manage to solve this??? I'm having al
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of
Soap Response 500 Internal Server Error
this site About Us Learn more about Stack Overflow the company Business Learn internal server error in soap response more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question php soapclient x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up http://stackoverflow.com/questions/29001332/php-make-soap-client-request-returns-500-internal-server-error SoapClient call returns 500 Internal Server Error up vote 1 down vote favorite I am trying to connect to an API using PHP and its built-in SoapClient. I have checked against the url I was given through the ill-formatted documents the client gave and $client->__getFunctions() returns a list of three functions. HelloWorld($name), which responds with Hello ~name~, shows me that I am communicating with http://stackoverflow.com/questions/37326011/soapclient-call-returns-500-internal-server-error the server through the SoapClient call and the URL is correct. However, when I try to access one of the other methods that __getFunctions() gives me, even after copy/pasting the XML from the docs and putting in my own credentials, I am still being given an Internal Server Error faultstring and 500 as faultcode from the SoapFault object. I am sure that it is my own XML string that is causing the issue but I cannot for the life of me figure out how. Reaching out to the API provider directly hasn't proven helpful. This is my first time dealing with Soap/Web Services so I am unsure of where to go from here. I did wget http//xxx.xxx.xxx?wsdl and it returned me what looks like a valid XML response, the same one I get when I go directly to the url in the browser. What should I be looking into in order to solve this issue? All of the past API's I've dealt with have been JSON/RESTful so I feel out of my element trying to debug PHP errors. Edit I have slowly deleted parts of my method
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more http://stackoverflow.com/questions/13581210/soap-connection-php-causing-error-500 about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up soap connection php causing error 500 up vote 3 down vote favorite I have following problem: I try to access a wsdl webservice from php. This is my internal server current code: if (isset($_POST['submit'])){ $soap = new SoapClient("http://footballpool.dataaccess.eu/data/info.wso?wsdl"); } All I get is "500 - Internal Server error" when i access this code. Currently my php is running on Windows Server 2008 R2 but I think that can't be the error source. Other applications like Wordpress run without any issue. Soap Client and Server is activated in php.ini. PHP version is 5.4.6. Anyone has any idea how to handle this? php web-services soap wsdl windows-server-2008 share|improve this question internal server error asked Nov 27 '12 at 9:35 colosso 1,7061535 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote The 500 Internal Server Error indicates that PHP encountered a Fatal Error. The SoapClient will throw an exception if it can't access the remote file (due to networking), or it couldn't parse the XML. From the Manual: A SoapFault exception will be thrown if the wsdl URI cannot be loaded. Check your error log for more info or turn on error reporting: error_reporting(E_ALL); ini_set('display_errors', '1'); share|improve this answer answered Nov 27 '12 at 9:38 MrCode 46k73975 Error reporting is set on: error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED. A try/catch does not change anything. Not with a standard exception and not with a SoapException catched. –colosso Nov 27 '12 at 9:43 Then the Windows server config doesn't want to show errors. Yes you can use a try/catch or look in your error log. –MrCode Nov 27 '12 at 9:44 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Brows