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/15 13:21:49 UTC

git commit: Catrige Agent Stub refactor

Updated Branches:
  refs/heads/master bafd6bb16 -> a74bc2838


Catrige Agent Stub refactor

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/a74bc283
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/a74bc283
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/a74bc283

Branch: refs/heads/master
Commit: a74bc283870170e1c65260a30da02bc02504be7a
Parents: bafd6bb
Author: Udara Liyanage <ud...@wso2.com>
Authored: Mon Jul 15 16:11:17 2013 +0530
Committer: Lakmal Warusawithana <la...@wso2.com>
Committed: Mon Jul 15 16:51:32 2013 +0530

----------------------------------------------------------------------
 .../pom.xml                                     | 127 +++++++++++++
 .../main/resources/CartridgeAgentService.wsdl   | 190 +++++++++++++++++++
 .../4.1.1/pom.xml                               | 121 ------------
 .../main/resources/CartridgeAgentService.wsdl   | 190 -------------------
 4 files changed, 317 insertions(+), 311 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a74bc283/service-stubs/org.apache.stratos.cartridge.agent.stub/pom.xml
----------------------------------------------------------------------
diff --git a/service-stubs/org.apache.stratos.cartridge.agent.stub/pom.xml b/service-stubs/org.apache.stratos.cartridge.agent.stub/pom.xml
new file mode 100644
index 0000000..cbe314c
--- /dev/null
+++ b/service-stubs/org.apache.stratos.cartridge.agent.stub/pom.xml
@@ -0,0 +1,127 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (c) 2005-2011, 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>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+    
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>org.apache.stratos.cartridge.agent.stub</artifactId>
+    <packaging>bundle</packaging>
+    <name>Apache Stratos - Cartridge Agent 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"/>
+                                </path>-->
+                                <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
+                                    <arg line="-uri src/main/resources/CartridgeAgentService.wsdl -u -uw
+                                    -o target/generated-code -p org.apache.stratos.cartridge.agent.stub
+                                    -ns2p http://utils.mgt.hosting.carbon.wso2.org/xsd=org.wso2.carbon.hosting.mgt.stub.types.carbon,http://org.apache.axis2/xsd=org.wso2.carbon.hosting.mgt.stub"/>
+<!--                                    <classpath refid="wsdl2java.classpath"/>-->
+<classpath refid="maven.dependency.classpath"/>
+<classpath refid="maven.compile.classpath"/>
+<classpath refid="maven.runtime.classpath"/>
+                                </java>
+                            </tasks>
+                        </configuration>
+                    </execution>
+                </executions>
+            </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>
+	    <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>
+                        <Private-Package>
+                        </Private-Package>
+                        <Export-Package>
+                            org.apache.stratos.cartridge.agent.*;version="1.0.0",
+                            org.apache.stratos.cartridge.agent.registrant.xsd.*;version="1.0.0",
+                            org.apache.stratos.cartridge.agent.stub.*;version="1.0.0"
+                            org.apache.stratos.cartridge.agent.xsd.*;version="1.0.0
+                        </Export-Package>
+                        <Import-Package>
+                            !org.wso2.carbon.hosting.mgt.stub.*
+                        </Import-Package>
+                        <DynamicImport-Package>*</DynamicImport-Package>
+                    </instructions>
+                </configuration>
+            </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>
+        </dependency>
+    </dependencies>
+
+</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a74bc283/service-stubs/org.apache.stratos.cartridge.agent.stub/src/main/resources/CartridgeAgentService.wsdl
----------------------------------------------------------------------
diff --git a/service-stubs/org.apache.stratos.cartridge.agent.stub/src/main/resources/CartridgeAgentService.wsdl b/service-stubs/org.apache.stratos.cartridge.agent.stub/src/main/resources/CartridgeAgentService.wsdl
new file mode 100644
index 0000000..9fcef2c
--- /dev/null
+++ b/service-stubs/org.apache.stratos.cartridge.agent.stub/src/main/resources/CartridgeAgentService.wsdl
@@ -0,0 +1,190 @@
+<?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://agent.cartridge.stratos.apache.org" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ax23="http://registrant.agent.cartridge.stratos.apache.org/xsd" xmlns:ax21="http://agent.cartridge.stratos.apache.org/xsd" 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://agent.cartridge.stratos.apache.org">
+    <wsdl:types>
+        <xs:schema attributeFormDefault="qualified" elementFormDefault="unqualified" targetNamespace="http://agent.cartridge.stratos.apache.org/xsd">
+            <xs:complexType name="CartridgeAgentException">
+                <xs:sequence/>
+            </xs:complexType>
+        </xs:schema>
+        <xs:schema xmlns:ax24="http://registrant.agent.cartridge.stratos.apache.org/xsd" xmlns:ax22="http://agent.cartridge.stratos.apache.org/xsd" attributeFormDefault="qualified" elementFormDefault="unqualified" targetNamespace="http://agent.cartridge.stratos.apache.org">
+            <xs:import namespace="http://agent.cartridge.stratos.apache.org/xsd"/>
+            <xs:import namespace="http://registrant.agent.cartridge.stratos.apache.org/xsd"/>
+            <xs:element name="CartridgeAgentServiceCartridgeAgentException">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="CartridgeAgentException" nillable="true" type="ax21:CartridgeAgentException"/>
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="unregister">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="domain" nillable="true" type="xs:string"/>
+                        <xs:element minOccurs="0" name="subDomain" nillable="true" type="xs:string"/>
+                        <xs:element minOccurs="0" name="hostName" nillable="true" type="xs:string"/>
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="unregisterResponse">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="return" type="xs:boolean"/>
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="register">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="registrant" nillable="true" type="ax23:Registrant"/>
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="registerResponse">
+                <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="unqualified" targetNamespace="http://registrant.agent.cartridge.stratos.apache.org/xsd">
+            <xs:complexType name="Registrant">
+                <xs:sequence>
+                    <xs:element minOccurs="0" name="alarmingLowerRate" type="xs:double"/>
+                    <xs:element minOccurs="0" name="alarmingUpperRate" type="xs:double"/>
+                    <xs:element minOccurs="0" name="hostName" nillable="true" type="xs:string"/>
+                    <xs:element minOccurs="0" name="key" nillable="true" type="xs:string"/>
+                    <xs:element minOccurs="0" name="maxInstanceCount" type="xs:int"/>
+                    <xs:element minOccurs="0" name="maxRequestsPerSecond" type="xs:int"/>
+                    <xs:element minOccurs="0" name="minInstanceCount" type="xs:int"/>
+                    <xs:element maxOccurs="unbounded" minOccurs="0" name="portMappings" nillable="true" type="ax23:PortMapping"/>
+                    <xs:element minOccurs="0" name="remoteHost" nillable="true" type="xs:string"/>
+                    <xs:element minOccurs="0" name="roundsToAverage" type="xs:int"/>
+                    <xs:element minOccurs="0" name="scaleDownFactor" type="xs:double"/>
+                    <xs:element minOccurs="0" name="service" nillable="true" type="xs:string"/>
+                    <xs:element minOccurs="0" name="tenantRange" nillable="true" type="xs:string"/>
+                </xs:sequence>
+            </xs:complexType>
+            <xs:complexType name="PortMapping">
+                <xs:sequence>
+                    <xs:element minOccurs="0" name="primaryPort" type="xs:int"/>
+                    <xs:element minOccurs="0" name="proxyPort" type="xs:int"/>
+                    <xs:element minOccurs="0" name="type" nillable="true" type="xs:string"/>
+                </xs:sequence>
+            </xs:complexType>
+        </xs:schema>
+    </wsdl:types>
+    <wsdl:message name="unregisterRequest">
+        <wsdl:part name="parameters" element="ns:unregister"/>
+    </wsdl:message>
+    <wsdl:message name="unregisterResponse">
+        <wsdl:part name="parameters" element="ns:unregisterResponse"/>
+    </wsdl:message>
+    <wsdl:message name="CartridgeAgentServiceCartridgeAgentException">
+        <wsdl:part name="parameters" element="ns:CartridgeAgentServiceCartridgeAgentException"/>
+    </wsdl:message>
+    <wsdl:message name="registerRequest">
+        <wsdl:part name="parameters" element="ns:register"/>
+    </wsdl:message>
+    <wsdl:message name="registerResponse">
+        <wsdl:part name="parameters" element="ns:registerResponse"/>
+    </wsdl:message>
+    <wsdl:portType name="CartridgeAgentServicePortType">
+        <wsdl:operation name="unregister">
+            <wsdl:input message="ns:unregisterRequest" wsaw:Action="urn:unregister"/>
+            <wsdl:output message="ns:unregisterResponse" wsaw:Action="urn:unregisterResponse"/>
+            <wsdl:fault message="ns:CartridgeAgentServiceCartridgeAgentException" name="CartridgeAgentServiceCartridgeAgentException" wsaw:Action="urn:unregisterCartridgeAgentServiceCartridgeAgentException"/>
+        </wsdl:operation>
+        <wsdl:operation name="register">
+            <wsdl:input message="ns:registerRequest" wsaw:Action="urn:register"/>
+            <wsdl:output message="ns:registerResponse" wsaw:Action="urn:registerResponse"/>
+            <wsdl:fault message="ns:CartridgeAgentServiceCartridgeAgentException" name="CartridgeAgentServiceCartridgeAgentException" wsaw:Action="urn:registerCartridgeAgentServiceCartridgeAgentException"/>
+        </wsdl:operation>
+    </wsdl:portType>
+    <wsdl:binding name="CartridgeAgentServiceSoap11Binding" type="ns:CartridgeAgentServicePortType">
+        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+        <wsdl:operation name="unregister">
+            <soap:operation soapAction="urn:unregister" style="document"/>
+            <wsdl:input>
+                <soap:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal"/>
+            </wsdl:output>
+            <wsdl:fault name="CartridgeAgentServiceCartridgeAgentException">
+                <soap:fault use="literal" name="CartridgeAgentServiceCartridgeAgentException"/>
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="register">
+            <soap:operation soapAction="urn:register" style="document"/>
+            <wsdl:input>
+                <soap:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal"/>
+            </wsdl:output>
+            <wsdl:fault name="CartridgeAgentServiceCartridgeAgentException">
+                <soap:fault use="literal" name="CartridgeAgentServiceCartridgeAgentException"/>
+            </wsdl:fault>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:binding name="CartridgeAgentServiceSoap12Binding" type="ns:CartridgeAgentServicePortType">
+        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+        <wsdl:operation name="unregister">
+            <soap12:operation soapAction="urn:unregister" style="document"/>
+            <wsdl:input>
+                <soap12:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal"/>
+            </wsdl:output>
+            <wsdl:fault name="CartridgeAgentServiceCartridgeAgentException">
+                <soap12:fault use="literal" name="CartridgeAgentServiceCartridgeAgentException"/>
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="register">
+            <soap12:operation soapAction="urn:register" style="document"/>
+            <wsdl:input>
+                <soap12:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal"/>
+            </wsdl:output>
+            <wsdl:fault name="CartridgeAgentServiceCartridgeAgentException">
+                <soap12:fault use="literal" name="CartridgeAgentServiceCartridgeAgentException"/>
+            </wsdl:fault>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:binding name="CartridgeAgentServiceHttpBinding" type="ns:CartridgeAgentServicePortType">
+        <http:binding verb="POST"/>
+        <wsdl:operation name="unregister">
+            <http:operation location="unregister"/>
+            <wsdl:input>
+                <mime:content type="text/xml" part="parameters"/>
+            </wsdl:input>
+            <wsdl:output>
+                <mime:content type="text/xml" part="parameters"/>
+            </wsdl:output>
+        </wsdl:operation>
+        <wsdl:operation name="register">
+            <http:operation location="register"/>
+            <wsdl:input>
+                <mime:content type="text/xml" part="parameters"/>
+            </wsdl:input>
+            <wsdl:output>
+                <mime:content type="text/xml" part="parameters"/>
+            </wsdl:output>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:service name="CartridgeAgentService">
+        <wsdl:port name="CartridgeAgentServiceHttpSoap11Endpoint" binding="ns:CartridgeAgentServiceSoap11Binding">
+            <soap:address location="http://localhost:6060/axis2/services/CartridgeAgentService.CartridgeAgentServiceHttpSoap11Endpoint/"/>
+        </wsdl:port>
+        <wsdl:port name="CartridgeAgentServiceHttpSoap12Endpoint" binding="ns:CartridgeAgentServiceSoap12Binding">
+            <soap12:address location="http://localhost:6060/axis2/services/CartridgeAgentService.CartridgeAgentServiceHttpSoap12Endpoint/"/>
+        </wsdl:port>
+        <wsdl:port name="CartridgeAgentServiceHttpEndpoint" binding="ns:CartridgeAgentServiceHttpBinding">
+            <http:address location="http://localhost:6060/axis2/services/CartridgeAgentService.CartridgeAgentServiceHttpEndpoint/"/>
+        </wsdl:port>
+    </wsdl:service>
+</wsdl:definitions>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a74bc283/service-stubs/org.wso2.carbon.cartridge.agent.stub/4.1.1/pom.xml
----------------------------------------------------------------------
diff --git a/service-stubs/org.wso2.carbon.cartridge.agent.stub/4.1.1/pom.xml b/service-stubs/org.wso2.carbon.cartridge.agent.stub/4.1.1/pom.xml
deleted file mode 100644
index 363ad62..0000000
--- a/service-stubs/org.wso2.carbon.cartridge.agent.stub/4.1.1/pom.xml
+++ /dev/null
@@ -1,121 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- ~ Copyright (c) 2005-2011, 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.cartridge.agent.stub</artifactId>
-    <version>4.1.1</version>
-    <packaging>bundle</packaging>
-    <name>WSO2 Carbon - Cartridge Agent 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"/>
-                                </path>
-                                <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
-                                    <arg line="-uri src/main/resources/CartridgeAgentService.wsdl -u -uw
-                                    -o target/generated-code -p org.wso2.carbon.cartridge.agent.stub
-                                    -ns2p http://utils.mgt.hosting.carbon.wso2.org/xsd=org.wso2.carbon.hosting.mgt.stub.types.carbon,http://org.apache.axis2/xsd=org.wso2.carbon.hosting.mgt.stub"/>
-                                    <classpath refid="wsdl2java.classpath"/>
-                                </java>
-                            </tasks>
-                        </configuration>
-                    </execution>
-                </executions>
-            </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>
-	    <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>
-                        <Private-Package>
-                        </Private-Package>
-                        <Export-Package>
-                            org.wso2.carbon.cartridge.agent.*;version="1.0.0",
-                            org.wso2.carbon.cartridge.agent.registrant.xsd.*;version="1.0.0",
-                            org.wso2.carbon.cartridge.agent.stub.*;version="1.0.0"
-                            org.wso2.carbon.cartridge.agent.xsd.*;version="1.0.0
-                        </Export-Package>
-                        <Import-Package>
-                            !org.wso2.carbon.hosting.mgt.stub.*
-                        </Import-Package>
-                        <DynamicImport-Package>*</DynamicImport-Package>
-                    </instructions>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.apache.axis2.wso2</groupId>
-            <artifactId>axis2</artifactId>
-        </dependency>
-    </dependencies>
-
-</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a74bc283/service-stubs/org.wso2.carbon.cartridge.agent.stub/4.1.1/src/main/resources/CartridgeAgentService.wsdl
----------------------------------------------------------------------
diff --git a/service-stubs/org.wso2.carbon.cartridge.agent.stub/4.1.1/src/main/resources/CartridgeAgentService.wsdl b/service-stubs/org.wso2.carbon.cartridge.agent.stub/4.1.1/src/main/resources/CartridgeAgentService.wsdl
deleted file mode 100644
index 5224d5f..0000000
--- a/service-stubs/org.wso2.carbon.cartridge.agent.stub/4.1.1/src/main/resources/CartridgeAgentService.wsdl
+++ /dev/null
@@ -1,190 +0,0 @@
-<?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://agent.cartridge.carbon.wso2.org" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ax23="http://registrant.agent.cartridge.carbon.wso2.org/xsd" xmlns:ax21="http://agent.cartridge.carbon.wso2.org/xsd" 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://agent.cartridge.carbon.wso2.org">
-    <wsdl:types>
-        <xs:schema attributeFormDefault="qualified" elementFormDefault="unqualified" targetNamespace="http://agent.cartridge.carbon.wso2.org/xsd">
-            <xs:complexType name="CartridgeAgentException">
-                <xs:sequence/>
-            </xs:complexType>
-        </xs:schema>
-        <xs:schema xmlns:ax24="http://registrant.agent.cartridge.carbon.wso2.org/xsd" xmlns:ax22="http://agent.cartridge.carbon.wso2.org/xsd" attributeFormDefault="qualified" elementFormDefault="unqualified" targetNamespace="http://agent.cartridge.carbon.wso2.org">
-            <xs:import namespace="http://agent.cartridge.carbon.wso2.org/xsd"/>
-            <xs:import namespace="http://registrant.agent.cartridge.carbon.wso2.org/xsd"/>
-            <xs:element name="CartridgeAgentServiceCartridgeAgentException">
-                <xs:complexType>
-                    <xs:sequence>
-                        <xs:element minOccurs="0" name="CartridgeAgentException" nillable="true" type="ax21:CartridgeAgentException"/>
-                    </xs:sequence>
-                </xs:complexType>
-            </xs:element>
-            <xs:element name="unregister">
-                <xs:complexType>
-                    <xs:sequence>
-                        <xs:element minOccurs="0" name="domain" nillable="true" type="xs:string"/>
-                        <xs:element minOccurs="0" name="subDomain" nillable="true" type="xs:string"/>
-                        <xs:element minOccurs="0" name="hostName" nillable="true" type="xs:string"/>
-                    </xs:sequence>
-                </xs:complexType>
-            </xs:element>
-            <xs:element name="unregisterResponse">
-                <xs:complexType>
-                    <xs:sequence>
-                        <xs:element minOccurs="0" name="return" type="xs:boolean"/>
-                    </xs:sequence>
-                </xs:complexType>
-            </xs:element>
-            <xs:element name="register">
-                <xs:complexType>
-                    <xs:sequence>
-                        <xs:element minOccurs="0" name="registrant" nillable="true" type="ax23:Registrant"/>
-                    </xs:sequence>
-                </xs:complexType>
-            </xs:element>
-            <xs:element name="registerResponse">
-                <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="unqualified" targetNamespace="http://registrant.agent.cartridge.carbon.wso2.org/xsd">
-            <xs:complexType name="Registrant">
-                <xs:sequence>
-                    <xs:element minOccurs="0" name="alarmingLowerRate" type="xs:double"/>
-                    <xs:element minOccurs="0" name="alarmingUpperRate" type="xs:double"/>
-                    <xs:element minOccurs="0" name="hostName" nillable="true" type="xs:string"/>
-                    <xs:element minOccurs="0" name="key" nillable="true" type="xs:string"/>
-                    <xs:element minOccurs="0" name="maxInstanceCount" type="xs:int"/>
-                    <xs:element minOccurs="0" name="maxRequestsPerSecond" type="xs:int"/>
-                    <xs:element minOccurs="0" name="minInstanceCount" type="xs:int"/>
-                    <xs:element maxOccurs="unbounded" minOccurs="0" name="portMappings" nillable="true" type="ax23:PortMapping"/>
-                    <xs:element minOccurs="0" name="remoteHost" nillable="true" type="xs:string"/>
-                    <xs:element minOccurs="0" name="roundsToAverage" type="xs:int"/>
-                    <xs:element minOccurs="0" name="scaleDownFactor" type="xs:double"/>
-                    <xs:element minOccurs="0" name="service" nillable="true" type="xs:string"/>
-                    <xs:element minOccurs="0" name="tenantRange" nillable="true" type="xs:string"/>
-                </xs:sequence>
-            </xs:complexType>
-            <xs:complexType name="PortMapping">
-                <xs:sequence>
-                    <xs:element minOccurs="0" name="primaryPort" type="xs:int"/>
-                    <xs:element minOccurs="0" name="proxyPort" type="xs:int"/>
-                    <xs:element minOccurs="0" name="type" nillable="true" type="xs:string"/>
-                </xs:sequence>
-            </xs:complexType>
-        </xs:schema>
-    </wsdl:types>
-    <wsdl:message name="unregisterRequest">
-        <wsdl:part name="parameters" element="ns:unregister"/>
-    </wsdl:message>
-    <wsdl:message name="unregisterResponse">
-        <wsdl:part name="parameters" element="ns:unregisterResponse"/>
-    </wsdl:message>
-    <wsdl:message name="CartridgeAgentServiceCartridgeAgentException">
-        <wsdl:part name="parameters" element="ns:CartridgeAgentServiceCartridgeAgentException"/>
-    </wsdl:message>
-    <wsdl:message name="registerRequest">
-        <wsdl:part name="parameters" element="ns:register"/>
-    </wsdl:message>
-    <wsdl:message name="registerResponse">
-        <wsdl:part name="parameters" element="ns:registerResponse"/>
-    </wsdl:message>
-    <wsdl:portType name="CartridgeAgentServicePortType">
-        <wsdl:operation name="unregister">
-            <wsdl:input message="ns:unregisterRequest" wsaw:Action="urn:unregister"/>
-            <wsdl:output message="ns:unregisterResponse" wsaw:Action="urn:unregisterResponse"/>
-            <wsdl:fault message="ns:CartridgeAgentServiceCartridgeAgentException" name="CartridgeAgentServiceCartridgeAgentException" wsaw:Action="urn:unregisterCartridgeAgentServiceCartridgeAgentException"/>
-        </wsdl:operation>
-        <wsdl:operation name="register">
-            <wsdl:input message="ns:registerRequest" wsaw:Action="urn:register"/>
-            <wsdl:output message="ns:registerResponse" wsaw:Action="urn:registerResponse"/>
-            <wsdl:fault message="ns:CartridgeAgentServiceCartridgeAgentException" name="CartridgeAgentServiceCartridgeAgentException" wsaw:Action="urn:registerCartridgeAgentServiceCartridgeAgentException"/>
-        </wsdl:operation>
-    </wsdl:portType>
-    <wsdl:binding name="CartridgeAgentServiceSoap11Binding" type="ns:CartridgeAgentServicePortType">
-        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
-        <wsdl:operation name="unregister">
-            <soap:operation soapAction="urn:unregister" style="document"/>
-            <wsdl:input>
-                <soap:body use="literal"/>
-            </wsdl:input>
-            <wsdl:output>
-                <soap:body use="literal"/>
-            </wsdl:output>
-            <wsdl:fault name="CartridgeAgentServiceCartridgeAgentException">
-                <soap:fault use="literal" name="CartridgeAgentServiceCartridgeAgentException"/>
-            </wsdl:fault>
-        </wsdl:operation>
-        <wsdl:operation name="register">
-            <soap:operation soapAction="urn:register" style="document"/>
-            <wsdl:input>
-                <soap:body use="literal"/>
-            </wsdl:input>
-            <wsdl:output>
-                <soap:body use="literal"/>
-            </wsdl:output>
-            <wsdl:fault name="CartridgeAgentServiceCartridgeAgentException">
-                <soap:fault use="literal" name="CartridgeAgentServiceCartridgeAgentException"/>
-            </wsdl:fault>
-        </wsdl:operation>
-    </wsdl:binding>
-    <wsdl:binding name="CartridgeAgentServiceSoap12Binding" type="ns:CartridgeAgentServicePortType">
-        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
-        <wsdl:operation name="unregister">
-            <soap12:operation soapAction="urn:unregister" style="document"/>
-            <wsdl:input>
-                <soap12:body use="literal"/>
-            </wsdl:input>
-            <wsdl:output>
-                <soap12:body use="literal"/>
-            </wsdl:output>
-            <wsdl:fault name="CartridgeAgentServiceCartridgeAgentException">
-                <soap12:fault use="literal" name="CartridgeAgentServiceCartridgeAgentException"/>
-            </wsdl:fault>
-        </wsdl:operation>
-        <wsdl:operation name="register">
-            <soap12:operation soapAction="urn:register" style="document"/>
-            <wsdl:input>
-                <soap12:body use="literal"/>
-            </wsdl:input>
-            <wsdl:output>
-                <soap12:body use="literal"/>
-            </wsdl:output>
-            <wsdl:fault name="CartridgeAgentServiceCartridgeAgentException">
-                <soap12:fault use="literal" name="CartridgeAgentServiceCartridgeAgentException"/>
-            </wsdl:fault>
-        </wsdl:operation>
-    </wsdl:binding>
-    <wsdl:binding name="CartridgeAgentServiceHttpBinding" type="ns:CartridgeAgentServicePortType">
-        <http:binding verb="POST"/>
-        <wsdl:operation name="unregister">
-            <http:operation location="unregister"/>
-            <wsdl:input>
-                <mime:content type="text/xml" part="parameters"/>
-            </wsdl:input>
-            <wsdl:output>
-                <mime:content type="text/xml" part="parameters"/>
-            </wsdl:output>
-        </wsdl:operation>
-        <wsdl:operation name="register">
-            <http:operation location="register"/>
-            <wsdl:input>
-                <mime:content type="text/xml" part="parameters"/>
-            </wsdl:input>
-            <wsdl:output>
-                <mime:content type="text/xml" part="parameters"/>
-            </wsdl:output>
-        </wsdl:operation>
-    </wsdl:binding>
-    <wsdl:service name="CartridgeAgentService">
-        <wsdl:port name="CartridgeAgentServiceHttpSoap11Endpoint" binding="ns:CartridgeAgentServiceSoap11Binding">
-            <soap:address location="http://localhost:6060/axis2/services/CartridgeAgentService.CartridgeAgentServiceHttpSoap11Endpoint/"/>
-        </wsdl:port>
-        <wsdl:port name="CartridgeAgentServiceHttpSoap12Endpoint" binding="ns:CartridgeAgentServiceSoap12Binding">
-            <soap12:address location="http://localhost:6060/axis2/services/CartridgeAgentService.CartridgeAgentServiceHttpSoap12Endpoint/"/>
-        </wsdl:port>
-        <wsdl:port name="CartridgeAgentServiceHttpEndpoint" binding="ns:CartridgeAgentServiceHttpBinding">
-            <http:address location="http://localhost:6060/axis2/services/CartridgeAgentService.CartridgeAgentServiceHttpEndpoint/"/>
-        </wsdl:port>
-    </wsdl:service>
-</wsdl:definitions>