Skip to content

Ahmet Faruk Bişkinler

Calling WS with PHP(HessianPHP)
(0 votes, average 0 out of 5)
PHP - PHP UnCategorized
Administrator tarafından yazıldı.   
Çarşamba, 27 Nisan 2011 15:54
Install XAMPP

Install Curl:
http://www.tonyspencer.com/2003/10/22/curl-with-php-and-apache-on-windows/
http://www.gknw.net/mirror/curl/win32/curl-7.21.6-ssl-sspi-zlib-static-bin-w32.zip

Uncomment the curl line in your php.ini file to enable curl: extension=php_curl.dll

HessianPHP
http://hessianphp.sourceforge.net/




 
 Bu e-Posta adresi istek dışı postalardan korunmaktadır, görüntülüyebilmek için JavaScript etkinleştirilmelidir
 
27.04.2011

Calling WS with PHP using HessianPHP
WS is writen with Hessian in Java.
*/
try {
	
	include_once 'HessianPHP_v2.0.3/src/HessianClient.php';
	$testurl = 'http://biskinler.com/currency/crudServicesGateway';
	$proxy = &new HessianClient($testurl);


	$hashMap=array("foo" => "bar", "foo2" => "bar2");
	print "HashMap: ";
	echo "< pre >";
		print_r($hashMap);
	echo "< /pre >";
	
	//$result = $proxy->execute("currencyService", "get", 51, $hashMap); 
	$result = $proxy->execute("currencyService", "getAllByCrits", null, $hashMap); 
	
	echo "Result: ";
		echo "< pre >";
			print_r($result);
		echo "< /pre >";

} catch (Exception $e) {
	echo "Exception: $e";
}

?>

Son Güncelleme: Çarşamba, 27 Nisan 2011 16:02