Maybe I should add some information. I am starting the composite in the BundleActivator with following code:
public class CalculatorActivator implements BundleActivator { private Node node; public void start(BundleContext context) throws Exception { try { NodeFactory factory = NodeFactory.newInstance(); String url = ContributionLocationHelper.getContributionLocation(getClass()); Contribution contrib = new Contribution("c1", url); node = factory.createNode("Calculator.composite", contrib); node.start(); } catch (Throwable e) { e.printStackTrace(); } } public void stop(BundleContext context) throws Exception { if (node != null) { node.stop(); node = null; } } } I f I start this bundle everything seems fine and the service is reachable but there are the problems as mentioned... Am 14.12.09 10:39 schrieb "Alexander Blotny" unter <alexander.blo...@fokus.fraunhofer.de>: > 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 >