airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From samin...@apache.org
Subject svn commit: r1516599 [6/6] - in /airavata/trunk: ./ modules/airavata-client/src/main/java/org/apache/airavata/client/ modules/airavata-client/src/main/java/org/apache/airavata/client/api/ modules/commons/utils/src/test/resources/ modules/distribution/a...
Date Thu, 22 Aug 2013 20:43:36 GMT
Modified: airavata/trunk/pom.xml
URL: http://svn.apache.org/viewvc/airavata/trunk/pom.xml?rev=1516599&r1=1516598&r2=1516599&view=diff
==============================================================================
--- airavata/trunk/pom.xml (original)
+++ airavata/trunk/pom.xml Thu Aug 22 20:43:35 2013
@@ -442,6 +442,7 @@
                 <module>samples/complex-math-service</module>
                 <module>samples/levenshtein-distance-service</module>
                 <module>samples/sample-gateway</module>
+                <module>samples/echo-service</module>
                 <module>modules/server</module>
                 <module>modules/test-suite</module>
                 <module>samples/airavata-client</module>

Added: airavata/trunk/samples/echo-service/README.txt
URL: http://svn.apache.org/viewvc/airavata/trunk/samples/echo-service/README.txt?rev=1516599&view=auto
==============================================================================
--- airavata/trunk/samples/echo-service/README.txt (added)
+++ airavata/trunk/samples/echo-service/README.txt Thu Aug 22 20:43:35 2013
@@ -0,0 +1,7 @@
+Echo Service  Quick Start Guide
+=================================
+
+This is a sample web service implemented to host on Axis2 Container. This service will be
available in Airavata pack to run the sample workflows etc.
+
+If you want to modify this service you can use the maven build provided and create the modified
.aar file by running mvn clean install. 
+

Added: airavata/trunk/samples/echo-service/pom.xml
URL: http://svn.apache.org/viewvc/airavata/trunk/samples/echo-service/pom.xml?rev=1516599&view=auto
==============================================================================
--- airavata/trunk/samples/echo-service/pom.xml (added)
+++ airavata/trunk/samples/echo-service/pom.xml Thu Aug 22 20:43:35 2013
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--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. -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <parent>
+        <groupId>org.apache.airavata</groupId>
+        <artifactId>airavata</artifactId>
+        <version>0.9-SNAPSHOT</version>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>echo-service</artifactId>
+    <packaging>jar</packaging>
+    <name>Echo Service</name>
+    <description>Sample web services to construct as workflows to test XBaya. </description>
+    <url>http://airavata.apache.org/</url>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.axis2</groupId>
+                <artifactId>axis2-aar-maven-plugin</artifactId>
+                <version>${axis2.version}</version>
+                <configuration>
+                    <servicesXmlFile>src/main/resources/services.xml</servicesXmlFile>
+                </configuration>
+                <executions>
+                    <execution>
+                        <id>createAAR</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>aar</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+        <resources>
+            <resource>
+                <directory>resources</directory>
+                <targetPath>META-INF</targetPath>
+                <includes>
+                    <include>**/*.wsdl</include>
+                    <include>**/*.xml</include>
+                </includes>
+            </resource>
+        </resources>
+    </build>
+</project>

Added: airavata/trunk/samples/echo-service/src/main/java/org/apache/airavata/samples/EchoService.java
URL: http://svn.apache.org/viewvc/airavata/trunk/samples/echo-service/src/main/java/org/apache/airavata/samples/EchoService.java?rev=1516599&view=auto
==============================================================================
--- airavata/trunk/samples/echo-service/src/main/java/org/apache/airavata/samples/EchoService.java
(added)
+++ airavata/trunk/samples/echo-service/src/main/java/org/apache/airavata/samples/EchoService.java
Thu Aug 22 20:43:35 2013
@@ -0,0 +1,28 @@
+/*
+ *
+ * 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 org.apache.airavata.samples;
+
+public class EchoService {
+    public String echo(String message) {
+        return message;
+    }
+}

Added: airavata/trunk/samples/echo-service/src/main/resources/services.xml
URL: http://svn.apache.org/viewvc/airavata/trunk/samples/echo-service/src/main/resources/services.xml?rev=1516599&view=auto
==============================================================================
--- airavata/trunk/samples/echo-service/src/main/resources/services.xml (added)
+++ airavata/trunk/samples/echo-service/src/main/resources/services.xml Thu Aug 22 20:43:35
2013
@@ -0,0 +1,18 @@
+<!--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. -->
+
+<service name="EchoService" >
+	<Description>
+		Provide Simple Service for Testing Purpose which Echo's the input
+	</Description>
+	<messageReceivers>
+		<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only" class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"
/>
+		<messageReceiver  mep="http://www.w3.org/2004/08/wsdl/in-out"  class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
+	</messageReceivers>
+	<parameter name="ServiceClass">org.apache.airavata.samples.EchoService</parameter>
+</service>



Mime
View raw message