Question: Giving the code below: Myservice class after adding substract,multiply and divide class MyService { public function add($x, $y) { return $x + $y; } public

Giving the code below:

Myservice class after adding substract,multiply and divide

class MyService { public function add($x, $y) { return $x + $y; } public function subtract($x, $y) { return $x - $y; } public function multiply($x, $y) { return $x * $y; } public function divide($x, $y) { return $x/$y; } }

$options = array( 'uri' => 'http://server/namespace', 'location' => 'http://swe.umbc.edu/~pcomitz/programs/wk4/soapserver.php', );

$server = new SoapServer(null, $options); $server->setObject(new MyService()); $server->handle();

Create a php form with radio buttons for add, subtract, multiply, and divide. You should also have inputs for two numbers. Your should invoke the appropriate method based on the radio button that is selected (you do not need to validate the input) .

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!