im trying to connect to the magento soap server.
I have set up the soap role and user that i want to use, and then i wrote a script called soap.php and placed it in my website public_html for testing, which looks like this:
<?php
// Magento login information
require_once('app/Mage.php');
Mage::app();
$mage_url = 'https://mrandmrsgrey.com/api/v2_soap?wsdl';
$mage_user = 'soaper';
$mage_api_key = '24648625';
// Initialize the SOAP client
$soap = new SoapClient( $mage_url );
// Login to Magento
$session_id = $soap->login( $mage_user, $mage_api_key );
But for some reason when i run the script i get this error:
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't find in 'https://mrandmrsgrey.com/api/v2_soap?wsdl'
Ive crawled the net but any solutions that popped up havent worked i.e. turning off "Add Store Code to URLs"
Im running magento CE 1.7. Any help will be much appreciated