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

[1/5] committing account mgt components

Updated Branches:
  refs/heads/master 0fb451c2e -> c1fffa70b


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/account_mgt.jsp
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/account_mgt.jsp b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/account_mgt.jsp
new file mode 100644
index 0000000..3c693a6
--- /dev/null
+++ b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/account_mgt.jsp
@@ -0,0 +1,526 @@
+<!--
+~ 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.
+-->
+<%@ page import="org.apache.stratos.account.mgt.AccountInfoBean" %>
+<%@ page import="org.wso2.carbon.account.mgt.ui.clients.AccountMgtClient" %>
+<%@ page import="org.wso2.carbon.account.mgt.ui.clients.UsagePlanClient" %>
+<%@ page import="org.wso2.carbon.stratos.common.constants.StratosConstants" %>
+<%@ page import="org.wso2.carbon.stratos.common.util.CommonUtil" %>
+<%@ page import="org.wso2.carbon.registry.core.exceptions.RegistryException" %>
+<%@ page import="org.wso2.carbon.utils.multitenancy.MultitenantConstants" %>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
+<%@ taglib uri="http://wso2.org/projects/carbon/taglibs/carbontags.jar" prefix="carbon" %>
+<link rel="stylesheet" type="text/css" href="../yui/assets/yui.css">
+<link rel="stylesheet" type="text/css" href="../yui/build/menu/assets/skins/sam/menu.css"/>
+<link rel="stylesheet" type="text/css" href="../yui/build/button/assets/skins/sam/button.css"/>
+<link rel="stylesheet" type="text/css"
+      href="../yui/build/container/assets/skins/sam/container.css"/>
+<link rel="stylesheet" type="text/css"
+      href="../yui/build/autocomplete/assets/skins/sam/autocomplete.css"/>
+<link rel="stylesheet" type="text/css" href="../yui/build/editor/assets/skins/sam/editor.css"/>
+<link rel="stylesheet" type="text/css" href="../account-mgt/css/account_mgt.css"/>
+<jsp:include page="../registry_common/registry_common-i18n-ajaxprocessor.jsp"/>
+<script type="text/javascript" src="../registry_common/js/registry_validation.js"></script>
+<script type="text/javascript" src="../registry_common/js/registry_common.js"></script>
+<script type="text/javascript" src="../ajax/js/prototype.js"></script>
+<script type="text/javascript" src="../account-mgt/js/account_mgt.js"></script>
+<carbon:jsi18n
+        resourceBundle="org.wso2.carbon.account.mgt.ui.i18n.JSResources"
+        request="<%=request%>"/>
+<fmt:bundle basename="org.wso2.carbon.account.mgt.ui.i18n.Resources">
+
+<%
+    if ("true".equals(session.getAttribute("domain-validation-failure"))) {
+        session.removeAttribute("domain-validation-failure");
+%>
+
+<script type="text/javascript">
+    jQuery(document).ready(function() {
+        CARBON.showWarningDialog(jsi18n["domain.validation.failed"]);
+    });
+</script>
+<%
+    }
+    if ("true".equals(session.getAttribute("domain-validation-success"))) {
+        session.removeAttribute("domain-validation-success");
+%>
+
+<script type="text/javascript">
+    jQuery(document).ready(function() {
+        CARBON.showWarningDialog(jsi18n["successfully.validated"]);
+    });
+</script>
+<%
+    }
+
+
+    if ("false".equals(session.getAttribute("temp-domain-available"))) {
+        session.removeAttribute("temp-domain-available");
+%>
+
+<script type="text/javascript">
+    jQuery(document).ready(function() {
+        CARBON.showWarningDialog(jsi18n["domain.unavailable"]);
+    });
+</script>
+<%
+    }
+%>
+<%
+
+    String contactEmail = "";
+    String firstname = "";
+    String lastname = "";
+    String tenantDomain = "";
+    String usagePlan = "";
+    boolean isDomainValidated;
+    boolean isEmailValidated = false;
+    AccountMgtClient client;
+    try {
+        client = new AccountMgtClient(config, session);
+        contactEmail = client.getContact();
+        AccountInfoBean accountInfoBean = client.getFullname();
+        firstname = accountInfoBean.getFirstname();
+        lastname = accountInfoBean.getLastname();
+        if (firstname == null) {
+            firstname = "";
+        }
+        if (lastname == null) {
+            lastname = "";
+        }
+        isDomainValidated = client.isDomainValidated();
+        isEmailValidated = client.isEmailValidated();
+
+
+        if ("true".equals(request.getParameter("isUpdate"))) {
+            usagePlan = request.getParameter("selectedUsagePlan");
+            if (org.wso2.carbon.account.mgt.ui.utils.Util.updateUsagePlan(request, config, session)) {
+%>
+<script type="text/javascript">
+    //        window.location.href="../admin/logout_action.jsp";
+    CARBON.showInfoDialog("Your usage plan has been updated.");
+</script>
+<%
+} else {
+%>
+<script type="text/javascript">
+    //        window.location.href="../admin/logout_action.jsp";
+    CARBON.showInfoDialog("Error occured while updating usage plan.");
+</script>
+<%
+        }
+    }
+    usagePlan = org.wso2.carbon.account.mgt.ui.utils.Util.getUsagePlanName(config, session);
+    if ("true".equals(request.getParameter("isDeactivated"))) {
+        client.deactivate();
+        tenantDomain = (String) session.getAttribute("tenantDomain");
+%>
+
+<script type="text/javascript">
+    //        window.location.href="../admin/logout_action.jsp";
+    CARBON.showInfoDialog("Your account has been deactivated.",
+                         function() {
+                             window.location.href = "../admin/logout_action.jsp"
+                         },
+                         function() {
+                             window.location.href = "../admin/logout_action.jsp"
+                         });
+</script>
+<%
+    }
+} catch (RegistryException e) {
+%>
+<div>Error in getting account management information.</div>
+<%
+        return;
+    }
+
+    String currentDomain = (String) session.getAttribute(MultitenantConstants.TENANT_DOMAIN);
+
+    if (session.getAttribute("submit-firstname") != null) {
+        firstname = (String) session.getAttribute("submit-firstname");
+        session.setAttribute("submit-firstname", null);
+    }
+    if (session.getAttribute("submit-lastname") != null) {
+        lastname = (String) session.getAttribute("submit-lastname");
+        session.setAttribute("submit-lastname", null);
+    }
+
+%>
+
+<carbon:breadcrumb label="resources"
+                   resourceBundle="org.wso2.carbon.account.mgt.ui.i18n.Resources"
+                   topPage="true" request="<%=request%>"/>
+<div id="middle">
+
+<div id="workArea">
+<h2><fmt:message key="account.mgt.title"/></h2>
+
+
+<table class="styledLeft">
+    <thead>
+    <tr>
+        <th><fmt:message key="contact.information"/></th>
+    </tr>
+    </thead>
+    <tbody>
+
+    <tr>
+        <td class="nopadding">
+            <form method="POST" action="update_contact_ajaxprocessor.jsp">
+                <table class="normal-nopadding" cellspacing="0">
+                    <tbody>
+                    <tr>
+                        <td width="200px"><fmt:message key="contact.email"/><span
+                                class="required">*</span></td>
+                        <td colspan="2">
+                            <input type="text" name="email" id="email" style="width:400px"
+                                   value="<%=contactEmail%>"/> <span id="busyContact">&nbsp;</span>
+                            <span style="visibility:hidden"
+                                  id="old-email"><%=isEmailValidated ? contactEmail : ""%></span>
+                        </td>
+                    </tr>
+                    <%
+                        if (isEmailValidated) {
+                    %>
+
+                    <tr>
+                        <td></td>
+                        <td colspan="2"><input onclick="updateContact()" type="button"
+                                               value="<fmt:message key="update.contact"/>"/></td>
+                    </tr>
+                    <%
+                    } else {
+                    %>
+                    <tr>
+                        <td colspan="3">
+                            <div class="not-validated"><img src="images/wrong.gif" alt="Validated"/>Your
+                                email is not validated.
+                                Please validate it from here.
+                            </div>
+                        </td>
+                    </tr>
+                    <tr>
+                        <td></td>
+                        <td colspan="2"><input onclick="updateContact()" type="button"
+                                               value="<fmt:message key="validate.contact"/>"/></td>
+                    </tr>
+                    <%
+                        }
+                    %>
+
+                    <tr>
+                        <td colspan="3">
+                            <div class="table-spacer">&nbsp;</div>
+                        </td>
+                    </tr>
+                    </tbody>
+                </table>
+            </form>
+        </td>
+
+    </tr>
+
+    </tbody>
+</table>
+
+
+<table class="styledLeft">
+    <thead>
+    <tr>
+        <th><fmt:message key="admin.information"/></th>
+    </tr>
+    </thead>
+    <tbody>
+
+    <tr>
+        <td class="nopadding">
+            <form id="update_profile_form" action="update_profile_processor.jsp" method="POST">
+                <table class="normal-nopadding" cellspacing="0">
+                    <tbody>
+                    <tr>
+                        <td width="200px"><fmt:message key="firstname"/><span
+                                class="required">*</span></td>
+                        <td colspan="2">
+                            <input type="text" name="firstname" id="firstname" style="width:400px"
+                                   value="<%=firstname%>"/>
+                            <span style="visibility:hidden" id="old-firstname"><%=firstname%></span>
+                        </td>
+                    </tr>
+                    <tr>
+                        <td width="200px"><fmt:message key="lastname"/><span
+                                class="required">*</span></td>
+                        <td colspan="2">
+                            <input type="text" name="lastname" id="lastname" style="width:400px"
+                                   value="<%=lastname%>"/>
+                            <span style="visibility:hidden" id="old-lastname"><%=lastname%></span>
+                        </td>
+                    </tr>
+                    <tr>
+                        <td></td>
+                        <td colspan="2"><input onclick="updateProfile()" type="button"
+                                               value="<fmt:message key="update.profile"/>"/></td>
+                    </tr>
+                    <tr>
+                        <td colspan="3">
+                            <div class="table-spacer">&nbsp;</div>
+                        </td>
+                    </tr>
+                    </tbody>
+                </table>
+            </form>
+        </td>
+
+    </tr>
+
+    </tbody>
+</table>
+
+
+<table class="styledLeft">
+    <thead>
+    <tr>
+        <th><fmt:message key="validate.domain.title"/></th>
+    </tr>
+    </thead>
+    <tbody>
+
+    <tr>
+        <td class="nopadding">
+            <form onsubmit="return domainSelected();" id="validateDomainForm" method="POST"
+                  action="validate_domain_ajaxprocessor.jsp">
+                <table class="normal-nopadding" cellspacing="0">
+                    <tbody>
+                    <tr>
+                        <td width="200px"><fmt:message key="current.domain"/></td>
+                        <td colspan="2"><input readonly="true" type="text" name="domain" id="domain"
+                                               style="width:400px" value="<%=currentDomain%>"/>
+                        </td>
+                    </tr>
+
+                    <%
+                        if (isDomainValidated) {
+                    %>
+                    <tr>
+                        <td colspan="3">
+                            <div class="validated"><img src="images/right.gif" alt="Validated"/> The
+                                ownership of your domain is already validated.
+                            </div>
+                        </td>
+                    </tr>
+
+                    <%
+                    } else {
+                    %>
+                    <tr>
+                        <td colspan="3">
+                            <div class="not-validated"><img src="images/wrong.gif" alt="Validated"/>
+                                The ownership of your
+                                domain is not validated. You can validate it from here.
+                            </div>
+                        </td>
+                    </tr>
+
+                    <tr>
+                        <td></td>
+                        <td colspan="2"><input type="submit"
+                                               value="<fmt:message key="validate.domain"/>"/></td>
+                    </tr>
+                    <tr>
+                        <td colspan="3">
+                            <div class="table-spacer">&nbsp;</div>
+                        </td>
+                    </tr>
+
+                    <%
+                        }
+                    %>
+                    </tbody>
+                </table>
+            </form>
+        </td>
+    </tr>
+
+    </tbody>
+</table>
+
+
+<table class="styledLeft">
+    <thead>
+    <tr>
+        <th><fmt:message key="deactivate.account.title"/></th>
+    </tr>
+    </thead>
+    <tbody>
+
+
+    <tr>
+        <td class="nopadding">
+            <form method="POST" id="deactivate_form" action="account_mgt.jsp">
+                <input type="hidden" name="isDeactivated" value="true"/>
+                <table class="normal-nopadding" cellspacing="0">
+                    <tbody>
+                    <tr>
+                        <td colspan="3"><fmt:message key="deactivate.account.msg"/></td>
+                    </tr>
+                    <tr>
+                        <td width="200px"></td>
+                        <td colspan="2"><input onclick="return deactivate('<%=currentDomain%>');"
+                                               type="button"
+                                               value="<fmt:message key="deactivate.account.btn"/>"/>
+                        </td>
+                    </tr>
+                    <tr>
+                        <td colspan="3">
+                            <div class="table-spacer">&nbsp;</div>
+                        </td>
+                    </tr>
+                    </tbody>
+                </table>
+            </form>
+        </td>
+    </tr>
+
+    </tbody>
+</table>
+
+
+<table class="styledLeft">
+    <thead>
+    <tr>
+        <th><fmt:message key="usage.plan.information"/>
+            <% if (usagePlan.length() > 10) {
+                String planName = usagePlan;
+            %>
+            - Your Current Usage Plan is : <%=planName%>
+            <%}%>
+        </th>
+    </tr>
+    </thead>
+    <tbody>
+
+<script type="text/javascript">
+<%
+    boolean chargeOnRegistration = CommonUtil.isChargedOnRegistration();
+%>
+
+function updatePlan(plan, existingPlan, regTenantDomain) {
+    var newPlan = plan.options[plan.selectedIndex].value;
+    if(newPlan==existingPlan){
+        CARBON.showInfoDialog("Please select the new plan before updating");
+    }else{
+        sessionAwareFunction(function() {
+        CARBON.showConfirmationDialog("Are you sure you want to update your UsagePlan ? "
+                                      , function() {
+
+
+
+
+
+            var submitForm = document.getElementById("usagePlanUpdate_form");
+            submitForm.submit();
+        });
+    }, "Session timed out. Please login again.");
+    }
+}
+</script>
+
+    <tr>
+        <td class="nopadding">
+            <form method="POST" id="usagePlanUpdate_form"
+            <% if (chargeOnRegistration){ %>
+            action="init_payment_ajaxprocessor.jsp"
+            <% } else { %>
+            action="account_mgt.jsp"
+            <% } %>
+            >
+                <input type="hidden" name="isUpdate" value="true"/>
+                <table class="normal-nopadding" cellspacing="0">
+                    <tbody>
+                    <td><fmt:message key="select.usage.plan.for.tenant"/></td>
+                    <td>
+                        <select name="selectedUsagePlan" id="selectedUsagePlan">
+                        </select>
+                        <a href="<%=CommonUtil.getStratosConfig().getUsagePlanURL()%>"
+                           target="_blank">
+                            <b>Pricing Info</b></a>
+                    </td>
+
+
+                    </tr>
+                    <tr>
+                        <td colspan="2"><fmt:message key="select.package.message"/>
+                        </td>
+                    </tr>
+                    <tr>
+                        <td width="200px"></td>
+                        <td colspan="2"><input
+                                onclick="return updatePlan(document.getElementById('selectedUsagePlan'), '<%=usagePlan%>', '<%=currentDomain%>');"
+                                type="button"
+                                value="Update Plan"/>
+                        </td>
+                    </tr>
+                    </tbody>
+                </table>
+            </form>
+    </tbody>
+</table>
+</div>
+</div>
+</fmt:bundle>
+<script type="text/javascript">
+
+    jQuery(document).ready(
+                          function() {
+                              jQuery.ajax({
+                                  type: 'POST',
+                                  url: 'get_package_info_ajaxprocessor.jsp',
+                                  dataType: 'json',
+                                  data: 'plan=0',
+                                  async: false,
+                                  success: function(data) {
+                                      packageInfo = data;
+                                  },
+                                  error:function (xhr, ajaxOptions, thrownError) {
+                                      CARBON.showErrorDialog('Could not get package information.');
+                                  }
+                              });
+
+                              var charge;
+                              var name;
+                              for (var i = 0; i < packageInfo.length; i++) {
+                                  charge = packageInfo[i].subscriptionCharge;
+                                  name = packageInfo[i].name;
+                                  if (name == '<%=org.wso2.carbon.account.mgt.ui.utils.Util.getUsagePlanName(config, session)%>') {
+                                      option = document.createElement("option");
+                                      option.value = name;
+                                      option.selected = name;
+                                      option.innerHTML = name;
+                                      document.getElementById('selectedUsagePlan').appendChild(option);
+
+                                  }
+                                  else {
+                                      option = document.createElement("option");
+                                      option.value = name;
+                                      option.innerHTML = name
+                                      document.getElementById('selectedUsagePlan').appendChild(option);
+                                  }
+                              }
+                          }
+            );
+</script>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/css/account_mgt.css
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/css/account_mgt.css b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/css/account_mgt.css
new file mode 100644
index 0000000..9dd4170
--- /dev/null
+++ b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/css/account_mgt.css
@@ -0,0 +1,15 @@
+div.not-validated {
+    color: #f00;
+    padding: 15px 0px 10px 0px;
+}
+
+div.validated {
+    font-color: #058000;
+    padding: 15px 0px 10px 0px;
+}
+
+
+div.table-spacer {
+    margin: 5px;
+    clear:both;
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/css/update_profile.css
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/css/update_profile.css b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/css/update_profile.css
new file mode 100644
index 0000000..c3878ae
--- /dev/null
+++ b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/css/update_profile.css
@@ -0,0 +1,29 @@
+body {
+	color:#111111;
+	font-family:"Calibri","Lucida Grande","Lucida Sans","Microsoft Sans Serif","Lucida Sans Unicode","Verdana","Sans-serif","trebuchet ms" !important;
+	font-size:0.75em;
+	font-size-adjust:none;
+	font-style:normal;
+	font-variant:normal;
+	font-weight:normal;
+	line-height:1.25em;
+	background-position: left top;
+	background-repeat: repeat-x;
+	margin: 0px;
+	padding: 0px;
+}
+
+div.clear {
+	clear:both;
+}
+p { }
+
+td { }
+
+a:link { }
+
+a:visited { }
+
+a:hover { }
+
+a:active { }

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/deactivate_account_ajaxprocessor.jsp
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/deactivate_account_ajaxprocessor.jsp b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/deactivate_account_ajaxprocessor.jsp
new file mode 100644
index 0000000..fabc967
--- /dev/null
+++ b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/deactivate_account_ajaxprocessor.jsp
@@ -0,0 +1,38 @@
+<!--
+ ~ 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.
+ -->
+<%@ page import="org.wso2.carbon.registry.core.exceptions.RegistryException" %>
+<%@ page import="org.wso2.carbon.account.mgt.ui.clients.AccountMgtClient" %>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%
+AccountMgtClient client;
+try {
+    client = new AccountMgtClient(config, session);
+    client.deactivate();
+
+    // redirect to the carbon login page
+    %><script type="text/javascript">
+        CARBON.showInfoDialog("Your account has been deactivated.",
+                function() {window.location.href="../admin/logout_action.jsp"},
+                function() {window.location.href="../admin/logout_action.jsp"});
+    </script><%
+} catch (RegistryException e) {
+%>
+  <div>Error in deactivating the account.</div>
+<%
+}
+%>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/docs/aboutUsagePlans.html
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/docs/aboutUsagePlans.html b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/docs/aboutUsagePlans.html
new file mode 100644
index 0000000..791b867
--- /dev/null
+++ b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/docs/aboutUsagePlans.html
@@ -0,0 +1,104 @@
+<!--
+ ~ 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.
+ -->
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+  <title>Select Usage Plan For Tenant - User Guide</title>
+  <link href="../../admin/css/documentation.css" rel="stylesheet" type="text/css" media="all" />
+</head>
+
+<body>
+
+
+ <h1>Select Usage Plan For Tenant</h1>
+
+
+ <h2> <b> Usage Plans(Subscriptions)</b></h2>
+
+<p>
+    According to the usage plan that you selected you will get different volume of service and registry
+    bandwidths other services that available for tenants.By selecting right usage plan that suits
+    your requirements you can get maximum profit
+</p>
+
+
+<h2><b>Multitenancy Free</b></h2>
+<p>
+  This is the free usage plan.You will get limited amount of resources.This package is
+  best suite for evaluation and tests.
+</p>
+ <h2><b>Multitenancy Small</b></h2>
+<p>
+   This package is best suite for small business.
+</p>
+<h2><b>Multitenancy Medium</b></h2>
+<p>
+   This usage plan suites for medium scale business.You will get average amount of resources
+    with this package.
+</p>
+<h2><b>Multitenancy Large</b></h2>
+<p>
+   This is the premium usage plan.You will get maximum resources form this plan.
+   This is best suite to large scale business.
+</p>
+
+<p>
+
+   Usage Plan summery
+<table border="1">
+<tr>
+<td>Usage Plan Name</td>
+<td>Number Of Users</td>
+<td>Registry Bandwidth (Mb) </td>
+<td>Service BandWidth (Mb) </td>
+<td>Cost Per Month ($)</td>
+</tr>
+<tr>
+<td>Multitenancy Free</td>
+<td>5</td>
+<td>10</td>
+<td>10</td>
+<td>10</td>
+</tr>
+<tr>
+<td>Multitenancy Small</td>
+<td>10</td>
+<td>25</td>
+<td>25</td>
+<td>25</td>
+</tr>
+<tr>
+<td>Multitenancy Medium</td>
+<td>20</td>
+<td>100</td>
+<td>100</td>
+<td>100</td>
+</tr>
+<tr>
+<td>Multitenancy Large</td>
+<td>50</td>
+<td>200</td>
+<td>200</td>
+<td>200</td>
+</tr>
+</table> 
+<div><strong>Figure1: Usage Plan Summery Table</strong></div>
+</p>
+</body>
+
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/docs/images/account-mgt.png
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/docs/images/account-mgt.png b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/docs/images/account-mgt.png
new file mode 100644
index 0000000..f67777f
Binary files /dev/null and b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/docs/images/account-mgt.png differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/docs/userguide.html
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/docs/userguide.html b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/docs/userguide.html
new file mode 100644
index 0000000..fd04465
--- /dev/null
+++ b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/docs/userguide.html
@@ -0,0 +1,44 @@
+<!--
+ ~ 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.
+ -->
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+  <title>Stratos Account Managment- User Guide</title>
+  <link href="../../admin/css/documentation.css" rel="stylesheet" type="text/css" media="all" />
+</head>
+
+<body>
+<h1>Stratos Account Management</h1>
+
+<p>
+You can use this form to
+<ul>
+    <li>Update or validate the contact information</li>
+    <li>Deactivate the account</li>
+    <li>Validate the domain name ownership (If you have not already done it)</li>
+</ul>
+</p>
+
+<p>
+<img src="images/account-mgt.png" alt="Account Management Page"/>
+<div><strong>Figure1: Account Management Page</strong></div>
+</p>
+
+</body>
+
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/get_package_info_ajaxprocessor.jsp
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/get_package_info_ajaxprocessor.jsp b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/get_package_info_ajaxprocessor.jsp
new file mode 100644
index 0000000..8a52783
--- /dev/null
+++ b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/get_package_info_ajaxprocessor.jsp
@@ -0,0 +1,39 @@
+<%--
+~ 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.
+--%>
+<%@ page import="org.wso2.carbon.ui.CarbonUIUtil" %>
+<%@ page import="org.json.JSONArray" %>
+<%@ page import="org.wso2.carbon.account.mgt.ui.clients.PackageInfoServiceClient" %>
+<%@ page import="org.wso2.carbon.utils.ServerConstants" %>
+<%@ page import="org.apache.axis2.context.ConfigurationContext" %>
+<%@ page import="org.wso2.carbon.CarbonConstants" %>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
+<%@ taglib uri="http://wso2.org/projects/carbon/taglibs/carbontags.jar" prefix="carbon" %>
+
+<%
+
+    String backendServerUrl = CarbonUIUtil.getServerURL(config.getServletContext(), session);
+    String cookie = (String) session.getAttribute(ServerConstants.ADMIN_SERVICE_COOKIE);
+    ConfigurationContext configContext =
+            (ConfigurationContext) config.getServletContext().getAttribute(CarbonConstants.CONFIGURATION_CONTEXT);
+
+    PackageInfoServiceClient client = new PackageInfoServiceClient(cookie, backendServerUrl, configContext);
+    JSONArray packageInfoArray = client.getBillingPackagesJsonArray();
+
+    out.write(packageInfoArray.toString());
+%>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/images/account-mgt-icon.gif
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/images/account-mgt-icon.gif b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/images/account-mgt-icon.gif
new file mode 100644
index 0000000..7cd3939
Binary files /dev/null and b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/images/account-mgt-icon.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/images/ajax-loader.gif
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/images/ajax-loader.gif b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/images/ajax-loader.gif
new file mode 100644
index 0000000..f2a1bc0
Binary files /dev/null and b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/images/ajax-loader.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/images/right.gif
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/images/right.gif b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/images/right.gif
new file mode 100644
index 0000000..72a64c9
Binary files /dev/null and b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/images/right.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/images/wrong.gif
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/images/wrong.gif b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/images/wrong.gif
new file mode 100644
index 0000000..77e1f2c
Binary files /dev/null and b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/images/wrong.gif differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/init_payment_ajaxprocessor.jsp
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/init_payment_ajaxprocessor.jsp b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/init_payment_ajaxprocessor.jsp
new file mode 100644
index 0000000..088fb32
--- /dev/null
+++ b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/init_payment_ajaxprocessor.jsp
@@ -0,0 +1,99 @@
+<!--
+ ~ 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.
+ -->
+<%@ page import="org.apache.axis2.context.ConfigurationContext" %>
+<%@ page import="org.json.JSONArray"%>
+<%@ page import="org.wso2.carbon.CarbonConstants" %>
+<%@ page import="org.wso2.carbon.register.ui.clients.PackageInfoServiceClient" %>
+<%@ page import="org.wso2.carbon.stratos.common.util.CommonUtil" %>
+<%@ page import="org.wso2.carbon.ui.CarbonUIUtil" %>
+<%@ page import="org.wso2.carbon.utils.ServerConstants" %>
+<%@ page import="java.util.Collections" %>
+<%@ page import="java.util.Enumeration" %>
+<%@ page import="java.util.Iterator" %>
+<%@ page import="java.util.List" %>
+<%@ page import="java.util.Map" %>
+<%@ page import="org.json.JSONException" %>
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
+<%@ taglib uri="http://wso2.org/projects/carbon/taglibs/carbontags.jar" prefix="carbon" %>
+<carbon:jsi18n
+		resourceBundle="org.wso2.carbon.register.ui.i18n.JSResources"
+		request="<%=request%>" />
+<script type="text/javascript" src="../registry_common/js/registry_validation.js"></script>
+<script type="text/javascript" src="../registry_common/js/registry_common.js"></script>
+<script type="text/javascript" src="../ajax/js/prototype.js"></script>
+<script type="text/javascript" src="../admin/js/jquery.js"></script>
+<script type="text/javascript" src="../admin/js/jquery.form.js"></script>
+<script type="text/javascript" src="../dialog/js/jqueryui/jquery-ui.min.js"></script>
+<%
+    String tenantDomain = (String) session.getAttribute("tenantDomain");
+    // The actual usage plan the tenant selects in select_usage_plan.jsp
+    String selectedUsagePlan = request.getParameter("selectedUsagePlan");
+    session.setAttribute("selectedUsagePlan", selectedUsagePlan);
+
+    String backendServerUrl = CarbonUIUtil.getServerURL(config.getServletContext(), session);
+    String cookie = (String) session.getAttribute(ServerConstants.ADMIN_SERVICE_COOKIE);
+    ConfigurationContext configContext =
+            (ConfigurationContext)config.getServletContext().getAttribute(CarbonConstants.CONFIGURATION_CONTEXT);
+
+    PackageInfoServiceClient client = new PackageInfoServiceClient(cookie, backendServerUrl,configContext);
+    JSONArray packageInfoArray = client.getBillingPackagesJsonArray();
+    String amount = "0";
+
+    for (int i = 0; i < packageInfoArray.length(); i++) {
+        try {
+            if (packageInfoArray.getJSONObject(i).getString("name").equals(selectedUsagePlan)) {
+                amount = packageInfoArray.getJSONObject(i).getString("subscriptionCharge");
+            }
+        } catch (JSONException e) {
+            //
+        }
+    }
+
+    String paypalUrl = CommonUtil.getStratosConfig().getPaypalUrl();
+    String adminConsoleURL = CarbonUIUtil.getAdminConsoleURL(request);
+    adminConsoleURL = adminConsoleURL.substring(0, adminConsoleURL.indexOf("carbon"));
+    String successUrl = adminConsoleURL + "carbon/payment/registration_payment.jsp";
+    String cancelUrl = adminConsoleURL + "carbon/account-mgt/account_mgt.jsp";
+%>
+
+<script type="text/javascript">
+
+
+        var successUrl = '<%=successUrl%>';
+        var cancelUrl = '<%=cancelUrl%>';
+        var amount = '<%=amount%>';
+        var tenantDomain = '<%=tenantDomain%>';
+        jQuery.ajax({
+            type: 'GET',
+            url: '../payment/setEC-ajaxprocessor.jsp',
+            data: 'successUrl=' + successUrl + '&cancelUrl=' + cancelUrl + '&amount=' + amount + '&tenantDomain=' + tenantDomain,
+            dataType: 'json',
+            async: false,
+            success: function(msg) {
+                var resp = msg;
+                if(resp.ack=='Success'){
+                    location.href = '<%=paypalUrl%>' + resp.token;
+                }else{
+                    location.href = cancelUrl;
+                }
+            },
+            error:function () {
+                location.href = cancelUrl;
+            }
+        });
+</script>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/js/account_mgt.js
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/js/account_mgt.js b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/js/account_mgt.js
new file mode 100644
index 0000000..c957312
--- /dev/null
+++ b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/js/account_mgt.js
@@ -0,0 +1,214 @@
+function deactivate(domain) {
+    sessionAwareFunction(function() {
+        CARBON.showConfirmationDialog("Are you sure you want to deactivate the domain: " +
+                                      domain + ".", function() {
+            var submitForm = document.getElementById("deactivate_form");
+            submitForm.submit();
+        });
+    }, "Session timed out. Please login again.");
+}
+
+function checkDomain(nname)
+{
+
+    var error = "";
+    error += validateEmpty(nname, "Domain");
+    if (error != "") {
+        return error;
+    }
+    //var arr = new Array(
+    //'.com','.net','.org','.biz','.coop','.info','.museum','.name',
+    //'.pro','.edu','.gov','.int','.mil','.ac','.ad','.ae','.af','.ag',
+    //'.ai','.al','.am','.an','.ao','.aq','.ar','.as','.at','.au','.aw',
+    //'.az','.ba','.bb','.bd','.be','.bf','.bg','.bh','.bi','.bj','.bm',
+    //'.bn','.bo','.br','.bs','.bt','.bv','.bw','.by','.bz','.ca','.cc',
+    //'.cd','.cf','.cg','.ch','.ci','.ck','.cl','.cm','.cn','.co','.cr',
+    //'.cu','.cv','.cx','.cy','.cz','.de','.dj','.dk','.dm','.do','.dz',
+    //'.ec','.ee','.eg','.eh','.er','.es','.et','.fi','.fj','.fk','.fm',
+    //'.fo','.fr','.ga','.gd','.ge','.gf','.gg','.gh','.gi','.gl','.gm',
+    //'.gn','.gp','.gq','.gr','.gs','.gt','.gu','.gv','.gy','.hk','.hm',
+    //'.hn','.hr','.ht','.hu','.id','.ie','.il','.im','.in','.io','.iq',
+    //'.ir','.is','.it','.je','.jm','.jo','.jp','.ke','.kg','.kh','.ki',
+    //'.km','.kn','.kp','.kr','.kw','.ky','.kz','.la','.lb','.lc','.li',
+    //'.lk','.lr','.ls','.lt','.lu','.lv','.ly','.ma','.mc','.md','.mg',
+    //'.mh','.mk','.ml','.mm','.mn','.mo','.mp','.mq','.mr','.ms','.mt',
+    //'.mu','.mv','.mw','.mx','.my','.mz','.na','.nc','.ne','.nf','.ng',
+    //'.ni','.nl','.no','.np','.nr','.nu','.nz','.om','.pa','.pe','.pf',
+    //'.pg','.ph','.pk','.pl','.pm','.pn','.pr','.ps','.pt','.pw','.py',
+    //'.qa','.re','.ro','.rw','.ru','.sa','.sb','.sc','.sd','.se','.sg',
+    //'.sh','.si','.sj','.sk','.sl','.sm','.sn','.so','.sr','.st','.sv',
+    //'.sy','.sz','.tc','.td','.tf','.tg','.th','.tj','.tk','.tm','.tn',
+    //'.to','.tp','.tr','.tt','.tv','.tw','.tz','.ua','.ug','.uk','.um',
+    //'.us','.uy','.uz','.va','.vc','.ve','.vg','.vi','.vn','.vu','.ws',
+    //'.wf','.ye','.yt','.yu','.za','.zm','.zw');
+
+    var mai = nname.value;
+
+    var val = true;
+    var dot = mai.lastIndexOf(".");
+    var dname = mai.substring(0, dot);
+    var ext = mai.substring(dot, mai.length);
+    //alert(ext);
+
+    if (ext.indexOf("-trial") >= 0 || ext.indexOf("-unverified") >= 0) {
+        // we are not allowing to create a domain with -trial or -unverified is in the extension
+        return "The domain name you entered is not valid. Please enter a valid domain name.";
+    }
+
+    if (ext.indexOf("/") >= 0 || ext.indexOf("\\") >= 0) {
+        return "The '/' and '\\' is not allowed in a domain name";
+    }
+
+    if (dot > 1 && dot < 57)
+    {
+        //	for(var i=0; i<arr.length; i++)
+        //	{
+        //	  if(ext == arr[i])
+        //	  {
+        //	 	val = true;
+        //		break;
+        //	  }
+        //	  else
+        //	  {
+        //	 	val = false;
+        //	  }
+        //	}
+        if (!val)
+        {
+            error = "Your domain extension " + ext + " is not correct";
+            return error;
+        }
+        else
+        {
+            for (var j = 0; j < dname.length; j++)
+            {
+                var dh = dname.charAt(j);
+                var hh = dh.charCodeAt(0);
+                if ((hh > 47 && hh < 59) || (hh > 64 && hh < 91) || (hh > 96 && hh < 123) || hh == 45 || hh == 46)
+                {
+                    if ((j == 0 || j == dname.length - 1) && hh == 45)
+                    {
+                        error = "Domain name should not begin and end with '-'";
+                        return error;
+                    }
+                }
+                else {
+                    error = "Your domain name should not have special characters";
+                    return error;
+                }
+            }
+        }
+    }
+    else
+    {
+        error = "Your Domain name is too short/long or you should have an extension to your domain.";
+        return error;
+    }
+
+    return error;
+}
+
+function clearDomainConfirmationMsg() {
+    var domain_confirmation_div = document.getElementById("domain-confirmation-msg");
+    domain_confirmation_div.innerHTML = "";
+}
+
+
+function domainSelected() {
+    var domain = document.getElementById('domainToValidate');
+
+    var reason = validateEmpty(domain, "Domain");
+    if (reason == "") {
+        reason += checkDomain(domain);
+    }
+
+    if (reason != "") {
+        CARBON.showWarningDialog(reason);
+        return false;
+    }
+    sessionAwareFunction(function() {
+        var validateDomainForm = document.getElementById('validateDomainForm');
+        validateDomainForm.submit();
+    }, "Session timed out. Please login again.");
+
+}
+
+function updateContact() {
+    var email = document.getElementById("email");
+    var oldEmail = document.getElementById("old-email");
+    var reason = "";
+    if (reason == "") {
+        reason += validateEmpty(email, "Email");
+    }
+    if (reason == "") {
+        reason += validateEmail(email);
+    }
+
+    if (reason == "" && email.value == oldEmail.innerHTML) {
+        reason += "You have not updated your email yet."
+    }
+
+    if (reason != "") {
+        CARBON.showWarningDialog(reason);
+        return;
+    }
+    // now call the updateContact.
+
+    sessionAwareFunction(function() {
+        debugger;
+        var busyContactPlaceHolder = document.getElementById("busyContact");
+        busyContactPlaceHolder.innerHTML = "<img src=\"images/ajax-loader.gif\"/>";
+
+        new Ajax.Request('../account-mgt/update_contact_ajaxprocessor.jsp',
+        {
+            method:'post',
+            parameters: {email: email.value},
+
+            onSuccess: function(transport) {
+                var returnValue = transport.responseText;
+                busyContactPlaceHolder.innerHTML = "";
+
+                if (returnValue.search(/----failed----/) == -1) {
+                    CARBON.showWarningDialog("We have sent an email to validate the contact details you just entered. Please follow " +
+                                             "the instructions in there to submit the updated contact details");
+                }
+                else {
+                    CARBON.showWarningDialog("Updating the contact information failed.");
+                }
+            },
+
+            onFailure: function(transport) {
+                busyContactPlaceHolder.innerHTML = "";
+                CARBON.showWarningDialog("Updating the contact information failed.");
+            }
+        });
+    }, "Session timed out. Please login again.");
+}
+
+
+function updateProfile() {
+    var update_profile_form = document.getElementById("update_profile_form");
+    var firstname = document.getElementById("firstname");
+    var oldFirstname = document.getElementById("old-firstname");
+    var lastname = document.getElementById("lastname");
+    var oldLastname = document.getElementById("old-lastname");
+
+    var reason = "";
+
+    if (reason == "") {
+        reason += validateEmpty(firstname, "First Name");
+    }
+    if (reason == "") {
+        reason += validateEmpty(lastname, "Last Name");
+
+        if ((reason == "" && firstname.value == oldFirstname.innerHTML) &&
+            (reason == "" && lastname.value == oldLastname.innerHTML)) {
+            reason += "You have not updated your firstname or last name yet.";
+        }
+    }
+    if (reason != "") {
+        CARBON.showWarningDialog(reason);
+        return;
+    }
+    update_profile_form.submit();
+}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/update_contact_ajaxprocessor.jsp
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/update_contact_ajaxprocessor.jsp b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/update_contact_ajaxprocessor.jsp
new file mode 100644
index 0000000..58a323b
--- /dev/null
+++ b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/update_contact_ajaxprocessor.jsp
@@ -0,0 +1,35 @@
+<!--
+ ~ 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.
+ -->
+<%@ page import="org.wso2.carbon.registry.core.exceptions.RegistryException" %>
+<%@ page import="org.wso2.carbon.account.mgt.ui.clients.AccountMgtClient" %>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%
+AccountMgtClient client;
+try {
+    String email = request.getParameter("email");
+    client = new AccountMgtClient(config, session);
+    client.updateContact(email);
+
+} catch (RegistryException e) {
+%>
+----failed----
+<%
+    return;
+}
+
+%>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/update_profile_processor.jsp
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/update_profile_processor.jsp b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/update_profile_processor.jsp
new file mode 100644
index 0000000..d0158c9
--- /dev/null
+++ b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/update_profile_processor.jsp
@@ -0,0 +1,62 @@
+<!--
+ ~ 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.
+ -->
+<%@ page import="org.wso2.carbon.registry.core.exceptions.RegistryException" %>
+<%@ page import="org.wso2.carbon.account.mgt.ui.clients.AccountMgtClient" %>
+<%@ page import="org.wso2.carbon.account.mgt.ui.utils.Util" %>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
+<%@ taglib uri="http://wso2.org/projects/carbon/taglibs/carbontags.jar" prefix="carbon" %>
+<carbon:jsi18n
+		resourceBundle="org.wso2.carbon.register.ui.i18n.JSResources"
+		request="<%=request%>" />
+<link href="css/update_profile.css" rel="stylesheet" type="text/css" media="all"/>
+
+
+<%
+    Boolean isUpdated;
+
+    try {
+    isUpdated = Util.updateFullname(request, config, session);
+    }
+    catch (Exception e) {
+    isUpdated  = false;
+    }
+
+%>
+<%        if (isUpdated) { %>
+
+    <div id="middle">
+
+       <h2>
+           Profile Successfully Updated.
+       </h2>
+
+
+   <%   }  else { %>
+
+    <div id="middle">
+
+       <h2>
+           Profile Update Failed
+       </h2>
+
+        <% } %>
+        <p>
+            Go to  <a href="../admin/index.jsp"> home page. </a>
+        </p>
+      </div>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/update_verifier.jsp
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/update_verifier.jsp b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/update_verifier.jsp
new file mode 100644
index 0000000..2b35fc3
--- /dev/null
+++ b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/update_verifier.jsp
@@ -0,0 +1,56 @@
+<!--
+ ~ 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.
+ -->
+<%@ page import="org.wso2.carbon.CarbonConstants" %>
+<%@ page import="org.wso2.carbon.account.mgt.ui.clients.AccountMgtClient" %>
+<%@ page import="org.wso2.carbon.account.mgt.ui.utils.Util" %>
+<%@ page import="org.wso2.carbon.registry.core.exceptions.RegistryException" %>
+<%@ page import="org.wso2.carbon.account.mgt.ui.clients.EmailValidationClient" %>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
+<%@ taglib uri="http://wso2.org/projects/carbon/taglibs/carbontags.jar" prefix="carbon" %>
+<carbon:jsi18n
+        resourceBundle="org.wso2.carbon.register.ui.i18n.JSResources"
+        request="<%=request%>" />
+<%
+    String data = (String)session.getAttribute("intermediate-data");
+        
+    Util.readIntermediateData(request, data);
+
+    EmailValidationClient client;
+    String email;
+    String domain;
+    try {
+        email = (String)request.getAttribute("email");
+        domain = (String)request.getAttribute("tenantDomain");
+        String confirmationKey = (String)request.getAttribute("confirmationKey");
+
+        client = new EmailValidationClient(config, session);
+        client.proceedUpdateContact(domain, email, confirmationKey);
+    } catch (RegistryException e) {
+    %>
+      <div>Error in validating the contact.</div>
+    <%
+        return;
+    }
+
+%>
+
+<div style="margin:20px">You have successfully validated your email address and the contact information associated with your WSO2
+    Cloud Services account is updated. Click <a href="../admin/index.jsp">here</a> to access WSO2 Cloud Manager.    
+</div>
+

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/update_verifier_redirector_ajaxprocessor.jsp
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/update_verifier_redirector_ajaxprocessor.jsp b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/update_verifier_redirector_ajaxprocessor.jsp
new file mode 100644
index 0000000..cb5beae
--- /dev/null
+++ b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/update_verifier_redirector_ajaxprocessor.jsp
@@ -0,0 +1,30 @@
+<!--
+ ~ 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.
+ -->
+<%@ page import="org.wso2.carbon.account.mgt.ui.utils.Util" %>
+<%@ page import="org.wso2.carbon.utils.multitenancy.MultitenantConstants" %>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%
+//this jsp is used just to redirect to the correct update verifier.
+
+String data = (String)session.getAttribute("intermediate-data");
+
+Util.readIntermediateData(request, data);
+String domain = (String)request.getAttribute("tenantDomain");
+String contextPath = "/" + MultitenantConstants.TENANT_AWARE_URL_PREFIX + "/" + domain;
+response.sendRedirect("../account-mgt/update_verifier.jsp");
+%>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/validate_domain_ajaxprocessor.jsp
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/validate_domain_ajaxprocessor.jsp b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/validate_domain_ajaxprocessor.jsp
new file mode 100644
index 0000000..71da4bd
--- /dev/null
+++ b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/validate_domain_ajaxprocessor.jsp
@@ -0,0 +1,29 @@
+<!--
+ ~ 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.
+ -->
+%@ page import="org.wso2.carbon.registry.core.RegistryConstants" %>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
+<%@ taglib uri="http://wso2.org/projects/carbon/taglibs/carbontags.jar" prefix="carbon" %>
+<%
+
+String domainToValidate = request.getParameter("domain");
+
+
+response.sendRedirect("../validate-domain/validate_domain_logged_in.jsp?domain=" + domainToValidate);
+
+%>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/validation_success_ajaxprocessor.jsp
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/validation_success_ajaxprocessor.jsp b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/validation_success_ajaxprocessor.jsp
new file mode 100644
index 0000000..15aec9b
--- /dev/null
+++ b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/web/account-mgt/validation_success_ajaxprocessor.jsp
@@ -0,0 +1,49 @@
+<!--
+ ~ 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.
+ -->
+<%@ page import="org.wso2.carbon.account.mgt.ui.clients.AccountMgtClient" %>
+<%@ page import="org.wso2.carbon.registry.core.exceptions.RegistryException" %>
+<%@ page import="org.wso2.carbon.utils.multitenancy.MultitenantConstants" %>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%
+try {
+    String domainToRegister = (String)session.getAttribute("temp-domain-to-register");
+    String successKey = (String)session.getAttribute("validate-domain-success-key");
+    AccountMgtClient client = new AccountMgtClient(config, session);
+    if (client.finishedDomainValidation(domainToRegister, successKey)) {
+
+        //session.setAttribute(MultitenantConstants.TENANT_DOMAIN, domainToRegister);
+        session.setAttribute("domain-validation-success", "true");
+        // redirect to the login page with new domain name
+        response.sendRedirect("/t/" + domainToRegister + "/carbon/account-mgt/account_mgt.jsp");
+        return;
+    } else {
+        session.removeAttribute("temp-domain-to-register");
+        session.removeAttribute("validate-domain-success-key");
+
+        // now redirect to the account_mgt.js with the failure
+        session.setAttribute("domain-validation-failure", "true");
+        response.sendRedirect("../account-mgt/account_mgt.jsp");
+        return;
+    }
+} catch (RegistryException e) {
+%>
+  <div>Error in finishing the validation.</div>
+<%
+    return;
+}
+%>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/pom.xml
----------------------------------------------------------------------
diff --git a/components/pom.xml b/components/pom.xml
index 89d6185..b92dd5d 100644
--- a/components/pom.xml
+++ b/components/pom.xml
@@ -248,6 +248,7 @@
 	<orbit.version.geronimo-jms_1.1_spec>1.1.0.wso2v1</orbit.version.geronimo-jms_1.1_spec>
         <google.guice.wso2.version>3.0.wso2v1</google.guice.wso2.version>
 	<commons-httpclient.version>3.0.1</commons-httpclient.version>
+	<json.wso2.version>2.0.0.wso2v1</json.wso2.version>
         <!--eclipse.osgi.version>3.5.0.v20090520</eclipse.osgi.version>
         <eclipse.osgi.services.version>3.2.0.v20090520-1800</eclipse.osgi.services.version>
         <equinox.commons.logging.version>1.0.4.v200706111724</equinox.commons.logging.version>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/service-stubs/org.wso2.carbon.stratos.common.stub/4.1.0/pom.xml
----------------------------------------------------------------------
diff --git a/service-stubs/org.wso2.carbon.stratos.common.stub/4.1.0/pom.xml b/service-stubs/org.wso2.carbon.stratos.common.stub/4.1.0/pom.xml
deleted file mode 100644
index 41fd61d..0000000
--- a/service-stubs/org.wso2.carbon.stratos.common.stub/4.1.0/pom.xml
+++ /dev/null
@@ -1,120 +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.stratos.common.stub</artifactId>
-    <packaging>bundle</packaging>
-    <name>WSO2 Carbon - Stratos Common Stubs</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/PackageInfoServce.wsdl -u -uw
-                                    -p org.wso2.carbon.stratos.common.packages.stub -o target/generated-code
-                                    -ns2p http://packages.common.stratos.carbon.wso2.org/xsd=org.wso2.carbon.stratos.common.packages.stub,http://services.common.stratos.carbon.wso2.org=org.wso2.carbon.stratos.common.packages.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>
-                        <Export-Package>
-                            org.wso2.carbon.stratos.common.packages.stub.*;version="${carbon.platform.package.export.version}",
-                        </Export-Package>
-                        <Import-Package>
-                            !org.wso2.carbon.stratos.common.packages.stub.*,
-                            *;resolution:=optional
-                        </Import-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>
-            <version>${orbit.version.axis2}</version>
-        </dependency>
-    </dependencies>
-
-</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/service-stubs/org.wso2.carbon.stratos.common.stub/4.1.0/src/main/resources/PackageInfoServce.wsdl
----------------------------------------------------------------------
diff --git a/service-stubs/org.wso2.carbon.stratos.common.stub/4.1.0/src/main/resources/PackageInfoServce.wsdl b/service-stubs/org.wso2.carbon.stratos.common.stub/4.1.0/src/main/resources/PackageInfoServce.wsdl
deleted file mode 100644
index ce0aa54..0000000
--- a/service-stubs/org.wso2.carbon.stratos.common.stub/4.1.0/src/main/resources/PackageInfoServce.wsdl
+++ /dev/null
@@ -1,114 +0,0 @@
-<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ax2375="http://packages.common.stratos.carbon.wso2.org/xsd" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://services.common.stratos.carbon.wso2.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:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://services.common.stratos.carbon.wso2.org">
-    <wsdl:documentation>PackageInfoService</wsdl:documentation>
-    <wsdl:types>
-        <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://packages.common.stratos.carbon.wso2.org/xsd">
-            <xs:complexType name="PackageInfo">
-                <xs:sequence>
-                    <xs:element minOccurs="0" name="bandwidthLimit" type="xs:int" />
-                    <xs:element minOccurs="0" name="bandwidthOveruseCharge" type="xs:int" />
-                    <xs:element minOccurs="0" name="chargePerUser" type="xs:int" />
-                    <xs:element minOccurs="0" name="name" nillable="true" type="xs:string" />
-                    <xs:element minOccurs="0" name="resourceVolumeLimit" type="xs:int" />
-                    <xs:element minOccurs="0" name="subscriptionCharge" type="xs:int" />
-                    <xs:element minOccurs="0" name="usersLimit" type="xs:int" />
-                </xs:sequence>
-            </xs:complexType>
-        </xs:schema>
-        <xs:schema xmlns:ax2376="http://packages.common.stratos.carbon.wso2.org/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://services.common.stratos.carbon.wso2.org">
-            <xs:import namespace="http://packages.common.stratos.carbon.wso2.org/xsd" />
-            <xs:element name="PackageInfoServiceException">
-                <xs:complexType>
-                    <xs:sequence>
-                        <xs:element minOccurs="0" name="PackageInfoServiceException" nillable="true" type="ns:Exception" />
-                    </xs:sequence>
-                </xs:complexType>
-            </xs:element>
-            <xs:complexType name="Exception">
-                <xs:sequence>
-                    <xs:element minOccurs="0" name="Message" nillable="true" type="xs:string" />
-                </xs:sequence>
-            </xs:complexType>
-            <xs:element name="getPackageInfos">
-                <xs:complexType>
-                    <xs:sequence />
-                </xs:complexType>
-            </xs:element>
-            <xs:element name="getPackageInfosResponse">
-                <xs:complexType>
-                    <xs:sequence>
-                        <xs:element maxOccurs="unbounded" minOccurs="0" name="return" nillable="true" type="ax2375:PackageInfo" />
-                    </xs:sequence>
-                </xs:complexType>
-            </xs:element>
-        </xs:schema>
-    </wsdl:types>
-    <wsdl:message name="getPackageInfosRequest">
-        <wsdl:part name="parameters" element="ns:getPackageInfos" />
-    </wsdl:message>
-    <wsdl:message name="getPackageInfosResponse">
-        <wsdl:part name="parameters" element="ns:getPackageInfosResponse" />
-    </wsdl:message>
-    <wsdl:message name="PackageInfoServiceException">
-        <wsdl:part name="parameters" element="ns:PackageInfoServiceException" />
-    </wsdl:message>
-    <wsdl:portType name="PackageInfoServicePortType">
-        <wsdl:operation name="getPackageInfos">
-            <wsdl:input message="ns:getPackageInfosRequest" wsaw:Action="urn:getPackageInfos" />
-            <wsdl:output message="ns:getPackageInfosResponse" wsaw:Action="urn:getPackageInfosResponse" />
-            <wsdl:fault message="ns:PackageInfoServiceException" name="PackageInfoServiceException" wsaw:Action="urn:getPackageInfosPackageInfoServiceException" />
-        </wsdl:operation>
-    </wsdl:portType>
-    <wsdl:binding name="PackageInfoServiceSoap11Binding" type="ns:PackageInfoServicePortType">
-        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
-        <wsdl:operation name="getPackageInfos">
-            <soap:operation soapAction="urn:getPackageInfos" style="document" />
-            <wsdl:input>
-                <soap:body use="literal" />
-            </wsdl:input>
-            <wsdl:output>
-                <soap:body use="literal" />
-            </wsdl:output>
-            <wsdl:fault name="PackageInfoServiceException">
-                <soap:fault use="literal" name="PackageInfoServiceException" />
-            </wsdl:fault>
-        </wsdl:operation>
-    </wsdl:binding>
-    <wsdl:binding name="PackageInfoServiceSoap12Binding" type="ns:PackageInfoServicePortType">
-        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
-        <wsdl:operation name="getPackageInfos">
-            <soap12:operation soapAction="urn:getPackageInfos" style="document" />
-            <wsdl:input>
-                <soap12:body use="literal" />
-            </wsdl:input>
-            <wsdl:output>
-                <soap12:body use="literal" />
-            </wsdl:output>
-            <wsdl:fault name="PackageInfoServiceException">
-                <soap12:fault use="literal" name="PackageInfoServiceException" />
-            </wsdl:fault>
-        </wsdl:operation>
-    </wsdl:binding>
-    <wsdl:binding name="PackageInfoServiceHttpBinding" type="ns:PackageInfoServicePortType">
-        <http:binding verb="POST" />
-        <wsdl:operation name="getPackageInfos">
-            <http:operation location="getPackageInfos" />
-            <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="PackageInfoService">
-        <wsdl:port name="PackageInfoServiceHttpsSoap11Endpoint" binding="ns:PackageInfoServiceSoap11Binding">
-            <soap:address location="https://10.100.2.91:9443/services/PackageInfoService.PackageInfoServiceHttpsSoap11Endpoint/" />
-        </wsdl:port>
-        <wsdl:port name="PackageInfoServiceHttpsSoap12Endpoint" binding="ns:PackageInfoServiceSoap12Binding">
-            <soap12:address location="https://10.100.2.91:9443/services/PackageInfoService.PackageInfoServiceHttpsSoap12Endpoint/" />
-        </wsdl:port>
-        <wsdl:port name="PackageInfoServiceHttpsEndpoint" binding="ns:PackageInfoServiceHttpBinding">
-            <http:address location="https://10.100.2.91:9443/services/PackageInfoService.PackageInfoServiceHttpsEndpoint/" />
-        </wsdl:port>
-    </wsdl:service>
-</wsdl:definitions>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/service-stubs/pom.xml
----------------------------------------------------------------------
diff --git a/service-stubs/pom.xml b/service-stubs/pom.xml
index e38bd9b..b8b8046 100644
--- a/service-stubs/pom.xml
+++ b/service-stubs/pom.xml
@@ -40,6 +40,7 @@
 	<module>org.apache.stratos.adc.mgt.stub/4.1.3</module>
 	<module>org.apache.stratos.account.mgt.stub/4.1.3</module>
 	<module>org.apache.stratos.tenant.mgt.stub/4.1.0</module>
+	<module>org.apache.stratos.common.stub</module>
     </modules>
 
     <build>


[4/5] git commit: Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-stratos

Posted by is...@apache.org.
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-stratos


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

Branch: refs/heads/master
Commit: b9e5956a39e0ab04d920711158c260d918a6a79f
Parents: 8fa70e9 0fb451c
Author: Isuru <is...@wso2.com>
Authored: Mon Jul 8 22:33:51 2013 +0530
Committer: Isuru <is...@wso2.com>
Committed: Mon Jul 8 22:33:51 2013 +0530

----------------------------------------------------------------------
 components/stratos/org.wso2.carbon.email.sender/2.1.0/pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------



[2/5] git commit: committing account mgt components

Posted by is...@apache.org.
committing account mgt components


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

Branch: refs/heads/master
Commit: 8fa70e9ce9eafd0ee3245aebf019c59a7d77250f
Parents: f0e11c6
Author: Isuru <is...@wso2.com>
Authored: Mon Jul 8 18:53:30 2013 +0530
Committer: Isuru <is...@wso2.com>
Committed: Mon Jul 8 18:53:30 2013 +0530

----------------------------------------------------------------------
 components/account-mgt/.pom.xml.swp             | Bin 12288 -> 0 bytes
 .../2.1.0/pom.xml                               |  89 +++
 .../mgt/ui/clients/AccountMgtClient.java        | 176 ++++++
 .../mgt/ui/clients/EmailValidationClient.java   |  95 +++
 .../ui/clients/PackageInfoServiceClient.java    |  97 +++
 .../account/mgt/ui/clients/UsagePlanClient.java | 104 +++
 .../wso2/carbon/account/mgt/ui/utils/Util.java  | 117 ++++
 .../src/main/resources/AccountMgtService.wsdl   | 628 +++++++++++++++++++
 .../main/resources/EmailValidationService.wsdl  |  95 +++
 .../src/main/resources/META-INF/component.xml   |  35 ++
 .../account/mgt/ui/i18n/JSResources.properties  |   5 +
 .../account/mgt/ui/i18n/Resources.properties    |  24 +
 .../resources/web/account-mgt/account_mgt.jsp   | 526 ++++++++++++++++
 .../web/account-mgt/css/account_mgt.css         |  15 +
 .../web/account-mgt/css/update_profile.css      |  29 +
 .../deactivate_account_ajaxprocessor.jsp        |  38 ++
 .../web/account-mgt/docs/aboutUsagePlans.html   | 104 +++
 .../web/account-mgt/docs/images/account-mgt.png | Bin 0 -> 39610 bytes
 .../web/account-mgt/docs/userguide.html         |  44 ++
 .../get_package_info_ajaxprocessor.jsp          |  39 ++
 .../web/account-mgt/images/account-mgt-icon.gif | Bin 0 -> 1041 bytes
 .../web/account-mgt/images/ajax-loader.gif      | Bin 0 -> 673 bytes
 .../resources/web/account-mgt/images/right.gif  | Bin 0 -> 924 bytes
 .../resources/web/account-mgt/images/wrong.gif  | Bin 0 -> 976 bytes
 .../account-mgt/init_payment_ajaxprocessor.jsp  |  99 +++
 .../resources/web/account-mgt/js/account_mgt.js | 214 +++++++
 .../update_contact_ajaxprocessor.jsp            |  35 ++
 .../account-mgt/update_profile_processor.jsp    |  62 ++
 .../web/account-mgt/update_verifier.jsp         |  56 ++
 ...update_verifier_redirector_ajaxprocessor.jsp |  30 +
 .../validate_domain_ajaxprocessor.jsp           |  29 +
 .../validation_success_ajaxprocessor.jsp        |  49 ++
 components/pom.xml                              |   1 +
 .../4.1.0/pom.xml                               | 120 ----
 .../src/main/resources/PackageInfoServce.wsdl   | 114 ----
 service-stubs/pom.xml                           |   1 +
 36 files changed, 2836 insertions(+), 234 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/.pom.xml.swp
----------------------------------------------------------------------
diff --git a/components/account-mgt/.pom.xml.swp b/components/account-mgt/.pom.xml.swp
deleted file mode 100644
index 203e0c9..0000000
Binary files a/components/account-mgt/.pom.xml.swp and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/pom.xml
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/pom.xml b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/pom.xml
new file mode 100644
index 0000000..15619fc
--- /dev/null
+++ b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/pom.xml
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+# Copyright (c) 2008, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
+#
+# Licensed 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>account-mgt-parent</artifactId>
+        <version>2.1.0</version>
+<relativePath>../../pom.xml</relativePath>
+    </parent>
+
+    <modelVersion>4.0.0</modelorg.apache.stratos.account.mgt.uiwso2.carbon.account.mgt.ui</artifactId>
+    <version>2.1.0</version>
+    <packaging>bundle</packaging>
+    <name>WSO2 Stratos - Account Managment - User Interface</name>
+
+    <build>
+
+        <plugins>
+
+            <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.account.mgt.ui.*,
+                        </Export-Package>
+                        <Import-Package>
+                            org.wso2.carbon.tenant.mgt.stub.*; version="${carbon.platform.package.import.version.range}",
+                            javax.servlet;version="${imp.pkg.version.javax.servlet}",
+                            javax.servlet.http;version="${imp.pkg.version.javax.servlet}",
+                            org.wso2.carbon.account.mgt.stub.*; version="${carbon.platform.package.import.version.range}",
+                            *;resolution:=optional
+                        </Import-Package>
+                        <Carbon-Component>UIBundle</Carbon-Component>
+                    </instructions>
+                </configuration>
+            </plugin>
+
+        </plugins>
+    </build>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.ui</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.account.mgt.stub</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.tenant.mgt.stub</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.stratos.common</artifactId>
+        </dependency>
+        <dependency>
+          <groupId>org.json.wso2</groupId>
+          <artifactId>json</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>org.wso2.carbon.stratos.common.stub</artifactId>
+        </dependency>
+    </dependencies>
+</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/java/org/wso2/carbon/account/mgt/ui/clients/AccountMgtClient.java
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/java/org/wso2/carbon/account/mgt/ui/clients/AccountMgtClient.java b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/java/org/wso2/carbon/account/mgt/ui/clients/AccountMgtClient.java
new file mode 100644
index 0000000..7f944df
--- /dev/null
+++ b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/java/org/wso2/carbon/account/mgt/ui/clients/AccountMgtClient.java
@@ -0,0 +1,176 @@
+/*
+*  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.
+*/
+package org.wso2.carbon.account.mgt.ui.clients;
+
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.client.Options;
+import org.apache.axis2.client.ServiceClient;
+import org.apache.axis2.context.ConfigurationContext;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.wso2.carbon.CarbonConstants;
+import org.wso2.carbon.account.mgt.stub.beans.xsd.AccountInfoBean;
+import org.wso2.carbon.account.mgt.stub.services.AccountMgtServiceStub;
+import org.wso2.carbon.registry.core.exceptions.RegistryException;
+import org.wso2.carbon.ui.CarbonUIUtil;
+import org.wso2.carbon.utils.ServerConstants;
+
+import javax.servlet.ServletConfig;
+import javax.servlet.http.HttpSession;
+
+public class AccountMgtClient {
+    private static final Log log = LogFactory.getLog(AccountMgtClient.class);
+
+    private AccountMgtServiceStub stub;
+    private String epr;
+
+    public AccountMgtClient(String cookie, String backendServerURL,
+            ConfigurationContext configContext) throws RegistryException {
+
+        epr = backendServerURL + "AccountMgtService";
+
+        try {
+            stub = new AccountMgtServiceStub(configContext, epr);
+
+            ServiceClient client = stub._getServiceClient();
+            Options option = client.getOptions();
+            option.setManageSession(true);
+            option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie);
+
+        } catch (AxisFault axisFault) {
+            String msg = "Failed to initiate AccountMgt service client.";
+            log.error(msg, axisFault);
+            throw new RegistryException(msg, axisFault);
+        }
+    }
+
+    public AccountMgtClient(ServletConfig config, HttpSession session) throws RegistryException {
+
+        String cookie = (String) session.getAttribute(ServerConstants.ADMIN_SERVICE_COOKIE);
+        String backendServerURL = CarbonUIUtil.getServerURL(config.getServletContext(), session);
+        ConfigurationContext configContext =
+                (ConfigurationContext) config.getServletContext().getAttribute(
+                        CarbonConstants.CONFIGURATION_CONTEXT);
+        epr = backendServerURL + "AccountMgtService";
+
+        try {
+            stub = new AccountMgtServiceStub(configContext, epr);
+
+            ServiceClient client = stub._getServiceClient();
+            Options option = client.getOptions();
+            option.setManageSession(true);
+            option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie);
+
+        } catch (AxisFault axisFault) {
+            String msg = "Failed to initiate AccountMgt service client.";
+            log.error(msg, axisFault);
+            throw new RegistryException(msg, axisFault);
+        }
+    }
+
+    public void updateContact(String contactEmail) throws RegistryException {
+        try {
+            stub.updateContact(contactEmail);
+        } catch (Exception e) {
+            String msg = "Failed to update contact.";
+            log.error(msg, e);
+            throw new RegistryException(msg, e);
+        }
+    }
+
+    public String getContact() throws RegistryException {
+        try {
+            return stub.getContact();
+        } catch (Exception e) {
+            String msg = "Failed to get contact.";
+            log.error(msg, e);
+            throw new RegistryException(msg, e);
+        }
+    }
+
+   public boolean updateFullname(AccountInfoBean fullname) throws RegistryException {
+        try {
+            return stub.updateFullname(fullname);
+        } catch (Exception e) {
+            String msg = "Failed to update Fullname.";
+            log.error(msg, e);
+            throw new RegistryException(msg, e);
+        }
+    }
+
+    public AccountInfoBean getFullname() throws RegistryException {
+        try {
+            return stub.getFullname();
+        } catch (Exception e) {
+            String msg = "Failed to get administrator full name.";
+            log.error(msg, e);
+            throw new RegistryException(msg, e);
+        }
+    }
+
+    public void deactivate() throws RegistryException {
+        try {
+            stub.deactivate();
+        } catch (Exception e) {
+            String msg = "Failed to deactivate.";
+            log.error(msg, e);
+            throw new RegistryException(msg, e);
+        }
+    }
+
+    public boolean isDomainValidated() throws RegistryException {
+        try {
+            return stub.isDomainValidated();
+        } catch (Exception e) {
+            String msg = "Failed to check the domain validation.";
+            log.error(msg, e);
+            throw new RegistryException(msg, e);
+        }
+    }
+
+    public boolean finishedDomainValidation(String validatedDomain, String successKey)
+            throws RegistryException {
+        try {
+            return stub.finishedDomainValidation(validatedDomain, successKey);
+        } catch (Exception e) {
+            String msg = "Failed to finish the domain validation.";
+            log.error(msg, e);
+            throw new RegistryException(msg, e);
+        }
+    }
+
+    public boolean checkDomainAvailability(String domainName) throws RegistryException {
+        try {
+            return stub.checkDomainAvailability(domainName);
+        } catch (Exception e) {
+            String msg = "Failed to finish the domain availability.";
+            log.error(msg, e);
+            throw new RegistryException(msg, e);
+        }
+    }
+
+    public boolean isEmailValidated() throws RegistryException {
+        try {
+            return stub.isEmailValidated();
+        } catch (Exception e) {
+            String msg = "Failed to check the email validation.";
+            log.error(msg, e);
+            throw new RegistryException(msg, e);
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/java/org/wso2/carbon/account/mgt/ui/clients/EmailValidationClient.java
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/java/org/wso2/carbon/account/mgt/ui/clients/EmailValidationClient.java b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/java/org/wso2/carbon/account/mgt/ui/clients/EmailValidationClient.java
new file mode 100644
index 0000000..20aeb8d
--- /dev/null
+++ b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/java/org/wso2/carbon/account/mgt/ui/clients/EmailValidationClient.java
@@ -0,0 +1,95 @@
+/*
+*  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.
+*/
+package org.wso2.carbon.account.mgt.ui.clients;
+
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.client.Options;
+import org.apache.axis2.client.ServiceClient;
+import org.apache.axis2.context.ConfigurationContext;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.wso2.carbon.CarbonConstants;
+import org.wso2.carbon.account.mgt.stub.services.EmailValidationServiceStub;
+import org.wso2.carbon.registry.core.exceptions.RegistryException;
+import org.wso2.carbon.ui.CarbonUIUtil;
+import org.wso2.carbon.utils.ServerConstants;
+
+import javax.servlet.ServletConfig;
+import javax.servlet.http.HttpSession;
+
+public class EmailValidationClient {
+     private static final Log log = LogFactory.getLog(EmailValidationClient.class);
+
+    private EmailValidationServiceStub stub;
+    private String epr;
+
+    public EmailValidationClient(
+            String cookie, String backendServerURL, ConfigurationContext configContext)
+            throws RegistryException {
+
+        epr = backendServerURL + "EmailValidationService";
+
+        try {
+            stub = new EmailValidationServiceStub(configContext, epr);
+
+            ServiceClient client = stub._getServiceClient();
+            Options option = client.getOptions();
+            option.setManageSession(true);
+            option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie);
+
+        } catch (AxisFault axisFault) {
+            String msg = "Failed to initiate EmailValidationService service client.";
+            log.error(msg, axisFault);
+            throw new RegistryException(msg, axisFault);
+        }
+    }
+
+    public EmailValidationClient(ServletConfig config, HttpSession session)
+            throws RegistryException {
+
+        String cookie = (String)session.getAttribute(ServerConstants.ADMIN_SERVICE_COOKIE);
+        String backendServerURL = CarbonUIUtil.getServerURL(config.getServletContext(), session);
+        ConfigurationContext configContext = (ConfigurationContext) config.
+                getServletContext().getAttribute(CarbonConstants.CONFIGURATION_CONTEXT);
+        epr = backendServerURL + "EmailValidationService";
+
+        try {
+            stub = new EmailValidationServiceStub(configContext, epr);
+
+            ServiceClient client = stub._getServiceClient();
+            Options option = client.getOptions();
+            option.setManageSession(true);
+            option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie);
+
+        } catch (AxisFault axisFault) {
+            String msg = "Failed to initiate EmailValidationService service client.";
+            log.error(msg, axisFault);
+            throw new RegistryException(msg, axisFault);
+        }
+    }
+
+    public void proceedUpdateContact(String domain, String email, String confirmationKey) throws RegistryException {
+        try {
+            stub.proceedUpdateContact(domain, email, confirmationKey);
+        } catch (Exception e) {
+            String msg = "Failed to proceed update contacts.";
+            log.error(msg, e);
+            throw new RegistryException(msg, e);
+        }
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/java/org/wso2/carbon/account/mgt/ui/clients/PackageInfoServiceClient.java
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/java/org/wso2/carbon/account/mgt/ui/clients/PackageInfoServiceClient.java b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/java/org/wso2/carbon/account/mgt/ui/clients/PackageInfoServiceClient.java
new file mode 100644
index 0000000..adc1576
--- /dev/null
+++ b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/java/org/wso2/carbon/account/mgt/ui/clients/PackageInfoServiceClient.java
@@ -0,0 +1,97 @@
+/*<!--
+~ 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.
+-->*/
+package org.wso2.carbon.account.mgt.ui.clients;
+
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.client.Options;
+import org.apache.axis2.client.ServiceClient;
+import org.apache.axis2.context.ConfigurationContext;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.json.JSONArray;
+import org.json.JSONObject;
+import org.wso2.carbon.registry.core.exceptions.RegistryException;
+import org.wso2.carbon.stratos.common.packages.stub.PackageInfoServiceStub;
+import org.wso2.carbon.stratos.common.packages.stub.PackageInfo;
+
+/**
+ * PackageInfoService client
+ */
+public class PackageInfoServiceClient {
+
+    private static Log log = LogFactory.getLog(PackageInfoServiceClient.class);
+
+    private PackageInfoServiceStub stub;
+    private String epr;
+
+    public PackageInfoServiceClient(
+            String cookie, String backendServerURL, ConfigurationContext configContext)
+            throws Exception {
+
+        epr = backendServerURL + "PackageInfoService";
+
+        try {
+            stub = new PackageInfoServiceStub(configContext, epr);
+
+            ServiceClient client = stub._getServiceClient();
+            Options option = client.getOptions();
+            option.setManageSession(true);
+            option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie);
+
+        } catch (AxisFault axisFault) {
+            String msg = "Failed to initiate PackageInfoService client. " + axisFault.getMessage();
+            log.error(msg, axisFault);
+            throw new RegistryException(msg, axisFault);
+        }
+    }
+
+    public PackageInfo[] getBillingPackages() throws Exception {
+
+        try {
+            return stub.getPackageInfos();
+        } catch (Exception e) {
+            String msg = "Failed to get package information: " + e.getMessage();
+            log.error(msg, e);
+            throw new Exception(msg, e);
+        }
+    }
+
+    public JSONArray getBillingPackagesJsonArray() throws Exception {
+
+        try {
+            PackageInfo[] packageInfoArray = stub.getPackageInfos();
+            JSONArray jsonPackageInfoArray = new JSONArray();
+            for (PackageInfo packageInfo : packageInfoArray) {
+                JSONObject packageInfoObj = new JSONObject();
+                packageInfoObj.put("name", packageInfo.getName());
+                int subscriptionCharge = packageInfo.getSubscriptionCharge();
+                //TODO https://wso2.org/jira/browse/STRATOS-1819
+                StringBuffer charge = new StringBuffer("$" + subscriptionCharge);
+                packageInfoObj.put("subscriptionCharge", charge.toString());
+                jsonPackageInfoArray.put(packageInfoObj);
+            }
+            return jsonPackageInfoArray;
+        } catch (Exception e) {
+            String msg = "Failed to get package information: " + e.getMessage();
+            log.error(msg, e);
+            throw new Exception(msg, e);
+        }
+
+    }
+}
+

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/java/org/wso2/carbon/account/mgt/ui/clients/UsagePlanClient.java
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/java/org/wso2/carbon/account/mgt/ui/clients/UsagePlanClient.java b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/java/org/wso2/carbon/account/mgt/ui/clients/UsagePlanClient.java
new file mode 100644
index 0000000..f5970ca
--- /dev/null
+++ b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/java/org/wso2/carbon/account/mgt/ui/clients/UsagePlanClient.java
@@ -0,0 +1,104 @@
+/*
+*  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.
+*/
+package org.wso2.carbon.account.mgt.ui.clients;
+
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.client.Options;
+import org.apache.axis2.client.ServiceClient;
+import org.apache.axis2.context.ConfigurationContext;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.wso2.carbon.CarbonConstants;
+import org.wso2.carbon.account.mgt.stub.services.BillingDataAccessServiceStub;
+import org.wso2.carbon.account.mgt.stub.services.beans.xsd.Subscription;
+import org.wso2.carbon.registry.core.exceptions.RegistryException;
+import org.wso2.carbon.ui.CarbonUIUtil;
+import org.wso2.carbon.utils.ServerConstants;
+
+import javax.servlet.ServletConfig;
+import javax.servlet.http.HttpSession;
+
+public class UsagePlanClient {
+    private BillingDataAccessServiceStub stub;
+    private static final Log log = LogFactory.getLog(UsagePlanClient.class);
+
+    public UsagePlanClient(ServletConfig config, HttpSession session)
+            throws RegistryException {
+
+        String cookie = (String) session.getAttribute(ServerConstants.ADMIN_SERVICE_COOKIE);
+        String backendServerURL = CarbonUIUtil.getServerURL(config.getServletContext(), session);
+        ConfigurationContext configContext = (ConfigurationContext) config.
+                getServletContext().getAttribute(CarbonConstants.CONFIGURATION_CONTEXT);
+        String epr = backendServerURL + "BillingDataAccessService";
+
+        try {
+            stub = new BillingDataAccessServiceStub(configContext, epr);
+            ServiceClient client = stub._getServiceClient();
+            Options option = client.getOptions();
+            option.setManageSession(true);
+            option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie);
+
+        } catch (AxisFault axisFault) {
+            String msg = "Failed to initiate Add Services service client. " + axisFault.getMessage();
+            log.error(msg, axisFault);
+            throw new RegistryException(msg, axisFault);
+        }
+    }
+
+
+    public boolean updateUsagePlan(String usagePlanName) {
+        try {
+            stub.changeSubscriptionByTenant(usagePlanName);
+        } catch (Exception e) {
+            return false;
+        }
+        return true;
+    }
+
+    public String getUsagePlanName(String tenantDomain) throws Exception{
+        Subscription subscription;
+        try {
+            subscription=stub.getActiveSubscriptionOfCustomerByTenant();
+            if(subscription!=null){
+                return subscription.getSubscriptionPlan();
+            } else {
+                return "";
+            }
+        } catch (Exception e) {
+            String msg = "Error occurred while getting the usage plan for tenant: " + tenantDomain;
+            log.error(msg, e);
+            throw new Exception(msg, e);
+        }
+    }
+
+    public boolean deactivateActiveUsagePlan(String tenantDomain){
+        log.info("Deactivating tenant domain: " + tenantDomain);
+        boolean deactivated = false;
+        try{
+            deactivated = stub.deactivateActiveSubscriptionByTenant();
+            if(deactivated){
+                log.info("Active subscription deactivated after deactivating the tenant: " + tenantDomain);
+            }
+        }catch (Exception e){
+            log.error("Error occurred while deactivating active subscription of: " +
+                        tenantDomain + " " + e.getMessage(), e);
+        }
+
+        return deactivated;
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/java/org/wso2/carbon/account/mgt/ui/utils/Util.java
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/java/org/wso2/carbon/account/mgt/ui/utils/Util.java b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/java/org/wso2/carbon/account/mgt/ui/utils/Util.java
new file mode 100644
index 0000000..6c263ae
--- /dev/null
+++ b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/java/org/wso2/carbon/account/mgt/ui/utils/Util.java
@@ -0,0 +1,117 @@
+/*
+ *  Copyright (c) 2005-2008, 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.
+ *
+ */
+package org.wso2.carbon.account.mgt.ui.utils;
+
+import org.apache.axiom.om.OMElement;
+import org.apache.axiom.om.impl.builder.StAXOMBuilder;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.wso2.carbon.account.mgt.stub.beans.xsd.AccountInfoBean;
+import org.wso2.carbon.account.mgt.ui.clients.AccountMgtClient;
+import org.wso2.carbon.account.mgt.ui.clients.UsagePlanClient;
+
+import javax.servlet.ServletConfig;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpSession;
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLStreamReader;
+import java.io.StringReader;
+import java.util.Iterator;
+
+public class Util {
+    private static final Log log = LogFactory.getLog(Util.class);
+    
+    public static HttpServletRequest readIntermediateData(HttpServletRequest request,String data){
+        try{
+            XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(new StringReader(data));
+            StAXOMBuilder builder = new StAXOMBuilder(parser);
+            OMElement documentElement =  builder.getDocumentElement();
+            Iterator it = documentElement.getChildElements();
+            while(it.hasNext()){
+                OMElement element = (OMElement)it.next();
+                if ("admin".equals(element.getLocalName())) {
+                    request.setAttribute("admin",element.getText());
+                } else if ("email".equals(element.getLocalName())) {
+                    request.setAttribute("email",element.getText());
+                } else if ("tenantDomain".equals(element.getLocalName())
+                           && request.getAttribute("tenantDomain") == null) {
+                    request.setAttribute("tenantDomain",element.getText());
+                } else if ("confirmationKey".equals(element.getLocalName())) {
+                    request.setAttribute("confirmationKey",element.getText());
+                }
+            }
+        }catch(Exception e){
+            log.error("Error parsing xml",e);
+        }
+        return request;
+    }
+
+    public static boolean updateFullname(
+            HttpServletRequest request,
+            ServletConfig config,
+            HttpSession session) throws Exception {
+
+        AccountInfoBean accountInfoBean = new AccountInfoBean();
+        String firstname = "", lastname = "";
+        try {
+            firstname = request.getParameter("firstname");
+            lastname = request.getParameter("lastname");
+            accountInfoBean.setFirstname(firstname);
+            accountInfoBean.setLastname(lastname);
+            AccountMgtClient client = new AccountMgtClient(config, session);
+            return client.updateFullname(accountInfoBean);
+        } catch (Exception e) {
+            String msg = "Failed to update tenant with firstname: " + firstname;
+            log.error(msg, e);
+            throw new Exception(msg, e);
+        }
+    }
+    public static String getUsagePlanName(ServletConfig config,
+                                           HttpSession session) throws Exception {
+        try{
+            String tenantDomain=(String)session.getAttribute("tenantDomain");
+            UsagePlanClient client=new UsagePlanClient(config, session);
+            return client.getUsagePlanName(tenantDomain);         
+        }
+        catch (Exception e){
+            String msg = "Failed to get usage plan for tenant";
+            log.error(msg, e);
+            throw new Exception(msg, e);
+        }
+    }
+
+    public static boolean updateUsagePlan( HttpServletRequest request, ServletConfig config,
+                                           HttpSession session) throws Exception {
+        boolean updated = false;
+        String tenantDomain="";
+        try{
+            tenantDomain=(String)session.getAttribute("tenantDomain");
+            String usagePlanName=(String)request.getParameter("selectedUsagePlan");
+            UsagePlanClient client=new UsagePlanClient(config, session);
+            updated = client.updateUsagePlan(usagePlanName);
+        }
+       catch (Exception e){
+            String msg = "Failed to update the usage plan for tenant: " + tenantDomain;
+            log.error(msg, e);
+            throw new Exception(msg, e);
+        }
+        return updated;
+    }
+    
+}

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/AccountMgtService.wsdl
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/AccountMgtService.wsdl b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/AccountMgtService.wsdl
new file mode 100644
index 0000000..f5aa207
--- /dev/null
+++ b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/AccountMgtService.wsdl
@@ -0,0 +1,628 @@
+<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://services.mgt.account.carbon.wso2.org" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ax21="http://beans.mgt.account.carbon.wso2.org/xsd" 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:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://services.mgt.account.carbon.wso2.org">
+    <wsdl:documentation>AccountMgtService</wsdl:documentation>
+    <wsdl:types>
+        <xs:schema xmlns:ax22="http://beans.mgt.account.carbon.wso2.org/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://services.mgt.account.carbon.wso2.org">
+            <xs:import namespace="http://beans.mgt.account.carbon.wso2.org/xsd" />
+            <xs:element name="updateFullnameException">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="updateFullnameException" nillable="true" type="ns:Exception" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:complexType name="Exception">
+                <xs:sequence>
+                    <xs:element minOccurs="0" name="Message" nillable="true" type="xs:string" />
+                </xs:sequence>
+            </xs:complexType>
+            <xs:element name="updateFullname">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="accountInfoBean" nillable="true" type="ax21:AccountInfoBean" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="updateFullnameResponse">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="return" type="xs:boolean" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="updateContactException">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="updateContactException" nillable="true" type="ns:Exception" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="updateContact">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="contactEmail" nillable="true" type="xs:string" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="isEmailValidatedException">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="isEmailValidatedException" nillable="true" type="ns:Exception" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="isEmailValidated">
+                <xs:complexType>
+                    <xs:sequence />
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="isEmailValidatedResponse">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="return" type="xs:boolean" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="isDomainValidatedException">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="isDomainValidatedException" nillable="true" type="ns:Exception" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="isDomainValidated">
+                <xs:complexType>
+                    <xs:sequence />
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="isDomainValidatedResponse">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="return" type="xs:boolean" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="getFullnameException">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="getFullnameException" nillable="true" type="ns:Exception" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="getFullname">
+                <xs:complexType>
+                    <xs:sequence />
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="getFullnameResponse">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="return" nillable="true" type="ax21:AccountInfoBean" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="getContactException">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="getContactException" nillable="true" type="ns:Exception" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="getContact">
+                <xs:complexType>
+                    <xs:sequence />
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="getContactResponse">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="return" nillable="true" type="xs:string" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="finishedDomainValidationException">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="finishedDomainValidationException" nillable="true" type="ns:Exception" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="finishedDomainValidation">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="validatedDomain" nillable="true" type="xs:string" />
+                        <xs:element minOccurs="0" name="successKey" nillable="true" type="xs:string" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="finishedDomainValidationResponse">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="return" type="xs:boolean" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="deactivateException">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="deactivateException" nillable="true" type="ns:Exception" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="deactivate">
+                <xs:complexType>
+                    <xs:sequence />
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="checkDomainAvailabilityException">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="checkDomainAvailabilityException" nillable="true" type="ns:Exception" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="checkDomainAvailability">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="domainName" nillable="true" type="xs:string" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="checkDomainAvailabilityResponse">
+                <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.account.carbon.wso2.org/xsd">
+            <xs:complexType name="AccountInfoBean">
+                <xs:sequence>
+                    <xs:element minOccurs="0" name="firstname" nillable="true" type="xs:string" />
+                    <xs:element minOccurs="0" name="lastname" nillable="true" type="xs:string" />
+                </xs:sequence>
+            </xs:complexType>
+        </xs:schema>
+    </wsdl:types>
+    <wsdl:message name="checkDomainAvailabilityRequest">
+        <wsdl:part name="parameters" element="ns:checkDomainAvailability" />
+    </wsdl:message>
+    <wsdl:message name="checkDomainAvailabilityResponse">
+        <wsdl:part name="parameters" element="ns:checkDomainAvailabilityResponse" />
+    </wsdl:message>
+    <wsdl:message name="checkDomainAvailabilityException">
+        <wsdl:part name="parameters" element="ns:checkDomainAvailabilityException" />
+    </wsdl:message>
+    <wsdl:message name="getContactRequest">
+        <wsdl:part name="parameters" element="ns:getContact" />
+    </wsdl:message>
+    <wsdl:message name="getContactResponse">
+        <wsdl:part name="parameters" element="ns:getContactResponse" />
+    </wsdl:message>
+    <wsdl:message name="getContactException">
+        <wsdl:part name="parameters" element="ns:getContactException" />
+    </wsdl:message>
+    <wsdl:message name="isEmailValidatedRequest">
+        <wsdl:part name="parameters" element="ns:isEmailValidated" />
+    </wsdl:message>
+    <wsdl:message name="isEmailValidatedResponse">
+        <wsdl:part name="parameters" element="ns:isEmailValidatedResponse" />
+    </wsdl:message>
+    <wsdl:message name="isEmailValidatedException">
+        <wsdl:part name="parameters" element="ns:isEmailValidatedException" />
+    </wsdl:message>
+    <wsdl:message name="updateFullnameRequest">
+        <wsdl:part name="parameters" element="ns:updateFullname" />
+    </wsdl:message>
+    <wsdl:message name="updateFullnameResponse">
+        <wsdl:part name="parameters" element="ns:updateFullnameResponse" />
+    </wsdl:message>
+    <wsdl:message name="updateFullnameException">
+        <wsdl:part name="parameters" element="ns:updateFullnameException" />
+    </wsdl:message>
+    <wsdl:message name="isDomainValidatedRequest">
+        <wsdl:part name="parameters" element="ns:isDomainValidated" />
+    </wsdl:message>
+    <wsdl:message name="isDomainValidatedResponse">
+        <wsdl:part name="parameters" element="ns:isDomainValidatedResponse" />
+    </wsdl:message>
+    <wsdl:message name="isDomainValidatedException">
+        <wsdl:part name="parameters" element="ns:isDomainValidatedException" />
+    </wsdl:message>
+    <wsdl:message name="deactivateRequest">
+        <wsdl:part name="parameters" element="ns:deactivate" />
+    </wsdl:message>
+    <wsdl:message name="deactivateResponse" />
+    <wsdl:message name="deactivateException">
+        <wsdl:part name="parameters" element="ns:deactivateException" />
+    </wsdl:message>
+    <wsdl:message name="getFullnameRequest">
+        <wsdl:part name="parameters" element="ns:getFullname" />
+    </wsdl:message>
+    <wsdl:message name="getFullnameResponse">
+        <wsdl:part name="parameters" element="ns:getFullnameResponse" />
+    </wsdl:message>
+    <wsdl:message name="getFullnameException">
+        <wsdl:part name="parameters" element="ns:getFullnameException" />
+    </wsdl:message>
+    <wsdl:message name="finishedDomainValidationRequest">
+        <wsdl:part name="parameters" element="ns:finishedDomainValidation" />
+    </wsdl:message>
+    <wsdl:message name="finishedDomainValidationResponse">
+        <wsdl:part name="parameters" element="ns:finishedDomainValidationResponse" />
+    </wsdl:message>
+    <wsdl:message name="finishedDomainValidationException">
+        <wsdl:part name="parameters" element="ns:finishedDomainValidationException" />
+    </wsdl:message>
+    <wsdl:message name="updateContactRequest">
+        <wsdl:part name="parameters" element="ns:updateContact" />
+    </wsdl:message>
+    <wsdl:message name="updateContactResponse" />
+    <wsdl:message name="updateContactException">
+        <wsdl:part name="parameters" element="ns:updateContactException" />
+    </wsdl:message>
+    <wsdl:portType name="AccountMgtServicePortType">
+        <wsdl:operation name="checkDomainAvailability">
+            <wsdl:input message="ns:checkDomainAvailabilityRequest" wsaw:Action="urn:checkDomainAvailability" />
+            <wsdl:output message="ns:checkDomainAvailabilityResponse" wsaw:Action="urn:checkDomainAvailabilityResponse" />
+            <wsdl:fault message="ns:checkDomainAvailabilityException" name="checkDomainAvailabilityException" wsaw:Action="urn:checkDomainAvailabilitycheckDomainAvailabilityException" />
+        </wsdl:operation>
+        <wsdl:operation name="getContact">
+            <wsdl:input message="ns:getContactRequest" wsaw:Action="urn:getContact" />
+            <wsdl:output message="ns:getContactResponse" wsaw:Action="urn:getContactResponse" />
+            <wsdl:fault message="ns:getContactException" name="getContactException" wsaw:Action="urn:getContactgetContactException" />
+        </wsdl:operation>
+        <wsdl:operation name="isEmailValidated">
+            <wsdl:input message="ns:isEmailValidatedRequest" wsaw:Action="urn:isEmailValidated" />
+            <wsdl:output message="ns:isEmailValidatedResponse" wsaw:Action="urn:isEmailValidatedResponse" />
+            <wsdl:fault message="ns:isEmailValidatedException" name="isEmailValidatedException" wsaw:Action="urn:isEmailValidatedisEmailValidatedException" />
+        </wsdl:operation>
+        <wsdl:operation name="updateFullname">
+            <wsdl:input message="ns:updateFullnameRequest" wsaw:Action="urn:updateFullname" />
+            <wsdl:output message="ns:updateFullnameResponse" wsaw:Action="urn:updateFullnameResponse" />
+            <wsdl:fault message="ns:updateFullnameException" name="updateFullnameException" wsaw:Action="urn:updateFullnameupdateFullnameException" />
+        </wsdl:operation>
+        <wsdl:operation name="isDomainValidated">
+            <wsdl:input message="ns:isDomainValidatedRequest" wsaw:Action="urn:isDomainValidated" />
+            <wsdl:output message="ns:isDomainValidatedResponse" wsaw:Action="urn:isDomainValidatedResponse" />
+            <wsdl:fault message="ns:isDomainValidatedException" name="isDomainValidatedException" wsaw:Action="urn:isDomainValidatedisDomainValidatedException" />
+        </wsdl:operation>
+        <wsdl:operation name="deactivate">
+            <wsdl:input message="ns:deactivateRequest" wsaw:Action="urn:deactivate" />
+            <wsdl:output message="ns:deactivateResponse" wsaw:Action="urn:deactivateResponse" />
+            <wsdl:fault message="ns:deactivateException" name="deactivateException" wsaw:Action="urn:deactivatedeactivateException" />
+        </wsdl:operation>
+        <wsdl:operation name="getFullname">
+            <wsdl:input message="ns:getFullnameRequest" wsaw:Action="urn:getFullname" />
+            <wsdl:output message="ns:getFullnameResponse" wsaw:Action="urn:getFullnameResponse" />
+            <wsdl:fault message="ns:getFullnameException" name="getFullnameException" wsaw:Action="urn:getFullnamegetFullnameException" />
+        </wsdl:operation>
+        <wsdl:operation name="finishedDomainValidation">
+            <wsdl:input message="ns:finishedDomainValidationRequest" wsaw:Action="urn:finishedDomainValidation" />
+            <wsdl:output message="ns:finishedDomainValidationResponse" wsaw:Action="urn:finishedDomainValidationResponse" />
+            <wsdl:fault message="ns:finishedDomainValidationException" name="finishedDomainValidationException" wsaw:Action="urn:finishedDomainValidationfinishedDomainValidationException" />
+        </wsdl:operation>
+        <wsdl:operation name="updateContact">
+            <wsdl:input message="ns:updateContactRequest" wsaw:Action="urn:updateContact" />
+            <wsdl:output message="ns:updateContactResponse" wsaw:Action="urn:updateContactResponse" />
+            <wsdl:fault message="ns:updateContactException" name="updateContactException" wsaw:Action="urn:updateContactupdateContactException" />
+        </wsdl:operation>
+    </wsdl:portType>
+    <wsdl:binding name="AccountMgtServiceSoap11Binding" type="ns:AccountMgtServicePortType">
+        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+        <wsdl:operation name="checkDomainAvailability">
+            <soap:operation soapAction="urn:checkDomainAvailability" style="document" />
+            <wsdl:input>
+                <soap:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="checkDomainAvailabilityException">
+                <soap:fault use="literal" name="checkDomainAvailabilityException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="getContact">
+            <soap:operation soapAction="urn:getContact" style="document" />
+            <wsdl:input>
+                <soap:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="getContactException">
+                <soap:fault use="literal" name="getContactException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="isEmailValidated">
+            <soap:operation soapAction="urn:isEmailValidated" style="document" />
+            <wsdl:input>
+                <soap:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="isEmailValidatedException">
+                <soap:fault use="literal" name="isEmailValidatedException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="updateFullname">
+            <soap:operation soapAction="urn:updateFullname" style="document" />
+            <wsdl:input>
+                <soap:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="updateFullnameException">
+                <soap:fault use="literal" name="updateFullnameException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="isDomainValidated">
+            <soap:operation soapAction="urn:isDomainValidated" style="document" />
+            <wsdl:input>
+                <soap:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="isDomainValidatedException">
+                <soap:fault use="literal" name="isDomainValidatedException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="deactivate">
+            <soap:operation soapAction="urn:deactivate" style="document" />
+            <wsdl:input>
+                <soap:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="deactivateException">
+                <soap:fault use="literal" name="deactivateException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="getFullname">
+            <soap:operation soapAction="urn:getFullname" style="document" />
+            <wsdl:input>
+                <soap:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="getFullnameException">
+                <soap:fault use="literal" name="getFullnameException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="finishedDomainValidation">
+            <soap:operation soapAction="urn:finishedDomainValidation" style="document" />
+            <wsdl:input>
+                <soap:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="finishedDomainValidationException">
+                <soap:fault use="literal" name="finishedDomainValidationException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="updateContact">
+            <soap:operation soapAction="urn:updateContact" style="document" />
+            <wsdl:input>
+                <soap:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="updateContactException">
+                <soap:fault use="literal" name="updateContactException" />
+            </wsdl:fault>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:binding name="AccountMgtServiceSoap12Binding" type="ns:AccountMgtServicePortType">
+        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+        <wsdl:operation name="checkDomainAvailability">
+            <soap12:operation soapAction="urn:checkDomainAvailability" style="document" />
+            <wsdl:input>
+                <soap12:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="checkDomainAvailabilityException">
+                <soap12:fault use="literal" name="checkDomainAvailabilityException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="getContact">
+            <soap12:operation soapAction="urn:getContact" style="document" />
+            <wsdl:input>
+                <soap12:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="getContactException">
+                <soap12:fault use="literal" name="getContactException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="isEmailValidated">
+            <soap12:operation soapAction="urn:isEmailValidated" style="document" />
+            <wsdl:input>
+                <soap12:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="isEmailValidatedException">
+                <soap12:fault use="literal" name="isEmailValidatedException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="updateFullname">
+            <soap12:operation soapAction="urn:updateFullname" style="document" />
+            <wsdl:input>
+                <soap12:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="updateFullnameException">
+                <soap12:fault use="literal" name="updateFullnameException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="isDomainValidated">
+            <soap12:operation soapAction="urn:isDomainValidated" style="document" />
+            <wsdl:input>
+                <soap12:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="isDomainValidatedException">
+                <soap12:fault use="literal" name="isDomainValidatedException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="deactivate">
+            <soap12:operation soapAction="urn:deactivate" style="document" />
+            <wsdl:input>
+                <soap12:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="deactivateException">
+                <soap12:fault use="literal" name="deactivateException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="getFullname">
+            <soap12:operation soapAction="urn:getFullname" style="document" />
+            <wsdl:input>
+                <soap12:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="getFullnameException">
+                <soap12:fault use="literal" name="getFullnameException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="finishedDomainValidation">
+            <soap12:operation soapAction="urn:finishedDomainValidation" style="document" />
+            <wsdl:input>
+                <soap12:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="finishedDomainValidationException">
+                <soap12:fault use="literal" name="finishedDomainValidationException" />
+            </wsdl:fault>
+        </wsdl:operation>
+        <wsdl:operation name="updateContact">
+            <soap12:operation soapAction="urn:updateContact" style="document" />
+            <wsdl:input>
+                <soap12:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="updateContactException">
+                <soap12:fault use="literal" name="updateContactException" />
+            </wsdl:fault>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:binding name="AccountMgtServiceHttpBinding" type="ns:AccountMgtServicePortType">
+        <http:binding verb="POST" />
+        <wsdl:operation name="checkDomainAvailability">
+            <http:operation location="checkDomainAvailability" />
+            <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="getContact">
+            <http:operation location="getContact" />
+            <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="isEmailValidated">
+            <http:operation location="isEmailValidated" />
+            <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="updateFullname">
+            <http:operation location="updateFullname" />
+            <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="isDomainValidated">
+            <http:operation location="isDomainValidated" />
+            <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="deactivate">
+            <http:operation location="deactivate" />
+            <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="getFullname">
+            <http:operation location="getFullname" />
+            <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="finishedDomainValidation">
+            <http:operation location="finishedDomainValidation" />
+            <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="updateContact">
+            <http:operation location="updateContact" />
+            <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="AccountMgtService">
+        <wsdl:port name="AccountMgtServiceHttpsSoap11Endpoint" binding="ns:AccountMgtServiceSoap11Binding">
+            <soap:address location="https://192.168.1.100:9443/services/AccountMgtService.AccountMgtServiceHttpsSoap11Endpoint/" />
+        </wsdl:port>
+        <wsdl:port name="AccountMgtServiceHttpsSoap12Endpoint" binding="ns:AccountMgtServiceSoap12Binding">
+            <soap12:address location="https://192.168.1.100:9443/services/AccountMgtService.AccountMgtServiceHttpsSoap12Endpoint/" />
+        </wsdl:port>
+        <wsdl:port name="AccountMgtServiceHttpsEndpoint" binding="ns:AccountMgtServiceHttpBinding">
+            <http:address location="https://192.168.1.100:9443/services/AccountMgtService.AccountMgtServiceHttpsEndpoint/" />
+        </wsdl:port>
+    </wsdl:service>
+</wsdl:definitions>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/EmailValidationService.wsdl
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/EmailValidationService.wsdl b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/EmailValidationService.wsdl
new file mode 100644
index 0000000..7cb056f
--- /dev/null
+++ b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/EmailValidationService.wsdl
@@ -0,0 +1,95 @@
+<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://services.mgt.account.carbon.wso2.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:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://services.mgt.account.carbon.wso2.org">
+    <wsdl:documentation>EmailValidationService</wsdl:documentation>
+    <wsdl:types>
+        <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://services.mgt.account.carbon.wso2.org">
+            <xs:element name="proceedUpdateContactException">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="proceedUpdateContactException" nillable="true" type="ns:Exception" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:complexType name="Exception">
+                <xs:sequence>
+                    <xs:element minOccurs="0" name="Message" nillable="true" type="xs:string" />
+                </xs:sequence>
+            </xs:complexType>
+            <xs:element name="proceedUpdateContact">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="domain" nillable="true" type="xs:string" />
+                        <xs:element minOccurs="0" name="email" nillable="true" type="xs:string" />
+                        <xs:element minOccurs="0" name="confirmationKey" nillable="true" type="xs:string" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+        </xs:schema>
+    </wsdl:types>
+    <wsdl:message name="proceedUpdateContactRequest">
+        <wsdl:part name="parameters" element="ns:proceedUpdateContact" />
+    </wsdl:message>
+    <wsdl:message name="proceedUpdateContactResponse" />
+    <wsdl:message name="proceedUpdateContactException">
+        <wsdl:part name="parameters" element="ns:proceedUpdateContactException" />
+    </wsdl:message>
+    <wsdl:portType name="EmailValidationServicePortType">
+        <wsdl:operation name="proceedUpdateContact">
+            <wsdl:input message="ns:proceedUpdateContactRequest" wsaw:Action="urn:proceedUpdateContact" />
+            <wsdl:output message="ns:proceedUpdateContactResponse" wsaw:Action="urn:proceedUpdateContactResponse" />
+            <wsdl:fault message="ns:proceedUpdateContactException" name="proceedUpdateContactException" wsaw:Action="urn:proceedUpdateContactproceedUpdateContactException" />
+        </wsdl:operation>
+    </wsdl:portType>
+    <wsdl:binding name="EmailValidationServiceSoap11Binding" type="ns:EmailValidationServicePortType">
+        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+        <wsdl:operation name="proceedUpdateContact">
+            <soap:operation soapAction="urn:proceedUpdateContact" style="document" />
+            <wsdl:input>
+                <soap:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="proceedUpdateContactException">
+                <soap:fault use="literal" name="proceedUpdateContactException" />
+            </wsdl:fault>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:binding name="EmailValidationServiceSoap12Binding" type="ns:EmailValidationServicePortType">
+        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+        <wsdl:operation name="proceedUpdateContact">
+            <soap12:operation soapAction="urn:proceedUpdateContact" style="document" />
+            <wsdl:input>
+                <soap12:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="proceedUpdateContactException">
+                <soap12:fault use="literal" name="proceedUpdateContactException" />
+            </wsdl:fault>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:binding name="EmailValidationServiceHttpBinding" type="ns:EmailValidationServicePortType">
+        <http:binding verb="POST" />
+        <wsdl:operation name="proceedUpdateContact">
+            <http:operation location="proceedUpdateContact" />
+            <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="EmailValidationService">
+        <wsdl:port name="EmailValidationServiceHttpsSoap11Endpoint" binding="ns:EmailValidationServiceSoap11Binding">
+            <soap:address location="https://192.168.1.100:9443/services/EmailValidationService.EmailValidationServiceHttpsSoap11Endpoint/" />
+        </wsdl:port>
+        <wsdl:port name="EmailValidationServiceHttpsSoap12Endpoint" binding="ns:EmailValidationServiceSoap12Binding">
+            <soap12:address location="https://192.168.1.100:9443/services/EmailValidationService.EmailValidationServiceHttpsSoap12Endpoint/" />
+        </wsdl:port>
+        <wsdl:port name="EmailValidationServiceHttpsEndpoint" binding="ns:EmailValidationServiceHttpBinding">
+            <http:address location="https://192.168.1.100:9443/services/EmailValidationService.EmailValidationServiceHttpsEndpoint/" />
+        </wsdl:port>
+    </wsdl:service>
+</wsdl:definitions>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/META-INF/component.xml
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/META-INF/component.xml b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/META-INF/component.xml
new file mode 100644
index 0000000..6170c1f
--- /dev/null
+++ b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/META-INF/component.xml
@@ -0,0 +1,35 @@
+<!--
+ ~ 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.
+ -->
+<component xmlns="http://products.wso2.org/carbon">
+    <!-- sample menu configuration -->
+    <menus>
+        <menu>
+            <id>gaas_account_mgt_menu</id>
+	    <i18n-bundle>org.wso2.carbon.account.mgt.ui.i18n.Resources</i18n-bundle>
+            <i18n-key>account.mgt.menu</i18n-key>            
+            <parent-menu>configure_menu</parent-menu>
+            <link>../account-mgt/account_mgt.jsp</link>
+            <region>region1</region>
+            <order>1</order>
+            <style-class>manage</style-class>
+            <icon>../account-mgt/images/account-mgt-icon.gif</icon>
+            <require-permission>/permission/admin/configure/account</require-permission>
+            <require-not-super-tenant>true</require-not-super-tenant>
+        </menu>
+    </menus>
+</component>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/org/wso2/carbon/account/mgt/ui/i18n/JSResources.properties
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/org/wso2/carbon/account/mgt/ui/i18n/JSResources.properties b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/org/wso2/carbon/account/mgt/ui/i18n/JSResources.properties
new file mode 100644
index 0000000..92f331d
--- /dev/null
+++ b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/org/wso2/carbon/account/mgt/ui/i18n/JSResources.properties
@@ -0,0 +1,5 @@
+domain.available=Domain is available to register.
+domain.unavailable=Sorry!. The Domain is already registered. Please choose a different domain.
+domain.you.own=Currently you have registered an account with this domain. But you have not verified the ownership to it. 
+domain.validation.failed=Domain validation Failed.
+successfully.validated=The ownership of the domain is succesfully validated.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/8fa70e9c/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/org/wso2/carbon/account/mgt/ui/i18n/Resources.properties
----------------------------------------------------------------------
diff --git a/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/org/wso2/carbon/account/mgt/ui/i18n/Resources.properties b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/org/wso2/carbon/account/mgt/ui/i18n/Resources.properties
new file mode 100644
index 0000000..ef72bbb
--- /dev/null
+++ b/components/account-mgt/org.apache.stratos.account.mgt.ui/2.1.0/src/main/resources/org/wso2/carbon/account/mgt/ui/i18n/Resources.properties
@@ -0,0 +1,24 @@
+account.mgt.menu=Account
+account.mgt.title=Account Management
+deactivate.account=Deactivate Account
+deactivate.account.title=Deactivate Account
+contact.information=Contact Information
+admin.information=Administrator Profile
+contact.email=Contact Email
+fullname=Full Name
+firstname=First Name
+lastname=Last Name
+update.contact=Update Contact
+update.profile=Update Profile
+validate.contact=Validate Contact
+deactive.account=Deactivate Account
+deactivate.account.msg=You can deactivate your account from here. <b>Caution: This is not undoable by the tenant.</b>
+deactivate.account.btn=Deactivate Account
+validate.domain.title=Validate Domain Ownership
+current.domain=Your Domain
+validate.domain=Validate Now!
+domain.to.validate=Domain to Validate
+successfully.validated=You have successfully validated your domain name.
+usage.plan.information= Usage Plan Information
+select.usage.plan.for.tenant=Select Usage Plan For Tenant
+select.package.message=According to the selected plan, resources will be allocated to you.\n You can update or downgrade your plan later \n according to your requirements. If you need further information on plans, click "Pricing Info".


[3/5] git commit: adding refactored stratos common stub and changing parent pom version to 3.0.0

Posted by is...@apache.org.
adding refactored stratos common stub and changing parent pom version to 3.0.0


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

Branch: refs/heads/master
Commit: 6a1d1537c772a3d6d0164fa2c438afc968a539b1
Parents: 0fb451c
Author: Isuru <is...@wso2.com>
Authored: Mon Jul 8 22:33:33 2013 +0530
Committer: Isuru <is...@wso2.com>
Committed: Mon Jul 8 22:33:33 2013 +0530

----------------------------------------------------------------------
 components/account-mgt/.pom.xml.swp             | Bin 12288 -> 0 bytes
 .../4.1.3/pom.xml                               |   2 +-
 .../4.1.3/pom.xml                               |   2 +-
 .../org.apache.stratos.common.stub/pom.xml      | 105 +++++++++++++++++
 .../src/main/resources/PackageInfoServce.wsdl   | 114 +++++++++++++++++++
 .../4.1.3/pom.xml                               |   2 +-
 .../4.1.0/pom.xml                               |   2 +-
 service-stubs/pom.xml                           |   1 +
 8 files changed, 224 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/6a1d1537/components/account-mgt/.pom.xml.swp
----------------------------------------------------------------------
diff --git a/components/account-mgt/.pom.xml.swp b/components/account-mgt/.pom.xml.swp
deleted file mode 100644
index 203e0c9..0000000
Binary files a/components/account-mgt/.pom.xml.swp and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/6a1d1537/service-stubs/org.apache.stratos.account.mgt.stub/4.1.3/pom.xml
----------------------------------------------------------------------
diff --git a/service-stubs/org.apache.stratos.account.mgt.stub/4.1.3/pom.xml b/service-stubs/org.apache.stratos.account.mgt.stub/4.1.3/pom.xml
index 8431db5..9d2a9e6 100644
--- a/service-stubs/org.apache.stratos.account.mgt.stub/4.1.3/pom.xml
+++ b/service-stubs/org.apache.stratos.account.mgt.stub/4.1.3/pom.xml
@@ -22,7 +22,7 @@
     <parent>
         <groupId>org.apache.stratos</groupId>
         <artifactId>stratos-service-stubs</artifactId>
-        <version>2.0.0</version>
+        <version>3.0.0</version>
 	<relativePath>../../pom.xml</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/6a1d1537/service-stubs/org.apache.stratos.adc.mgt.stub/4.1.3/pom.xml
----------------------------------------------------------------------
diff --git a/service-stubs/org.apache.stratos.adc.mgt.stub/4.1.3/pom.xml b/service-stubs/org.apache.stratos.adc.mgt.stub/4.1.3/pom.xml
index c8eba94..bf171cb 100644
--- a/service-stubs/org.apache.stratos.adc.mgt.stub/4.1.3/pom.xml
+++ b/service-stubs/org.apache.stratos.adc.mgt.stub/4.1.3/pom.xml
@@ -22,7 +22,7 @@
     <parent>
         <groupId>org.apache.stratos</groupId>
         <artifactId>stratos-service-stubs</artifactId>
-        <version>2.0.0</version>
+        <version>3.0.0</version>
         <relativePath>../../pom.xml</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/6a1d1537/service-stubs/org.apache.stratos.common.stub/pom.xml
----------------------------------------------------------------------
diff --git a/service-stubs/org.apache.stratos.common.stub/pom.xml b/service-stubs/org.apache.stratos.common.stub/pom.xml
new file mode 100644
index 0000000..37cc135
--- /dev/null
+++ b/service-stubs/org.apache.stratos.common.stub/pom.xml
@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+-->
+<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</artifactId>
+        <version>3.0.0</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>org.apache.stratos.common.stub</artifactId>
+    <packaging>bundle</packaging>
+    <name>Apache Stratos - Common Stubs</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/${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/PackageInfoServce.wsdl -u -uw
+                                    -p org.apache.stratos.common.packages.stub -o target/generated-code
+                                    -ns2p http://packages.common.stratos.carbon.wso2.org/xsd=org.apache.stratos.common.packages.stub,http://services.common.stratos.apache.org=org.apache.stratos.common.packages.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>
+                        <Export-Package>
+                            org.apache.stratos.common.packages.stub.*;version="${carbon.platform.package.export.version}",
+                        </Export-Package>
+                        <Import-Package>
+                            !org.apache.stratos.common.packages.stub.*,
+                            *;resolution:=optional
+                        </Import-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/6a1d1537/service-stubs/org.apache.stratos.common.stub/src/main/resources/PackageInfoServce.wsdl
----------------------------------------------------------------------
diff --git a/service-stubs/org.apache.stratos.common.stub/src/main/resources/PackageInfoServce.wsdl b/service-stubs/org.apache.stratos.common.stub/src/main/resources/PackageInfoServce.wsdl
new file mode 100644
index 0000000..eaff69b
--- /dev/null
+++ b/service-stubs/org.apache.stratos.common.stub/src/main/resources/PackageInfoServce.wsdl
@@ -0,0 +1,114 @@
+<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ax2375="http://packages.common.stratos.apache.org/xsd" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://services.common.stratos.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:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://services.common.stratos.apache.org">
+    <wsdl:documentation>PackageInfoService</wsdl:documentation>
+    <wsdl:types>
+        <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://packages.common.stratos.apache.org/xsd">
+            <xs:complexType name="PackageInfo">
+                <xs:sequence>
+                    <xs:element minOccurs="0" name="bandwidthLimit" type="xs:int" />
+                    <xs:element minOccurs="0" name="bandwidthOveruseCharge" type="xs:int" />
+                    <xs:element minOccurs="0" name="chargePerUser" type="xs:int" />
+                    <xs:element minOccurs="0" name="name" nillable="true" type="xs:string" />
+                    <xs:element minOccurs="0" name="resourceVolumeLimit" type="xs:int" />
+                    <xs:element minOccurs="0" name="subscriptionCharge" type="xs:int" />
+                    <xs:element minOccurs="0" name="usersLimit" type="xs:int" />
+                </xs:sequence>
+            </xs:complexType>
+        </xs:schema>
+        <xs:schema xmlns:ax2376="http://packages.common.stratos.apache.org/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://services.common.stratos.apache.org">
+            <xs:import namespace="http://packages.common.stratos.apache.org/xsd" />
+            <xs:element name="PackageInfoServiceException">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="PackageInfoServiceException" nillable="true" type="ns:Exception" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:complexType name="Exception">
+                <xs:sequence>
+                    <xs:element minOccurs="0" name="Message" nillable="true" type="xs:string" />
+                </xs:sequence>
+            </xs:complexType>
+            <xs:element name="getPackageInfos">
+                <xs:complexType>
+                    <xs:sequence />
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="getPackageInfosResponse">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element maxOccurs="unbounded" minOccurs="0" name="return" nillable="true" type="ax2375:PackageInfo" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+        </xs:schema>
+    </wsdl:types>
+    <wsdl:message name="getPackageInfosRequest">
+        <wsdl:part name="parameters" element="ns:getPackageInfos" />
+    </wsdl:message>
+    <wsdl:message name="getPackageInfosResponse">
+        <wsdl:part name="parameters" element="ns:getPackageInfosResponse" />
+    </wsdl:message>
+    <wsdl:message name="PackageInfoServiceException">
+        <wsdl:part name="parameters" element="ns:PackageInfoServiceException" />
+    </wsdl:message>
+    <wsdl:portType name="PackageInfoServicePortType">
+        <wsdl:operation name="getPackageInfos">
+            <wsdl:input message="ns:getPackageInfosRequest" wsaw:Action="urn:getPackageInfos" />
+            <wsdl:output message="ns:getPackageInfosResponse" wsaw:Action="urn:getPackageInfosResponse" />
+            <wsdl:fault message="ns:PackageInfoServiceException" name="PackageInfoServiceException" wsaw:Action="urn:getPackageInfosPackageInfoServiceException" />
+        </wsdl:operation>
+    </wsdl:portType>
+    <wsdl:binding name="PackageInfoServiceSoap11Binding" type="ns:PackageInfoServicePortType">
+        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+        <wsdl:operation name="getPackageInfos">
+            <soap:operation soapAction="urn:getPackageInfos" style="document" />
+            <wsdl:input>
+                <soap:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="PackageInfoServiceException">
+                <soap:fault use="literal" name="PackageInfoServiceException" />
+            </wsdl:fault>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:binding name="PackageInfoServiceSoap12Binding" type="ns:PackageInfoServicePortType">
+        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+        <wsdl:operation name="getPackageInfos">
+            <soap12:operation soapAction="urn:getPackageInfos" style="document" />
+            <wsdl:input>
+                <soap12:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="PackageInfoServiceException">
+                <soap12:fault use="literal" name="PackageInfoServiceException" />
+            </wsdl:fault>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:binding name="PackageInfoServiceHttpBinding" type="ns:PackageInfoServicePortType">
+        <http:binding verb="POST" />
+        <wsdl:operation name="getPackageInfos">
+            <http:operation location="getPackageInfos" />
+            <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="PackageInfoService">
+        <wsdl:port name="PackageInfoServiceHttpsSoap11Endpoint" binding="ns:PackageInfoServiceSoap11Binding">
+            <soap:address location="https://10.100.2.91:9443/services/PackageInfoService.PackageInfoServiceHttpsSoap11Endpoint/" />
+        </wsdl:port>
+        <wsdl:port name="PackageInfoServiceHttpsSoap12Endpoint" binding="ns:PackageInfoServiceSoap12Binding">
+            <soap12:address location="https://10.100.2.91:9443/services/PackageInfoService.PackageInfoServiceHttpsSoap12Endpoint/" />
+        </wsdl:port>
+        <wsdl:port name="PackageInfoServiceHttpsEndpoint" binding="ns:PackageInfoServiceHttpBinding">
+            <http:address location="https://10.100.2.91:9443/services/PackageInfoService.PackageInfoServiceHttpsEndpoint/" />
+        </wsdl:port>
+    </wsdl:service>
+</wsdl:definitions>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/6a1d1537/service-stubs/org.apache.stratos.load.balance.cartridge.autoscaler.service.stub/4.1.3/pom.xml
----------------------------------------------------------------------
diff --git a/service-stubs/org.apache.stratos.load.balance.cartridge.autoscaler.service.stub/4.1.3/pom.xml b/service-stubs/org.apache.stratos.load.balance.cartridge.autoscaler.service.stub/4.1.3/pom.xml
index 986d50a..e0d2276 100644
--- a/service-stubs/org.apache.stratos.load.balance.cartridge.autoscaler.service.stub/4.1.3/pom.xml
+++ b/service-stubs/org.apache.stratos.load.balance.cartridge.autoscaler.service.stub/4.1.3/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.stratos</groupId>
         <artifactId>stratos-service-stubs</artifactId>
-        <version>2.0.0</version>
+        <version>3.0.0</version>
         <relativePath>../../pom.xml</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/6a1d1537/service-stubs/org.apache.stratos.tenant.mgt.stub/4.1.0/pom.xml
----------------------------------------------------------------------
diff --git a/service-stubs/org.apache.stratos.tenant.mgt.stub/4.1.0/pom.xml b/service-stubs/org.apache.stratos.tenant.mgt.stub/4.1.0/pom.xml
index e84aebd..fb3ace3 100644
--- a/service-stubs/org.apache.stratos.tenant.mgt.stub/4.1.0/pom.xml
+++ b/service-stubs/org.apache.stratos.tenant.mgt.stub/4.1.0/pom.xml
@@ -22,7 +22,7 @@
     <parent>
     	<groupId>org.apache.stratos</groupId>
         <artifactId>stratos-service-stubs</artifactId>
-        <version>2.0.0</version>
+        <version>3.0.0</version>
         <relativePath>../../pom.xml</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/6a1d1537/service-stubs/pom.xml
----------------------------------------------------------------------
diff --git a/service-stubs/pom.xml b/service-stubs/pom.xml
index e38bd9b..b8b8046 100644
--- a/service-stubs/pom.xml
+++ b/service-stubs/pom.xml
@@ -40,6 +40,7 @@
 	<module>org.apache.stratos.adc.mgt.stub/4.1.3</module>
 	<module>org.apache.stratos.account.mgt.stub/4.1.3</module>
 	<module>org.apache.stratos.tenant.mgt.stub/4.1.0</module>
+	<module>org.apache.stratos.common.stub</module>
     </modules>
 
     <build>


[5/5] git commit: Merge branch 'service_stubs'

Posted by is...@apache.org.
Merge branch 'service_stubs'


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

Branch: refs/heads/master
Commit: c1fffa70b3672b657b62eb0c20a6ab9c5c1d1c2d
Parents: b9e5956 6a1d153
Author: Isuru <is...@wso2.com>
Authored: Mon Jul 8 22:34:00 2013 +0530
Committer: Isuru <is...@wso2.com>
Committed: Mon Jul 8 22:34:00 2013 +0530

----------------------------------------------------------------------
 .../4.1.3/pom.xml                               |   2 +-
 .../4.1.3/pom.xml                               |   2 +-
 .../org.apache.stratos.common.stub/pom.xml      | 105 +++++++++++++++++
 .../src/main/resources/PackageInfoServce.wsdl   | 114 +++++++++++++++++++
 .../4.1.3/pom.xml                               |   2 +-
 .../4.1.0/pom.xml                               |   2 +-
 6 files changed, 223 insertions(+), 4 deletions(-)
----------------------------------------------------------------------