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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started