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/12 16:25:52 UTC
[3/3] git commit: Refactor usage stub
Refactor usage stub
Signed-off-by: Isuru <is...@wso2.com>
Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/075ff696
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/075ff696
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/075ff696
Branch: refs/heads/master
Commit: 075ff696f2a1380022b87031239819c1722569f3
Parents: bf0af51
Author: Manula Thantriwatte <ma...@wso2.com>
Authored: Fri Jul 12 19:22:50 2013 +0530
Committer: Isuru <is...@wso2.com>
Committed: Fri Jul 12 19:55:27 2013 +0530
----------------------------------------------------------------------
.../org.apache.stratos.usage.stub/pom.xml | 121 +++++
.../src/main/resources/UsageService.wsdl | 542 +++++++++++++++++++
.../org.wso2.carbon.usage.stub/4.1.0/pom.xml | 118 ----
.../4.1.0/src/main/resources/UsageService.wsdl | 540 ------------------
.../org.wso2.carbon.usage.stub/4.1.1/pom.xml | 118 ----
.../4.1.1/src/main/resources/UsageService.wsdl | 533 ------------------
.../org.wso2.carbon.usage.stub/4.1.2/pom.xml | 118 ----
.../4.1.2/src/main/resources/UsageService.wsdl | 533 ------------------
.../org.wso2.carbon.usage.stub/4.1.3/pom.xml | 118 ----
.../4.1.3/src/main/resources/UsageService.wsdl | 542 -------------------
10 files changed, 663 insertions(+), 2620 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/075ff696/service-stubs/org.apache.stratos.usage.stub/pom.xml
----------------------------------------------------------------------
diff --git a/service-stubs/org.apache.stratos.usage.stub/pom.xml b/service-stubs/org.apache.stratos.usage.stub/pom.xml
new file mode 100644
index 0000000..1abb739
--- /dev/null
+++ b/service-stubs/org.apache.stratos.usage.stub/pom.xml
@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ # Licensed to the Apache Software Foundation (ASF) under one
+ # or more contributor license agreements. See the NOTICE file
+ # distributed with this work for additional information
+ # regarding copyright ownership. The ASF licenses this file
+ # to you under the Apache License, Version 2.0 (the
+ # "License"); you may not use this file except in compliance
+ # with the License. You may obtain a copy of the License at
+ #
+ # http://www.apache.org/licenses/LICENSE-2.0
+ #
+ # Unless required by applicable law or agreed to in writing,
+ # software distributed under the License is distributed on an
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ # KIND, either express or implied. See the License for the
+ # specific language governing permissions and limitations
+ # under the License.
+ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <parent>
+ <groupId>org.apache.stratos</groupId>
+ <artifactId>stratos-service-stubs-parent</artifactId>
+ <version>3.0.0-SNAPSHOT</version>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>org.apache.stratos.usage.stub</artifactId>
+ <packaging>bundle</packaging>
+ <name>Apache Stratos - Usage - User Interface Stub</name>
+ <url>http://apache.org</url>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ <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>
+ <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
+ <arg line="-uri src/main/resources/UsageService.wsdl -u -uw -o target/generated-code
+ -p org.apache.stratos.usage.stub.services
+ -ns2p http://beans.usage.stratos.apache.org/xsd=org.apache.stratos.usage.stub.beans.xsd,http://services.usage.stratos.apache.org=org.apache.stratos.usage.stub.services"/>
+ <classpath refid="maven.dependency.classpath"/>
+ <classpath refid="maven.compile.classpath"/>
+ <classpath refid="maven.runtime.classpath"/>
+ </java>
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+
+ <extensions>true</extensions>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
+ <Bundle-Name>${project.artifactId}</Bundle-Name>
+ <Export-Package>
+ org.apache.stratos.usage.stub.*; version="${carbon.platform.package.export.version}",
+ </Export-Package>
+ <Import-Package>
+ !org.apache.stratos.usage.stub.*,
+ *;resolution:=optional
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>add-source</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>add-source</goal>
+ </goals>
+ <configuration>
+ <sources>
+ <source>
+ target/generated-code/src
+ </source>
+ </sources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.axis2.wso2</groupId>
+ <artifactId>axis2</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.axis2.wso2</groupId>
+ <artifactId>axis2-client</artifactId>
+ </dependency>
+ </dependencies>
+
+</project>
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/075ff696/service-stubs/org.apache.stratos.usage.stub/src/main/resources/UsageService.wsdl
----------------------------------------------------------------------
diff --git a/service-stubs/org.apache.stratos.usage.stub/src/main/resources/UsageService.wsdl b/service-stubs/org.apache.stratos.usage.stub/src/main/resources/UsageService.wsdl
new file mode 100644
index 0000000..9a39ee8
--- /dev/null
+++ b/service-stubs/org.apache.stratos.usage.stub/src/main/resources/UsageService.wsdl
@@ -0,0 +1,542 @@
+<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://services.usage.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/" xmlns:ax2351="http://beans.usage.stratos.apache.org/xsd" targetNamespace="http://services.usage.stratos.apache.org">
+ <wsdl:documentation>UsageService</wsdl:documentation>
+ <wsdl:types>
+ <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://beans.usage.stratos.apache.org/xsd">
+ <xs:complexType name="TenantUsage">
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="apiManagerUsageStats" nillable="true" type="ax2351:APIManagerUsageStats"/>
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="cartridgeStatistics" nillable="true" type="ax2351:CartridgeStatistics"/>
+ <xs:element minOccurs="0" name="domain" nillable="true" type="xs:string"/>
+ <xs:element minOccurs="0" name="numberOfUsers" type="xs:int"/>
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="registryBandwidthStatistics" nillable="true" type="ax2351:BandwidthStatistics"/>
+ <xs:element minOccurs="0" name="registryCapacity" nillable="true" type="ax2351:TenantDataCapacity"/>
+ <xs:element minOccurs="0" name="registryContentCapacity" type="xs:long"/>
+ <xs:element minOccurs="0" name="registryContentHistoryCapacity" type="xs:long"/>
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="requestStatistics" nillable="true" type="ax2351:RequestStatistics"/>
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="serviceBandwidthStatistics" nillable="true" type="ax2351:BandwidthStatistics"/>
+ <xs:element minOccurs="0" name="tenantId" type="xs:int"/>
+ <xs:element minOccurs="0" name="totalCartridgeHours" nillable="true" type="ax2351:CartridgeStatistics"/>
+ <xs:element minOccurs="0" name="totalIncomingBandwidth" type="xs:long"/>
+ <xs:element minOccurs="0" name="totalOutgoingBandwidth" type="xs:long"/>
+ <xs:element minOccurs="0" name="totalRegistryBandwidth" nillable="true" type="ax2351:BandwidthStatistics"/>
+ <xs:element minOccurs="0" name="totalRequestStatistics" nillable="true" type="ax2351:RequestStatistics"/>
+ <xs:element minOccurs="0" name="totalServiceBandwidth" nillable="true" type="ax2351:BandwidthStatistics"/>
+ <xs:element minOccurs="0" name="totalWebappBandwidth" nillable="true" type="ax2351:BandwidthStatistics"/>
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="usageEntries" nillable="true" type="ax2351:UsageEntry"/>
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="webappBandwidthStatistics" nillable="true" type="ax2351:BandwidthStatistics"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="APIManagerUsageStats">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="incomingBandwidth" type="xs:long"/>
+ <xs:element minOccurs="0" name="key" nillable="true" type="xs:string"/>
+ <xs:element minOccurs="0" name="outgoingBandwidth" type="xs:long"/>
+ <xs:element minOccurs="0" name="requestCount" type="xs:long"/>
+ <xs:element minOccurs="0" name="serverUrl" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="CartridgeStatistics">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="cartridgeHours" type="xs:long"/>
+ <xs:element minOccurs="0" name="instanceId" nillable="true" type="xs:string"/>
+ <xs:element minOccurs="0" name="key" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="BandwidthStatistics">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="incomingBandwidth" type="xs:long"/>
+ <xs:element minOccurs="0" name="key" nillable="true" type="xs:string"/>
+ <xs:element minOccurs="0" name="outgoingBandwidth" type="xs:long"/>
+ <xs:element minOccurs="0" name="serverUrl" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="TenantDataCapacity">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="registryContentCapacity" type="xs:long"/>
+ <xs:element minOccurs="0" name="registryContentHistoryCapacity" type="xs:long"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="RequestStatistics">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="faultCount" type="xs:long"/>
+ <xs:element minOccurs="0" name="key" nillable="true" type="xs:string"/>
+ <xs:element minOccurs="0" name="requestCount" type="xs:long"/>
+ <xs:element minOccurs="0" name="responseCount" type="xs:long"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="UsageEntry">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="key" nillable="true" type="xs:string"/>
+ <xs:element minOccurs="0" name="value" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="PaginatedTenantUsageInfo">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="numberOfPages" type="xs:int"/>
+ <xs:element minOccurs="0" name="pageNumber" type="xs:int"/>
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="tenantUsages" nillable="true" type="ax2351:TenantUsage"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="PaginatedInstanceUsage">
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="instanceUsages" nillable="true" type="ax2351:InstanceUsageStatics"/>
+ <xs:element minOccurs="0" name="numberOfPages" type="xs:int"/>
+ <xs:element minOccurs="0" name="pageNumber" type="xs:int"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="InstanceUsageStatics">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="instanceID" nillable="true" type="xs:int"/>
+ <xs:element minOccurs="0" name="instanceURL" nillable="true" type="xs:string"/>
+ <xs:element minOccurs="0" name="running" type="xs:boolean"/>
+ <xs:element minOccurs="0" name="startTime" nillable="true" type="xs:dateTime"/>
+ <xs:element minOccurs="0" name="stopTime" nillable="true" type="xs:dateTime"/>
+ <xs:element minOccurs="0" name="usedTimeInSeconds" type="xs:long"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:schema>
+ <xs:schema xmlns:ax2352="http://beans.usage.stratos.apache.org/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://services.usage.stratos.apache.org">
+ <xs:import namespace="http://beans.usage.stratos.apache.org/xsd"/>
+ <xs:element name="UsageServiceException">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="UsageServiceException" 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="retrieveTenantUsages">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="yearMonth" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="retrieveTenantUsagesResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="return" nillable="true" type="ax2352:TenantUsage"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="retrieveTenantUsage">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="yearMonth" nillable="true" type="xs:string"/>
+ <xs:element minOccurs="0" name="tenantId" type="xs:int"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="retrieveTenantUsageResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="return" nillable="true" type="ax2352:TenantUsage"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="retrievePaginatedTenantUsages">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="yearMonth" nillable="true" type="xs:string"/>
+ <xs:element minOccurs="0" name="pageNumber" type="xs:int"/>
+ <xs:element minOccurs="0" name="entriesPerPage" type="xs:int"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="retrievePaginatedTenantUsagesResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="return" nillable="true" type="ax2352:PaginatedTenantUsageInfo"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="retrievePaginatedInstanceUsage">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="yearMonth" nillable="true" type="xs:string"/>
+ <xs:element minOccurs="0" name="pageNumber" type="xs:int"/>
+ <xs:element minOccurs="0" name="entriesPerPage" type="xs:int"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="retrievePaginatedInstanceUsageResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="return" nillable="true" type="ax2352:PaginatedInstanceUsage"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="retrieveInstanceUsage">
+ <xs:complexType>
+ <xs:sequence/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="retrieveInstanceUsageResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="return" nillable="true" type="ax2352:InstanceUsageStatics"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="retrieveCurrentTenantUsage">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="yearMonth" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="retrieveCurrentTenantUsageResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="return" nillable="true" type="ax2352:TenantUsage"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="getValidUsageEntry">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="usage" nillable="true" type="ax2352:InstanceUsageStatics"/>
+ <xs:element minOccurs="0" name="yearMonth" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="getValidUsageEntryResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="return" nillable="true" type="ax2352:InstanceUsageStatics"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:schema>
+ </wsdl:types>
+ <wsdl:message name="retrievePaginatedTenantUsagesRequest">
+ <wsdl:part name="parameters" element="ns:retrievePaginatedTenantUsages"/>
+ </wsdl:message>
+ <wsdl:message name="retrievePaginatedTenantUsagesResponse">
+ <wsdl:part name="parameters" element="ns:retrievePaginatedTenantUsagesResponse"/>
+ </wsdl:message>
+ <wsdl:message name="UsageServiceException">
+ <wsdl:part name="parameters" element="ns:UsageServiceException"/>
+ </wsdl:message>
+ <wsdl:message name="getValidUsageEntryRequest">
+ <wsdl:part name="parameters" element="ns:getValidUsageEntry"/>
+ </wsdl:message>
+ <wsdl:message name="getValidUsageEntryResponse">
+ <wsdl:part name="parameters" element="ns:getValidUsageEntryResponse"/>
+ </wsdl:message>
+ <wsdl:message name="retrieveCurrentTenantUsageRequest">
+ <wsdl:part name="parameters" element="ns:retrieveCurrentTenantUsage"/>
+ </wsdl:message>
+ <wsdl:message name="retrieveCurrentTenantUsageResponse">
+ <wsdl:part name="parameters" element="ns:retrieveCurrentTenantUsageResponse"/>
+ </wsdl:message>
+ <wsdl:message name="retrieveTenantUsagesRequest">
+ <wsdl:part name="parameters" element="ns:retrieveTenantUsages"/>
+ </wsdl:message>
+ <wsdl:message name="retrieveTenantUsagesResponse">
+ <wsdl:part name="parameters" element="ns:retrieveTenantUsagesResponse"/>
+ </wsdl:message>
+ <wsdl:message name="retrieveTenantUsageRequest">
+ <wsdl:part name="parameters" element="ns:retrieveTenantUsage"/>
+ </wsdl:message>
+ <wsdl:message name="retrieveTenantUsageResponse">
+ <wsdl:part name="parameters" element="ns:retrieveTenantUsageResponse"/>
+ </wsdl:message>
+ <wsdl:message name="retrieveInstanceUsageRequest">
+ <wsdl:part name="parameters" element="ns:retrieveInstanceUsage"/>
+ </wsdl:message>
+ <wsdl:message name="retrieveInstanceUsageResponse">
+ <wsdl:part name="parameters" element="ns:retrieveInstanceUsageResponse"/>
+ </wsdl:message>
+ <wsdl:message name="retrievePaginatedInstanceUsageRequest">
+ <wsdl:part name="parameters" element="ns:retrievePaginatedInstanceUsage"/>
+ </wsdl:message>
+ <wsdl:message name="retrievePaginatedInstanceUsageResponse">
+ <wsdl:part name="parameters" element="ns:retrievePaginatedInstanceUsageResponse"/>
+ </wsdl:message>
+ <wsdl:portType name="UsageServicePortType">
+ <wsdl:operation name="retrievePaginatedTenantUsages">
+ <wsdl:input message="ns:retrievePaginatedTenantUsagesRequest" wsaw:Action="urn:retrievePaginatedTenantUsages"/>
+ <wsdl:output message="ns:retrievePaginatedTenantUsagesResponse" wsaw:Action="urn:retrievePaginatedTenantUsagesResponse"/>
+ <wsdl:fault message="ns:UsageServiceException" name="UsageServiceException" wsaw:Action="urn:retrievePaginatedTenantUsagesUsageServiceException"/>
+ </wsdl:operation>
+ <wsdl:operation name="getValidUsageEntry">
+ <wsdl:input message="ns:getValidUsageEntryRequest" wsaw:Action="urn:getValidUsageEntry"/>
+ <wsdl:output message="ns:getValidUsageEntryResponse" wsaw:Action="urn:getValidUsageEntryResponse"/>
+ </wsdl:operation>
+ <wsdl:operation name="retrieveCurrentTenantUsage">
+ <wsdl:input message="ns:retrieveCurrentTenantUsageRequest" wsaw:Action="urn:retrieveCurrentTenantUsage"/>
+ <wsdl:output message="ns:retrieveCurrentTenantUsageResponse" wsaw:Action="urn:retrieveCurrentTenantUsageResponse"/>
+ <wsdl:fault message="ns:UsageServiceException" name="UsageServiceException" wsaw:Action="urn:retrieveCurrentTenantUsageUsageServiceException"/>
+ </wsdl:operation>
+ <wsdl:operation name="retrieveTenantUsages">
+ <wsdl:input message="ns:retrieveTenantUsagesRequest" wsaw:Action="urn:retrieveTenantUsages"/>
+ <wsdl:output message="ns:retrieveTenantUsagesResponse" wsaw:Action="urn:retrieveTenantUsagesResponse"/>
+ <wsdl:fault message="ns:UsageServiceException" name="UsageServiceException" wsaw:Action="urn:retrieveTenantUsagesUsageServiceException"/>
+ </wsdl:operation>
+ <wsdl:operation name="retrieveTenantUsage">
+ <wsdl:input message="ns:retrieveTenantUsageRequest" wsaw:Action="urn:retrieveTenantUsage"/>
+ <wsdl:output message="ns:retrieveTenantUsageResponse" wsaw:Action="urn:retrieveTenantUsageResponse"/>
+ <wsdl:fault message="ns:UsageServiceException" name="UsageServiceException" wsaw:Action="urn:retrieveTenantUsageUsageServiceException"/>
+ </wsdl:operation>
+ <wsdl:operation name="retrieveInstanceUsage">
+ <wsdl:input message="ns:retrieveInstanceUsageRequest" wsaw:Action="urn:retrieveInstanceUsage"/>
+ <wsdl:output message="ns:retrieveInstanceUsageResponse" wsaw:Action="urn:retrieveInstanceUsageResponse"/>
+ <wsdl:fault message="ns:UsageServiceException" name="UsageServiceException" wsaw:Action="urn:retrieveInstanceUsageUsageServiceException"/>
+ </wsdl:operation>
+ <wsdl:operation name="retrievePaginatedInstanceUsage">
+ <wsdl:input message="ns:retrievePaginatedInstanceUsageRequest" wsaw:Action="urn:retrievePaginatedInstanceUsage"/>
+ <wsdl:output message="ns:retrievePaginatedInstanceUsageResponse" wsaw:Action="urn:retrievePaginatedInstanceUsageResponse"/>
+ <wsdl:fault message="ns:UsageServiceException" name="UsageServiceException" wsaw:Action="urn:retrievePaginatedInstanceUsageUsageServiceException"/>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="UsageServiceSoap11Binding" type="ns:UsageServicePortType">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+ <wsdl:operation name="retrievePaginatedTenantUsages">
+ <soap:operation soapAction="urn:retrievePaginatedTenantUsages" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="UsageServiceException">
+ <soap:fault use="literal" name="UsageServiceException"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ <wsdl:operation name="getValidUsageEntry">
+ <soap:operation soapAction="urn:getValidUsageEntry" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="retrieveCurrentTenantUsage">
+ <soap:operation soapAction="urn:retrieveCurrentTenantUsage" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="UsageServiceException">
+ <soap:fault use="literal" name="UsageServiceException"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ <wsdl:operation name="retrieveTenantUsages">
+ <soap:operation soapAction="urn:retrieveTenantUsages" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="UsageServiceException">
+ <soap:fault use="literal" name="UsageServiceException"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ <wsdl:operation name="retrieveTenantUsage">
+ <soap:operation soapAction="urn:retrieveTenantUsage" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="UsageServiceException">
+ <soap:fault use="literal" name="UsageServiceException"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ <wsdl:operation name="retrieveInstanceUsage">
+ <soap:operation soapAction="urn:retrieveInstanceUsage" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="UsageServiceException">
+ <soap:fault use="literal" name="UsageServiceException"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ <wsdl:operation name="retrievePaginatedInstanceUsage">
+ <soap:operation soapAction="urn:retrievePaginatedInstanceUsage" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="UsageServiceException">
+ <soap:fault use="literal" name="UsageServiceException"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:binding name="UsageServiceSoap12Binding" type="ns:UsageServicePortType">
+ <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+ <wsdl:operation name="retrievePaginatedTenantUsages">
+ <soap12:operation soapAction="urn:retrievePaginatedTenantUsages" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="UsageServiceException">
+ <soap12:fault use="literal" name="UsageServiceException"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ <wsdl:operation name="getValidUsageEntry">
+ <soap12:operation soapAction="urn:getValidUsageEntry" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="retrieveCurrentTenantUsage">
+ <soap12:operation soapAction="urn:retrieveCurrentTenantUsage" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="UsageServiceException">
+ <soap12:fault use="literal" name="UsageServiceException"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ <wsdl:operation name="retrieveTenantUsages">
+ <soap12:operation soapAction="urn:retrieveTenantUsages" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="UsageServiceException">
+ <soap12:fault use="literal" name="UsageServiceException"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ <wsdl:operation name="retrieveTenantUsage">
+ <soap12:operation soapAction="urn:retrieveTenantUsage" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="UsageServiceException">
+ <soap12:fault use="literal" name="UsageServiceException"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ <wsdl:operation name="retrieveInstanceUsage">
+ <soap12:operation soapAction="urn:retrieveInstanceUsage" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="UsageServiceException">
+ <soap12:fault use="literal" name="UsageServiceException"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ <wsdl:operation name="retrievePaginatedInstanceUsage">
+ <soap12:operation soapAction="urn:retrievePaginatedInstanceUsage" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="UsageServiceException">
+ <soap12:fault use="literal" name="UsageServiceException"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:binding name="UsageServiceHttpBinding" type="ns:UsageServicePortType">
+ <http:binding verb="POST"/>
+ <wsdl:operation name="retrievePaginatedTenantUsages">
+ <http:operation location="retrievePaginatedTenantUsages"/>
+ <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="getValidUsageEntry">
+ <http:operation location="getValidUsageEntry"/>
+ <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="retrieveCurrentTenantUsage">
+ <http:operation location="retrieveCurrentTenantUsage"/>
+ <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="retrieveTenantUsages">
+ <http:operation location="retrieveTenantUsages"/>
+ <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="retrieveTenantUsage">
+ <http:operation location="retrieveTenantUsage"/>
+ <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="retrieveInstanceUsage">
+ <http:operation location="retrieveInstanceUsage"/>
+ <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="retrievePaginatedInstanceUsage">
+ <http:operation location="retrievePaginatedInstanceUsage"/>
+ <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="UsageService">
+ <wsdl:port name="UsageServiceHttpsSoap11Endpoint" binding="ns:UsageServiceSoap11Binding">
+ <soap:address location="https://10.100.2.91:9443/services/UsageService.UsageServiceHttpsSoap11Endpoint/"/>
+ </wsdl:port>
+ <wsdl:port name="UsageServiceHttpsSoap12Endpoint" binding="ns:UsageServiceSoap12Binding">
+ <soap12:address location="https://10.100.2.91:9443/services/UsageService.UsageServiceHttpsSoap12Endpoint/"/>
+ </wsdl:port>
+ <wsdl:port name="UsageServiceHttpsEndpoint" binding="ns:UsageServiceHttpBinding">
+ <http:address location="https://10.100.2.91:9443/services/UsageService.UsageServiceHttpsEndpoint/"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/075ff696/service-stubs/org.wso2.carbon.usage.stub/4.1.0/pom.xml
----------------------------------------------------------------------
diff --git a/service-stubs/org.wso2.carbon.usage.stub/4.1.0/pom.xml b/service-stubs/org.wso2.carbon.usage.stub/4.1.0/pom.xml
deleted file mode 100644
index 53f6bc0..0000000
--- a/service-stubs/org.wso2.carbon.usage.stub/4.1.0/pom.xml
+++ /dev/null
@@ -1,118 +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.usage.stub</artifactId>
- <version>4.1.0</version>
- <packaging>bundle</packaging>
- <name>WSO2 Carbon - Usage - User Interface Stub</name>
- <url>http://wso2.org</url>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- <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>
- <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
- <arg line="-uri src/main/resources/UsageService.wsdl -u -uw -o target/generated-code
- -p org.wso2.carbon.usage.stub.services
- -ns2p http://beans.usage.carbon.wso2.org/xsd=org.wso2.carbon.usage.stub.beans.xsd,http://services.usage.carbon.wso2.org=org.wso2.carbon.usage.stub.services"/>
- <classpath refid="maven.dependency.classpath"/>
- <classpath refid="maven.compile.classpath"/>
- <classpath refid="maven.runtime.classpath"/>
- </java>
- </tasks>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
-
- <extensions>true</extensions>
- <configuration>
- <instructions>
- <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
- <Bundle-Name>${project.artifactId}</Bundle-Name>
- <Export-Package>
- org.wso2.carbon.usage.stub.*; version="${carbon.platform.package.export.version}",
- </Export-Package>
- <Import-Package>
- !org.wso2.carbon.usage.stub.*,
- *;resolution:=optional
- </Import-Package>
- </instructions>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>add-source</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>add-source</goal>
- </goals>
- <configuration>
- <sources>
- <source>
- target/generated-code/src
- </source>
- </sources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>org.apache.axis2.wso2</groupId>
- <artifactId>axis2</artifactId>
- </dependency>
- </dependencies>
-
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/075ff696/service-stubs/org.wso2.carbon.usage.stub/4.1.0/src/main/resources/UsageService.wsdl
----------------------------------------------------------------------
diff --git a/service-stubs/org.wso2.carbon.usage.stub/4.1.0/src/main/resources/UsageService.wsdl b/service-stubs/org.wso2.carbon.usage.stub/4.1.0/src/main/resources/UsageService.wsdl
deleted file mode 100644
index b4895e8..0000000
--- a/service-stubs/org.wso2.carbon.usage.stub/4.1.0/src/main/resources/UsageService.wsdl
+++ /dev/null
@@ -1,540 +0,0 @@
-<!--
- ~ 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.
- -->
-<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://services.usage.carbon.wso2.org" xmlns:ax2391="http://beans.usage.carbon.wso2.org/xsd" 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.usage.carbon.wso2.org">
- <wsdl:documentation>UsageService</wsdl:documentation>
- <wsdl:types>
- <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://beans.usage.carbon.wso2.org/xsd">
- <xs:complexType name="TenantUsage">
- <xs:sequence>
- <xs:element minOccurs="0" name="domain" nillable="true" type="xs:string"/>
- <xs:element minOccurs="0" name="numberOfUsers" type="xs:int"/>
- <xs:element maxOccurs="unbounded" minOccurs="0" name="registryBandwidthStatistics" nillable="true" type="ax2391:BandwidthStatistics"/>
- <xs:element minOccurs="0" name="registryCapacity" nillable="true" type="ax2391:TenantDataCapacity"/>
- <xs:element minOccurs="0" name="registryContentCapacity" type="xs:long"/>
- <xs:element minOccurs="0" name="registryContentHistoryCapacity" type="xs:long"/>
- <xs:element maxOccurs="unbounded" minOccurs="0" name="requestStatistics" nillable="true" type="ax2391:RequestStatistics"/>
- <xs:element maxOccurs="unbounded" minOccurs="0" name="serviceBandwidthStatistics" nillable="true" type="ax2391:BandwidthStatistics"/>
- <xs:element minOccurs="0" name="tenantId" type="xs:int"/>
- <xs:element minOccurs="0" name="totalIncomingBandwidth" type="xs:long"/>
- <xs:element minOccurs="0" name="totalOutgoingBandwidth" type="xs:long"/>
- <xs:element minOccurs="0" name="totalRegistryBandwidth" nillable="true" type="ax2391:BandwidthStatistics"/>
- <xs:element minOccurs="0" name="totalRequestStatistics" nillable="true" type="ax2391:RequestStatistics"/>
- <xs:element minOccurs="0" name="totalServiceBandwidth" nillable="true" type="ax2391:BandwidthStatistics"/>
- <xs:element minOccurs="0" name="totalWebappBandwidth" nillable="true" type="ax2391:BandwidthStatistics"/>
- <xs:element maxOccurs="unbounded" minOccurs="0" name="usageEntries" nillable="true" type="ax2391:UsageEntry"/>
- <xs:element maxOccurs="unbounded" minOccurs="0" name="webappBandwidthStatistics" nillable="true" type="ax2391:BandwidthStatistics"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="BandwidthStatistics">
- <xs:sequence>
- <xs:element minOccurs="0" name="incomingBandwidth" type="xs:long"/>
- <xs:element minOccurs="0" name="key" nillable="true" type="xs:string"/>
- <xs:element minOccurs="0" name="outgoingBandwidth" type="xs:long"/>
- <xs:element minOccurs="0" name="serverUrl" nillable="true" type="xs:string"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="TenantDataCapacity">
- <xs:sequence>
- <xs:element minOccurs="0" name="registryContentCapacity" type="xs:long"/>
- <xs:element minOccurs="0" name="registryContentHistoryCapacity" type="xs:long"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="RequestStatistics">
- <xs:sequence>
- <xs:element minOccurs="0" name="faultCount" type="xs:long"/>
- <xs:element minOccurs="0" name="key" nillable="true" type="xs:string"/>
- <xs:element minOccurs="0" name="requestCount" type="xs:long"/>
- <xs:element minOccurs="0" name="responseCount" type="xs:long"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="UsageEntry">
- <xs:sequence>
- <xs:element minOccurs="0" name="key" nillable="true" type="xs:string"/>
- <xs:element minOccurs="0" name="value" nillable="true" type="xs:string"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="PaginatedTenantUsageInfo">
- <xs:sequence>
- <xs:element minOccurs="0" name="numberOfPages" type="xs:int"/>
- <xs:element minOccurs="0" name="pageNumber" type="xs:int"/>
- <xs:element maxOccurs="unbounded" minOccurs="0" name="tenantUsages" nillable="true" type="ax2391:TenantUsage"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="PaginatedInstanceUsage">
- <xs:sequence>
- <xs:element maxOccurs="unbounded" minOccurs="0" name="instanceUsages" nillable="true" type="ax2391:InstanceUsageStatics"/>
- <xs:element minOccurs="0" name="numberOfPages" type="xs:int"/>
- <xs:element minOccurs="0" name="pageNumber" type="xs:int"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="InstanceUsageStatics">
- <xs:sequence>
- <xs:element minOccurs="0" name="instanceID" nillable="true" type="xs:int"/>
- <xs:element minOccurs="0" name="instanceURL" nillable="true" type="xs:string"/>
- <xs:element minOccurs="0" name="running" type="xs:boolean"/>
- <xs:element minOccurs="0" name="startTime" nillable="true" type="xs:dateTime"/>
- <xs:element minOccurs="0" name="stopTime" nillable="true" type="xs:dateTime"/>
- <xs:element minOccurs="0" name="usedTimeInSeconds" type="xs:long"/>
- </xs:sequence>
- </xs:complexType>
- </xs:schema>
- <xs:schema xmlns:ax2392="http://beans.usage.carbon.wso2.org/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://services.usage.carbon.wso2.org">
- <xs:import namespace="http://beans.usage.carbon.wso2.org/xsd"/>
- <xs:element name="UsageServiceException">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" name="UsageServiceException" 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="retrieveTenantUsages">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" name="yearMonth" nillable="true" type="xs:string"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="retrieveTenantUsagesResponse">
- <xs:complexType>
- <xs:sequence>
- <xs:element maxOccurs="unbounded" minOccurs="0" name="return" nillable="true" type="ax2391:TenantUsage"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="retrieveTenantUsage">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" name="yearMonth" nillable="true" type="xs:string"/>
- <xs:element minOccurs="0" name="tenantId" type="xs:int"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="retrieveTenantUsageResponse">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" name="return" nillable="true" type="ax2391:TenantUsage"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="retrievePaginatedTenantUsages">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" name="yearMonth" nillable="true" type="xs:string"/>
- <xs:element minOccurs="0" name="pageNumber" type="xs:int"/>
- <xs:element minOccurs="0" name="entriesPerPage" type="xs:int"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="retrievePaginatedTenantUsagesResponse">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" name="return" nillable="true" type="ax2391:PaginatedTenantUsageInfo"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="retrievePaginatedInstanceUsage">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" name="yearMonth" nillable="true" type="xs:string"/>
- <xs:element minOccurs="0" name="pageNumber" type="xs:int"/>
- <xs:element minOccurs="0" name="entriesPerPage" type="xs:int"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="retrievePaginatedInstanceUsageResponse">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" name="return" nillable="true" type="ax2391:PaginatedInstanceUsage"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="retrieveInstanceUsage">
- <xs:complexType>
- <xs:sequence/>
- </xs:complexType>
- </xs:element>
- <xs:element name="retrieveInstanceUsageResponse">
- <xs:complexType>
- <xs:sequence>
- <xs:element maxOccurs="unbounded" minOccurs="0" name="return" nillable="true" type="ax2391:InstanceUsageStatics"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="retrieveCurrentTenantUsage">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" name="yearMonth" nillable="true" type="xs:string"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="retrieveCurrentTenantUsageResponse">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" name="return" nillable="true" type="ax2391:TenantUsage"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="getValidUsageEntry">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" name="usage" nillable="true" type="ax2391:InstanceUsageStatics"/>
- <xs:element minOccurs="0" name="yearMonth" nillable="true" type="xs:string"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="getValidUsageEntryResponse">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" name="return" nillable="true" type="ax2391:InstanceUsageStatics"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- </xs:schema>
- </wsdl:types>
- <wsdl:message name="retrievePaginatedTenantUsagesRequest">
- <wsdl:part name="parameters" element="ns:retrievePaginatedTenantUsages"/>
- </wsdl:message>
- <wsdl:message name="retrievePaginatedTenantUsagesResponse">
- <wsdl:part name="parameters" element="ns:retrievePaginatedTenantUsagesResponse"/>
- </wsdl:message>
- <wsdl:message name="UsageServiceException">
- <wsdl:part name="parameters" element="ns:UsageServiceException"/>
- </wsdl:message>
- <wsdl:message name="getValidUsageEntryRequest">
- <wsdl:part name="parameters" element="ns:getValidUsageEntry"/>
- </wsdl:message>
- <wsdl:message name="getValidUsageEntryResponse">
- <wsdl:part name="parameters" element="ns:getValidUsageEntryResponse"/>
- </wsdl:message>
- <wsdl:message name="retrieveCurrentTenantUsageRequest">
- <wsdl:part name="parameters" element="ns:retrieveCurrentTenantUsage"/>
- </wsdl:message>
- <wsdl:message name="retrieveCurrentTenantUsageResponse">
- <wsdl:part name="parameters" element="ns:retrieveCurrentTenantUsageResponse"/>
- </wsdl:message>
- <wsdl:message name="retrieveTenantUsagesRequest">
- <wsdl:part name="parameters" element="ns:retrieveTenantUsages"/>
- </wsdl:message>
- <wsdl:message name="retrieveTenantUsagesResponse">
- <wsdl:part name="parameters" element="ns:retrieveTenantUsagesResponse"/>
- </wsdl:message>
- <wsdl:message name="retrieveTenantUsageRequest">
- <wsdl:part name="parameters" element="ns:retrieveTenantUsage"/>
- </wsdl:message>
- <wsdl:message name="retrieveTenantUsageResponse">
- <wsdl:part name="parameters" element="ns:retrieveTenantUsageResponse"/>
- </wsdl:message>
- <wsdl:message name="retrieveInstanceUsageRequest">
- <wsdl:part name="parameters" element="ns:retrieveInstanceUsage"/>
- </wsdl:message>
- <wsdl:message name="retrieveInstanceUsageResponse">
- <wsdl:part name="parameters" element="ns:retrieveInstanceUsageResponse"/>
- </wsdl:message>
- <wsdl:message name="retrievePaginatedInstanceUsageRequest">
- <wsdl:part name="parameters" element="ns:retrievePaginatedInstanceUsage"/>
- </wsdl:message>
- <wsdl:message name="retrievePaginatedInstanceUsageResponse">
- <wsdl:part name="parameters" element="ns:retrievePaginatedInstanceUsageResponse"/>
- </wsdl:message>
- <wsdl:portType name="UsageServicePortType">
- <wsdl:operation name="retrievePaginatedTenantUsages">
- <wsdl:input message="ns:retrievePaginatedTenantUsagesRequest" wsaw:Action="urn:retrievePaginatedTenantUsages"/>
- <wsdl:output message="ns:retrievePaginatedTenantUsagesResponse" wsaw:Action="urn:retrievePaginatedTenantUsagesResponse"/>
- <wsdl:fault message="ns:UsageServiceException" name="UsageServiceException" wsaw:Action="urn:retrievePaginatedTenantUsagesUsageServiceException"/>
- </wsdl:operation>
- <wsdl:operation name="getValidUsageEntry">
- <wsdl:input message="ns:getValidUsageEntryRequest" wsaw:Action="urn:getValidUsageEntry"/>
- <wsdl:output message="ns:getValidUsageEntryResponse" wsaw:Action="urn:getValidUsageEntryResponse"/>
- </wsdl:operation>
- <wsdl:operation name="retrieveCurrentTenantUsage">
- <wsdl:input message="ns:retrieveCurrentTenantUsageRequest" wsaw:Action="urn:retrieveCurrentTenantUsage"/>
- <wsdl:output message="ns:retrieveCurrentTenantUsageResponse" wsaw:Action="urn:retrieveCurrentTenantUsageResponse"/>
- <wsdl:fault message="ns:UsageServiceException" name="UsageServiceException" wsaw:Action="urn:retrieveCurrentTenantUsageUsageServiceException"/>
- </wsdl:operation>
- <wsdl:operation name="retrieveTenantUsages">
- <wsdl:input message="ns:retrieveTenantUsagesRequest" wsaw:Action="urn:retrieveTenantUsages"/>
- <wsdl:output message="ns:retrieveTenantUsagesResponse" wsaw:Action="urn:retrieveTenantUsagesResponse"/>
- <wsdl:fault message="ns:UsageServiceException" name="UsageServiceException" wsaw:Action="urn:retrieveTenantUsagesUsageServiceException"/>
- </wsdl:operation>
- <wsdl:operation name="retrieveTenantUsage">
- <wsdl:input message="ns:retrieveTenantUsageRequest" wsaw:Action="urn:retrieveTenantUsage"/>
- <wsdl:output message="ns:retrieveTenantUsageResponse" wsaw:Action="urn:retrieveTenantUsageResponse"/>
- <wsdl:fault message="ns:UsageServiceException" name="UsageServiceException" wsaw:Action="urn:retrieveTenantUsageUsageServiceException"/>
- </wsdl:operation>
- <wsdl:operation name="retrieveInstanceUsage">
- <wsdl:input message="ns:retrieveInstanceUsageRequest" wsaw:Action="urn:retrieveInstanceUsage"/>
- <wsdl:output message="ns:retrieveInstanceUsageResponse" wsaw:Action="urn:retrieveInstanceUsageResponse"/>
- <wsdl:fault message="ns:UsageServiceException" name="UsageServiceException" wsaw:Action="urn:retrieveInstanceUsageUsageServiceException"/>
- </wsdl:operation>
- <wsdl:operation name="retrievePaginatedInstanceUsage">
- <wsdl:input message="ns:retrievePaginatedInstanceUsageRequest" wsaw:Action="urn:retrievePaginatedInstanceUsage"/>
- <wsdl:output message="ns:retrievePaginatedInstanceUsageResponse" wsaw:Action="urn:retrievePaginatedInstanceUsageResponse"/>
- <wsdl:fault message="ns:UsageServiceException" name="UsageServiceException" wsaw:Action="urn:retrievePaginatedInstanceUsageUsageServiceException"/>
- </wsdl:operation>
- </wsdl:portType>
- <wsdl:binding name="UsageServiceSoap11Binding" type="ns:UsageServicePortType">
- <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
- <wsdl:operation name="retrievePaginatedTenantUsages">
- <soap:operation soapAction="urn:retrievePaginatedTenantUsages" style="document"/>
- <wsdl:input>
- <soap:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal"/>
- </wsdl:output>
- <wsdl:fault name="UsageServiceException">
- <soap:fault use="literal" name="UsageServiceException"/>
- </wsdl:fault>
- </wsdl:operation>
- <wsdl:operation name="getValidUsageEntry">
- <soap:operation soapAction="urn:getValidUsageEntry" style="document"/>
- <wsdl:input>
- <soap:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- <wsdl:operation name="retrieveCurrentTenantUsage">
- <soap:operation soapAction="urn:retrieveCurrentTenantUsage" style="document"/>
- <wsdl:input>
- <soap:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal"/>
- </wsdl:output>
- <wsdl:fault name="UsageServiceException">
- <soap:fault use="literal" name="UsageServiceException"/>
- </wsdl:fault>
- </wsdl:operation>
- <wsdl:operation name="retrieveTenantUsages">
- <soap:operation soapAction="urn:retrieveTenantUsages" style="document"/>
- <wsdl:input>
- <soap:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal"/>
- </wsdl:output>
- <wsdl:fault name="UsageServiceException">
- <soap:fault use="literal" name="UsageServiceException"/>
- </wsdl:fault>
- </wsdl:operation>
- <wsdl:operation name="retrieveTenantUsage">
- <soap:operation soapAction="urn:retrieveTenantUsage" style="document"/>
- <wsdl:input>
- <soap:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal"/>
- </wsdl:output>
- <wsdl:fault name="UsageServiceException">
- <soap:fault use="literal" name="UsageServiceException"/>
- </wsdl:fault>
- </wsdl:operation>
- <wsdl:operation name="retrieveInstanceUsage">
- <soap:operation soapAction="urn:retrieveInstanceUsage" style="document"/>
- <wsdl:input>
- <soap:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal"/>
- </wsdl:output>
- <wsdl:fault name="UsageServiceException">
- <soap:fault use="literal" name="UsageServiceException"/>
- </wsdl:fault>
- </wsdl:operation>
- <wsdl:operation name="retrievePaginatedInstanceUsage">
- <soap:operation soapAction="urn:retrievePaginatedInstanceUsage" style="document"/>
- <wsdl:input>
- <soap:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal"/>
- </wsdl:output>
- <wsdl:fault name="UsageServiceException">
- <soap:fault use="literal" name="UsageServiceException"/>
- </wsdl:fault>
- </wsdl:operation>
- </wsdl:binding>
- <wsdl:binding name="UsageServiceSoap12Binding" type="ns:UsageServicePortType">
- <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
- <wsdl:operation name="retrievePaginatedTenantUsages">
- <soap12:operation soapAction="urn:retrievePaginatedTenantUsages" style="document"/>
- <wsdl:input>
- <soap12:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap12:body use="literal"/>
- </wsdl:output>
- <wsdl:fault name="UsageServiceException">
- <soap12:fault use="literal" name="UsageServiceException"/>
- </wsdl:fault>
- </wsdl:operation>
- <wsdl:operation name="getValidUsageEntry">
- <soap12:operation soapAction="urn:getValidUsageEntry" style="document"/>
- <wsdl:input>
- <soap12:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap12:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- <wsdl:operation name="retrieveCurrentTenantUsage">
- <soap12:operation soapAction="urn:retrieveCurrentTenantUsage" style="document"/>
- <wsdl:input>
- <soap12:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap12:body use="literal"/>
- </wsdl:output>
- <wsdl:fault name="UsageServiceException">
- <soap12:fault use="literal" name="UsageServiceException"/>
- </wsdl:fault>
- </wsdl:operation>
- <wsdl:operation name="retrieveTenantUsages">
- <soap12:operation soapAction="urn:retrieveTenantUsages" style="document"/>
- <wsdl:input>
- <soap12:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap12:body use="literal"/>
- </wsdl:output>
- <wsdl:fault name="UsageServiceException">
- <soap12:fault use="literal" name="UsageServiceException"/>
- </wsdl:fault>
- </wsdl:operation>
- <wsdl:operation name="retrieveTenantUsage">
- <soap12:operation soapAction="urn:retrieveTenantUsage" style="document"/>
- <wsdl:input>
- <soap12:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap12:body use="literal"/>
- </wsdl:output>
- <wsdl:fault name="UsageServiceException">
- <soap12:fault use="literal" name="UsageServiceException"/>
- </wsdl:fault>
- </wsdl:operation>
- <wsdl:operation name="retrieveInstanceUsage">
- <soap12:operation soapAction="urn:retrieveInstanceUsage" style="document"/>
- <wsdl:input>
- <soap12:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap12:body use="literal"/>
- </wsdl:output>
- <wsdl:fault name="UsageServiceException">
- <soap12:fault use="literal" name="UsageServiceException"/>
- </wsdl:fault>
- </wsdl:operation>
- <wsdl:operation name="retrievePaginatedInstanceUsage">
- <soap12:operation soapAction="urn:retrievePaginatedInstanceUsage" style="document"/>
- <wsdl:input>
- <soap12:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap12:body use="literal"/>
- </wsdl:output>
- <wsdl:fault name="UsageServiceException">
- <soap12:fault use="literal" name="UsageServiceException"/>
- </wsdl:fault>
- </wsdl:operation>
- </wsdl:binding>
- <wsdl:binding name="UsageServiceHttpBinding" type="ns:UsageServicePortType">
- <http:binding verb="POST"/>
- <wsdl:operation name="retrievePaginatedTenantUsages">
- <http:operation location="retrievePaginatedTenantUsages"/>
- <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="getValidUsageEntry">
- <http:operation location="getValidUsageEntry"/>
- <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="retrieveCurrentTenantUsage">
- <http:operation location="retrieveCurrentTenantUsage"/>
- <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="retrieveTenantUsages">
- <http:operation location="retrieveTenantUsages"/>
- <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="retrieveTenantUsage">
- <http:operation location="retrieveTenantUsage"/>
- <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="retrieveInstanceUsage">
- <http:operation location="retrieveInstanceUsage"/>
- <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="retrievePaginatedInstanceUsage">
- <http:operation location="retrievePaginatedInstanceUsage"/>
- <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="UsageService">
- <wsdl:port name="UsageServiceHttpsSoap11Endpoint" binding="ns:UsageServiceSoap11Binding">
- <soap:address location="https://10.100.2.80:9443/services/UsageService.UsageServiceHttpsSoap11Endpoint/"/>
- </wsdl:port>
- <wsdl:port name="UsageServiceHttpsSoap12Endpoint" binding="ns:UsageServiceSoap12Binding">
- <soap12:address location="https://10.100.2.80:9443/services/UsageService.UsageServiceHttpsSoap12Endpoint/"/>
- </wsdl:port>
- <wsdl:port name="UsageServiceHttpsEndpoint" binding="ns:UsageServiceHttpBinding">
- <http:address location="https://10.100.2.80:9443/services/UsageService.UsageServiceHttpsEndpoint/"/>
- </wsdl:port>
- </wsdl:service>
-</wsdl:definitions>
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/075ff696/service-stubs/org.wso2.carbon.usage.stub/4.1.1/pom.xml
----------------------------------------------------------------------
diff --git a/service-stubs/org.wso2.carbon.usage.stub/4.1.1/pom.xml b/service-stubs/org.wso2.carbon.usage.stub/4.1.1/pom.xml
deleted file mode 100644
index c77ff29..0000000
--- a/service-stubs/org.wso2.carbon.usage.stub/4.1.1/pom.xml
+++ /dev/null
@@ -1,118 +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.usage.stub</artifactId>
- <version>4.1.1</version>
- <packaging>bundle</packaging>
- <name>WSO2 Carbon - Usage - User Interface Stub</name>
- <url>http://wso2.org</url>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- <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>
- <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
- <arg line="-uri src/main/resources/UsageService.wsdl -u -uw -o target/generated-code
- -p org.wso2.carbon.usage.stub.services
- -ns2p http://beans.usage.carbon.wso2.org/xsd=org.wso2.carbon.usage.stub.beans.xsd,http://services.usage.carbon.wso2.org=org.wso2.carbon.usage.stub.services"/>
- <classpath refid="maven.dependency.classpath"/>
- <classpath refid="maven.compile.classpath"/>
- <classpath refid="maven.runtime.classpath"/>
- </java>
- </tasks>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
-
- <extensions>true</extensions>
- <configuration>
- <instructions>
- <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
- <Bundle-Name>${project.artifactId}</Bundle-Name>
- <Export-Package>
- org.wso2.carbon.usage.stub.*; version="${carbon.platform.package.export.version}",
- </Export-Package>
- <Import-Package>
- !org.wso2.carbon.usage.stub.*,
- *;resolution:=optional
- </Import-Package>
- </instructions>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>add-source</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>add-source</goal>
- </goals>
- <configuration>
- <sources>
- <source>
- target/generated-code/src
- </source>
- </sources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>org.apache.axis2.wso2</groupId>
- <artifactId>axis2</artifactId>
- </dependency>
- </dependencies>
-
-</project>