I am doing a Web Service with JSF and WSDL/SOAP technology. How do I read a complex mathematical operation input string, looks like 53*6+8/2 from the user, and calculate it using Web Service method?
Got these methods from http://www.dneonline.com/calculator.asmx?WSDL
public int add(int intA, int intB) {
//TODO implement this method
throw new UnsupportedOperationException("Not implemented yet.");
}
public int subtract(int intA, int intB) {
//TODO implement this method
throw new UnsupportedOperationException("Not implemented yet.");
}
public int multiply(int intA, int intB) {
//TODO implement this method
throw new UnsupportedOperationException("Not implemented yet.");
}
public int divide(int intA, int intB) {
//TODO implement this method
throw new UnsupportedOperationException("Not implemented yet.");
}