You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by jb...@apache.org on 2006/02/20 23:26:27 UTC
svn commit: r379259 [6/7] - in /incubator/tuscany/sandbox/binding.axis2: ./
src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/
src/main/java/org/apache/tuscany/ src/main/java/org/apache/tuscany/binding/
src/main/java/org/apache/...
Added: incubator/tuscany/sandbox/binding.axis2/src/main/resources/model/sca-assembly.genmodel
URL: http://svn.apache.org/viewcvs/incubator/tuscany/sandbox/binding.axis2/src/main/resources/model/sca-assembly.genmodel?rev=379259&view=auto
==============================================================================
--- incubator/tuscany/sandbox/binding.axis2/src/main/resources/model/sca-assembly.genmodel (added)
+++ incubator/tuscany/sandbox/binding.axis2/src/main/resources/model/sca-assembly.genmodel Mon Feb 20 14:26:19 2006
@@ -0,0 +1,196 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * 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.
+ -->
+<genmodel:GenModel xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
+ xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/tuscany.runtime.model/src/main/java"
+ editDirectory="/org.apache.tuscany.model.edit/src" editorDirectory="/org.apache.tuscany.model.editor/src"
+ modelPluginID="tuscany.runtime.model" runtimeJar="true" modelName="Sca-assembly"
+ editPluginClass="org.apache.tuscany.model.edit.provider.ModelEditPlugin" editorPluginClass="org.apache.tuscany.model.editor.ModelEditorPlugin"
+ updateClasspath="false" rootExtendsInterface="" rootExtendsClass="org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl"
+ rootImplementsInterface="org.eclipse.emf.ecore.sdo.InternalEDataObject" suppressEMFTypes="true"
+ featureMapWrapperInterface="commonj.sdo.Sequence" featureMapWrapperInternalInterface="org.eclipse.emf.ecore.sdo.util.ESequence"
+ featureMapWrapperClass="org.eclipse.emf.ecore.sdo.util.BasicESequence" testsDirectory="/tuscany.runtime.model/src/test/java"
+ testSuiteClass="org.apache.tuscany.model.assembly.sdo.tests.AssemblyTests" booleanFlagsField=""
+ importerID="org.eclipse.xsd.ecore.importer">
+ <foreignModel>sca.xsd</foreignModel>
+ <staticPackages>http://www.eclipse.org/emf/2003/SDO</staticPackages>
+ <modelPluginVariables>EMF_COMMONJ_SDO=org.eclipse.emf.commonj.sdo</modelPluginVariables>
+ <modelPluginVariables>EMF_ECORE_SDO=org.eclipse.emf.ecore.sdo</modelPluginVariables>
+ <genPackages prefix="Assembly" basePackage="org.apache.tuscany.model" adapterFactory="false"
+ interfacePackageSuffix="binding" classPackageSuffix="binding.impl" utilityPackageSuffix="binding.util"
+ testsPackageSuffix="binding.tests" ecorePackage="sca-assembly.ecore#/">
+ <genEnums ecoreEnum="sca-assembly.ecore#//OverrideOptions">
+ <genEnumLiterals ecoreEnumLiteral="sca-assembly.ecore#//OverrideOptions/no"/>
+ <genEnumLiterals ecoreEnumLiteral="sca-assembly.ecore#//OverrideOptions/may"/>
+ <genEnumLiterals ecoreEnumLiteral="sca-assembly.ecore#//OverrideOptions/must"/>
+ </genEnums>
+ <genDataTypes ecoreDataType="sca-assembly.ecore#//Multiplicity"/>
+ <genDataTypes ecoreDataType="sca-assembly.ecore#//OverrideOptionsObject"/>
+ <genClasses ecoreClass="sca-assembly.ecore#//Binding">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//Binding/uri"/>
+ </genClasses>
+ <genClasses ecoreClass="sca-assembly.ecore#//Component">
+ <genFeatures property="None" notify="false" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//Component/implementation"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//Component/properties"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//Component/references"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//Component/any"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//Component/name"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//Component/anyAttribute"/>
+ </genClasses>
+ <genClasses ecoreClass="sca-assembly.ecore#//ComponentType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//ComponentType/services"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//ComponentType/references"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference sca-assembly.ecore#//ComponentType/properties"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//ComponentType/any"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//ComponentType/anyAttribute"/>
+ </genClasses>
+ <genClasses ecoreClass="sca-assembly.ecore#//DocumentRoot">
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//DocumentRoot/mixed"/>
+ <genFeatures property="None" notify="false" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//DocumentRoot/xMLNSPrefixMap"/>
+ <genFeatures property="None" notify="false" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//DocumentRoot/xSISchemaLocation"/>
+ <genFeatures property="None" notify="false" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//DocumentRoot/binding"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference sca-assembly.ecore#//DocumentRoot/bindingSca"/>
+ <genFeatures property="None" notify="false" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//DocumentRoot/componentType"/>
+ <genFeatures property="None" notify="false" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//DocumentRoot/implementation"/>
+ <genFeatures property="None" notify="false" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//DocumentRoot/interface"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference sca-assembly.ecore#//DocumentRoot/interfaceJava"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference sca-assembly.ecore#//DocumentRoot/interfaceWsdl"/>
+ <genFeatures property="None" notify="false" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//DocumentRoot/module"/>
+ <genFeatures property="None" notify="false" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//DocumentRoot/moduleFragment"/>
+ <genFeatures property="None" notify="false" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//DocumentRoot/source"/>
+ <genFeatures property="None" notify="false" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//DocumentRoot/sourceEpr"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//DocumentRoot/sourceUri"/>
+ <genFeatures property="None" notify="false" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//DocumentRoot/subsystem"/>
+ <genFeatures property="None" notify="false" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//DocumentRoot/target"/>
+ <genFeatures property="None" notify="false" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//DocumentRoot/targetEpr"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//DocumentRoot/targetUri"/>
+ </genClasses>
+ <genClasses ecoreClass="sca-assembly.ecore#//EntryPoint">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//EntryPoint/interfaceGroup"/>
+ <genFeatures property="None" notify="false" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//EntryPoint/interface"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//EntryPoint/bindingGroup"/>
+ <genFeatures property="None" notify="false" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//EntryPoint/binding"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//EntryPoint/references"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//EntryPoint/any"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//EntryPoint/multiplicity"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//EntryPoint/name"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//EntryPoint/anyAttribute"/>
+ </genClasses>
+ <genClasses ecoreClass="sca-assembly.ecore#//ExternalService">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//ExternalService/interfaceGroup"/>
+ <genFeatures property="None" notify="false" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//ExternalService/interface"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//ExternalService/bindingsGroup"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference sca-assembly.ecore#//ExternalService/bindings"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//ExternalService/any"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//ExternalService/name"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//ExternalService/overridable"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//ExternalService/anyAttribute"/>
+ </genClasses>
+ <genClasses ecoreClass="sca-assembly.ecore#//Implementation"/>
+ <genClasses ecoreClass="sca-assembly.ecore#//Interface"/>
+ <genClasses ecoreClass="sca-assembly.ecore#//JavaInterface">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//JavaInterface/any"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//JavaInterface/callbackInterface"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//JavaInterface/interface"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//JavaInterface/anyAttribute"/>
+ </genClasses>
+ <genClasses ecoreClass="sca-assembly.ecore#//Module"/>
+ <genClasses ecoreClass="sca-assembly.ecore#//ModuleComponent">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//ModuleComponent/properties"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//ModuleComponent/references"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//ModuleComponent/any"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//ModuleComponent/module"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//ModuleComponent/name"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//ModuleComponent/uri"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//ModuleComponent/anyAttribute"/>
+ </genClasses>
+ <genClasses ecoreClass="sca-assembly.ecore#//ModuleFragment">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//ModuleFragment/entryPoints"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//ModuleFragment/components"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//ModuleFragment/externalServices"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//ModuleFragment/wires"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//ModuleFragment/any"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//ModuleFragment/name"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//ModuleFragment/anyAttribute"/>
+ </genClasses>
+ <genClasses ecoreClass="sca-assembly.ecore#//ModuleWire">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//ModuleWire/sourceUri"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//ModuleWire/targetUri"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//ModuleWire/any"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//ModuleWire/anyAttribute"/>
+ </genClasses>
+ <genClasses ecoreClass="sca-assembly.ecore#//Property">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//Property/any"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//Property/default"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//Property/many"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//Property/name"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//Property/required"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//Property/propertyType"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//Property/anyAttribute"/>
+ </genClasses>
+ <genClasses ecoreClass="sca-assembly.ecore#//PropertyValues">
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//PropertyValues/any"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//PropertyValues/anyAttribute"/>
+ </genClasses>
+ <genClasses ecoreClass="sca-assembly.ecore#//Reference">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//Reference/interfaceGroup"/>
+ <genFeatures property="None" notify="false" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//Reference/interface"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//Reference/any"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//Reference/multiplicity"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//Reference/name"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//Reference/anyAttribute"/>
+ </genClasses>
+ <genClasses ecoreClass="sca-assembly.ecore#//ReferenceValues">
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//ReferenceValues/any"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//ReferenceValues/anyAttribute"/>
+ </genClasses>
+ <genClasses ecoreClass="sca-assembly.ecore#//SCABinding">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//SCABinding/any"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//SCABinding/anyAttribute"/>
+ </genClasses>
+ <genClasses ecoreClass="sca-assembly.ecore#//Service">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//Service/interfaceGroup"/>
+ <genFeatures property="None" notify="false" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//Service/interface"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//Service/any"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//Service/name"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//Service/anyAttribute"/>
+ </genClasses>
+ <genClasses ecoreClass="sca-assembly.ecore#//Subsystem">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//Subsystem/entryPoints"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//Subsystem/moduleComponents"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//Subsystem/externalServices"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//Subsystem/wires"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//Subsystem/any"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//Subsystem/name"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//Subsystem/uri"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//Subsystem/anyAttribute"/>
+ </genClasses>
+ <genClasses ecoreClass="sca-assembly.ecore#//SystemWire">
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//SystemWire/sourceGroup"/>
+ <genFeatures property="None" notify="false" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//SystemWire/source"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//SystemWire/targetGroup"/>
+ <genFeatures property="None" notify="false" createChild="true" ecoreFeature="ecore:EReference sca-assembly.ecore#//SystemWire/target"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//SystemWire/any"/>
+ </genClasses>
+ <genClasses ecoreClass="sca-assembly.ecore#//WSDLPortType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//WSDLPortType/any"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//WSDLPortType/callbackInterface"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//WSDLPortType/interface"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute sca-assembly.ecore#//WSDLPortType/anyAttribute"/>
+ </genClasses>
+ </genPackages>
+</genmodel:GenModel>
Added: incubator/tuscany/sandbox/binding.axis2/src/main/resources/model/sca-binding-webservice.xsd
URL: http://svn.apache.org/viewcvs/incubator/tuscany/sandbox/binding.axis2/src/main/resources/model/sca-binding-webservice.xsd?rev=379259&view=auto
==============================================================================
--- incubator/tuscany/sandbox/binding.axis2/src/main/resources/model/sca-binding-webservice.xsd (added)
+++ incubator/tuscany/sandbox/binding.axis2/src/main/resources/model/sca-binding-webservice.xsd Mon Feb 20 14:26:19 2006
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:codegen="http://www.eclipse.org/emf/2002/Ecore" xmlns:sca="http://www.osoa.org/xmlns/sca/0.9" xmlns:ws="http://org.apache.tuscany/xmlns/webservice/0.9" codegen:nsPrefix="ws" codegen:package="org.apache.tuscany.binding.axis2.assembly" elementFormDefault="qualified" targetNamespace="http://org.apache.tuscany/xmlns/webservice/0.9">
+
+ <import namespace="http://www.osoa.org/xmlns/sca/0.9" schemaLocation="sca-core.xsd"/>
+
+ <element name="binding.ws" substitutionGroup="sca:binding" type="ws:WebServiceBinding"/>
+ <complexType name="WebServiceBinding">
+ <complexContent>
+ <extension base="sca:Binding">
+ <sequence>
+ <any maxOccurs="unbounded" minOccurs="0" namespace="##other" processContents="lax"/>
+ </sequence>
+ <attribute name="port" type="anyURI" use="required"/>
+ <anyAttribute namespace="##any" processContents="lax"/>
+ </extension>
+ </complexContent>
+ </complexType>
+</schema>
Propchange: incubator/tuscany/sandbox/binding.axis2/src/main/resources/model/sca-binding-webservice.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/sandbox/binding.axis2/src/main/resources/model/sca-binding-webservice.xsd
------------------------------------------------------------------------------
svn:keywords = Rev,Date
Added: incubator/tuscany/sandbox/binding.axis2/src/main/resources/model/sca-core.xsd
URL: http://svn.apache.org/viewcvs/incubator/tuscany/sandbox/binding.axis2/src/main/resources/model/sca-core.xsd?rev=379259&view=auto
==============================================================================
--- incubator/tuscany/sandbox/binding.axis2/src/main/resources/model/sca-core.xsd (added)
+++ incubator/tuscany/sandbox/binding.axis2/src/main/resources/model/sca-core.xsd Mon Feb 20 14:26:19 2006
@@ -0,0 +1,215 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schema xmlns="http://www.w3.org/2001/XMLSchema"
+ targetNamespace="http://www.osoa.org/xmlns/sca/0.9"
+ xmlns:sca="http://www.osoa.org/xmlns/sca/0.9"
+ elementFormDefault="qualified">
+
+ <element name="componentType" type="sca:ComponentType"/>
+ <complexType name="ComponentType">
+ <sequence>
+ <element minOccurs="0" maxOccurs="unbounded" name="service" type="sca:Service"/>
+ <element minOccurs="0" maxOccurs="unbounded" name="reference" type="sca:Reference"/>
+ <element minOccurs="0" maxOccurs="unbounded" name="property" type="sca:Property"/>
+ <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <anyAttribute namespace="##any" processContents="lax"/>
+ </complexType>
+
+ <complexType name="Service">
+ <sequence>
+ <element minOccurs="1" maxOccurs="1" ref="sca:interface"/>
+ <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="name" type="NCName" use="required"/>
+ <anyAttribute namespace="##any" processContents="lax"/>
+ </complexType>
+
+ <element name="interface" type="sca:Interface"/>
+ <complexType name="Interface"/>
+
+ <complexType name="Reference">
+ <sequence>
+ <element minOccurs="1" maxOccurs="1" ref="sca:interface"/>
+ <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="name" type="NCName" use="required"/>
+ <attribute name="multiplicity" type="sca:Multiplicity" use="optional" default="1..1"/>
+ <anyAttribute namespace="##any" processContents="lax"/>
+ </complexType>
+
+ <complexType name="Property" abstract="true">
+ <sequence>
+ <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="name" type="NCName" use="required"/>
+ <attribute name="type" type="QName" use="required"/>
+ <attribute name="many" type="boolean" default="false" use="optional"/>
+ <attribute name="required" type="boolean" default="false" use="optional"/>
+ <attribute name="default" type="string" use="optional"/>
+ <anyAttribute namespace="##any" processContents="lax"/>
+ </complexType>
+
+
+ <element name="moduleFragment" type="sca:ModuleFragment"/>
+ <complexType name="ModuleFragment">
+ <sequence>
+ <element minOccurs="0" maxOccurs="unbounded" name="entryPoint" type="sca:EntryPoint"/>
+ <element minOccurs="0" maxOccurs="unbounded" name="component" type="sca:Component"/>
+ <element minOccurs="0" maxOccurs="unbounded" name="externalService" type="sca:ExternalService"/>
+ <element minOccurs="0" maxOccurs="unbounded" name="wire" type="sca:ModuleWire"/>
+ <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="name" type="NCName" use="required"/>
+ <anyAttribute namespace="##any" processContents="lax"/>
+ </complexType>
+
+ <element name="module" type="sca:Module"/>
+ <complexType name="Module">
+ <complexContent>
+ <extension base="sca:ModuleFragment"/>
+ </complexContent>
+ </complexType>
+
+ <complexType name="EntryPoint">
+ <sequence>
+ <element minOccurs="0" maxOccurs="1" ref="sca:interface"/>
+ <element minOccurs="1" maxOccurs="unbounded" ref="sca:binding"/>
+ <element minOccurs="1" maxOccurs="unbounded" name="reference" type="anyURI"/>
+ <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="name" type="NCName" use="required"/>
+ <attribute name="multiplicity" type="sca:Multiplicity" use="optional" default="1..1"/>
+ <anyAttribute namespace="##any" processContents="lax"/>
+ </complexType>
+ <!-- a multiplicity 1..1 or 0..n sample
+ <reference>StockQuoteComponent</reference> - type must be URI
+ a multiplicity 1..n or 0..n sample
+ <reference>StockQuoteComponent1</reference> - type must be URI
+ <reference>StockQuoteComponent2</reference>
+ -->
+
+ <element name="binding" type="sca:Binding"/>
+ <complexType name="Binding">
+ <attribute name="uri" type="anyURI" use="optional"/>
+ </complexType>
+
+ <complexType name="Component">
+ <sequence>
+ <element minOccurs="1" maxOccurs="1" ref="sca:implementation"/>
+ <element minOccurs="0" maxOccurs="1" name="properties" type="sca:PropertyValues"/>
+ <element minOccurs="0" maxOccurs="1" name="references" type="sca:ReferenceValues"/>
+ <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="name" type="NCName" use="required"/>
+ <anyAttribute namespace="##any" processContents="lax"/>
+ </complexType>
+ <!-- a multiplicity 1..1 or 0..1 sample
+ <references>
+ <v:stockQuote>StockQuoteComponent</v:stockquote> - type must be URI
+ </references>
+ a multiplicity 1..n or 0..n sample
+ <references>
+ <v:stockQuote>StockQuoteComponent1</v:stockQuote> - type must be URI
+ <v:stockQuote>StockQuoteComponent2</v:stockQuote>
+ </references>
+ -->
+
+ <element name="implementation" type="sca:Implementation"/>
+ <complexType name="Implementation"/>
+
+ <complexType name="PropertyValues">
+ <sequence>
+ <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <anyAttribute namespace="##any" processContents="lax"/>
+ </complexType>
+
+ <complexType name="ReferenceValues">
+ <sequence>
+ <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <anyAttribute namespace="##any" processContents="lax"/>
+ </complexType>
+
+
+ <complexType name="ExternalService">
+ <sequence>
+ <element minOccurs="1" maxOccurs="1" ref="sca:interface"/>
+ <element minOccurs="0" maxOccurs="unbounded" ref="sca:binding"/>
+ </sequence>
+ <attribute name="name" type="NCName" use="required"/>
+ <attribute name="overridable" type="sca:OverrideOptions" default="may" use="optional"/>
+ <anyAttribute namespace="##any" processContents="lax"/>
+ </complexType>
+
+
+ <complexType name="ModuleWire">
+ <sequence>
+ <element minOccurs="1" maxOccurs="1" ref="sca:source.uri"/>
+ <element minOccurs="1" maxOccurs="1" ref="sca:target.uri"/>
+ <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <anyAttribute namespace="##any" processContents="lax"/>
+ </complexType>
+
+ <element name="source" type="anyType"/>
+ <element name="target" type="anyType"/>
+
+ <element name="source.uri" type="anyURI" substitutionGroup="sca:source"/>
+ <element name="target.uri" type="anyURI" substitutionGroup="sca:target"/>
+
+ <element name="subsystem" type="sca:Subsystem"/>
+ <complexType name="Subsystem">
+ <sequence>
+ <element minOccurs="0" maxOccurs="unbounded" name="entryPoint" type="sca:EntryPoint"/>
+ <element minOccurs="0" maxOccurs="unbounded" name="moduleComponent" type="sca:ModuleComponent"/>
+ <element minOccurs="0" maxOccurs="unbounded" name="externalService" type="sca:ExternalService"/>
+ <element minOccurs="0" maxOccurs="unbounded" name="wire" type="sca:SystemWire"/>
+ <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="name" type="NCName" use="required"/>
+ <attribute name="uri" type="anyURI" use="optional"/>
+ <anyAttribute namespace="##any" processContents="lax"/>
+ </complexType>
+
+ <complexType name="ModuleComponent">
+ <sequence>
+ <element minOccurs="0" maxOccurs="1" name="properties" type="sca:PropertyValues"/>
+ <element minOccurs="0" maxOccurs="1" name="references" type="sca:ReferenceValues"/>
+ <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="name" type="NCName" use="required"/>
+ <attribute name="module" type="NCName" use="required"/>
+ <attribute name="uri" type="anyURI" use="optional"/>
+ <anyAttribute namespace="##any" processContents="lax"/>
+ </complexType>
+
+ <complexType name="SystemWire">
+ <sequence>
+ <element minOccurs="1" maxOccurs="1" ref="sca:source"/>
+ <element minOccurs="1" maxOccurs="1" ref="sca:target"/>
+ <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <element name="source.epr" type="anyType" substitutionGroup="sca:source"/>
+ <element name="target.epr" type="anyType" substitutionGroup="sca:target"/>
+
+ <simpleType name="Multiplicity">
+ <restriction base="string">
+ <enumeration value="0..1"/>
+ <enumeration value="1..1"/>
+ <enumeration value="0..n"/>
+ <enumeration value="1..n"/>
+ </restriction>
+ </simpleType>
+
+ <simpleType name="OverrideOptions">
+ <restriction base="string">
+ <enumeration value="no"/>
+ <enumeration value="may"/>
+ <enumeration value="must"/>
+ </restriction>
+ </simpleType>
+
+</schema>
\ No newline at end of file
Propchange: incubator/tuscany/sandbox/binding.axis2/src/main/resources/model/sca-core.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/sandbox/binding.axis2/src/main/resources/model/sca-core.xsd
------------------------------------------------------------------------------
svn:keywords = Rev,Date
Added: incubator/tuscany/sandbox/binding.axis2/src/main/resources/org/apache/tuscany/binding/axis2/config/impl/server-config.wsdd
URL: http://svn.apache.org/viewcvs/incubator/tuscany/sandbox/binding.axis2/src/main/resources/org/apache/tuscany/binding/axis2/config/impl/server-config.wsdd?rev=379259&view=auto
==============================================================================
--- incubator/tuscany/sandbox/binding.axis2/src/main/resources/org/apache/tuscany/binding/axis2/config/impl/server-config.wsdd (added)
+++ incubator/tuscany/sandbox/binding.axis2/src/main/resources/org/apache/tuscany/binding/axis2/config/impl/server-config.wsdd Mon Feb 20 14:26:19 2006
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * 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.
+ -->
+<deployment name="defaultClientConfig"
+ xmlns="http://xml.apache.org/axis/wsdd/"
+ xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"
+ xmlns:handler="http://xml.apache.org/axis/wsdd/providers/handler">
+
+ <globalConfiguration>
+ <parameter name="disablePrettyXML" value="false"/>
+ <parameter name="dotNetSoapEncFix" value="true"/>
+ <parameter name="axis.servicesPath" value="/sca/"/>
+ <parameter name="axis.disableServiceList" value="true"/>
+
+ <requestFlow>
+ <handler type="java:org.apache.axis.handlers.SOAPMonitorHandler"/>
+ </requestFlow>
+ <responseFlow>
+ <handler type="java:org.apache.axis.handlers.SOAPMonitorHandler"/>
+ </responseFlow>
+
+ </globalConfiguration>
+
+ <handler type="java:org.apache.axis.handlers.http.URLMapper" name="URLMapper"/>
+ <handler type="java:org.apache.axis.transport.local.LocalResponder" name="LocalResponder"/>
+ <handler type="java:org.apache.axis.handlers.SimpleAuthenticationHandler" name="Authenticate"/>
+
+ <transport name="http">
+ <parameter name="qs:list"
+ value="org.apache.axis.transport.http.QSListHandler"/>
+ <parameter name="qs:method"
+ value="org.apache.axis.transport.http.QSMethodHandler"/>
+ <parameter name="qs:wsdl"
+ value="org.apache.axis.transport.http.QSWSDLHandler"/>
+ <requestFlow>
+ <handler type="URLMapper"/>
+ <handler type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/>
+ </requestFlow>
+ </transport>
+
+ <transport name="local">
+ <responseFlow>
+ <handler type="LocalResponder"/>
+ </responseFlow>
+ </transport>
+
+</deployment>
Added: incubator/tuscany/sandbox/binding.axis2/src/main/resources/org/apache/tuscany/binding/axis2/externalservice/ExternalWebServiceConfigurationHandler.componentType
URL: http://svn.apache.org/viewcvs/incubator/tuscany/sandbox/binding.axis2/src/main/resources/org/apache/tuscany/binding/axis2/externalservice/ExternalWebServiceConfigurationHandler.componentType?rev=379259&view=auto
==============================================================================
--- incubator/tuscany/sandbox/binding.axis2/src/main/resources/org/apache/tuscany/binding/axis2/externalservice/ExternalWebServiceConfigurationHandler.componentType (added)
+++ incubator/tuscany/sandbox/binding.axis2/src/main/resources/org/apache/tuscany/binding/axis2/externalservice/ExternalWebServiceConfigurationHandler.componentType Mon Feb 20 14:26:19 2006
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="ASCII"?>
+<!--
+ * Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * 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.
+ -->
+<componentType xmlns="http://www.osoa.org/xmlns/sca/0.9">
+
+ <service name="handler">
+ <interface.java interface="org.apache.tuscany.core.message.handler.MessageHandler"/>
+ </service>
+
+</componentType>
Added: incubator/tuscany/sandbox/binding.axis2/src/main/resources/sca.fragment
URL: http://svn.apache.org/viewcvs/incubator/tuscany/sandbox/binding.axis2/src/main/resources/sca.fragment?rev=379259&view=auto
==============================================================================
--- incubator/tuscany/sandbox/binding.axis2/src/main/resources/sca.fragment (added)
+++ incubator/tuscany/sandbox/binding.axis2/src/main/resources/sca.fragment Mon Feb 20 14:26:19 2006
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="ASCII"?>
+<!--
+ * Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * 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.
+ -->
+<moduleFragment xmlns="http://www.osoa.org/xmlns/sca/0.9" xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9"
+ name="org.apache.tuscany.binding.axis2">
+
+ <component name="org.apache.tuscany.binding.axis2.externalservice.ExternalWebServiceConfigurationHandler">
+ <implementation.system class="org.apache.tuscany.binding.axis2.externalservice.ExternalWebServiceConfigurationHandler"/>
+ </component>
+
+ <wire>
+ <source.uri>org.apache.tuscany.core.pipeline.ExternalServiceBindingExtensionPoint/extensions</source.uri>
+ <target.uri>org.apache.tuscany.binding.axis2.externalservice.ExternalWebServiceConfigurationHandler</target.uri>
+ </wire>
+
+</moduleFragment>
Added: incubator/tuscany/sandbox/binding.axis2/src/main/resources/tuscany-model.config
URL: http://svn.apache.org/viewcvs/incubator/tuscany/sandbox/binding.axis2/src/main/resources/tuscany-model.config?rev=379259&view=auto
==============================================================================
--- incubator/tuscany/sandbox/binding.axis2/src/main/resources/tuscany-model.config (added)
+++ incubator/tuscany/sandbox/binding.axis2/src/main/resources/tuscany-model.config Mon Feb 20 14:26:19 2006
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * 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.
+ -->
+<config:modelConfiguration xmlns:config="http://org.apache.tuscany/xmlns/model/config/0.9">
+
+ <generatedPackage packageClassName="org.apache.tuscany.binding.axis2.assembly.sdo.WebServiceAssemblyPackage" uri="http://org.apache.tuscany/xmlns/webservice/0.9" preLoad="true"/>
+
+</config:modelConfiguration>
Added: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/sdo/tests/DocumentRootTest.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/sdo/tests/DocumentRootTest.java?rev=379259&view=auto
==============================================================================
--- incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/sdo/tests/DocumentRootTest.java (added)
+++ incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/sdo/tests/DocumentRootTest.java Mon Feb 20 14:26:19 2006
@@ -0,0 +1,140 @@
+/**
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * 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.
+ */
+package org.apache.tuscany.binding.axis2.assembly.sdo.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.apache.tuscany.binding.axis2.assembly.sdo.DocumentRoot;
+import org.apache.tuscany.binding.axis2.assembly.sdo.WebServiceAssemblyFactory;
+
+/**
+ * <!-- begin-user-doc -->
+ * A test case for the model object '<em><b>Document Root</b></em>'.
+ * <!-- end-user-doc -->
+ * <p/>
+ * The following features are tested:
+ * <ul>
+ * <li>{@link org.apache.tuscany.binding.axis2.assembly.sdo.DocumentRoot#getBindingWs() <em>Binding Ws</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class DocumentRootTest extends TestCase {
+ /**
+ * The fixture for this Document Root test case.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected DocumentRoot fixture = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(DocumentRootTest.class);
+ }
+
+ /**
+ * Constructs a new Document Root test case with the given name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public DocumentRootTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Sets the fixture for this Document Root test case.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(DocumentRoot fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * Returns the fixture for this Document Root test case.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private DocumentRoot getFixture() {
+ return fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @see junit.framework.TestCase#setUp()
+ */
+ protected void setUp() throws Exception {
+ setFixture(WebServiceAssemblyFactory.eINSTANCE.createDocumentRoot());
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @see junit.framework.TestCase#tearDown()
+ */
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+ /**
+ * Tests the '{@link org.apache.tuscany.binding.axis2.assembly.sdo.DocumentRoot#getBindingWs() <em>Binding Ws</em>}' feature getter.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @see org.apache.tuscany.binding.axis2.assembly.sdo.DocumentRoot#getBindingWs()
+ */
+ public void testGetBindingWs() {
+ // TODO: implement this feature getter test method
+ // Ensure that you remove @generated or mark it @generated NOT
+ fail();
+ }
+
+ /**
+ * Tests the '{@link org.apache.tuscany.binding.axis2.assembly.sdo.DocumentRoot#setBindingWs(org.apache.tuscany.binding.axis2.assembly.sdo.WebServiceBinding) <em>Binding Ws</em>}' feature setter.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.apache.tuscany.binding.axis2.assembly.sdo.DocumentRoot#setBindingWs(org.apache.tuscany.binding.axis2.assembly.sdo.WebServiceBinding)
+ * @generated
+ */
+ public void testSetBindingWs() {
+ // TODO: implement this feature setter test method
+ // Ensure that you remove @generated or mark it @generated NOT
+ fail();
+ }
+
+} //DocumentRootTest
Propchange: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/sdo/tests/DocumentRootTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/sdo/tests/DocumentRootTest.java
------------------------------------------------------------------------------
svn:keywords = Rev,Date
Added: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/sdo/tests/WebServiceAssemblyExample.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/sdo/tests/WebServiceAssemblyExample.java?rev=379259&view=auto
==============================================================================
--- incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/sdo/tests/WebServiceAssemblyExample.java (added)
+++ incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/sdo/tests/WebServiceAssemblyExample.java Mon Feb 20 14:26:19 2006
@@ -0,0 +1,137 @@
+/**
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * 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.
+ */
+package org.apache.tuscany.binding.axis2.assembly.sdo.tests;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.Iterator;
+
+import org.eclipse.emf.common.util.Diagnostic;
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.emf.ecore.resource.ResourceSet;
+import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
+import org.eclipse.emf.ecore.util.Diagnostician;
+import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl;
+import org.osoa.sca.model.WebServiceBinding;
+
+import org.apache.tuscany.binding.axis2.assembly.sdo.DocumentRoot;
+import org.apache.tuscany.binding.axis2.assembly.sdo.WebServiceAssemblyFactory;
+import org.apache.tuscany.binding.axis2.assembly.sdo.WebServiceAssemblyPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * A sample utility for the '<em><b>assembly</b></em>' package.
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class WebServiceAssemblyExample {
+ /**
+ * <!-- begin-user-doc -->
+ * Load all the argument file paths or URIs as instances of the model.
+ * <!-- end-user-doc -->
+ *
+ * @param args the file paths or URIs.
+ * @generated
+ */
+ public static void main(String[] args) {
+ // Create a resource set to hold the resources.
+ //
+ ResourceSet resourceSet = new ResourceSetImpl();
+
+ // Register the appropriate resource factory to handle all file extentions.
+ //
+ resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put
+ (Resource.Factory.Registry.DEFAULT_EXTENSION,
+ new XMIResourceFactoryImpl());
+
+ // Register the package to ensure it is available during loading.
+ //
+ resourceSet.getPackageRegistry().put
+ (WebServiceAssemblyPackage.eNS_URI,
+ WebServiceAssemblyPackage.eINSTANCE);
+
+ // If there are no arguments, emit an appropriate usage message.
+ //
+ if (args.length == 0) {
+ System.out.println("Enter a list of file paths or URIs that have content like this:");
+ try {
+ Resource resource = resourceSet.createResource(URI.createURI("http:///My.webserviceassembly"));
+ DocumentRoot documentRoot = WebServiceAssemblyFactory.eINSTANCE.createDocumentRoot();
+ WebServiceBinding root = WebServiceAssemblyFactory.eINSTANCE.createWebServiceBinding();
+ documentRoot.setBindingWs(root);
+ resource.getContents().add(documentRoot);
+ resource.save(System.out, null);
+ }
+ catch (IOException exception) {
+ exception.printStackTrace();
+ }
+ } else {
+ // Iterate over all the arguments.
+ //
+ for (int i = 0; i < args.length; ++i) {
+ // Construct the URI for the instance file.
+ // The argument is treated as a file path only if it denotes an existing file.
+ // Otherwise, it's directly treated as a URL.
+ //
+ File file = new File(args[0]);
+ URI uri = file.isFile() ? URI.createFileURI(file.getAbsolutePath()) : URI.createURI(args[0]);
+
+ try {
+ // Demand load resource for this file.
+ //
+ Resource resource = resourceSet.getResource(uri, true);
+ System.out.println("Loaded " + uri);
+
+ // Validate the contents of the loaded resource.
+ //
+ for (Iterator j = resource.getContents().iterator(); j.hasNext();) {
+ EObject eObject = (EObject) j.next();
+ Diagnostic diagnostic = Diagnostician.INSTANCE.validate(eObject);
+ if (diagnostic.getSeverity() != Diagnostic.OK) {
+ printDiagnostic(diagnostic, "");
+ }
+ }
+ }
+ catch (RuntimeException exception) {
+ System.out.println("Problem loading " + uri);
+ exception.printStackTrace();
+ }
+ }
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * Prints diagnostics with indentation.
+ * <!-- end-user-doc -->
+ *
+ * @param diagnostic the diagnostic to print.
+ * @param indent the indentation for printing.
+ * @generated
+ */
+ protected static void printDiagnostic(Diagnostic diagnostic, String indent) {
+ System.out.print(indent);
+ System.out.println(diagnostic.getMessage());
+ for (Iterator i = diagnostic.getChildren().iterator(); i.hasNext();) {
+ printDiagnostic((Diagnostic) i.next(), indent + " ");
+ }
+ }
+
+} //WebServiceAssemblyExample
Propchange: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/sdo/tests/WebServiceAssemblyExample.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/sdo/tests/WebServiceAssemblyExample.java
------------------------------------------------------------------------------
svn:keywords = Rev,Date
Added: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/sdo/tests/WebServiceAssemblyTests.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/sdo/tests/WebServiceAssemblyTests.java?rev=379259&view=auto
==============================================================================
--- incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/sdo/tests/WebServiceAssemblyTests.java (added)
+++ incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/sdo/tests/WebServiceAssemblyTests.java Mon Feb 20 14:26:19 2006
@@ -0,0 +1,63 @@
+/**
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * 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.
+ */
+package org.apache.tuscany.binding.axis2.assembly.sdo.tests;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+/**
+ * <!-- begin-user-doc -->
+ * A test suite for the '<em><b>assembly</b></em>' package.
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class WebServiceAssemblyTests extends TestSuite {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(suite());
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static Test suite() {
+ TestSuite suite = new WebServiceAssemblyTests("assembly Tests");
+ suite.addTestSuite(DocumentRootTest.class);
+ return suite;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public WebServiceAssemblyTests(String name) {
+ super(name);
+ }
+
+} //WebServiceAssemblyTests
Propchange: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/sdo/tests/WebServiceAssemblyTests.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/sdo/tests/WebServiceAssemblyTests.java
------------------------------------------------------------------------------
svn:keywords = Rev,Date
Added: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/sdo/tests/WebServiceBindingTest.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/sdo/tests/WebServiceBindingTest.java?rev=379259&view=auto
==============================================================================
--- incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/sdo/tests/WebServiceBindingTest.java (added)
+++ incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/sdo/tests/WebServiceBindingTest.java Mon Feb 20 14:26:19 2006
@@ -0,0 +1,107 @@
+/**
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * 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.
+ */
+package org.apache.tuscany.binding.axis2.assembly.sdo.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+import org.osoa.sca.model.WebServiceBinding;
+
+import org.apache.tuscany.binding.axis2.assembly.sdo.WebServiceAssemblyFactory;
+
+/**
+ * <!-- begin-user-doc -->
+ * A test case for the model object '<em><b>Web Service Binding</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class WebServiceBindingTest extends TestCase {
+ /**
+ * The fixture for this Web Service Binding test case.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected WebServiceBinding fixture = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(WebServiceBindingTest.class);
+ }
+
+ /**
+ * Constructs a new Web Service Binding test case with the given name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public WebServiceBindingTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Sets the fixture for this Web Service Binding test case.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(WebServiceBinding fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * Returns the fixture for this Web Service Binding test case.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private WebServiceBinding getFixture() {
+ return fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @see junit.framework.TestCase#setUp()
+ */
+ protected void setUp() throws Exception {
+ setFixture(WebServiceAssemblyFactory.eINSTANCE.createWebServiceBinding());
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @see junit.framework.TestCase#tearDown()
+ */
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} //WebServiceBindingTest
Propchange: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/sdo/tests/WebServiceBindingTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/sdo/tests/WebServiceBindingTest.java
------------------------------------------------------------------------------
svn:keywords = Rev,Date
Added: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/WebServiceAssemblyLoaderTestCase.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/WebServiceAssemblyLoaderTestCase.java?rev=379259&view=auto
==============================================================================
--- incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/WebServiceAssemblyLoaderTestCase.java (added)
+++ incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/WebServiceAssemblyLoaderTestCase.java Mon Feb 20 14:26:19 2006
@@ -0,0 +1,73 @@
+/**
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * 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.
+ */
+package org.apache.tuscany.binding.axis2.assembly.tests;
+
+import junit.framework.Assert;
+import junit.framework.TestCase;
+
+import org.apache.tuscany.binding.axis2.assembly.WebServiceBinding;
+import org.apache.tuscany.model.assembly.AssemblyLoader;
+import org.apache.tuscany.model.assembly.AssemblyModelContext;
+import org.apache.tuscany.model.assembly.Binding;
+import org.apache.tuscany.model.assembly.Component;
+import org.apache.tuscany.model.assembly.EntryPoint;
+import org.apache.tuscany.model.assembly.ExternalService;
+import org.apache.tuscany.model.assembly.Module;
+import org.apache.tuscany.model.assembly.impl.AssemblyModelContextImpl;
+
+/**
+ */
+public class WebServiceAssemblyLoaderTestCase extends TestCase {
+
+ private AssemblyModelContext modelContext;
+
+ /**
+ *
+ */
+ public WebServiceAssemblyLoaderTestCase() {
+ super();
+ }
+
+ public void testLoader() {
+
+ AssemblyLoader loader = modelContext.getAssemblyLoader();
+ Module module = loader.getModule(getClass().getResource("sca.module").toString());
+ module.initialize(modelContext);
+
+ Assert.assertTrue(module.getName().equals("tuscany.binding.axis2.assembly.tests.bigbank.account"));
+
+ Component component = module.getComponent("AccountServiceComponent");
+ Assert.assertTrue(component != null);
+
+ EntryPoint entryPoint = module.getEntryPoint("AccountService");
+ Assert.assertTrue(entryPoint != null);
+
+ ExternalService externalService = module.getExternalService("StockQuoteService");
+ Assert.assertTrue(externalService != null);
+
+ Binding binding = externalService.getBindings().get(0);
+ Assert.assertTrue(binding instanceof WebServiceBinding);
+ }
+
+ protected void setUp() throws Exception {
+ super.setUp();
+
+ Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
+ modelContext = new AssemblyModelContextImpl();
+ }
+
+}
Propchange: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/WebServiceAssemblyLoaderTestCase.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/WebServiceAssemblyLoaderTestCase.java
------------------------------------------------------------------------------
svn:keywords = Rev,Date
Added: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/account/AccountReport.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/account/AccountReport.java?rev=379259&view=auto
==============================================================================
--- incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/account/AccountReport.java (added)
+++ incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/account/AccountReport.java Mon Feb 20 14:26:19 2006
@@ -0,0 +1,32 @@
+/**
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * 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.
+ */
+package org.apache.tuscany.binding.axis2.assembly.tests.bigbank.account.services.account;
+
+import java.util.List;
+
+/**
+ * @model
+ */
+
+public interface AccountReport {
+
+ /**
+ * @model type="services.account.AccountSummary"
+ */
+
+ List getAccountSummaries();
+}
Propchange: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/account/AccountReport.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/account/AccountReport.java
------------------------------------------------------------------------------
svn:keywords = Rev,Date
Added: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/account/AccountService.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/account/AccountService.java?rev=379259&view=auto
==============================================================================
--- incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/account/AccountService.java (added)
+++ incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/account/AccountService.java Mon Feb 20 14:26:19 2006
@@ -0,0 +1,25 @@
+/**
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * 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.
+ */
+package org.apache.tuscany.binding.axis2.assembly.tests.bigbank.account.services.account;
+
+import org.osoa.sca.annotations.Remotable;
+
+@Remotable
+public interface AccountService {
+
+ public AccountReport getAccountReport(String customerID);
+}
Propchange: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/account/AccountService.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/account/AccountService.java
------------------------------------------------------------------------------
svn:keywords = Rev,Date
Added: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/account/AccountService.wsdl
URL: http://svn.apache.org/viewcvs/incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/account/AccountService.wsdl?rev=379259&view=auto
==============================================================================
--- incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/account/AccountService.wsdl (added)
+++ incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/account/AccountService.wsdl Mon Feb 20 14:26:19 2006
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
+
+ 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.
+ -->
+<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:tns="http://www.bigbank.com/AccountService/"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ targetNamespace="http://www.bigbank.com/AccountService/"
+
+ name="AccountService">
+
+ <wsdl:types>
+ <xsd:schema targetNamespace="http://www.bigbank.com/AccountService/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+ <xsd:element name="customerID" type="xsd:string"/>
+ <xsd:element name="getAccountReportResponse" type="tns:AccountReport"/>
+
+ <xsd:complexType name="AccountReport">
+ <xsd:sequence>
+ <xsd:element name="accountSummary" type="tns:AccountSummary" maxOccurs="unbounded"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="AccountSummary">
+ <xsd:sequence>
+ <xsd:element name="accountNumber" type="xsd:string"/>
+ <xsd:element name="accountType" type="xsd:string"/>
+ <xsd:element name="balance" type="xsd:float"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ </xsd:schema>
+ </wsdl:types>
+ <wsdl:message name="getAccountReportRequest">
+ <wsdl:part element="tns:customerID" name="getAccountReportRequest"/>
+ </wsdl:message>
+ <wsdl:message name="getAccountReportResponse">
+ <wsdl:part element="tns:getAccountReportResponse" name="getAccountReportResponse"/>
+ </wsdl:message>
+ <wsdl:portType name="AccountService">
+ <wsdl:operation name="getAccountReport">
+ <wsdl:input message="tns:getAccountReportRequest"/>
+ <wsdl:output message="tns:getAccountReportResponse"/>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="AccountServiceSOAP" type="tns:AccountService">
+ <soap:binding style="document"
+ transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="getAccountReport">
+ <soap:operation
+ soapAction="http://www.bigbank.com/AccountService/getAccountReport"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="AccountService">
+ <wsdl:port binding="tns:AccountServiceSOAP"
+ name="AccountServiceSOAP">
+ <soap:address location=""/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
Added: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/account/AccountServiceImpl.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/account/AccountServiceImpl.java?rev=379259&view=auto
==============================================================================
--- incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/account/AccountServiceImpl.java (added)
+++ incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/account/AccountServiceImpl.java Mon Feb 20 14:26:19 2006
@@ -0,0 +1,42 @@
+/**
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * 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.
+ */
+package org.apache.tuscany.binding.axis2.assembly.tests.bigbank.account.services.account;
+
+import org.osoa.sca.annotations.Property;
+import org.osoa.sca.annotations.Reference;
+
+import org.apache.tuscany.binding.axis2.assembly.tests.bigbank.account.services.accountdata.AccountDataService;
+import org.apache.tuscany.binding.axis2.assembly.tests.bigbank.account.services.stockquote.StockQuoteService;
+
+public class AccountServiceImpl implements AccountService {
+
+ @Property
+ public String currency = "USD";
+
+ @Reference
+ public AccountDataService accountDataService;
+ @Reference
+ public StockQuoteService stockQuoteService;
+
+ public AccountServiceImpl() {
+ }
+
+ public AccountReport getAccountReport(String customerID) {
+ return null;
+ }
+
+}
Propchange: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/account/AccountServiceImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/account/AccountServiceImpl.java
------------------------------------------------------------------------------
svn:keywords = Rev,Date
Added: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/account/AccountSummary.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/account/AccountSummary.java?rev=379259&view=auto
==============================================================================
--- incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/account/AccountSummary.java (added)
+++ incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/account/AccountSummary.java Mon Feb 20 14:26:19 2006
@@ -0,0 +1,46 @@
+/**
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * 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.
+ */
+package org.apache.tuscany.binding.axis2.assembly.tests.bigbank.account.services.account;
+
+/**
+ * @model
+ */
+
+public interface AccountSummary {
+
+ /**
+ * @model
+ */
+ String getAccountNumber();
+
+ void setAccountNumber(String accountNumber);
+
+ /**
+ * @model
+ */
+ String getAccountType();
+
+ void setAccountType(String accountType);
+
+ /**
+ * @model
+ */
+ float getBalance();
+
+ void setBalance(float balance);
+}
+
Propchange: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/account/AccountSummary.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/account/AccountSummary.java
------------------------------------------------------------------------------
svn:keywords = Rev,Date
Added: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/accountdata/AccountDataService.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/accountdata/AccountDataService.java?rev=379259&view=auto
==============================================================================
--- incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/accountdata/AccountDataService.java (added)
+++ incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/accountdata/AccountDataService.java Mon Feb 20 14:26:19 2006
@@ -0,0 +1,26 @@
+/**
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * 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.
+ */
+package org.apache.tuscany.binding.axis2.assembly.tests.bigbank.account.services.accountdata;
+
+public interface AccountDataService {
+
+ CheckingAccount getCheckingAccount(String customerID);
+
+ SavingsAccount getSavingsAccount(String customerID);
+
+ StockAccount getStockAccount(String customerID);
+}
Propchange: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/accountdata/AccountDataService.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/accountdata/AccountDataService.java
------------------------------------------------------------------------------
svn:keywords = Rev,Date
Added: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/accountdata/AccountDataServiceImpl.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/accountdata/AccountDataServiceImpl.java?rev=379259&view=auto
==============================================================================
--- incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/accountdata/AccountDataServiceImpl.java (added)
+++ incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/accountdata/AccountDataServiceImpl.java Mon Feb 20 14:26:19 2006
@@ -0,0 +1,48 @@
+/**
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * 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.
+ */
+package org.apache.tuscany.binding.axis2.assembly.tests.bigbank.account.services.accountdata;
+
+public class AccountDataServiceImpl implements AccountDataService {
+
+ public CheckingAccount getCheckingAccount(String customerID) {
+
+ CheckingAccount checkingAccount = new CheckingAccount();
+ checkingAccount.setAccountNumber(customerID + "_" + "CHA12345");
+ checkingAccount.setBalance(1500.0f);
+
+ return checkingAccount;
+ }
+
+ public SavingsAccount getSavingsAccount(String customerID) {
+
+ SavingsAccount savingsAccount = new SavingsAccount();
+ savingsAccount.setAccountNumber(customerID + "_" + "SAA12345");
+ savingsAccount.setBalance(1500.0f);
+
+ return savingsAccount;
+ }
+
+ public StockAccount getStockAccount(String customerID) {
+
+ StockAccount stockAccount = new StockAccount();
+ stockAccount.setAccountNumber(customerID + "_" + "STA12345");
+ stockAccount.setSymbol("IBM");
+ stockAccount.setQuantity(100);
+
+ return stockAccount;
+ }
+}
Propchange: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/accountdata/AccountDataServiceImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/accountdata/AccountDataServiceImpl.java
------------------------------------------------------------------------------
svn:keywords = Rev,Date
Added: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/accountdata/CheckingAccount.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/accountdata/CheckingAccount.java?rev=379259&view=auto
==============================================================================
--- incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/accountdata/CheckingAccount.java (added)
+++ incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/accountdata/CheckingAccount.java Mon Feb 20 14:26:19 2006
@@ -0,0 +1,39 @@
+/**
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * 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.
+ */
+package org.apache.tuscany.binding.axis2.assembly.tests.bigbank.account.services.accountdata;
+
+public class CheckingAccount {
+
+ private String accountNumber;
+ private float balance;
+
+ public String getAccountNumber() {
+ return accountNumber;
+ }
+
+ public void setAccountNumber(String accountNumber) {
+ this.accountNumber = accountNumber;
+ }
+
+ public float getBalance() {
+ return balance;
+ }
+
+ public void setBalance(float balance) {
+ this.balance = balance;
+ }
+}
Propchange: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/accountdata/CheckingAccount.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/accountdata/CheckingAccount.java
------------------------------------------------------------------------------
svn:keywords = Rev,Date
Added: incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/accountdata/SavingsAccount.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/accountdata/SavingsAccount.java?rev=379259&view=auto
==============================================================================
--- incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/accountdata/SavingsAccount.java (added)
+++ incubator/tuscany/sandbox/binding.axis2/src/test/java/org/apache/tuscany/binding/axis2/assembly/tests/bigbank/account/services/accountdata/SavingsAccount.java Mon Feb 20 14:26:19 2006
@@ -0,0 +1,39 @@
+/**
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * 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.
+ */
+package org.apache.tuscany.binding.axis2.assembly.tests.bigbank.account.services.accountdata;
+
+public class SavingsAccount {
+
+ private String accountNumber;
+ private float balance;
+
+ public String getAccountNumber() {
+ return accountNumber;
+ }
+
+ public void setAccountNumber(String accountNumber) {
+ this.accountNumber = accountNumber;
+ }
+
+ public float getBalance() {
+ return balance;
+ }
+
+ public void setBalance(float balance) {
+ this.balance = balance;
+ }
+}