[wsas-java-dev] svn commit r1730 -
trunk/wsas/java/modules/clustering
svn at wso2.org
svn at wso2.org
Tue Apr 3 05:25:06 PDT 2007
Author: azeez
Date: Tue Apr 3 05:24:51 2007
New Revision: 1730
Added:
trunk/wsas/java/modules/clustering/clustering-codegen.xml
trunk/wsas/java/modules/clustering/nodemanager.wsdl
Modified:
trunk/wsas/java/modules/clustering/pom.xml
Log:
Adding the NM WSDL and code gen functionality
Added: trunk/wsas/java/modules/clustering/clustering-codegen.xml
==============================================================================
--- (empty file)
+++ trunk/wsas/java/modules/clustering/clustering-codegen.xml Tue Apr 3 05:24:51 2007
@@ -0,0 +1,15 @@
+<config>
+
+
+ <!-- NodeManager Stub -->
+ <set>
+ <uri>./nodemanager.wsdl</uri>
+ <o>./target/generated</o>
+ <p>org.wso2.wsas.clustering</p>
+ <d>adb</d>
+ <u/>
+ <ns2p>http://www.wso2.org/types=org.wso2.www.types.client</ns2p>
+ <Emp>org.wso2.wsas.clustering.client</Emp>
+ </set>
+
+</config>
\ No newline at end of file
Added: trunk/wsas/java/modules/clustering/nodemanager.wsdl
==============================================================================
--- (empty file)
+++ trunk/wsas/java/modules/clustering/nodemanager.wsdl Tue Apr 3 05:24:51 2007
@@ -0,0 +1,382 @@
+<?xml-stylesheet type="text/xsl" href="/styles/annotated-wsdl.xsl"?>
+<wsdl:definitions xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
+ xmlns:ns0="http://clustering.wsas.wso2.org/types"
+ xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
+ xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
+ xmlns:ns1="http://clustering.wsas.wso2.org/types"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ targetNamespace="http://clustering.wsas.wso2.org/types">
+ <wsdl:types>
+ <xs:schema xmlns:ns="http://clustering.wsas.wso2.org/types" attributeFormDefault="qualified"
+ elementFormDefault="unqualified" targetNamespace="http://clustering.wsas.wso2.org/types">
+ <xs:element name="applyPolicyFault">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="applyPolicyFault" type="xs:anyType"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="applyPolicy">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="serviceName" nillable="true" type="xs:string"/>
+ <xs:element name="policyId" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="applyPolicyResponse">
+
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="return" nillable="true" type="xs:boolean"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="commitFault">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="commitFault" type="xs:anyType"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="commitResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="return" nillable="true" type="xs:boolean"/>
+
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="loadServiceGroupFault">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="loadServiceGroupFault" type="xs:anyType"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="loadServiceGroup">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="serviceGroupName" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="loadServiceGroupResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="return" nillable="true" type="xs:boolean"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="reloadConfigurationFault">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="reloadConfigurationFault" type="xs:anyType"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="reloadConfigurationResponse">
+ <xs:complexType>
+ <xs:sequence>
+
+ <xs:element name="return" nillable="true" type="xs:boolean"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="unloadServiceGroupFault">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="unloadServiceGroupFault" type="xs:anyType"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="unloadServiceGroup">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="serviceGroupName" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ </xs:element>
+ <xs:element name="unloadServiceGroupResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="return" nillable="true" type="xs:boolean"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:schema>
+ </wsdl:types>
+ <wsdl:message name="applyPolicyMessage">
+ <wsdl:part name="part1" element="ns0:applyPolicy"/>
+ </wsdl:message>
+ <wsdl:message name="applyPolicyResponse">
+ <wsdl:part name="part1" element="ns0:applyPolicyResponse"/>
+ </wsdl:message>
+ <wsdl:message name="applyPolicyFault">
+ <wsdl:part name="part1" element="ns0:applyPolicyFault"/>
+ </wsdl:message>
+ <wsdl:message name="loadServiceGroupMessage">
+ <wsdl:part name="part1" element="ns0:loadServiceGroup"/>
+ </wsdl:message>
+ <wsdl:message name="loadServiceGroupResponse">
+ <wsdl:part name="part1" element="ns0:loadServiceGroupResponse"/>
+ </wsdl:message>
+ <wsdl:message name="loadServiceGroupFault">
+ <wsdl:part name="part1" element="ns0:loadServiceGroupFault"/>
+ </wsdl:message>
+ <wsdl:message name="reloadConfigurationMessage"/>
+ <wsdl:message name="reloadConfigurationResponse">
+ <wsdl:part name="part1" element="ns0:reloadConfigurationResponse"/>
+ </wsdl:message>
+ <wsdl:message name="reloadConfigurationFault">
+ <wsdl:part name="part1" element="ns0:reloadConfigurationFault"/>
+ </wsdl:message>
+ <wsdl:message name="commitMessage"/>
+ <wsdl:message name="commitResponse">
+ <wsdl:part name="part1" element="ns0:commitResponse"/>
+ </wsdl:message>
+ <wsdl:message name="commitFault">
+ <wsdl:part name="part1" element="ns0:commitFault"/>
+ </wsdl:message>
+ <wsdl:message name="unloadServiceGroupMessage">
+ <wsdl:part name="part1" element="ns0:unloadServiceGroup"/>
+ </wsdl:message>
+ <wsdl:message name="unloadServiceGroupResponse">
+ <wsdl:part name="part1" element="ns0:unloadServiceGroupResponse"/>
+ </wsdl:message>
+ <wsdl:message name="unloadServiceGroupFault">
+ <wsdl:part name="part1" element="ns0:unloadServiceGroupFault"/>
+ </wsdl:message>
+ <wsdl:portType name="NodeManagerPortType">
+ <wsdl:operation name="applyPolicy">
+ <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+ message="ns0:applyPolicyMessage" wsaw:Action="urn:applyPolicy"/>
+ <wsdl:output message="ns0:applyPolicyResponse"/>
+ <wsdl:fault message="ns0:applyPolicyFault" name="applyPolicyFault"/>
+ </wsdl:operation>
+ <wsdl:operation name="loadServiceGroup">
+ <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+ message="ns0:loadServiceGroupMessage" wsaw:Action="urn:loadServiceGroup"/>
+ <wsdl:output message="ns0:loadServiceGroupResponse"/>
+ <wsdl:fault message="ns0:loadServiceGroupFault" name="loadServiceGroupFault"/>
+ </wsdl:operation>
+ <wsdl:operation name="reloadConfiguration">
+ <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+ message="ns0:reloadConfigurationMessage"
+ wsaw:Action="urn:reloadConfiguration"/>
+ <wsdl:output message="ns0:reloadConfigurationResponse"/>
+ <wsdl:fault message="ns0:reloadConfigurationFault" name="reloadConfigurationFault"/>
+ </wsdl:operation>
+ <wsdl:operation name="commit">
+ <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+ message="ns0:commitMessage" wsaw:Action="urn:commit"/>
+ <wsdl:output message="ns0:commitResponse"/>
+ <wsdl:fault message="ns0:commitFault" name="commitFault"/>
+ </wsdl:operation>
+ <wsdl:operation name="unloadServiceGroup">
+ <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+ message="ns0:unloadServiceGroupMessage"
+ wsaw:Action="urn:unloadServiceGroup"/>
+ <wsdl:output message="ns0:unloadServiceGroupResponse"/>
+ <wsdl:fault message="ns0:unloadServiceGroupFault" name="unloadServiceGroupFault"/>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="NodeManagerSOAP11Binding" type="ns0:NodeManagerPortType">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+ <wsdl:operation name="applyPolicy">
+ <soap:operation soapAction="urn:applyPolicy" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="applyPolicyFault">
+ <soap12:fault use="literal" name="applyPolicyFault"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ <wsdl:operation name="loadServiceGroup">
+ <soap:operation soapAction="urn:loadServiceGroup" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="loadServiceGroupFault">
+ <soap12:fault use="literal" name="loadServiceGroupFault"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ <wsdl:operation name="reloadConfiguration">
+ <soap:operation soapAction="urn:reloadConfiguration" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="reloadConfigurationFault">
+ <soap12:fault use="literal" name="reloadConfigurationFault"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ <wsdl:operation name="commit">
+ <soap:operation soapAction="urn:commit" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="commitFault">
+ <soap12:fault use="literal" name="commitFault"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ <wsdl:operation name="unloadServiceGroup">
+ <soap:operation soapAction="urn:unloadServiceGroup" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="unloadServiceGroupFault">
+ <soap12:fault use="literal" name="unloadServiceGroupFault"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:binding name="NodeManagerSOAP12Binding" type="ns0:NodeManagerPortType">
+ <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+ <wsdl:operation name="applyPolicy">
+ <soap12:operation soapAction="urn:applyPolicy" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="applyPolicyFault">
+ <soap12:fault use="literal" name="applyPolicyFault"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ <wsdl:operation name="loadServiceGroup">
+ <soap12:operation soapAction="urn:loadServiceGroup" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="loadServiceGroupFault">
+ <soap12:fault use="literal" name="loadServiceGroupFault"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ <wsdl:operation name="reloadConfiguration">
+ <soap12:operation soapAction="urn:reloadConfiguration" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="reloadConfigurationFault">
+ <soap12:fault use="literal" name="reloadConfigurationFault"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ <wsdl:operation name="commit">
+ <soap12:operation soapAction="urn:commit" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="commitFault">
+ <soap12:fault use="literal" name="commitFault"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ <wsdl:operation name="unloadServiceGroup">
+ <soap12:operation soapAction="urn:unloadServiceGroup" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="unloadServiceGroupFault">
+ <soap12:fault use="literal" name="unloadServiceGroupFault"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:binding name="NodeManagerHttpBinding" type="ns0:NodeManagerPortType">
+ <http:binding verb="POST"/>
+ <wsdl:operation name="applyPolicy">
+ <http:operation location="applyPolicy"/>
+ <wsdl:input>
+ <mime:content type="text/xml"/>
+ </wsdl:input>
+ <wsdl:output>
+ <mime:content type="text/xml"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="loadServiceGroup">
+ <http:operation location="loadServiceGroup"/>
+ <wsdl:input>
+ <mime:content type="text/xml"/>
+ </wsdl:input>
+ <wsdl:output>
+ <mime:content type="text/xml"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="reloadConfiguration">
+ <http:operation location="reloadConfiguration"/>
+ <wsdl:input>
+ <mime:content type="text/xml"/>
+ </wsdl:input>
+ <wsdl:output>
+ <mime:content type="text/xml"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="commit">
+ <http:operation location="commit"/>
+ <wsdl:input>
+ <mime:content type="text/xml"/>
+ </wsdl:input>
+ <wsdl:output>
+ <mime:content type="text/xml"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="unloadServiceGroup">
+ <http:operation location="unloadServiceGroup"/>
+ <wsdl:input>
+ <mime:content type="text/xml"/>
+ </wsdl:input>
+ <wsdl:output>
+ <mime:content type="text/xml"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="NodeManager">
+ <wsdl:port name="NodeManagerSOAP11port_https" binding="ns0:NodeManagerSOAP11Binding">
+ <soap:address location="https://10.100.1.225:9443/soap/NodeManager"/>
+ </wsdl:port>
+ <wsdl:port name="NodeManagerSOAP11port_http2" binding="ns0:NodeManagerSOAP11Binding">
+ <soap:address location="http://10.100.1.225:9762/soap/NodeManager"/>
+ </wsdl:port>
+ <wsdl:port name="NodeManagerSOAP12port_https" binding="ns0:NodeManagerSOAP12Binding">
+ <soap12:address location="https://10.100.1.225:9443/soap/NodeManager"/>
+ </wsdl:port>
+ <wsdl:port name="NodeManagerSOAP12port_http2" binding="ns0:NodeManagerSOAP12Binding">
+ <soap12:address location="http://10.100.1.225:9762/soap/NodeManager"/>
+ </wsdl:port>
+ <wsdl:port name="NodeManagerHttpport1" binding="ns0:NodeManagerHttpBinding">
+ <http:address location="https://10.100.1.225:9443/rest/NodeManager"/>
+ </wsdl:port>
+ <wsdl:port name="NodeManagerHttpport3" binding="ns0:NodeManagerHttpBinding">
+ <http:address location="http://10.100.1.225:9762/rest/NodeManager"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
\ No newline at end of file
Modified: trunk/wsas/java/modules/clustering/pom.xml
==============================================================================
--- trunk/wsas/java/modules/clustering/pom.xml (original)
+++ trunk/wsas/java/modules/clustering/pom.xml Tue Apr 3 05:24:51 2007
@@ -37,6 +37,32 @@
</resources>
<plugins>
<plugin>
+ <inherited>false</inherited>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>generate-code</id>
+ <phase>initialize</phase>
+ <configuration>
+ <tasks>
+ <echo>Generating code</echo>
+ <java classname="org.wso2.utils.codegen.CodegenHelper"
+ fork="true">
+ <arg value="./clustering-codegen.xml"/>
+ <classpath refid="maven.dependency.classpath"/>
+ <classpath refid="maven.compile.classpath"/>
+ <classpath refid="maven.runtime.classpath"/>
+ </java>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
More information about the Wsas-java-dev
mailing list