You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by la...@apache.org on 2013/07/16 08:00:29 UTC

git commit: Tenant register gapp stub

Updated Branches:
  refs/heads/master b014eb343 -> f4a0ae079


Tenant register gapp stub

Signed-off-by: Lakmal Warusawithana <la...@wso2.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/f4a0ae07
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/f4a0ae07
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/f4a0ae07

Branch: refs/heads/master
Commit: f4a0ae079312faa4c98e2486e6c1547ae3d170fe
Parents: b014eb3
Author: Udara Liyanage <ud...@wso2.com>
Authored: Tue Jul 16 11:21:51 2013 +0530
Committer: Lakmal Warusawithana <la...@wso2.com>
Committed: Tue Jul 16 11:30:12 2013 +0530

----------------------------------------------------------------------
 .../pom.xml                                     | 150 +++++++++++++
 .../GAppTenantRegistrationService.wsdl          | 212 +++++++++++++++++++
 .../4.1.0/pom.xml                               | 133 ------------
 .../GAppTenantRegistrationService.wsdl          | 212 -------------------
 service-stubs/pom.xml                           |   1 +
 5 files changed, 363 insertions(+), 345 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/f4a0ae07/service-stubs/org.apache.stratos.tenant.register.gapp.stub/pom.xml
----------------------------------------------------------------------
diff --git a/service-stubs/org.apache.stratos.tenant.register.gapp.stub/pom.xml b/service-stubs/org.apache.stratos.tenant.register.gapp.stub/pom.xml
new file mode 100644
index 0000000..b1ebce6
--- /dev/null
+++ b/service-stubs/org.apache.stratos.tenant.register.gapp.stub/pom.xml
@@ -0,0 +1,150 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
+ ~
+ ~ WSO2 Inc. 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.stratos</groupId>
+        <artifactId>stratos-service-stubs-parent</artifactId>
+        <version>3.0.0-SNAPSHOT</version>
+   </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>org.apache.stratos.tenant.register.gapp.stub</artifactId>
+    <packaging>bundle</packaging>
+    <name>Apache Stratos - Tenant Registration GApp Stub</name>
+    <url>http://apache.org</url>
+
+    <build>
+        <plugins>
+            
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <version>1.1</version>
+                <executions>
+                    <execution>
+                        <id>source-code-generation</id>
+                        <phase>process-resources</phase>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                                <!--<path id="wsdl2java.classpath">
+			 <pathelement location="${settings.localRepository}/org/apache/ws/commons/axiom/wso2/axiom/${orbit.version.axiom}/axiom-${orbit.version.axiom}.jar"/>
+                                    <pathelement
+                                            location="${settings.localRepository}/org/apache/axis2/wso2/axis2-client/${orbit.version.axis2}/axis2-client-${orbit.version.axis2}.jar"/>
+                                    <pathelement
+                                            location="${settings.localRepository}/org/apache/axis2/wso2/axis2/${orbit.version.axis2}/axis2-${orbit.version.axis2}.jar"/>
+                                    <pathelement
+                                            location="${settings.localRepository}/org/apache/ws/commons/axiom/wso2/axiom/${orbit.version.axiom}/axiom-${orbit.version.axiom}.jar"/>
+                                </path>-->
+				 <path id="wsdl2java.classpath">
+				    <pathelement location="${settings.localRepository}/org/apache/ws/commons/axiom/wso2/axiom/${axis2.wso2.version}/axiom-${axis2.wso2.version}.jar"/>
+                                    <pathelement location="${settings.localRepository}/org/apache/axis2/wso2/axis2-client/${axis2.wso2.client.version}/axis2-client-${axis2.wso2.client.version}.jar"/>
+                                    <pathelement location="${settings.localRepository}/org/apache/axis2/wso2/axis2/${axis2.wso2.version}/axis2-${axis2.wso2.version}.jar"/>
+                                    <pathelement location="${settings.localRepository}/org/apache/ws/commons/axiom/wso2/axiom/${axiom.wso2.version}/axiom-${axiom.wso2.version}.jar"/>
+                                </path>
+
+                                <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
+                                    <arg line="-uri src/main/resources/GAppTenantRegistrationService.wsdl -u -uw -o target/generated-code
+                                    -p org.apache.stratos.tenant.register.gapp.stub
+                                    -ns2p http://services.mgt.tenant.carbon.wso2.org=org.apache.stratos.tenant.register.gapp.stub.services,http://beans.mgt.tenant.carbon.wso2.org/xsd=org.apache.stratos.tenant.register.gapp.stub.xsd,http://org.apache.axis2/xsd=org.apache.stratos.tenant.register.gapp.stub.services,http://exception.mgt.tenant.carbon.wso2.org/xsd=org.apache.stratos.tenant.register.gapp.stub.xsd"/>
+                                    <classpath refid="wsdl2java.classpath"/>
+                                </java>
+				
+			    </tasks>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                
+                <extensions>true</extensions>
+                <configuration>
+                    <instructions>
+                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
+                        <Bundle-Name>${project.artifactId}</Bundle-Name>
+                        <Export-Package>
+                            org.apache.stratos.tenant.register.gapp.stub.*; version="${carbon.platform.package.export.version}",
+                        </Export-Package>
+                        <Import-Package>
+			    !org.apache.stratos.tenant.register.gapp.stub.*,
+                            *;resolution:=optional
+                        </Import-Package>
+                    </instructions>
+                </configuration>
+            </plugin>
+
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>add-source</id>
+                        <phase>generate-sources</phase>
+                        <goals>
+                            <goal>add-source</goal>
+                        </goals>
+                        <configuration>
+                            <sources>
+                                <source>
+                                    target/generated-code/src
+                                </source>
+                            </sources>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+    <dependencies>
+        <!-- <dependency>
+            <groupId>org.apache.axis2.wso2</groupId>
+            <artifactId>axis2</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.axis2.wso2</groupId>
+            <artifactId>axis2-client</artifactId>
+            <version>${orbit.version.axis2}</version>
+	    <exclusions>
+	    	<exclusion>
+	    		<groupId>org.wso2.securevault</groupId>
+			<artifactId>org.wso2.securevault</artifactId>
+		</exclusion>
+	    </exclusions> 
+        </dependency>-->
+	<dependency>
+            <groupId>org.apache.axis2.wso2</groupId>
+            <artifactId>axis2</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.axis2.wso2</groupId>
+            <artifactId>axis2-client</artifactId>
+        </dependency>
+    </dependencies>
+
+    <properties>
+	<orbit.version.axis2>1.6.1.wso2v5</orbit.version.axis2>
+    </properties>
+</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/f4a0ae07/service-stubs/org.apache.stratos.tenant.register.gapp.stub/src/main/resources/GAppTenantRegistrationService.wsdl
----------------------------------------------------------------------
diff --git a/service-stubs/org.apache.stratos.tenant.register.gapp.stub/src/main/resources/GAppTenantRegistrationService.wsdl b/service-stubs/org.apache.stratos.tenant.register.gapp.stub/src/main/resources/GAppTenantRegistrationService.wsdl
new file mode 100644
index 0000000..0fbfe9d
--- /dev/null
+++ b/service-stubs/org.apache.stratos.tenant.register.gapp.stub/src/main/resources/GAppTenantRegistrationService.wsdl
@@ -0,0 +1,212 @@
+<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:tns="http://services.mgt.tenant.stratos.apache.org" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ax2405="http://beans.mgt.tenant.stratos.apache.org/xsd" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:ax2403="http://exception.mgt.tenant.stratos.apache.org/xsd" targetNamespace="http://services.mgt.tenant.stratos.apache.org">
+    <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="SigOnly">
+        <wsp:ExactlyOne>
+            <wsp:All>
+                <sp:AsymmetricBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+                    <wsp:Policy>
+                        <sp:InitiatorToken>
+                            <wsp:Policy>
+                                <sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
+                                    <wsp:Policy>
+                                        <sp:RequireThumbprintReference />
+                                        <sp:WssX509V3Token10 />
+                                    </wsp:Policy>
+                                </sp:X509Token>
+                            </wsp:Policy>
+                        </sp:InitiatorToken>
+                        <sp:RecipientToken>
+                            <wsp:Policy>
+                                <sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never">
+                                    <wsp:Policy>
+                                        <sp:RequireThumbprintReference />
+                                        <sp:WssX509V3Token10 />
+                                    </wsp:Policy>
+                                </sp:X509Token>
+                            </wsp:Policy>
+                        </sp:RecipientToken>
+                        <sp:AlgorithmSuite>
+                            <wsp:Policy>
+                                <sp:Basic256 />
+                            </wsp:Policy>
+                        </sp:AlgorithmSuite>
+                        <sp:Layout>
+                            <wsp:Policy>
+                                <sp:Strict />
+                            </wsp:Policy>
+                        </sp:Layout>
+                        <sp:IncludeTimestamp />
+                        <sp:OnlySignEntireHeadersAndBody />
+                    </wsp:Policy>
+                </sp:AsymmetricBinding>
+                <sp:Wss10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+                    <sp:Policy>
+                        <sp:MustSupportRefKeyIdentifier />
+                        <sp:MustSupportRefIssuerSerial />
+                    </sp:Policy>
+                </sp:Wss10>
+                <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+                    <sp:Body />
+                </sp:SignedParts>
+            </wsp:All>
+        </wsp:ExactlyOne>
+    </wsp:Policy>
+    <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="10e338136f2086e67131033d0dd4832f314b8c9f652be93d">
+        <wsp:ExactlyOne>
+            <wsp:All />
+        </wsp:ExactlyOne>
+    </wsp:Policy>
+    <wsdl:documentation>GAppTenantRegistrationService</wsdl:documentation>
+    <wsdl:types>
+        <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://exception.mgt.tenant.stratos.apache.org/xsd">
+            <xs:complexType name="TenantManagementException">
+                <xs:sequence />
+            </xs:complexType>
+        </xs:schema>
+        <xs:schema xmlns:ns="http://org.apache.axis2/xsd" xmlns:ax2406="http://beans.mgt.tenant.stratos.apache.org/xsd" xmlns:ax2404="http://exception.mgt.tenant.stratos.apache.org/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://org.apache.axis2/xsd">
+            <xs:import namespace="http://exception.mgt.tenant.stratos.apache.org/xsd" />
+            <xs:import namespace="http://beans.mgt.tenant.stratos.apache.org/xsd" />
+            <xs:element name="GAppTenantRegistrationServiceTenantManagementException">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="TenantManagementException" nillable="true" type="ax2404:TenantManagementException" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="registerGoogleAppsTenant">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="tenantInfoBean" nillable="true" type="ax2406:TenantInfoBean" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="registerGoogleAppsTenantResponse">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="return" type="xs:boolean" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="isRegisteredAsGoogleAppDomain">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="domain" nillable="true" type="xs:string" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="isRegisteredAsGoogleAppDomainResponse">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="return" type="xs:boolean" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+        </xs:schema>
+        <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://beans.mgt.tenant.stratos.apache.org/xsd">
+            <xs:complexType name="TenantInfoBean">
+                <xs:sequence>
+                    <xs:element minOccurs="0" name="active" type="xs:boolean" />
+                    <xs:element minOccurs="0" name="admin" nillable="true" type="xs:string" />
+                    <xs:element minOccurs="0" name="adminPassword" nillable="true" type="xs:string" />
+                    <xs:element minOccurs="0" name="createdDate" nillable="true" type="xs:dateTime" />
+                    <xs:element minOccurs="0" name="email" nillable="true" type="xs:string" />
+                    <xs:element minOccurs="0" name="firstname" nillable="true" type="xs:string" />
+                    <xs:element minOccurs="0" name="lastname" nillable="true" type="xs:string" />
+                    <xs:element minOccurs="0" name="originatedService" nillable="true" type="xs:string" />
+                    <xs:element minOccurs="0" name="successKey" nillable="true" type="xs:string" />
+                    <xs:element minOccurs="0" name="tenantDomain" nillable="true" type="xs:string" />
+                    <xs:element minOccurs="0" name="tenantId" type="xs:int" />
+                    <xs:element minOccurs="0" name="usagePlan" nillable="true" type="xs:string" />
+                </xs:sequence>
+            </xs:complexType>
+        </xs:schema>
+    </wsdl:types>
+    <wsdl:message name="registerGoogleAppsTenantRequest">
+        <wsdl:part name="parameters" element="ns1:registerGoogleAppsTenant" />
+    </wsdl:message>
+    <wsdl:message name="registerGoogleAppsTenantResponse">
+        <wsdl:part name="parameters" element="ns1:registerGoogleAppsTenantResponse" />
+    </wsdl:message>
+    <wsdl:message name="GAppTenantRegistrationServiceTenantManagementException">
+        <wsdl:part name="parameters" element="ns1:GAppTenantRegistrationServiceTenantManagementException" />
+    </wsdl:message>
+    <wsdl:message name="isRegisteredAsGoogleAppDomainRequest">
+        <wsdl:part name="parameters" element="ns1:isRegisteredAsGoogleAppDomain" />
+    </wsdl:message>
+    <wsdl:message name="isRegisteredAsGoogleAppDomainResponse">
+        <wsdl:part name="parameters" element="ns1:isRegisteredAsGoogleAppDomainResponse" />
+    </wsdl:message>
+    <wsdl:portType xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" name="GAppTenantRegistrationServicePortType" wsp:PolicyURIs="#10e338136f2086e67131033d0dd4832f314b8c9f652be93d #SigOnly">
+        <wsdl:operation name="registerGoogleAppsTenant">
+            <wsdl:input message="tns:registerGoogleAppsTenantRequest" wsaw:Action="urn:registerGoogleAppsTenant" />
+            <wsdl:output message="tns:registerGoogleAppsTenantResponse" wsaw:Action="urn:registerGoogleAppsTenantResponse" />
+            <wsdl:fault message="tns:GAppTenantRegistrationServiceTenantManagementException" name="GAppTenantRegistrationServiceTenantManagementException" wsaw:Action="urn:registerGoogleAppsTenantGAppTenantRegistrationServiceTenantManagementException" />
+        </wsdl:operation>
+        <wsdl:operation name="isRegisteredAsGoogleAppDomain">
+            <wsdl:input message="tns:isRegisteredAsGoogleAppDomainRequest" wsaw:Action="urn:isRegisteredAsGoogleAppDomain" />
+            <wsdl:output message="tns:isRegisteredAsGoogleAppDomainResponse" wsaw:Action="urn:isRegisteredAsGoogleAppDomainResponse" />
+            <wsdl:fault message="tns:GAppTenantRegistrationServiceTenantManagementException" name="GAppTenantRegistrationServiceTenantManagementException" wsaw:Action="urn:isRegisteredAsGoogleAppDomainGAppTenantRegistrationServiceTenantManagementException" />
+        </wsdl:operation>
+    </wsdl:portType>
+    <wsdl:binding name="GAppTenantRegistrationServiceSoap11Binding" type="tns:GAppTenantRegistrationServicePortType">
+        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+        <wsdl:operation name="registerGoogleAppsTenant">
+            <soap:operation soapAction="urn:registerGoogleAppsTenant" style="document" />
+            <wsdl:input>
+                <soap:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="GAppTenantRegistrationServiceTenantManagementException">
+                <soap:fault use="literal" name="GAppTenantRegistrationServiceTenantManagementException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="isRegisteredAsGoogleAppDomain">
+            <soap:operation soapAction="urn:isRegisteredAsGoogleAppDomain" style="document" />
+            <wsdl:input>
+                <soap:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="GAppTenantRegistrationServiceTenantManagementException">
+                <soap:fault use="literal" name="GAppTenantRegistrationServiceTenantManagementException" />
+            </wsdl:fault>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:binding name="GAppTenantRegistrationServiceSoap12Binding" type="tns:GAppTenantRegistrationServicePortType">
+        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+        <wsdl:operation name="registerGoogleAppsTenant">
+            <soap12:operation soapAction="urn:registerGoogleAppsTenant" style="document" />
+            <wsdl:input>
+                <soap12:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="GAppTenantRegistrationServiceTenantManagementException">
+                <soap12:fault use="literal" name="GAppTenantRegistrationServiceTenantManagementException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="isRegisteredAsGoogleAppDomain">
+            <soap12:operation soapAction="urn:isRegisteredAsGoogleAppDomain" style="document" />
+            <wsdl:input>
+                <soap12:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="GAppTenantRegistrationServiceTenantManagementException">
+                <soap12:fault use="literal" name="GAppTenantRegistrationServiceTenantManagementException" />
+            </wsdl:fault>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:service name="GAppTenantRegistrationService">
+        <wsdl:port name="GAppTenantRegistrationServiceHttpsSoap11Endpoint" binding="tns:GAppTenantRegistrationServiceSoap11Binding">
+            <soap:address location="https://cloud-test.wso2.com:9443/services/GAppTenantRegistrationService.GAppTenantRegistrationServiceHttpsSoap11Endpoint/" />
+        </wsdl:port>
+        <wsdl:port name="GAppTenantRegistrationServiceHttpsSoap12Endpoint" binding="tns:GAppTenantRegistrationServiceSoap12Binding">
+            <soap12:address location="https://cloud-test.wso2.com:9443/services/GAppTenantRegistrationService.GAppTenantRegistrationServiceHttpsSoap12Endpoint/" />
+        </wsdl:port>
+    </wsdl:service>
+</wsdl:definitions>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/f4a0ae07/service-stubs/org.wso2.carbon.tenant.register.gapp.stub/4.1.0/pom.xml
----------------------------------------------------------------------
diff --git a/service-stubs/org.wso2.carbon.tenant.register.gapp.stub/4.1.0/pom.xml b/service-stubs/org.wso2.carbon.tenant.register.gapp.stub/4.1.0/pom.xml
deleted file mode 100644
index d19278d..0000000
--- a/service-stubs/org.wso2.carbon.tenant.register.gapp.stub/4.1.0/pom.xml
+++ /dev/null
@@ -1,133 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- ~ Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
- ~
- ~ WSO2 Inc. 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.wso2.carbon</groupId>
-        <artifactId>carbon-service-stubs</artifactId>
-        <version>4.1.0</version>
-        <relativePath>../../pom.xml</relativePath>
-   </parent>
-
-    <modelVersion>4.0.0</modelVersion>
-    <artifactId>org.wso2.carbon.tenant.register.gapp.stub</artifactId>
-    <packaging>bundle</packaging>
-    <name>WSO2 Carbon - Tenant Registration GApp Stub</name>
-    <url>http://wso2.org</url>
-
-    <build>
-        <plugins>
-            
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-antrun-plugin</artifactId>
-                <version>1.1</version>
-                <executions>
-                    <execution>
-                        <id>source-code-generation</id>
-                        <phase>process-resources</phase>
-                        <goals>
-                            <goal>run</goal>
-                        </goals>
-                        <configuration>
-                            <tasks>
-                                <path id="wsdl2java.classpath">
-			 <pathelement location="${settings.localRepository}/org/apache/ws/commons/axiom/wso2/axiom/${orbit.version.axiom}/axiom-${orbit.version.axiom}.jar"/>
-                                    <pathelement
-                                            location="${settings.localRepository}/org/apache/axis2/wso2/axis2-client/${orbit.version.axis2}/axis2-client-${orbit.version.axis2}.jar"/>
-                                    <pathelement
-                                            location="${settings.localRepository}/org/apache/axis2/wso2/axis2/${orbit.version.axis2}/axis2-${orbit.version.axis2}.jar"/>
-                                    <pathelement
-                                            location="${settings.localRepository}/org/apache/ws/commons/axiom/wso2/axiom/${orbit.version.axiom}/axiom-${orbit.version.axiom}.jar"/>
-                                </path>
-                                <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
-                                    <arg line="-uri src/main/resources/GAppTenantRegistrationService.wsdl -u -uw -o target/generated-code
-                                    -p org.wso2.carbon.tenant.register.gapp.stub
-                                    -ns2p http://services.mgt.tenant.carbon.wso2.org=org.wso2.carbon.tenant.register.gapp.stub.services,http://beans.mgt.tenant.carbon.wso2.org/xsd=org.wso2.carbon.tenant.register.gapp.stub.xsd,http://org.apache.axis2/xsd=org.wso2.carbon.tenant.register.gapp.stub.services,http://exception.mgt.tenant.carbon.wso2.org/xsd=org.wso2.carbon.tenant.register.gapp.stub.xsd"/>
-                                    <classpath refid="wsdl2java.classpath"/>
-                                </java>
-				
-			    </tasks>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
-            
-            <plugin>
-                <groupId>org.apache.felix</groupId>
-                <artifactId>maven-bundle-plugin</artifactId>
-                
-                <extensions>true</extensions>
-                <configuration>
-                    <instructions>
-                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
-                        <Bundle-Name>${project.artifactId}</Bundle-Name>
-                        <Export-Package>
-                            org.wso2.carbon.tenant.register.gapp.stub.*; version="${carbon.platform.package.export.version}",
-                        </Export-Package>
-                        <Import-Package>
-			    !org.wso2.carbon.tenant.register.gapp.stub.*,
-                            *;resolution:=optional
-                        </Import-Package>
-                    </instructions>
-                </configuration>
-            </plugin>
-
-            <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>build-helper-maven-plugin</artifactId>
-                <executions>
-                    <execution>
-                        <id>add-source</id>
-                        <phase>generate-sources</phase>
-                        <goals>
-                            <goal>add-source</goal>
-                        </goals>
-                        <configuration>
-                            <sources>
-                                <source>
-                                    target/generated-code/src
-                                </source>
-                            </sources>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
-        </plugins>
-    </build>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.apache.axis2.wso2</groupId>
-            <artifactId>axis2</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.axis2.wso2</groupId>
-            <artifactId>axis2-client</artifactId>
-            <version>${orbit.version.axis2}</version>
-	    <exclusions>
-	    	<exclusion>
-	    		<groupId>org.wso2.securevault</groupId>
-			<artifactId>org.wso2.securevault</artifactId>
-		</exclusion>
-	    </exclusions> 
-        </dependency>
-    </dependencies>
-
-</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/f4a0ae07/service-stubs/org.wso2.carbon.tenant.register.gapp.stub/4.1.0/src/main/resources/GAppTenantRegistrationService.wsdl
----------------------------------------------------------------------
diff --git a/service-stubs/org.wso2.carbon.tenant.register.gapp.stub/4.1.0/src/main/resources/GAppTenantRegistrationService.wsdl b/service-stubs/org.wso2.carbon.tenant.register.gapp.stub/4.1.0/src/main/resources/GAppTenantRegistrationService.wsdl
deleted file mode 100644
index 88fd01a..0000000
--- a/service-stubs/org.wso2.carbon.tenant.register.gapp.stub/4.1.0/src/main/resources/GAppTenantRegistrationService.wsdl
+++ /dev/null
@@ -1,212 +0,0 @@
-<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:tns="http://services.mgt.tenant.carbon.wso2.org" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ax2405="http://beans.mgt.tenant.carbon.wso2.org/xsd" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:ax2403="http://exception.mgt.tenant.carbon.wso2.org/xsd" targetNamespace="http://services.mgt.tenant.carbon.wso2.org">
-    <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="SigOnly">
-        <wsp:ExactlyOne>
-            <wsp:All>
-                <sp:AsymmetricBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
-                    <wsp:Policy>
-                        <sp:InitiatorToken>
-                            <wsp:Policy>
-                                <sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
-                                    <wsp:Policy>
-                                        <sp:RequireThumbprintReference />
-                                        <sp:WssX509V3Token10 />
-                                    </wsp:Policy>
-                                </sp:X509Token>
-                            </wsp:Policy>
-                        </sp:InitiatorToken>
-                        <sp:RecipientToken>
-                            <wsp:Policy>
-                                <sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never">
-                                    <wsp:Policy>
-                                        <sp:RequireThumbprintReference />
-                                        <sp:WssX509V3Token10 />
-                                    </wsp:Policy>
-                                </sp:X509Token>
-                            </wsp:Policy>
-                        </sp:RecipientToken>
-                        <sp:AlgorithmSuite>
-                            <wsp:Policy>
-                                <sp:Basic256 />
-                            </wsp:Policy>
-                        </sp:AlgorithmSuite>
-                        <sp:Layout>
-                            <wsp:Policy>
-                                <sp:Strict />
-                            </wsp:Policy>
-                        </sp:Layout>
-                        <sp:IncludeTimestamp />
-                        <sp:OnlySignEntireHeadersAndBody />
-                    </wsp:Policy>
-                </sp:AsymmetricBinding>
-                <sp:Wss10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
-                    <sp:Policy>
-                        <sp:MustSupportRefKeyIdentifier />
-                        <sp:MustSupportRefIssuerSerial />
-                    </sp:Policy>
-                </sp:Wss10>
-                <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
-                    <sp:Body />
-                </sp:SignedParts>
-            </wsp:All>
-        </wsp:ExactlyOne>
-    </wsp:Policy>
-    <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="10e338136f2086e67131033d0dd4832f314b8c9f652be93d">
-        <wsp:ExactlyOne>
-            <wsp:All />
-        </wsp:ExactlyOne>
-    </wsp:Policy>
-    <wsdl:documentation>GAppTenantRegistrationService</wsdl:documentation>
-    <wsdl:types>
-        <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://exception.mgt.tenant.carbon.wso2.org/xsd">
-            <xs:complexType name="TenantManagementException">
-                <xs:sequence />
-            </xs:complexType>
-        </xs:schema>
-        <xs:schema xmlns:ns="http://org.apache.axis2/xsd" xmlns:ax2406="http://beans.mgt.tenant.carbon.wso2.org/xsd" xmlns:ax2404="http://exception.mgt.tenant.carbon.wso2.org/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://org.apache.axis2/xsd">
-            <xs:import namespace="http://exception.mgt.tenant.carbon.wso2.org/xsd" />
-            <xs:import namespace="http://beans.mgt.tenant.carbon.wso2.org/xsd" />
-            <xs:element name="GAppTenantRegistrationServiceTenantManagementException">
-                <xs:complexType>
-                    <xs:sequence>
-                        <xs:element minOccurs="0" name="TenantManagementException" nillable="true" type="ax2404:TenantManagementException" />
-                    </xs:sequence>
-                </xs:complexType>
-            </xs:element>
-            <xs:element name="registerGoogleAppsTenant">
-                <xs:complexType>
-                    <xs:sequence>
-                        <xs:element minOccurs="0" name="tenantInfoBean" nillable="true" type="ax2406:TenantInfoBean" />
-                    </xs:sequence>
-                </xs:complexType>
-            </xs:element>
-            <xs:element name="registerGoogleAppsTenantResponse">
-                <xs:complexType>
-                    <xs:sequence>
-                        <xs:element minOccurs="0" name="return" type="xs:boolean" />
-                    </xs:sequence>
-                </xs:complexType>
-            </xs:element>
-            <xs:element name="isRegisteredAsGoogleAppDomain">
-                <xs:complexType>
-                    <xs:sequence>
-                        <xs:element minOccurs="0" name="domain" nillable="true" type="xs:string" />
-                    </xs:sequence>
-                </xs:complexType>
-            </xs:element>
-            <xs:element name="isRegisteredAsGoogleAppDomainResponse">
-                <xs:complexType>
-                    <xs:sequence>
-                        <xs:element minOccurs="0" name="return" type="xs:boolean" />
-                    </xs:sequence>
-                </xs:complexType>
-            </xs:element>
-        </xs:schema>
-        <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://beans.mgt.tenant.carbon.wso2.org/xsd">
-            <xs:complexType name="TenantInfoBean">
-                <xs:sequence>
-                    <xs:element minOccurs="0" name="active" type="xs:boolean" />
-                    <xs:element minOccurs="0" name="admin" nillable="true" type="xs:string" />
-                    <xs:element minOccurs="0" name="adminPassword" nillable="true" type="xs:string" />
-                    <xs:element minOccurs="0" name="createdDate" nillable="true" type="xs:dateTime" />
-                    <xs:element minOccurs="0" name="email" nillable="true" type="xs:string" />
-                    <xs:element minOccurs="0" name="firstname" nillable="true" type="xs:string" />
-                    <xs:element minOccurs="0" name="lastname" nillable="true" type="xs:string" />
-                    <xs:element minOccurs="0" name="originatedService" nillable="true" type="xs:string" />
-                    <xs:element minOccurs="0" name="successKey" nillable="true" type="xs:string" />
-                    <xs:element minOccurs="0" name="tenantDomain" nillable="true" type="xs:string" />
-                    <xs:element minOccurs="0" name="tenantId" type="xs:int" />
-                    <xs:element minOccurs="0" name="usagePlan" nillable="true" type="xs:string" />
-                </xs:sequence>
-            </xs:complexType>
-        </xs:schema>
-    </wsdl:types>
-    <wsdl:message name="registerGoogleAppsTenantRequest">
-        <wsdl:part name="parameters" element="ns1:registerGoogleAppsTenant" />
-    </wsdl:message>
-    <wsdl:message name="registerGoogleAppsTenantResponse">
-        <wsdl:part name="parameters" element="ns1:registerGoogleAppsTenantResponse" />
-    </wsdl:message>
-    <wsdl:message name="GAppTenantRegistrationServiceTenantManagementException">
-        <wsdl:part name="parameters" element="ns1:GAppTenantRegistrationServiceTenantManagementException" />
-    </wsdl:message>
-    <wsdl:message name="isRegisteredAsGoogleAppDomainRequest">
-        <wsdl:part name="parameters" element="ns1:isRegisteredAsGoogleAppDomain" />
-    </wsdl:message>
-    <wsdl:message name="isRegisteredAsGoogleAppDomainResponse">
-        <wsdl:part name="parameters" element="ns1:isRegisteredAsGoogleAppDomainResponse" />
-    </wsdl:message>
-    <wsdl:portType xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" name="GAppTenantRegistrationServicePortType" wsp:PolicyURIs="#10e338136f2086e67131033d0dd4832f314b8c9f652be93d #SigOnly">
-        <wsdl:operation name="registerGoogleAppsTenant">
-            <wsdl:input message="tns:registerGoogleAppsTenantRequest" wsaw:Action="urn:registerGoogleAppsTenant" />
-            <wsdl:output message="tns:registerGoogleAppsTenantResponse" wsaw:Action="urn:registerGoogleAppsTenantResponse" />
-            <wsdl:fault message="tns:GAppTenantRegistrationServiceTenantManagementException" name="GAppTenantRegistrationServiceTenantManagementException" wsaw:Action="urn:registerGoogleAppsTenantGAppTenantRegistrationServiceTenantManagementException" />
-        </wsdl:operation>
-        <wsdl:operation name="isRegisteredAsGoogleAppDomain">
-            <wsdl:input message="tns:isRegisteredAsGoogleAppDomainRequest" wsaw:Action="urn:isRegisteredAsGoogleAppDomain" />
-            <wsdl:output message="tns:isRegisteredAsGoogleAppDomainResponse" wsaw:Action="urn:isRegisteredAsGoogleAppDomainResponse" />
-            <wsdl:fault message="tns:GAppTenantRegistrationServiceTenantManagementException" name="GAppTenantRegistrationServiceTenantManagementException" wsaw:Action="urn:isRegisteredAsGoogleAppDomainGAppTenantRegistrationServiceTenantManagementException" />
-        </wsdl:operation>
-    </wsdl:portType>
-    <wsdl:binding name="GAppTenantRegistrationServiceSoap11Binding" type="tns:GAppTenantRegistrationServicePortType">
-        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
-        <wsdl:operation name="registerGoogleAppsTenant">
-            <soap:operation soapAction="urn:registerGoogleAppsTenant" style="document" />
-            <wsdl:input>
-                <soap:body use="literal" />
-            </wsdl:input>
-            <wsdl:output>
-                <soap:body use="literal" />
-            </wsdl:output>
-            <wsdl:fault name="GAppTenantRegistrationServiceTenantManagementException">
-                <soap:fault use="literal" name="GAppTenantRegistrationServiceTenantManagementException" />
-            </wsdl:fault>
-        </wsdl:operation>
-        <wsdl:operation name="isRegisteredAsGoogleAppDomain">
-            <soap:operation soapAction="urn:isRegisteredAsGoogleAppDomain" style="document" />
-            <wsdl:input>
-                <soap:body use="literal" />
-            </wsdl:input>
-            <wsdl:output>
-                <soap:body use="literal" />
-            </wsdl:output>
-            <wsdl:fault name="GAppTenantRegistrationServiceTenantManagementException">
-                <soap:fault use="literal" name="GAppTenantRegistrationServiceTenantManagementException" />
-            </wsdl:fault>
-        </wsdl:operation>
-    </wsdl:binding>
-    <wsdl:binding name="GAppTenantRegistrationServiceSoap12Binding" type="tns:GAppTenantRegistrationServicePortType">
-        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
-        <wsdl:operation name="registerGoogleAppsTenant">
-            <soap12:operation soapAction="urn:registerGoogleAppsTenant" style="document" />
-            <wsdl:input>
-                <soap12:body use="literal" />
-            </wsdl:input>
-            <wsdl:output>
-                <soap12:body use="literal" />
-            </wsdl:output>
-            <wsdl:fault name="GAppTenantRegistrationServiceTenantManagementException">
-                <soap12:fault use="literal" name="GAppTenantRegistrationServiceTenantManagementException" />
-            </wsdl:fault>
-        </wsdl:operation>
-        <wsdl:operation name="isRegisteredAsGoogleAppDomain">
-            <soap12:operation soapAction="urn:isRegisteredAsGoogleAppDomain" style="document" />
-            <wsdl:input>
-                <soap12:body use="literal" />
-            </wsdl:input>
-            <wsdl:output>
-                <soap12:body use="literal" />
-            </wsdl:output>
-            <wsdl:fault name="GAppTenantRegistrationServiceTenantManagementException">
-                <soap12:fault use="literal" name="GAppTenantRegistrationServiceTenantManagementException" />
-            </wsdl:fault>
-        </wsdl:operation>
-    </wsdl:binding>
-    <wsdl:service name="GAppTenantRegistrationService">
-        <wsdl:port name="GAppTenantRegistrationServiceHttpsSoap11Endpoint" binding="tns:GAppTenantRegistrationServiceSoap11Binding">
-            <soap:address location="https://cloud-test.wso2.com:9443/services/GAppTenantRegistrationService.GAppTenantRegistrationServiceHttpsSoap11Endpoint/" />
-        </wsdl:port>
-        <wsdl:port name="GAppTenantRegistrationServiceHttpsSoap12Endpoint" binding="tns:GAppTenantRegistrationServiceSoap12Binding">
-            <soap12:address location="https://cloud-test.wso2.com:9443/services/GAppTenantRegistrationService.GAppTenantRegistrationServiceHttpsSoap12Endpoint/" />
-        </wsdl:port>
-    </wsdl:service>
-</wsdl:definitions>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/f4a0ae07/service-stubs/pom.xml
----------------------------------------------------------------------
diff --git a/service-stubs/pom.xml b/service-stubs/pom.xml
index 66ecf9a..b13310e 100644
--- a/service-stubs/pom.xml
+++ b/service-stubs/pom.xml
@@ -49,6 +49,7 @@
 	<module>org.apache.stratos.theme.mgt.stub</module>
 	<module>org.apache.stratos.validate.domain.stub</module>
 	<module>org.apache.stratos.adc.instanceinfo.mgt.stub</module>
+	<module>org.apache.stratos.tenant.register.gapp.stub</module>
     </modules>
 
     <build>