Hi,

I am trying to execute the calculator sample. The sample is starting and is
reachable via SOAP Messages but there is a problem with the parameters. The
parameters are arriving as null respectively zero if it is a number.

I am running Tuscany in Felix accordingly to the tutorial on the home page.

I simplified the calculator sample:

Calculator.composite

<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903";
targetNamespace="http://sample";           xmlns:sample="http://sample";
name="Calculator">    <component name="CalculatorServiceComponent">
<implementation.java class="calculator.CalculatorServiceImpl"/>
<service name="CalculatorService">            <interface.java
interface="calculator.CalculatorService"/>            <binding.ws
uri="http://localhost:8086/CalculatorService"/>          </service>
</component> </composite>
Interface:

@Remotable public interface CalculatorService {     String add(String n1,
String n2);     double subtract(double n1, double n2);     double
multiply(double n1, double n2);     double divide(double n1, double n2); }

Implementation:

    public String add(String n1, String n2) {        System.out.println(n1 +
" + " + n2 + " = " + (n1 + n2));        return n1 + n2;    }    public
double divide(double n1, double n2) {        System.out.println(n1 + " / " +
n2 + " = " + (n1 / n2));        return n1 / n2;    }    public double
multiply(double n1, double n2) {        System.out.println(n1 + " * " + n2 +
" = " + (n1 * n2));        return n1 * n2;    }    public double
subtract(double n1, double n2) {        System.out.println(n1 + " - " + n2 +
" = " + (n1 - n2));        return n1 - n2;    }

If I trigger the service the SOAP request contains the 2 parameters but on
the console I see that the parameters are null or zero.
There is no error message as far as I can see.

Thx,
Alex

Reply via email to