The largest Interview Solution Library on the web


« Previous | 1 | 2 | 3 | Next »

Saas - Zend_Rest_Server: code example


    • Working with Zend’s Zend_Rest_Server component is very straightforward. To illustrate this, we show a simple code sample below:
    • We begin by creating a class entity called Greetings with a single function sayHello
<?php
Class Greetings {
/**
*@param string $user_ name
*@return string
*/
public function sayHello($user_name){
return “Hello $user_name. How is your day going?”;
}
}

<Greetings generator=“zend” version=“1.0”>
<result>
<value>Hello Jack. How are you doing today? </value>
</result>
</Greetings>
« Previous | 1 | 2 | 3 | Next »


copyright © 2014 - all rights riserved by javatechnologycenter.com