$proxy = new SoapClient( 'http://vmdev/magento/api/?wsdl'); $sessionId = $proxy->login('ojones...

Download Link
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
	$proxy = new SoapClient( 'http://vmdev/magento/api/?wsdl');
	$sessionId = $proxy->login('ojones', 'password1');
	print "$sessionId\n";
	$magentoInfo = $proxy->call(
		$sessionId,
		'magento.info');
	var_dump($magentoInfo);


	// this ^ code works
	
	// this fails 
	((client-fn "http://vmdev/magento/api/v2_soap?wsdl=1") :login "ojones" "password1")

	// concerning different enpoints, the bottom one is wsdl compliant for 
	// java, regardless neither endpoint works in clojure
?>