You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by he...@apache.org on 2011/12/22 00:36:05 UTC
svn commit: r1221938 - in
/incubator/airavata/trunk/samples/complex-math-service: ./ src/ src/main/
src/main/java/ src/main/java/org/ src/main/java/org/apache/
src/main/java/org/apache/airavata/
src/main/java/org/apache/airavata/samples/ src/main/resou...
Author: heshan
Date: Wed Dec 21 23:36:05 2011
New Revision: 1221938
URL: http://svn.apache.org/viewvc?rev=1221938&view=rev
Log:
Adding complex-math-service for the samples AIRAVATA-248
Added:
incubator/airavata/trunk/samples/complex-math-service/
incubator/airavata/trunk/samples/complex-math-service/README.txt
incubator/airavata/trunk/samples/complex-math-service/pom.xml
incubator/airavata/trunk/samples/complex-math-service/src/
incubator/airavata/trunk/samples/complex-math-service/src/main/
incubator/airavata/trunk/samples/complex-math-service/src/main/java/
incubator/airavata/trunk/samples/complex-math-service/src/main/java/org/
incubator/airavata/trunk/samples/complex-math-service/src/main/java/org/apache/
incubator/airavata/trunk/samples/complex-math-service/src/main/java/org/apache/airavata/
incubator/airavata/trunk/samples/complex-math-service/src/main/java/org/apache/airavata/samples/
incubator/airavata/trunk/samples/complex-math-service/src/main/java/org/apache/airavata/samples/ComplexMathService.java
incubator/airavata/trunk/samples/complex-math-service/src/main/resources/
incubator/airavata/trunk/samples/complex-math-service/src/main/resources/ComplexMathService.wsdl
incubator/airavata/trunk/samples/complex-math-service/src/main/resources/services.xml
Added: incubator/airavata/trunk/samples/complex-math-service/README.txt
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/samples/complex-math-service/README.txt?rev=1221938&view=auto
==============================================================================
--- incubator/airavata/trunk/samples/complex-math-service/README.txt (added)
+++ incubator/airavata/trunk/samples/complex-math-service/README.txt Wed Dec 21 23:36:05 2011
@@ -0,0 +1,7 @@
+Complex Math Service Quick Start Guide- Sample 2
+=================================
+
+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: incubator/airavata/trunk/samples/complex-math-service/pom.xml
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/samples/complex-math-service/pom.xml?rev=1221938&view=auto
==============================================================================
--- incubator/airavata/trunk/samples/complex-math-service/pom.xml (added)
+++ incubator/airavata/trunk/samples/complex-math-service/pom.xml Wed Dec 21 23:36:05 2011
@@ -0,0 +1,76 @@
+<?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.2-incubating-SNAPSHOT</version>
+ <relativePath>../../pom.xml</relativePath>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.airavata</groupId>
+ <artifactId>complex-math-service</artifactId>
+ <packaging>jar</packaging>
+ <name>Complex Math Service</name>
+ <description>Sample web services to construct as workflows to test XBaya. </description>
+
+ <url>http://incubator.apache.org/airavata/index.html</url>
+
+ <properties>
+ <axis2.version>1.5.1</axis2.version>
+ </properties>
+
+ <dependencies>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.3.2</version>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2-aar-maven-plugin</artifactId>
+ <version>${axis2.version}</version>
+ <configuration>
+ <servicesXmlFile>src/main/resources/services.xml</servicesXmlFile>
+ <wsdlFile>src/main/resources/ComplexMathService.wsdl</wsdlFile>
+ </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: incubator/airavata/trunk/samples/complex-math-service/src/main/java/org/apache/airavata/samples/ComplexMathService.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/samples/complex-math-service/src/main/java/org/apache/airavata/samples/ComplexMathService.java?rev=1221938&view=auto
==============================================================================
--- incubator/airavata/trunk/samples/complex-math-service/src/main/java/org/apache/airavata/samples/ComplexMathService.java (added)
+++ incubator/airavata/trunk/samples/complex-math-service/src/main/java/org/apache/airavata/samples/ComplexMathService.java Wed Dec 21 23:36:05 2011
@@ -0,0 +1,11 @@
+package org.apache.airavata.samples;
+
+public class ComplexMathService {
+ public int adder(int param1, int param2) {
+ return param1 + param2;
+ }
+
+ public int multiplier(int param1, int param2) {
+ return param1 * param2;
+ }
+}
Added: incubator/airavata/trunk/samples/complex-math-service/src/main/resources/ComplexMathService.wsdl
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/samples/complex-math-service/src/main/resources/ComplexMathService.wsdl?rev=1221938&view=auto
==============================================================================
--- incubator/airavata/trunk/samples/complex-math-service/src/main/resources/ComplexMathService.wsdl (added)
+++ incubator/airavata/trunk/samples/complex-math-service/src/main/resources/ComplexMathService.wsdl Wed Dec 21 23:36:05 2011
@@ -0,0 +1,133 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://interpreter.xbaya.airavata.apache.org" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://interpreter.xbaya.airavata.apache.org">
+ <wsdl:types>
+ <xs:schema attributeFormDefault="qualified" elementFormDefault="unqualified" targetNamespace="http://interpreter.xbaya.airavata.apache.org">
+ <xs:element name="multiplier">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="param1" type="xs:int"/>
+ <xs:element minOccurs="0" name="param2" type="xs:int"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="multiplierResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="return" type="xs:int"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="adder">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="param1" type="xs:int"/>
+ <xs:element minOccurs="0" name="param2" type="xs:int"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="adderResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="return" type="xs:int"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:schema>
+ </wsdl:types>
+ <wsdl:message name="adderRequest">
+ <wsdl:part name="parameters" element="ns:adder"/>
+ </wsdl:message>
+ <wsdl:message name="adderResponse">
+ <wsdl:part name="parameters" element="ns:adderResponse"/>
+ </wsdl:message>
+ <wsdl:message name="multiplierRequest">
+ <wsdl:part name="parameters" element="ns:multiplier"/>
+ </wsdl:message>
+ <wsdl:message name="multiplierResponse">
+ <wsdl:part name="parameters" element="ns:multiplierResponse"/>
+ </wsdl:message>
+ <wsdl:portType name="ComplexMathServicePortType">
+ <wsdl:operation name="adder">
+ <wsdl:input message="ns:adderRequest" wsaw:Action="urn:adder"/>
+ <wsdl:output message="ns:adderResponse" wsaw:Action="urn:adderResponse"/>
+ </wsdl:operation>
+ <wsdl:operation name="multiplier">
+ <wsdl:input message="ns:multiplierRequest" wsaw:Action="urn:multiplier"/>
+ <wsdl:output message="ns:multiplierResponse" wsaw:Action="urn:multiplierResponse"/>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="ComplexMathServiceSoap11Binding" type="ns:ComplexMathServicePortType">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+ <wsdl:operation name="adder">
+ <soap:operation soapAction="urn:adder" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="multiplier">
+ <soap:operation soapAction="urn:multiplier" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:binding name="ComplexMathServiceSoap12Binding" type="ns:ComplexMathServicePortType">
+ <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+ <wsdl:operation name="adder">
+ <soap12:operation soapAction="urn:adder" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="multiplier">
+ <soap12:operation soapAction="urn:multiplier" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:binding name="ComplexMathServiceHttpBinding" type="ns:ComplexMathServicePortType">
+ <http:binding verb="POST"/>
+ <wsdl:operation name="adder">
+ <http:operation location="ComplexMathService/adder"/>
+ <wsdl:input>
+ <mime:content type="text/xml" part="adder"/>
+ </wsdl:input>
+ <wsdl:output>
+ <mime:content type="text/xml" part="adder"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="multiplier">
+ <http:operation location="ComplexMathService/multiplier"/>
+ <wsdl:input>
+ <mime:content type="text/xml" part="multiplier"/>
+ </wsdl:input>
+ <wsdl:output>
+ <mime:content type="text/xml" part="multiplier"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="ComplexMathService">
+ <wsdl:port name="ComplexMathServiceHttpSoap11Endpoint" binding="ns:ComplexMathServiceSoap11Binding">
+ <soap:address location="http://localhost:8080/axis2/services/ComplexMathService.ComplexMathServiceHttpSoap11Endpoint/"/>
+ </wsdl:port>
+ <wsdl:port name="ComplexMathServiceHttpSoap12Endpoint" binding="ns:ComplexMathServiceSoap12Binding">
+ <soap12:address location="http://localhost:8080/axis2/services/ComplexMathService.ComplexMathServiceHttpSoap12Endpoint/"/>
+ </wsdl:port>
+ <wsdl:port name="ComplexMathServiceHttpEndpoint" binding="ns:ComplexMathServiceHttpBinding">
+ <http:address location="http://localhost:8080/axis2/services/ComplexMathService.ComplexMathServiceHttpEndpoint/"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
\ No newline at end of file
Added: incubator/airavata/trunk/samples/complex-math-service/src/main/resources/services.xml
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/samples/complex-math-service/src/main/resources/services.xml?rev=1221938&view=auto
==============================================================================
--- incubator/airavata/trunk/samples/complex-math-service/src/main/resources/services.xml (added)
+++ incubator/airavata/trunk/samples/complex-math-service/src/main/resources/services.xml Wed Dec 21 23:36:05 2011
@@ -0,0 +1,20 @@
+<!--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="ComplexMathService" >
+ <Description>
+ Provide Simple Service for Testing Purpose
+ </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" locked="false">org.apache.airavata.samples.ComplexMathService</parameter>
+ <parameter name="useOriginalwsdl">false</parameter>
+ <parameter name="modifyUserWSDLPortAddress">false</parameter>
+</service>