diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-08 12:27:46 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-08 12:27:46 +0000 |
commit | 0032658a4a6b4552b997fb144403196a0f5cb3ad (patch) | |
tree | 3942107e3c5e3b1472b857454cf1b5982a2e7975 /branches/sca-java-1.x/itest/wsdlgen/src/main/java/helloworld/HelloWorldImpl.java | |
parent | c9c6173caa3e219ba851ff989c96c93a8028b0bd (diff) |
TUSCANY-2900 - Add code to generate JMS binding and service/port to generated wsdl. Add itest to explore the different ways of configuring generated WSDL.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@772957 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | branches/sca-java-1.x/itest/wsdlgen/src/main/java/helloworld/HelloWorldImpl.java | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/branches/sca-java-1.x/itest/wsdlgen/src/main/java/helloworld/HelloWorldImpl.java b/branches/sca-java-1.x/itest/wsdlgen/src/main/java/helloworld/HelloWorldImpl.java new file mode 100644 index 0000000000..83165307af --- /dev/null +++ b/branches/sca-java-1.x/itest/wsdlgen/src/main/java/helloworld/HelloWorldImpl.java @@ -0,0 +1,48 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package helloworld; + +import java.util.Vector; + +import org.osoa.sca.annotations.Service; + +/** + * This class implements the HelloWorld service. + */ +@Service(HelloWorldService.class) +public class HelloWorldImpl implements HelloWorldService { + + public String getGreetings(String name) { + return "Hello " + name; + } + + public String getGreetingsBean(ABean bean){ + return "Hello " + bean.getField1() + " " + bean.getField2(); + } + + public String getGreetingsBeanArray(ABean[] bean){ + return "Hello " + bean[0].getField1() + " " + bean[0].getField2(); + } + + /* + public String getGreetingsBeanVector(Vector<ABean> bean){ + return "Hello " + bean.get(0).getField1() + " " + bean.get(0).getField2(); + } + */ +} |