I’m trying to use an external webservice but I get the error Parsing Schema: can't import schema from webservice_url. The service uses HTTP Basic authentication and is using SSL. I can login via a web browser and see the xml it produces but I can’t change what is generated since it is not my code generating the xml. I have the following code.
$config = array('login' => $user_id, 'password' => $password);
$client = new SoapClient($url, $config);
Well after researching and reading a bunch of articles online it seems like this is a limitation of php-soap and some suggestions point at using curl to accomplish. I actually decided to avoid PHP entirely since I just learned Ruby and have been going away from PHP. I accomplished my above task by using the
Savongem which has some pretty good documentation on the authentication and setting the cookie. It works great using this gem.