diff options
Diffstat (limited to 'sca-java-1.x/tags/1.5.1-RC3/itest/databindings')
310 files changed, 0 insertions, 23076 deletions
diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/pom.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/pom.xml deleted file mode 100644 index da93a73f53..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/pom.xml +++ /dev/null @@ -1,126 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<project> - <parent> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>itest-databindings</artifactId> - <version>1.5.1</version> - </parent> - - <modelVersion>4.0.0</modelVersion> - - <artifactId>itest-databindings-common</artifactId> - <version>1.5.1</version> - <packaging>jar</packaging> - <name>Apache Tuscany SCA iTest Databinding Common</name> - - <repositories> - <repository> - <snapshots> - <enabled>true</enabled> - </snapshots> - <id>java.net</id> - <name>java.net Maven 1.x Repository</name> - <url>http://download.java.net/maven/1</url> - <layout>legacy</layout> - </repository> - </repositories> - - <pluginRepositories> - <pluginRepository> - <snapshots> - <enabled>true</enabled> - </snapshots> - <id>java.net</id> - <name>java.net Maven 1.x Repository</name> - <url>http://download.java.net/maven/1</url> - <layout>legacy</layout> - </pluginRepository> - </pluginRepositories> - - <dependencies> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-databinding-sdo</artifactId> - <version>${pom.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sdo</groupId> - <artifactId>tuscany-sdo-tools</artifactId> - <version>1.1.1</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>velocity</groupId> - <artifactId>velocity</artifactId> - <version>1.4</version> - <scope>compile</scope> - </dependency> - </dependencies> - - <build> - <plugins> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>build-helper-maven-plugin</artifactId> - <version>1.0</version> - <executions> - <execution> - <id>add-test-source</id> - <phase>generate-sources</phase> - <goals> - <goal>add-test-source</goal> - </goals> - <configuration> - <sources> - <source>target/sdo-source</source> - </sources> - </configuration> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.tuscany.sdo</groupId> - <artifactId>tuscany-sdo-plugin</artifactId> - <version>1.1.1</version> - <executions> - <execution> - <id>generate-sdo</id> - <phase>generate-sources</phase> - <configuration> - <schemaFiles> - <configuration> - <fileName>${basedir}/src/main/resources/generate/generate.xsd</fileName> - </configuration> - </schemaFiles> - <noNotification>true</noNotification> - <noContainment>true</noContainment> - <noUnsettable>true</noUnsettable> - </configuration> - <goals> - <goal>generate</goal> - </goals> - </execution> - </executions> - </plugin> - </plugins> - </build> -</project> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/java/org/apache/tuscany/sca/itest/generate/Generate.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/java/org/apache/tuscany/sca/itest/generate/Generate.java deleted file mode 100644 index adb546a1ea..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/java/org/apache/tuscany/sca/itest/generate/Generate.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.itest.generate; - -import java.io.File; -import java.io.FileInputStream; -import java.io.FileWriter; -import java.util.List; -import java.util.Properties; - -import org.apache.tuscany.generate.GenerateFactory; -import org.apache.tuscany.generate.GenerateType; -import org.apache.tuscany.generate.InputFileType; -import org.apache.tuscany.generate.TemplateType; -import org.apache.tuscany.sdo.generate.XSD2JavaGenerator; -import org.apache.tuscany.sdo.util.SDOUtil; -import org.apache.velocity.VelocityContext; -import org.apache.velocity.app.Velocity; - -import commonj.sdo.helper.HelperContext; -import commonj.sdo.helper.XMLDocument; - -/** - * Generates test files based on the information in a configuration files (generate.xml) - * and a set of velocity templates. The process is - * - * for each template - * for each xsd file - * generate SDOs - * include the factory into the composite - * for each type - * add client iface method - * add client impl method - * add service iface method - * add service impl method - * add test method - * add wsdl type and method - * - * @version $Rev$ $Date$ - */ -public class Generate { - - /** - * Does all the hard work of running the velocity templates against the - * the list of types to test. Both the list of templates and the list of - * XSD files is held in the configuration file (generate.xsd) which lives in the - * resources/generate directory of the project being generated. - * - * @param projectBuildDir the path to the target dir of the project being generated. - */ - public static void generate(String projectBuildDir) { - System.out.println(">> Building project from dir: " + projectBuildDir); - FileInputStream fis = null; - - try { - // Load the config file into a stream - fis = new FileInputStream(projectBuildDir + "/classes/generate/generate.xml"); - - // Load the stream into SDO - // We are just using SDO as a convenient way to parse the XML config file - HelperContext scope = SDOUtil.createHelperContext(); - GenerateFactory.INSTANCE.register(scope); - XMLDocument xmlDoc = scope.getXMLHelper().load(fis); - GenerateType generateType = (GenerateType)xmlDoc.getRootObject(); - - // Get the file list. This is the list of XSD that is passed into the - // the velocity templates. Each configured file holds a list of types - // that the velocity templates expand into appropriate methods and method calls - List fileList = generateType.getInputFile(); - - //Initialise velocity ready to generate the various files - Properties p = new Properties(); - p.setProperty("file.resource.loader.path", projectBuildDir + "/classes/generate"); - Velocity.init(p); - VelocityContext context = new VelocityContext(); - context.put("fileList", fileList); - - List templateList = generateType.getTemplate(); - - // For each velocity template in the template list pass in the XSD file list - for ( Object item: templateList){ - TemplateType template = (TemplateType)item; - context.put("template", template); - String tmp = template.getTemplateName(); - String filename = projectBuildDir + "/" + template.getTemplateTargetDir() + "/" + tmp.substring(0,tmp.length() - 3); - File f = new File(filename); - // Create folders since the package doesn't exist before the code-gen for the 1st time - f.getParentFile().mkdirs(); - FileWriter fw = new FileWriter(f); - System.out.println(">> Processing " + template.getTemplateName() + " to " + filename); - Velocity.mergeTemplate(template.getTemplateName(), context, fw ); - fw.flush(); - fw.close(); - } - - - } catch (Exception e) { - System.out.println("Exception : " + e.toString()); - e.printStackTrace(); - return; - } - } - - /** - * The SDO generator tool does all of the hard work - * - * @param projectBuildDir the path to the target dir of the project being generated. - */ - public static void generateSDO(String projectBuildDir) { - System.out.println(">> Building SDOs from dir: " + projectBuildDir); - FileInputStream fis = null; - - try { - // Load the config file into a stream - fis = new FileInputStream(projectBuildDir + "/classes/generate/generate.xml"); - - // Load the stream into SDO - // We are just using SDO as a convenient way to parse the XML config file - HelperContext scope = SDOUtil.createHelperContext(); - GenerateFactory.INSTANCE.register(scope); - XMLDocument xmlDoc = scope.getXMLHelper().load(fis); - GenerateType generateType = (GenerateType)xmlDoc.getRootObject(); - - // Get the file list. This is the list of XSD that is passed into the - // the velocity templates. Each configured file holds a list of types - // that the velocity templates expand into appropriate methods and method calls - List fileList = generateType.getInputFile(); - - // for each XSD in the XSD file list generate an SDO. - XSD2JavaGenerator generator = new XSD2JavaGenerator(); - - for ( Object item : fileList){ - InputFileType file = (InputFileType)item; - - XSD2JavaGenerator.generateFromXMLSchema(projectBuildDir + "/classes/xsd/" + file.getFileName(), - file.getNamespace(), - projectBuildDir + "/sdo-source", - file.getJavaPackage(), - null, //file.getPrefix(), - XSD2JavaGenerator.OPTION_NO_CONTAINMENT | XSD2JavaGenerator.OPTION_NO_NOTIFICATION | XSD2JavaGenerator.OPTION_NO_UNSETTABLE); - - } - - } catch (Exception e) { - System.out.println("Exception : " + e.toString()); - e.printStackTrace(); - return; - } - } - - /** - * The mainline - * - * @param args the target directory where project in which files are being generated - */ - public static void main(String[] args) { - - Generate.generate(args[0]); - - if (args.length > 1){ - Generate.generateSDO(args[0]); - } - } - -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/generate/DatabindingTestCase.java.vm b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/generate/DatabindingTestCase.java.vm deleted file mode 100644 index b2346aa973..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/generate/DatabindingTestCase.java.vm +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package $template.getJavaPackage(); - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.host.embedded.SCADomain; -import org.osoa.sca.ComponentContext; -import org.osoa.sca.ServiceReference; - -import ${template.getJavaPackage()}.GreeterService; - -// Data types -#foreach($file in $fileList) -#set($typeList = $file.getType_()) -#foreach($typeInstance in $typeList) -import $file.getJavaPackage().$typeInstance.getTypeName(); -import $file.getJavaPackage().$file.getFactory(); -#end -#end - -/** - * Automatically generated test case. Calls the greeter client for a number of - * bindings and a number of data types. - * - * @version $Rev: 511417 $ $Date: 2007-02-25 03:06:42 +0000 (Sun, 25 Feb 2007) $ - */ -public class DatabindingTestCase extends TestCase { - - private SCADomain domain; - private GreeterService greeterClient; - - /** - * Runs before each test method - */ - protected void setUp() throws Exception { - domain = SCADomain.newInstance("greeter.composite"); - super.setUp(); - } - - /** - * Runs after each test method - */ - protected void tearDown() { - domain.close(); - } - - /** - * Finds the SCA component that relates to the protocol being tested. This test - * always connects locally to the client component but the client component will - * connect to the back end component using the appropriate protocol - * - * @param ext the protcol required - */ - private void setUpClient(String ext) throws Exception { - greeterClient = domain.getService(GreeterService.class, ext + "GreeterServiceClient"); - } - - /** - * Invokes the SDO Greet service using web service bindings with SDO payload - */ - public void testWSGreet() throws Exception { - setUpClient("WS"); - greet(); - } - - /** - * Invokes the SDO Greet service using default bindings with SDO payload - */ - public void testDefaultGreet() throws Exception { - setUpClient("Default"); - greet(); - } - - /** - * A generic method which, regarless of which client is connected, sends out a - * series of requrests passing different data types. - */ - public void greet() { -#foreach($file in $fileList) -#set($typeList = $file.getType_()) -#foreach($typeInstance in $typeList) - - // test $typeInstance.getTypeName() - { - $typeInstance.getTypeName() param = null; - $typeInstance.getCreateTypeCode() - $typeInstance.getTypeName() result = greeterClient.greet$typeInstance.getTypeName()(param); - $typeInstance.getResultComparison() - } -#end -#end - } - -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/generate/Greeter.wsdl.vm b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/generate/Greeter.wsdl.vm deleted file mode 100644 index 88616cc997..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/generate/Greeter.wsdl.vm +++ /dev/null @@ -1,103 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<wsdl:definitions targetNamespace="http://apache.org/tuscany/sca/itest/databinding/services" - xmlns:tns="http://apache.org/tuscany/sca/itest/databinding/services" - xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" - xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - name="Greeter"> - - <wsdl:types> - <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" -#foreach($file in $fileList) - xmlns:$file.getPrefix()="$file.getNamespace()" -#end - targetNamespace="http://apache.org/tuscany/sca/itest/databinding/services" - elementFormDefault="qualified"> - -#foreach($file in $fileList) - <xsd:import namespace="$file.getNamespace()" - schemaLocation="../xsd/$file.getFileName()" /> -#end - -#foreach($file in $fileList) -#set($typeList = $file.getType_()) -#foreach($typeInstance in $typeList) - <element name="greet$typeInstance.getTypeName()"> - <complexType> - <sequence> - <element name="parm" type="$file.getPrefix():$typeInstance.getTypeName()" /> - </sequence> - </complexType> - </element> -#end -#end - </xsd:schema> - </wsdl:types> -#foreach($file in $fileList) -#set($typeList = $file.getType_()) -#foreach($typeInstance in $typeList) - - <wsdl:message name="$typeInstance.getTypeName()Request"> - <wsdl:part element="tns:greet$typeInstance.getTypeName()" name="parameters" /> - </wsdl:message> - <wsdl:message name="$typeInstance.getTypeName()Response"> - <wsdl:part element="tns:greet$typeInstance.getTypeName()" name="parameters" /> - </wsdl:message> -#end -#end - - <wsdl:portType name="GreeterPortType"> -#foreach($file in $fileList) -#set($typeList = $file.getType_()) -#foreach($typeInstance in $typeList) - <wsdl:operation name="greet$typeInstance.getTypeName()"> - <wsdl:input message="tns:$typeInstance.getTypeName()Request" name="$typeInstance.getTypeName()RequestMsg" /> - <wsdl:output message="tns:$typeInstance.getTypeName()Response" name="$typeInstance.getTypeName()ResponseMsg" /> - </wsdl:operation> -#end -#end - </wsdl:portType> - - <wsdl:binding name="GreeterBinding" type="tns:GreeterPortType"> - <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> -#foreach($file in $fileList) -#set($typeList = $file.getType_()) -#foreach($typeInstance in $typeList) - <wsdl:operation name="greet$typeInstance.getTypeName()"> - <wsdlsoap:operation soapAction="" /> - <wsdl:input name="$typeInstance.getTypeName()RequestMsg"> - <wsdlsoap:body use="literal" /> - </wsdl:input> - <wsdl:output name="$typeInstance.getTypeName()ResponseMsg"> - <wsdlsoap:body use="literal" /> - </wsdl:output> - </wsdl:operation> -#end -#end - </wsdl:binding> - - <wsdl:service name="GreeterService"> - <wsdl:port name="GreeterPort" binding="tns:GreeterBinding"> - <wsdlsoap:address location="http://localhost:8085/services/GreeterServiceWebServiceBinding" /> - </wsdl:port> - </wsdl:service> - -</wsdl:definitions> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/generate/GreeterService.java.vm b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/generate/GreeterService.java.vm deleted file mode 100644 index 77a12e92ec..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/generate/GreeterService.java.vm +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package $template.getJavaPackage(); - -#foreach($file in $fileList) -#set($typeList = $file.getType_()) -#foreach($typeInstance in $typeList) -import $file.getJavaPackage().$typeInstance.getTypeName(); -#end -#end - -import org.osoa.sca.annotations.Remotable; - -/** - * The automatically generated interface to the service that reflects data objects - * that are sent to it - * - * @version $Rev: 511417 $ $Date: 2007-02-25 03:06:42 +0000 (Sun, 25 Feb 2007) $ - */ -@Remotable -public interface GreeterService { - -#foreach($file in $fileList) -#set($typeList = $file.getType_()) -#foreach($typeInstance in $typeList) - /** - * Take the provided data object, change it slightly and return it - * - * @param param the data object to be changed and returned - * @return the change data object - */ - $typeInstance.getTypeName() greet$typeInstance.getTypeName()($typeInstance.getTypeName() param); -#end -#end - -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/generate/GreeterServiceClient.java.vm b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/generate/GreeterServiceClient.java.vm deleted file mode 100644 index ee73db6152..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/generate/GreeterServiceClient.java.vm +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package $template.getJavaPackage(); - -#foreach($file in $fileList) -#set($typeList = $file.getType_()) -#foreach($typeInstance in $typeList) -import $file.getJavaPackage().$typeInstance.getTypeName(); -#end -#end - -import org.osoa.sca.annotations.AllowsPassByReference; - -/** - * GreeterServiceClient - */ -@AllowsPassByReference -public interface GreeterServiceClient { -#foreach($file in $fileList) -#set($typeList = $file.getType_()) -#foreach($typeInstance in $typeList) - $typeInstance.getTypeName() greet$typeInstance.getTypeName()($typeInstance.getTypeName() param); -#end -#end -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/generate/GreeterServiceClientImpl.java.vm b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/generate/GreeterServiceClientImpl.java.vm deleted file mode 100644 index aab564dc1e..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/generate/GreeterServiceClientImpl.java.vm +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package $template.getJavaPackage(); - -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -#foreach($file in $fileList) -#set($typeList = $file.getType_()) -#foreach($typeInstance in $typeList) -import $file.getJavaPackage().$typeInstance.getTypeName(); -#end -#end - -/** - * The automatically generated service that simply forwards data objects on to - * the GreeterService and passes back the responses - * - * @version $Rev: 508831 $ $Date: 2007-02-18 00:12:31 +0000 (Sun, 18 Feb 2007) $ - */ -@Service(GreeterService.class) -public class GreeterServiceClientImpl implements GreeterService { - - /** - * the reference the the GreeterService that will - * change each data object slightly and return it - */ - private GreeterService service; - - @Reference - public void setGreeterService(GreeterService service) { - this.service = service; - } -#foreach($file in $fileList) -#set($typeList = $file.getType_()) -#foreach($typeInstance in $typeList) - - /* - * (non-Javadoc) - * - * @see org.apache.tuscany.sca.itest.sdodatabinding.GreeterService#greet$typeInstance.getTypeName()($typeInstance.getTypeName() param) - */ - public $typeInstance.getTypeName() greet$typeInstance.getTypeName()($typeInstance.getTypeName() param) { - return service.greet$typeInstance.getTypeName()(param); - } -#end -#end -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/generate/GreeterServiceImpl.java.vm b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/generate/GreeterServiceImpl.java.vm deleted file mode 100644 index 5507a0b747..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/generate/GreeterServiceImpl.java.vm +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package $template.getJavaPackage(); - -#foreach($file in $fileList) -#set($typeList = $file.getType_()) -#foreach($typeInstance in $typeList) -import $file.getJavaPackage().$typeInstance.getTypeName(); -#end -#end - -import org.osoa.sca.annotations.Service; - -/** - * The automatically generated service implementation that reflects data objects - * that are sent to it - * - * @version $Rev: 511417 $ $Date: 2007-02-25 03:06:42 +0000 (Sun, 25 Feb 2007) $ - */ -@Service(GreeterService.class) -public class GreeterServiceImpl implements GreeterService { -#foreach($file in $fileList) -#set($typeList = $file.getType_()) -#foreach($typeInstance in $typeList) - - /** - * Take the provided data object, change it slightly and return it - * - * @param param the data object to be changed and returned - * @return the change data object - */ - public $typeInstance.getTypeName() greet$typeInstance.getTypeName()($typeInstance.getTypeName() param) { - $typeInstance.getModifyTypeCode() - return param; - } -#end -#end -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/generate/generate.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/generate/generate.xsd deleted file mode 100644 index 1fabedf55f..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/generate/generate.xsd +++ /dev/null @@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/generate" - xmlns:tns="http://www.apache.org/tuscany/generate"> - - <complexType name="TypeType"> - <sequence> - <element name="TypeName" type="string"/> - <element name="CreateTypeCode" type="string"/> - <element name="ModifyTypeCode" type="string"/> - <element name="ResultComparison" type="string"/> - </sequence> - </complexType> - - <complexType name="InputFileType"> - <sequence> - <element name="FileName" type="string"/> - <element name="FilePath" type="string"/> - <element name="JavaPackage" type="string"/> - <element name="Factory" type="string"/> - <element name="Namespace" type="string"/> - <element name="Prefix" type="string"/> - <element name="Type" type="tns:TypeType" maxOccurs="unbounded"/> - </sequence> - </complexType> - - <complexType name="TemplateType"> - <sequence> - <element name="TemplateName" type="string"/> - <element name="TemplateTargetDir" type="string"/> - <element name="JavaPackage" type="string"/> - </sequence> - </complexType> - - <complexType name="GenerateType"> - <sequence> - <element name="Template" type="tns:TemplateType" maxOccurs="unbounded"/> - <element name="InputFile" type="tns:InputFileType" maxOccurs="unbounded"/> - </sequence> - </complexType> - - <element name="Generate" type="tns:GenerateType"/> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/wsdl/Dummy.txt b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/wsdl/Dummy.txt deleted file mode 100644 index 8927d725b6..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/wsdl/Dummy.txt +++ /dev/null @@ -1,4 +0,0 @@ -A dummy file that causes the target/classes/wsdl dir to be created in the generated test project. This is -required because the test generator must run in the process-resource phase, after generate.xml has been copied -into target. The generator needs to write out target/classes/wsdl and will fail the directory isn't there. So -this file just gets unpacked and forces the directory to be created. diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Annotation.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Annotation.xml deleted file mode 100644 index f1f4346e58..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Annotation.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:Annotation xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop Annotation.xsd"> - <SimpleTypeWithNameElement>SimpleTypeWithName</SimpleTypeWithNameElement> -</tns:Annotation> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Annotation.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Annotation.xsd deleted file mode 100644 index 1fae43eb09..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Annotation.xsd +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <annotation> - <appinfo>SDO 2.0.1</appinfo> - <documentation> - A schema that tests the presence of annotations in schema read by SDO - </documentation> - </annotation> - - <complexType name="AnnotationComplexType"> - <sequence> - <element name="SimpleTypeWithNameElement" type="string"/> - </sequence> - </complexType> - - <element name="Annotation" type="tns:AnnotationComplexType"/> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Attribute.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Attribute.xml deleted file mode 100644 index c20c80b658..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Attribute.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:Attribute xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop Attribute.xsd "> - <AttributeElement Attribute="Attribute"/> -</tns:Attribute> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Attribute.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Attribute.xsd deleted file mode 100644 index bd3db2e030..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Attribute.xsd +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:sdo="commonj.sdo"> - - <complexType name="AttributeType"> - <sequence> - </sequence> - <attribute name="Attribute" type="string"/> - </complexType> - - <complexType name="AttributeComplexType"> - <sequence> - <element name="AttributeElement" type="tns:AttributeType"/> - </sequence> - </complexType> - - <element name="Attribute" type="tns:AttributeComplexType"/> - -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeReference.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeReference.xml deleted file mode 100644 index 30e4979dca..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeReference.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:AttributeReference xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop AttributeReference.xsd "> - <AttributeReferenceElement tns:ReferencedAttribute="AttributeReference"/> -</tns:AttributeReference> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeReference.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeReference.xsd deleted file mode 100644 index e7738dcff7..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeReference.xsd +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:sdo="commonj.sdo"> - - <attribute name="ReferencedAttribute" type="string"/> - - <complexType name="AttributeReferenceComplexType"> - <sequence> - </sequence> - <attribute ref="tns:ReferencedAttribute"/> - </complexType> - - <element name="AttributeReference"> - <complexType> - <sequence> - <element name="AttributeReferenceElement" type="tns:AttributeReferenceComplexType"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithDefaultValue.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithDefaultValue.xml deleted file mode 100644 index 9552421e2d..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithDefaultValue.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:AttributeWithDefaultValueElement xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop AttributeWithDefaultValue.xsd "> - <AttributeWithDefaultValueElement AttributeWithDefaultValue="AttributeWithDefaultValueDefaultValue"/> -</tns:AttributeWithDefaultValueElement> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithDefaultValue.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithDefaultValue.xsd deleted file mode 100644 index c7b9655749..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithDefaultValue.xsd +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:sdo="commonj.sdo"> - - <complexType name="AttributeWithDefaultValueType"> - <sequence> - </sequence> - <attribute name="AttributeWithDefaultValue" type="string" default="AttributeWithDefaultValueDefaultValue"/> - </complexType> - - <element name="AttributeWithDefaultValueElement"> - <complexType> - <sequence> - <element name="AttributeWithDefaultValueElement" type="tns:AttributeWithDefaultValueType"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithFixedValue.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithFixedValue.xml deleted file mode 100644 index 5e5e7fbd55..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithFixedValue.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:AttributeWithFixedValueType xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop AttributeWithFixedValue.xsd "> - <AttributeWithFixedValueElement AttributeWithFixedValue="AttributeWithFixedValueFixedValue"/> -</tns:AttributeWithFixedValueType> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithFixedValue.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithFixedValue.xsd deleted file mode 100644 index 5c455c2ab5..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithFixedValue.xsd +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:sdo="commonj.sdo"> - - <complexType name="AttributeWithFixedValueType"> - <sequence> - </sequence> - <attribute name="AttributeWithFixedValue" type="string" fixed="AttributeWithFixedValueFixedValue"/> - </complexType> - - <element name="AttributeWithFixedValueType"> - <complexType> - <sequence> - <element name="AttributeWithFixedValueElement" type="tns:AttributeWithFixedValueType"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOAliasName.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOAliasName.xml deleted file mode 100644 index 635e851632..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOAliasName.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:AttributeWithSDOAliasName xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop AttributeWithSDOAliasName.xsd "> - <AttributeWithSDOAliasNameElement AttributeWithSDOAliasName="AttributeWithSDOAliasName"/> -</tns:AttributeWithSDOAliasName> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOAliasName.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOAliasName.xsd deleted file mode 100644 index 004dab4fbb..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOAliasName.xsd +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:sdo="commonj.sdo"> - - <complexType name="AttributeWithSDOAliasNameType"> - <sequence> - </sequence> - <attribute name="AttributeWithSDOAliasName" sdo:aliasName="AttributeWithSDOAliasNameSDOAliasName" type="string"/> - </complexType> - - <element name="AttributeWithSDOAliasName"> - <complexType> - <sequence> - <element name="AttributeWithSDOAliasNameElement" type="tns:AttributeWithSDOAliasNameType"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDODataType.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDODataType.xml deleted file mode 100644 index 136092951b..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDODataType.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:AttributeWithSDODataType xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop AttributeWithSDODataType.xsd "> - <AttributeWithSDODataTypeTypeElement AttributeWithSDODataType="AttributeWithSDODataType"/> -</tns:AttributeWithSDODataType> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDODataType.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDODataType.xsd deleted file mode 100644 index 796f08e1cf..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDODataType.xsd +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:sdo="commonj.sdo"> - - <complexType name="AttributeWithSDODataTypeType"> - <sequence> - </sequence> - <attribute name="AttributeWithSDODataType" sdo:dataType="string" type="string"/> - </complexType> - - <element name="AttributeWithSDODataType"> - <complexType> - <sequence> - <element name="AttributeWithSDODataTypeTypeElement" type="tns:AttributeWithSDODataTypeType"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOName.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOName.xml deleted file mode 100644 index 927b94885c..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOName.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:AttributeWithSDOName xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop AttributeWithSDOName.xsd "> - <AttributeWithSDONameElement AttributeWithSDOName="AttributeWithSDOName"/> -</tns:AttributeWithSDOName> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOName.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOName.xsd deleted file mode 100644 index 93f83cd0a1..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOName.xsd +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:sdo="commonj.sdo"> - - <complexType name="AttributeWithSDONameType"> - <sequence> - </sequence> - <attribute name="AttributeWithSDOName" sdo:name="AttributeWithSDONameSDOName" type="string"/> - </complexType> - - <element name="AttributeWithSDOName"> - <complexType> - <sequence> - <element name="AttributeWithSDONameElement" type="tns:AttributeWithSDONameType"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOPropertySDOOppositePropertyType.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOPropertySDOOppositePropertyType.xml deleted file mode 100644 index ea7db70595..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOPropertySDOOppositePropertyType.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:AttributeWithSDOPropertySDOOppositePropertyType xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop AttributeWithSDOPropertySDOOppositePropertyType.xsd "> - <AttributeWithSDOPropertySDOOppositePropertyTypeElement AttributeWithSDOPropertySDOOppositePropertyType="idvalue0"/> -</tns:AttributeWithSDOPropertySDOOppositePropertyType> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOPropertySDOOppositePropertyType.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOPropertySDOOppositePropertyType.xsd deleted file mode 100644 index c64323e7e1..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOPropertySDOOppositePropertyType.xsd +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:sdo="commonj.sdo"> - - <complexType name="AttributeWithSDOPropertySDOOppositePropertyTypeType"> - <sequence> - </sequence> - <attribute name="AttributeWithSDOPropertySDOOppositePropertyType" type="IDREF" sdo:propertyType="tns:SimpleTypeWithNameType" sdo:oppositeProperty="tns:AttributeWithSDOPropertyType"/> - </complexType> - - <element name="AttributeWithSDOPropertySDOOppositePropertyType"> - <complexType> - <sequence> - <element name="AttributeWithSDOPropertySDOOppositePropertyTypeElement" type="tns:AttributeWithSDOPropertySDOOppositePropertyTypeType"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOPropertyType.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOPropertyType.xml deleted file mode 100644 index 85c7d85fd4..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOPropertyType.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:AttributeWithSDOPropertyType xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop AttributeWithSDOPropertyType.xsd "> - <AttributeWithSDOPropertyTypeElement AttributeWithSDOPropertyType="idvalue0"/> -</tns:AttributeWithSDOPropertyType> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOPropertyType.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOPropertyType.xsd deleted file mode 100644 index 543f276c50..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOPropertyType.xsd +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:sdo="commonj.sdo"> - - <complexType name="AttributeWithSDOPropertyTypeType"> - <sequence> - </sequence> - <attribute name="AttributeWithSDOPropertyType" type="IDREF" sdo:propertyType="tns:SimpleTypeWithNameType"/> - </complexType> - - <element name="AttributeWithSDOPropertyType"> - <complexType> - <sequence> - <element name="AttributeWithSDOPropertyTypeElement" type="tns:AttributeWithSDOPropertyTypeType"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOString.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOString.xml deleted file mode 100644 index fcd281539b..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOString.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:AttributeWithSDOString xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop AttributeWithSDOString.xsd "> - <AttributeWithSDOStringElement AttributeWithSDOString="AttributeWithSDOString"/> -</tns:AttributeWithSDOString> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOString.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOString.xsd deleted file mode 100644 index 1610c2b861..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOString.xsd +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:sdo="commonj.sdo"> - - <complexType name="AttributeWithSDOStringType"> - <sequence> - </sequence> - <attribute name="AttributeWithSDOString" type="string" sdo:string="true"/> - </complexType> - - <element name="AttributeWithSDOString"> - <complexType> - <sequence> - <element name="AttributeWithSDOStringElement" type="tns:AttributeWithSDOStringType"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInAnySimpleType.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInAnySimpleType.xml deleted file mode 100644 index 36a0760a61..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInAnySimpleType.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInAnySimpleType xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInAnySimpleType.xsd "> - <anySimpleType>anySimpleType</anySimpleType> -</tns:BuiltInAnySimpleType> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInAnySimpleType.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInAnySimpleType.xsd deleted file mode 100644 index 999b72bb35..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInAnySimpleType.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInAnySimpleType"> - <complexType> - <sequence> - <element name="anySimpleType" type="anySimpleType" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInAnyType.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInAnyType.xml deleted file mode 100644 index 5849165fe0..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInAnyType.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInAnyType xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInAnyType.xsd "> - <anyType xsi:type="anyType"/> -</tns:BuiltInAnyType> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInAnyType.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInAnyType.xsd deleted file mode 100644 index 71dad561ca..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInAnyType.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInAnyType"> - <complexType> - <sequence> - <element name="anyType" type="anyType" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInAnyURI.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInAnyURI.xml deleted file mode 100644 index 8acf9376d7..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInAnyURI.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInAnyURI xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInAnyURI.xsd "> - <anyURI>http://tempuri.org</anyURI> -</tns:BuiltInAnyURI> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInAnyURI.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInAnyURI.xsd deleted file mode 100644 index a49987c352..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInAnyURI.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInAnyURI"> - <complexType> - <sequence> - <element name="anyURI" type="anyURI" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInBase64Binary.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInBase64Binary.xml deleted file mode 100644 index a35b6e174a..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInBase64Binary.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuildInBase64Binary xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInBase64Binary.xsd "> - <base64Binary>ABCDEF</base64Binary> -</tns:BuildInBase64Binary> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInBase64Binary.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInBase64Binary.xsd deleted file mode 100644 index e1995890f9..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInBase64Binary.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuildInBase64Binary"> - <complexType> - <sequence> - <element name="base64Binary" type="base64Binary" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInBoolean.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInBoolean.xml deleted file mode 100644 index 91cfce51b8..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInBoolean.xml +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInBoolean xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInBoolean.xsd "> - <boolean>true</boolean> - <boolean>false</boolean> - <boolean>1</boolean> - <boolean>0</boolean> -</tns:BuiltInBoolean> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInBoolean.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInBoolean.xsd deleted file mode 100644 index a2f86ba8c5..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInBoolean.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInBoolean"> - <complexType> - <sequence> - <element name="boolean" type="boolean" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInByte.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInByte.xml deleted file mode 100644 index 907474cd1b..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInByte.xml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInByte xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInByte.xsd "> - <byte>127</byte> - <byte>-127</byte> -</tns:BuiltInByte> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInByte.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInByte.xsd deleted file mode 100644 index a2f6bcfa77..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInByte.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInByte"> - <complexType> - <sequence> - <element name="byte" type="byte" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDate.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDate.xml deleted file mode 100644 index c5820e1a2e..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDate.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInDate xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInDate.xsd "> - <date>2001-01-01</date> -</tns:BuiltInDate> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDate.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDate.xsd deleted file mode 100644 index f4d596bfe3..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDate.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInDate"> - <complexType> - <sequence> - <element name="date" type="date" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDateTime.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDateTime.xml deleted file mode 100644 index 0debe2fec5..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDateTime.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInDateTime xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInDateTime.xsd "> - <dateTime>2001-12-31T12:00:00</dateTime> -</tns:BuiltInDateTime> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDateTime.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDateTime.xsd deleted file mode 100644 index b5bcfdcfd4..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDateTime.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInDateTime"> - <complexType> - <sequence> - <element name="dateTime" type="dateTime" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDecimal.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDecimal.xml deleted file mode 100644 index 7f001254cc..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDecimal.xml +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInDecimal xmlns:tns="http://www.apache.org/tuscany/interop" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInDecimal.xsd "> - <decimal>-1.23456789</decimal> - <decimal>1.23456789</decimal> -</tns:BuiltInDecimal> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDecimal.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDecimal.xsd deleted file mode 100644 index 8d4d106f59..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDecimal.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInDecimal"> - <complexType> - <sequence> - <element name="decimal" type="decimal" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDouble.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDouble.xml deleted file mode 100644 index f875b9f94d..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDouble.xml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInDouble xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInDouble.xsd "> - <double>0.0</double> - <double>12.3E-4</double> -</tns:BuiltInDouble> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDouble.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDouble.xsd deleted file mode 100644 index 4c8a39b06c..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDouble.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInDouble"> - <complexType> - <sequence> - <element name="double" type="double" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDuration.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDuration.xml deleted file mode 100644 index 7d343d6dda..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDuration.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInDuration xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInDuration.xsd "> - <duration>P1D</duration> -</tns:BuiltInDuration> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDuration.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDuration.xsd deleted file mode 100644 index bb12bc04a9..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInDuration.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInDuration"> - <complexType> - <sequence> - <element name="duration" type="duration" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInFloat.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInFloat.xml deleted file mode 100644 index 7a81f3b0dd..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInFloat.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInFloat xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInFloat.xsd "> - <float>0.0</float> -</tns:BuiltInFloat> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInFloat.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInFloat.xsd deleted file mode 100644 index f0e1c21233..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInFloat.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInFloat"> - <complexType> - <sequence> - <element name="float" type="float" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGDay.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGDay.xml deleted file mode 100644 index d35568b3c9..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGDay.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInGDay xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInGDay.xsd "> - <gDay>---01</gDay> -</tns:BuiltInGDay> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGDay.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGDay.xsd deleted file mode 100644 index 92bd9a4b66..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGDay.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInGDay"> - <complexType> - <sequence> - <element name="gDay" type="gDay" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGMonth.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGMonth.xml deleted file mode 100644 index 52cdfa8c4e..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGMonth.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInGMonth xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInGMonth.xsd "> - <gMonth>--01--</gMonth> -</tns:BuiltInGMonth> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGMonth.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGMonth.xsd deleted file mode 100644 index 78d001a585..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGMonth.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInGMonth"> - <complexType> - <sequence> - <element name="gMonth" type="gMonth" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGMonthDay.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGMonthDay.xml deleted file mode 100644 index 2609a858f7..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGMonthDay.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInGMonthDay xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInGMonthDay.xsd "> - <gMonthDay>--01-01</gMonthDay> -</tns:BuiltInGMonthDay> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGMonthDay.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGMonthDay.xsd deleted file mode 100644 index 38f6c55059..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGMonthDay.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInGMonthDay"> - <complexType> - <sequence> - <element name="gMonthDay" type="gMonthDay" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGYear.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGYear.xml deleted file mode 100644 index 7868a47ca3..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGYear.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInGYear xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInGYear.xsd "> - <gYear>2001</gYear> -</tns:BuiltInGYear> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGYear.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGYear.xsd deleted file mode 100644 index 0d65b124ff..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGYear.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInGYear"> - <complexType> - <sequence> - <element name="gYear" type="gYear" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGYearMonth.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGYearMonth.xml deleted file mode 100644 index 3f5080d49f..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGYearMonth.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInGYearMonth xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInGYearMonth.xsd "> - <gYearMonth>2001-01</gYearMonth> -</tns:BuiltInGYearMonth> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGYearMonth.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGYearMonth.xsd deleted file mode 100644 index 340555dc5f..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInGYearMonth.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInGYearMonth"> - <complexType> - <sequence> - <element name="gYearMonth" type="gYearMonth" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInHexBinary.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInHexBinary.xml deleted file mode 100644 index 0deb7af980..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInHexBinary.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInHexBinary xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInHexBinary.xsd "> - <hexBinary>0F00</hexBinary> -</tns:BuiltInHexBinary> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInHexBinary.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInHexBinary.xsd deleted file mode 100644 index 8059fe6da0..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInHexBinary.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInHexBinary"> - <complexType> - <sequence> - <element name="hexBinary" type="hexBinary" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInID.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInID.xml deleted file mode 100644 index 06c92ce19b..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInID.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInID xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInID.xsd "> - <ID>idvalue0</ID> -</tns:BuiltInID> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInID.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInID.xsd deleted file mode 100644 index 7b1f02d1d4..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInID.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInID"> - <complexType> - <sequence> - <element name="ID" type="ID" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInIDREF.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInIDREF.xml deleted file mode 100644 index 9bc0cefd0f..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInIDREF.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInIDREF xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInIDREF.xsd "> - <IDREF>idvalue0</IDREF> -</tns:BuiltInIDREF> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInIDREF.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInIDREF.xsd deleted file mode 100644 index 0c207983bc..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInIDREF.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInIDREF"> - <complexType> - <sequence> - <element name="IDREF" type="IDREF" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInIDREFS.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInIDREFS.xml deleted file mode 100644 index f91b602f99..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInIDREFS.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInIDREFS xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInIDREFS.xsd "> - <IDREFS>idvalue0</IDREFS> -</tns:BuiltInIDREFS> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInIDREFS.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInIDREFS.xsd deleted file mode 100644 index b99bf01b73..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInIDREFS.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInIDREFS"> - <complexType> - <sequence> - <element name="IDREFS" type="IDREFS" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInInt.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInInt.xml deleted file mode 100644 index c99698e175..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInInt.xml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInInt xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInInt.xsd "> - <int>-2147483648</int> - <int>2147483647</int> -</tns:BuiltInInt> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInInt.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInInt.xsd deleted file mode 100644 index b5b9b0d1eb..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInInt.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInInt"> - <complexType> - <sequence> - <element name="int" type="int" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInInteger.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInInteger.xml deleted file mode 100644 index 80d22ce057..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInInteger.xml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInInteger xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInInteger.xsd "> - <integer>-2147483648</integer> - <integer>2147483647</integer> -</tns:BuiltInInteger> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInInteger.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInInteger.xsd deleted file mode 100644 index 4902935db5..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInInteger.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInInteger"> - <complexType> - <sequence> - <element name="integer" type="integer" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInLanguage.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInLanguage.xml deleted file mode 100644 index 664bf824b4..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInLanguage.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInLanguage xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInLanguage.xsd "> - <language>EN</language> -</tns:BuiltInLanguage> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInLanguage.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInLanguage.xsd deleted file mode 100644 index 5d3658d224..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInLanguage.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInLanguage"> - <complexType> - <sequence> - <element name="language" type="language" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInLong.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInLong.xml deleted file mode 100644 index c5861fa92a..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInLong.xml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInLong xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInLong.xsd "> - <long>-9223372036854775808</long> - <long>9223372036854775807</long> -</tns:BuiltInLong> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInLong.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInLong.xsd deleted file mode 100644 index 0aa4710057..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInLong.xsd +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - -<notation name="interop50" public="commonj.sdo"/> - - <element name="BuiltInLong"> - <complexType> - <sequence> - <element name="long" type="long" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNCName.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNCName.xml deleted file mode 100644 index 1f95950394..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNCName.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInNCName xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInNCName.xsd "> - <NCName>NCName</NCName> -</tns:BuiltInNCName> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNCName.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNCName.xsd deleted file mode 100644 index 6ee9c435db..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNCName.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInNCName"> - <complexType> - <sequence> - <element name="NCName" type="NCName" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNMTOKEN.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNMTOKEN.xml deleted file mode 100644 index 0297f1aeb4..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNMTOKEN.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuildInNMTOKEN xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInNMTOKEN.xsd "> - <NMTOKEN>NMTOKEN</NMTOKEN> -</tns:BuildInNMTOKEN> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNMTOKEN.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNMTOKEN.xsd deleted file mode 100644 index 56d027bdbb..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNMTOKEN.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuildInNMTOKEN"> - <complexType> - <sequence> - <element name="NMTOKEN" type="NMTOKEN" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNMTOKENS.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNMTOKENS.xml deleted file mode 100644 index 81ba1069bd..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNMTOKENS.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInNMTOKENS xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInNMTOKENS.xsd "> - <NMTOKENS>NMTOKENS</NMTOKENS> -</tns:BuiltInNMTOKENS> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNMTOKENS.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNMTOKENS.xsd deleted file mode 100644 index 866ab73024..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNMTOKENS.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInNMTOKENS"> - <complexType> - <sequence> - <element name="NMTOKENS" type="NMTOKENS" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNOTATION.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNOTATION.xml deleted file mode 100644 index 8bb3a08b94..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNOTATION.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInNOTATION xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInNOTATION.xsd "> - <NOTATION>tns:BuiltInNotationNotation</NOTATION> -</tns:BuiltInNOTATION> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNOTATION.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNOTATION.xsd deleted file mode 100644 index c7c62f812b..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNOTATION.xsd +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <notation name="BuiltInNotationNotation" public="http://cwiki.apache.org/confluence/display/TUSCANY/Home"/> - - <element name="BuiltInNOTATION"> - <complexType> - <sequence> - <element name="NOTATION" maxOccurs="unbounded"> - <simpleType > - <restriction base="NOTATION"> - <enumeration value="tns:BuiltInNotationNotation"/> - </restriction> - </simpleType> - </element> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInName.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInName.xml deleted file mode 100644 index 8235718c5e..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInName.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInName xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInName.xsd "> - <Name>Name</Name> -</tns:BuiltInName> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInName.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInName.xsd deleted file mode 100644 index 36caba2f16..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInName.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInName"> - <complexType> - <sequence> - <element name="Name" type="Name" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNegativeInteger.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNegativeInteger.xml deleted file mode 100644 index 599c428a44..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNegativeInteger.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInNegativeInteger xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInNegativeInteger.xsd "> - <negativeInteger>-1</negativeInteger> -</tns:BuiltInNegativeInteger> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNegativeInteger.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNegativeInteger.xsd deleted file mode 100644 index 389d5a99f0..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNegativeInteger.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInNegativeInteger"> - <complexType> - <sequence> - <element name="negativeInteger" type="negativeInteger" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNonNegativeInteger.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNonNegativeInteger.xml deleted file mode 100644 index 919c4a20ee..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNonNegativeInteger.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInNonNegativeInteger xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInNonNegativeInteger.xsd "> - <nonNegativeInteger>0</nonNegativeInteger> -</tns:BuiltInNonNegativeInteger> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNonNegativeInteger.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNonNegativeInteger.xsd deleted file mode 100644 index 59887078b5..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNonNegativeInteger.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInNonNegativeInteger"> - <complexType> - <sequence> - <element name="nonNegativeInteger" type="nonNegativeInteger" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNonPositiveInteger.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNonPositiveInteger.xml deleted file mode 100644 index 79011f26ab..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNonPositiveInteger.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInNonPositiveInteger xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInNonPositiveInteger.xsd "> - <nonPositiveInteger>-1</nonPositiveInteger> -</tns:BuiltInNonPositiveInteger> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNonPositiveInteger.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNonPositiveInteger.xsd deleted file mode 100644 index 5de7d64d7b..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNonPositiveInteger.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInNonPositiveInteger"> - <complexType> - <sequence> - <element name="nonPositiveInteger" type="nonPositiveInteger" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNormalizedString.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNormalizedString.xml deleted file mode 100644 index c40be9e18b..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNormalizedString.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInNormalizedString xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInNormalizedString.xsd "> - <normalizedString>normalizedString</normalizedString> -</tns:BuiltInNormalizedString> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNormalizedString.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNormalizedString.xsd deleted file mode 100644 index d4a78787b8..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInNormalizedString.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInNormalizedString"> - <complexType> - <sequence> - <element name="normalizedString" type="normalizedString" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInPositiveInteger.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInPositiveInteger.xml deleted file mode 100644 index c30434de66..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInPositiveInteger.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInPositiveInteger xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInPositiveInteger.xsd "> - <positiveInteger>1</positiveInteger> -</tns:BuiltInPositiveInteger> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInPositiveInteger.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInPositiveInteger.xsd deleted file mode 100644 index 5381590cd1..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInPositiveInteger.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInPositiveInteger"> - <complexType> - <sequence> - <element name="positiveInteger" type="positiveInteger" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInQName.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInQName.xml deleted file mode 100644 index 4cd6ea7e72..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInQName.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInQName xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInQName.xsd "> - <QName>QName</QName> -</tns:BuiltInQName> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInQName.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInQName.xsd deleted file mode 100644 index e8faf6225b..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInQName.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInQName"> - <complexType> - <sequence> - <element name="QName" type="QName" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInShort.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInShort.xml deleted file mode 100644 index b4375467c4..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInShort.xml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInShort xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInShort.xsd "> - <short>-32768</short> - <short>32767</short> -</tns:BuiltInShort> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInShort.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInShort.xsd deleted file mode 100644 index a4f564d9b7..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInShort.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInShort"> - <complexType> - <sequence> - <element name="short" type="short" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInString.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInString.xml deleted file mode 100644 index d30ab85530..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInString.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInString xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInString.xsd "> - <string>string</string> -</tns:BuiltInString> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInString.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInString.xsd deleted file mode 100644 index 8abb34b5a5..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInString.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInString"> - <complexType> - <sequence> - <element name="string" type="string" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInTime.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInTime.xml deleted file mode 100644 index 7fd9a061ae..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInTime.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInTime xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInTime.xsd "> - <time>12:00:00</time> -</tns:BuiltInTime> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInTime.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInTime.xsd deleted file mode 100644 index 1615976813..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInTime.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInTime"> - <complexType> - <sequence> - <element name="time" type="time" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInToken.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInToken.xml deleted file mode 100644 index cd567ba528..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInToken.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInToken xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInToken.xsd "> - <token>token</token> -</tns:BuiltInToken> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInToken.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInToken.xsd deleted file mode 100644 index 0beaac571f..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInToken.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInToken"> - <complexType> - <sequence> - <element name="token" type="token" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedByte.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedByte.xml deleted file mode 100644 index 025362defb..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedByte.xml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInUnsignedByte xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInUnsignedByte.xsd "> - <unsignedByte>0</unsignedByte> - <unsignedByte>255</unsignedByte> -</tns:BuiltInUnsignedByte> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedByte.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedByte.xsd deleted file mode 100644 index d6d951fe5d..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedByte.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInUnsignedByte"> - <complexType> - <sequence> - <element name="unsignedByte" type="unsignedByte" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedInt.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedInt.xml deleted file mode 100644 index 5736a8c121..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedInt.xml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInUnsignedInt xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInUnsignedInt.xsd "> - <unsignedInt>0</unsignedInt> - <unsignedInt>4294967295</unsignedInt> -</tns:BuiltInUnsignedInt> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedInt.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedInt.xsd deleted file mode 100644 index 242be1d53b..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedInt.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInUnsignedInt"> - <complexType> - <sequence> - <element name="unsignedInt" type="unsignedInt" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedLong.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedLong.xml deleted file mode 100644 index d728115a77..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedLong.xml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInUnsignedLong xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInUnsignedLong.xsd "> - <unsignedLong>0</unsignedLong> - <unsignedLong>18446744073709551615</unsignedLong> -</tns:BuiltInUnsignedLong> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedLong.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedLong.xsd deleted file mode 100644 index 108e3a8619..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedLong.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInUnsignedLong"> - <complexType> - <sequence> - <element name="unsignedLong" type="unsignedLong" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedShort.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedShort.xml deleted file mode 100644 index d4ffae5e17..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedShort.xml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:BuiltInUnsignedShort xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop BuiltInUnsignedShort.xsd "> - <unsignedShort>0</unsignedShort> - <unsignedShort>65535</unsignedShort> -</tns:BuiltInUnsignedShort> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedShort.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedShort.xsd deleted file mode 100644 index 5ee5e0229e..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedShort.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="BuiltInUnsignedShort"> - <complexType> - <sequence> - <element name="unsignedShort" type="unsignedShort" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeComplexContentRestrictingComplexType.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeComplexContentRestrictingComplexType.xml deleted file mode 100644 index 3d5aed5aa8..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeComplexContentRestrictingComplexType.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ComplexTypeComplexContentRestrictingComplexType xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop ComplexTypeComplexContentRestrictingComplexType.xsd "> - <ComplexTypeComplexContentRestrictingComplexTypeElement> - <SimpleTypeWithName>SimpleTypeWithName</SimpleTypeWithName> - </ComplexTypeComplexContentRestrictingComplexTypeElement> -</tns:ComplexTypeComplexContentRestrictingComplexType> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeComplexContentRestrictingComplexType.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeComplexContentRestrictingComplexType.xsd deleted file mode 100644 index e7b80ab11c..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeComplexContentRestrictingComplexType.xsd +++ /dev/null @@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <include schemaLocation="SimpleTypeWithName.xsd"/> - <include schemaLocation="ComplexTypeExtendingComplexType.xsd"/> - - <complexType name="ComplexTypeComplexContentRestrictingComplexTypeType"> - <complexContent> - <restriction base="tns:ComplexTypeExtendingComplexTypeType"> - <sequence> - <element name="SimpleTypeWithName" type="tns:SimpleTypeWithNameType"/> - </sequence> - </restriction> - </complexContent> - </complexType> - - <element name="ComplexTypeComplexContentRestrictingComplexType"> - <complexType> - <sequence> - <element name="ComplexTypeComplexContentRestrictingComplexTypeElement" type="tns:ComplexTypeComplexContentRestrictingComplexTypeType"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeExtendingComplexType.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeExtendingComplexType.xml deleted file mode 100644 index 2b4fe5594e..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeExtendingComplexType.xml +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ComplexTypeExtendingComplexType xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop ComplexTypeExtendingComplexType.xsd "> - <ComplexTypeExtendingComplexTypeElement> - <SimpleTypeWithName>SimpleTypeWithName</SimpleTypeWithName> - <SimpleTypeWithNameExtended>SimpleTypeWithNameExtended</SimpleTypeWithNameExtended> - </ComplexTypeExtendingComplexTypeElement> -</tns:ComplexTypeExtendingComplexType> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeExtendingComplexType.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeExtendingComplexType.xsd deleted file mode 100644 index fc4deb63c2..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeExtendingComplexType.xsd +++ /dev/null @@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <include schemaLocation="ComplexTypeWithContent.xsd"/> - - <complexType name="ComplexTypeExtendingComplexTypeType"> - <complexContent> - <extension base="tns:ComplexTypeWithContentType"> - <sequence> - <element name="SimpleTypeWithNameExtended" type="string"/> - </sequence> - </extension> - </complexContent> - </complexType> - - <element name="ComplexTypeExtendingComplexType"> - <complexType> - <sequence> - <element name="ComplexTypeExtendingComplexTypeElement" type="tns:ComplexTypeExtendingComplexTypeType"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeExtendingSimpleType.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeExtendingSimpleType.xml deleted file mode 100644 index 03570f41d9..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeExtendingSimpleType.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ComplexTypeExtendingSimpeType xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop ComplexTypeExtendingSimpleType.xsd "> - <ComplexTypeExtendingSimpeTypeElement AddedByExtension="">ComplexTypeExtendingSimpeTypeElement</ComplexTypeExtendingSimpeTypeElement> -</tns:ComplexTypeExtendingSimpeType> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeExtendingSimpleType.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeExtendingSimpleType.xsd deleted file mode 100644 index c754502645..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeExtendingSimpleType.xsd +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <include schemaLocation="SimpleTypeWithName.xsd"/> - - <complexType name="ComplexTypeExtendingSimpleTypeType"> - <simpleContent> - <extension base="tns:SimpleTypeWithNameType"> - <attribute name="AddedByExtension" type="string"/> - </extension> - </simpleContent> - </complexType> - - <element name="ComplexTypeExtendingSimpeType"> - <complexType> - <sequence> - <element name="ComplexTypeExtendingSimpeTypeElement" type="tns:ComplexTypeExtendingSimpleTypeType"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeSimpleContentRestrictingComplexType.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeSimpleContentRestrictingComplexType.xml deleted file mode 100644 index 4603793bfc..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeSimpleContentRestrictingComplexType.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ComplexTypeSimpleContentRestrictingComplexType xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop ComplexTypeSimpleContentRestrictingComplexType.xsd "> - <ComplexTypeSimpleContentRestrictingComplexTypeElement AddedByExtension="NCName">ComplexTypeSimpleContentRestrictingComplexTypeElement</ComplexTypeSimpleContentRestrictingComplexTypeElement> -</tns:ComplexTypeSimpleContentRestrictingComplexType> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeSimpleContentRestrictingComplexType.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeSimpleContentRestrictingComplexType.xsd deleted file mode 100644 index 4bcd2f8c46..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeSimpleContentRestrictingComplexType.xsd +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <include schemaLocation="ComplexTypeExtendingSimpleType.xsd"/> - - <complexType name="ComplexTypeSimpleContentRestrictingComplexTypeType"> - <simpleContent> - <restriction base="tns:ComplexTypeExtendingSimpleTypeType"> - <attribute name="AddedByExtension" type="NCName" /> - </restriction> - </simpleContent> - </complexType> - - <element name="ComplexTypeSimpleContentRestrictingComplexType"> - <complexType> - <sequence> - <element name="ComplexTypeSimpleContentRestrictingComplexTypeElement" type="tns:ComplexTypeSimpleContentRestrictingComplexTypeType"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithAbstract.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithAbstract.xml deleted file mode 100644 index a6861f803a..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithAbstract.xml +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ComplexTypeWithAbstract xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop ComplexTypeWithAbstract.xsd "> - <ComplexTypeWithAbstractExtensionElement> - <BaseElement>BaseElement</BaseElement> - <ExtensionElement>ExtensionElement</ExtensionElement> - </ComplexTypeWithAbstractExtensionElement> -</tns:ComplexTypeWithAbstract> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithAbstract.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithAbstract.xsd deleted file mode 100644 index 8bb251cab2..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithAbstract.xsd +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <complexType name="ComplexTypeWithAbstractType" abstract="true"> - <sequence> - <element name="BaseElement" type="string"/> - </sequence> - </complexType> - - <complexType name="ComplexTypeWithAbstractExtensionType"> - <complexContent> - <extension base="tns:ComplexTypeWithAbstractType"> - <sequence> - <element name="ExtensionElement" type="string"/> - </sequence> - </extension> - </complexContent> - </complexType> - - <element name="ComplexTypeWithAbstract"> - <complexType> - <sequence> - <element name="ComplexTypeWithAbstractExtensionElement" type="tns:ComplexTypeWithAbstractExtensionType"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithCDATA.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithCDATA.xml deleted file mode 100644 index 467ec007ed..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithCDATA.xml +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ComplexTypeWithCDATA xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop ComplexTypeWithCDATA.xsd "> - <ComplexTypeWithCDATAElement> - Some - <![CDATA[some data and some <MoreXML></MoreXML>]]> - Mixed - <SimpleTypeWithName>SimpleType<![CDATA[some data and some <MoreXML></MoreXML>]]>WithName</SimpleTypeWithName> - Content - </ComplexTypeWithCDATAElement> -</tns:ComplexTypeWithCDATA> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithCDATA.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithCDATA.xsd deleted file mode 100644 index 8d00646678..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithCDATA.xsd +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <include schemaLocation="SimpleTypeWithName.xsd"/> - - <complexType name="ComplexTypeWithCDATAType" mixed="true"> - <sequence> - <element name="SimpleTypeWithName" type="tns:SimpleTypeWithNameType"/> - </sequence> - </complexType> - - <element name="ComplexTypeWithCDATA"> - <complexType> - <sequence> - <element name="ComplexTypeWithCDATAElement" type="tns:ComplexTypeWithCDATAType"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithContent.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithContent.xml deleted file mode 100644 index 7deafd798a..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithContent.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ComplexTypeWithContent xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop ComplexTypeWithContent.xsd "> - <ComplexTypeWithContentElement> - <SimpleTypeWithName>SimpleTypeWithName</SimpleTypeWithName> - </ComplexTypeWithContentElement> -</tns:ComplexTypeWithContent> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithContent.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithContent.xsd deleted file mode 100644 index 72ac75fee0..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithContent.xsd +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <complexType name="ComplexTypeWithContentType"> - <sequence> - <element name="SimpleTypeWithName" type="string"/> - </sequence> - </complexType> - - <element name="ComplexTypeWithContent"> - <complexType> - <sequence> - <element name="ComplexTypeWithContentElement" type="tns:ComplexTypeWithContentType"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithMixed.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithMixed.xml deleted file mode 100644 index f6208f81b3..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithMixed.xml +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ComplexTypeWithMixed xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop ComplexTypeWithMixed.xsd "> - <ComplexTypeWithMixedElement> - Some - Mixed - <SimpleTypeWithName>SimpleTypeWithName</SimpleTypeWithName> - Content - </ComplexTypeWithMixedElement> -</tns:ComplexTypeWithMixed> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithMixed.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithMixed.xsd deleted file mode 100644 index 1f26e13673..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithMixed.xsd +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <include schemaLocation="SimpleTypeWithName.xsd"/> - - <complexType name="ComplexTypeWithMixedType" mixed="true"> - <sequence> - <element name="SimpleTypeWithName" type="tns:SimpleTypeWithNameType"/> - </sequence> - </complexType> - - <element name="ComplexTypeWithMixed"> - <complexType> - <sequence> - <element name="ComplexTypeWithMixedElement" type="tns:ComplexTypeWithMixedType"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOpenAttributes.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOpenAttributes.xml deleted file mode 100644 index 97de7b98eb..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOpenAttributes.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ComplexTypeWithOpenAttributes xmlns:tns="http://www.apache.org/tuscany/interop" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.apache.org/tuscany/interop ComplexTypeWithOpenAttributes.xsd "> - <ComplexTypeWithOpenAttributesElement SomeOpenAttribute="Some Open Attribute"> - <SimpleTypeWithName>SimpleTypeWithName</SimpleTypeWithName> - </ComplexTypeWithOpenAttributesElement> -</tns:ComplexTypeWithOpenAttributes> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOpenAttributes.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOpenAttributes.xsd deleted file mode 100644 index 67716553d8..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOpenAttributes.xsd +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <include schemaLocation="SimpleTypeWithName.xsd"/> - - <attribute name="SomeOpenAttribute" type="string"/> - - <complexType name="ComplexTypeWithOpenAttributesType"> - <sequence> - <element name="SimpleTypeWithName" type="tns:SimpleTypeWithNameType"/> - </sequence> - <anyAttribute namespace="##any"/> - </complexType> - - <element name="ComplexTypeWithOpenAttributes"> - <complexType> - <sequence> - <element name="ComplexTypeWithOpenAttributesElement" type="tns:ComplexTypeWithOpenAttributesType"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOpenContent.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOpenContent.xml deleted file mode 100644 index 5941348921..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOpenContent.xml +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ComplexTypeWithOpenContent xmlns:tns="http://www.apache.org/tuscany/interop" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.apache.org/tuscany/interop ComplexTypeWithOpenContent.xsd "> - <ComplexTypeWithOpenContentElement> - <tns:ComplexTypeWithMixed> - <ComplexTypeWithMixedElement> - Some - Mixed - <SimpleTypeWithName>SimpleTypeWithName</SimpleTypeWithName> - Content - </ComplexTypeWithMixedElement> - </tns:ComplexTypeWithMixed> - </ComplexTypeWithOpenContentElement> -</tns:ComplexTypeWithOpenContent> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOpenContent.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOpenContent.xsd deleted file mode 100644 index 24d5d09054..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOpenContent.xsd +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <include schemaLocation="ComplexTypeWithMixed.xsd"/> - - <complexType name="ComplexTypeWithOpenContentType"> - <sequence> - <any namespace="##any"/> - </sequence> - </complexType> - - <element name="ComplexTypeWithOpenContent"> - <complexType> - <sequence> - <element name="ComplexTypeWithOpenContentElement" type="tns:ComplexTypeWithOpenContentType"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOppositeProperty.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOppositeProperty.xml deleted file mode 100644 index f684d06a4d..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOppositeProperty.xml +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ComplexTypeWithOppositeProperty xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop ComplexTypeWithOppositeProperty.xsd "> - <ComplexTypeReferencedDataObject DataObjectId="idvalue0"> - <SomeData>SomeData</SomeData> - </ComplexTypeReferencedDataObject> - <ComplexTypeReferencingDataObject AttributeWithSDOPropertyType="idvalue0" DataObjectId="idvalue1"> - <OppositeProperty>idvalue2</OppositeProperty> - </ComplexTypeReferencingDataObject> - <ComplexTypeWithOppositePropertyElement AttributeWithSDOPropertyType="idvalue1" DataObjectId="idvalue2"/> -</tns:ComplexTypeWithOppositeProperty> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOppositeProperty.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOppositeProperty.xsd deleted file mode 100644 index de4a8a666d..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOppositeProperty.xsd +++ /dev/null @@ -1,59 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:sdo="commonj.sdo"> - - <complexType name="ComplexTypeReferencedDataObjectType"> - <sequence> - <element name="SomeData" type="string"/> - </sequence> - <attribute name="DataObjectId" type="ID"/> - </complexType> - - <complexType name="ComplexTypeReferencingDataObjectType"> - <sequence> - <element name="OppositeProperty" type="IDREF"/> - </sequence> - <attribute name="AttributeWithSDOPropertyType" type="IDREF" - sdo:propertyType="tns:ComplexTypeReferencedDataObjectType"/> - <attribute name="DataObjectId" type="ID"/> - </complexType> - - <complexType name="ComplexTypeWithOppositePropertyType"> - <sequence> - </sequence> - <attribute name="AttributeWithSDOPropertyType" type="IDREF" - sdo:propertyType="tns:ComplexTypeReferencingDataObjectType" - sdo:oppositeProperty="OppositeProperty"/> - <attribute name="DataObjectId" type="ID"/> - </complexType> - - <element name="ComplexTypeWithOppositeProperty"> - <complexType> - <sequence> - <element name="ComplexTypeReferencedDataObject" type="tns:ComplexTypeReferencedDataObjectType"/> - <element name="ComplexTypeReferencingDataObject" type="tns:ComplexTypeReferencingDataObjectType"/> - <element name="ComplexTypeWithOppositePropertyElement" type="tns:ComplexTypeWithOppositePropertyType"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOAliasName.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOAliasName.xml deleted file mode 100644 index 242908bd27..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOAliasName.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ComplexTypeWithSDOAliasName xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop ComplexTypeWithSDOAliasName.xsd "> - <ComplexTypeWithSDOAliasNameElement> - <SimpleTypeWithName>SimpleTypeWithName</SimpleTypeWithName> - </ComplexTypeWithSDOAliasNameElement> -</tns:ComplexTypeWithSDOAliasName> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOAliasName.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOAliasName.xsd deleted file mode 100644 index 4c00fbe295..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOAliasName.xsd +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:sdo="commonj.sdo"> - - <complexType name="ComplexTypeWithSDOAliasNameType" sdo:aliasName="ComplexTypeWithSDOAliasNameTypeSDOAliasName"> - <sequence> - <element name="SimpleTypeWithName" type="string"/> - </sequence> - </complexType> - - <element name="ComplexTypeWithSDOAliasName"> - <complexType> - <sequence> - <element name="ComplexTypeWithSDOAliasNameElement" type="tns:ComplexTypeWithSDOAliasNameType"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOName.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOName.xml deleted file mode 100644 index 925e8625d5..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOName.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ComplexTypeWithSDOName xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop ComplexTypeWithSDOName.xsd "> - <ComplexTypeWithSDONameElement> - <SimpleTypeWithName>SimpleTypeWithName</SimpleTypeWithName> - </ComplexTypeWithSDONameElement> -</tns:ComplexTypeWithSDOName> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOName.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOName.xsd deleted file mode 100644 index b12bec040b..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOName.xsd +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:sdo="commonj.sdo"> - - <complexType name="ComplexTypeWithSDONameType" sdo:name="ComplexTypeWithSDONameTypeSDOName"> - <sequence> - <element name="SimpleTypeWithName" type="string"/> - </sequence> - </complexType> - - <element name="ComplexTypeWithSDOName"> - <complexType> - <sequence> - <element name="ComplexTypeWithSDONameElement" type="tns:ComplexTypeWithSDONameType"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOSequence.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOSequence.xml deleted file mode 100644 index c73708ce46..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOSequence.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ComplexTypeWithSDOSequence xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop ComplexTypeWithSDOSequence.xsd "> - <ComplexTypeWithSDOSequenceElement> - <SimpleTypeWithName>SimpleTypeWithName</SimpleTypeWithName> - </ComplexTypeWithSDOSequenceElement> -</tns:ComplexTypeWithSDOSequence> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOSequence.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOSequence.xsd deleted file mode 100644 index 795c3ea7d9..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOSequence.xsd +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:sdo="commonj.sdo"> - - <include schemaLocation="SimpleTypeWithName.xsd"/> - - <complexType name="ComplexTypeWithSDOSequenceType" sdo:sequence="true"> - <sequence> - <element name="SimpleTypeWithName" type="tns:SimpleTypeWithNameType" /> - </sequence> - </complexType> - - <element name="ComplexTypeWithSDOSequence"> - <complexType> - <sequence> - <element name="ComplexTypeWithSDOSequenceElement" type="tns:ComplexTypeWithSDOSequenceType"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithoutContent.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithoutContent.xml deleted file mode 100644 index 3ebdc89ae0..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithoutContent.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ComplexTypeWithoutContent xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop ComplexTypeWithoutContent.xsd "> - <ComplexTypeWithoutContentElement/> -</tns:ComplexTypeWithoutContent> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithoutContent.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithoutContent.xsd deleted file mode 100644 index 21546d0f67..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithoutContent.xsd +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <complexType name="ComplexTypeWithoutContentType"/> - - <element name="ComplexTypeWithoutContent"> - <complexType> - <sequence> - <element name="ComplexTypeWithoutContentElement" type="tns:ComplexTypeWithoutContentType"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithoutName.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithoutName.xml deleted file mode 100644 index 89657e42ca..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithoutName.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ComplexTypeWithoutName xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop ComplexTypeWithoutName.xsd "> - <tns:ComplexTypeWithoutNameType> - <SimpleTypeWithName>SimpleTypeWithName</SimpleTypeWithName> - </tns:ComplexTypeWithoutNameType> -</tns:ComplexTypeWithoutName> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithoutName.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithoutName.xsd deleted file mode 100644 index d01b4172e4..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithoutName.xsd +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="ComplexTypeWithoutNameType"> - <complexType> - <sequence> - <element name="SimpleTypeWithName" type="string"/> - </sequence> - </complexType> - </element> - - <element name="ComplexTypeWithoutName"> - <complexType> - <sequence> - <element ref="tns:ComplexTypeWithoutNameType"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/DefaultNamespace.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/DefaultNamespace.xml deleted file mode 100644 index 82fd1eedaf..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/DefaultNamespace.xml +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<DefaultNamespace xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:noNamespaceSchemaLocation="DefaultNamespace.xsd"> - <SimpleTypeWithName>SimpleTypeWithName</SimpleTypeWithName> -</DefaultNamespace> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/DefaultNamespace.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/DefaultNamespace.xsd deleted file mode 100644 index e1dcf06194..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/DefaultNamespace.xsd +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" > - - <!-- top level test type --> - <xsd:complexType name="DefaultNamespaceComplexType"> - <xsd:sequence> - <!-- simple types --> - <xsd:element name="SimpleTypeWithName" type="xsd:string"/> - - </xsd:sequence> - </xsd:complexType> - - <xsd:element name="Default" type="DefaultNamespaceComplexType"/> -</xsd:schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementInAll.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementInAll.xml deleted file mode 100644 index ebf03c9d5d..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementInAll.xml +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ElementInAll xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop ElementInAll.xsd "> - <ElementInAllElement> - <ElementInAllOne>ElementInAllOne</ElementInAllOne> - <ElementInAllTwo>ElementInAllTwo</ElementInAllTwo> - </ElementInAllElement> -</tns:ElementInAll> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementInAll.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementInAll.xsd deleted file mode 100644 index 8b9ba5b4b8..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementInAll.xsd +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <complexType name="ComplexTypeElementInAllTestType"> - <all> - <element name="ElementInAllOne" type="string"/> - <element name="ElementInAllTwo" type="string"/> - </all> - </complexType> - - <element name="ElementInAll"> - <complexType> - <sequence> - <choice maxOccurs="3"> - <element name="ElementInAllElement" type="tns:ComplexTypeElementInAllTestType"/> - </choice> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementInChoice.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementInChoice.xml deleted file mode 100644 index 26466b1b39..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementInChoice.xml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ElementInChoice xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop ElementInChoice.xsd "> - <Element1InChoice>Element1InChoice</Element1InChoice> - <Element2InChoice>Element2InChoice</Element2InChoice> -</tns:ElementInChoice> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementInChoice.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementInChoice.xsd deleted file mode 100644 index ff418c56ab..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementInChoice.xsd +++ /dev/null @@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <group name="Group1"> - <sequence> - <element name="Element1InChoice" type="string" maxOccurs="2"/> - <element name="Element2InChoice" type="string" /> - </sequence> - </group> - - <group name="Group2"> - <sequence> - <element name="Element2InChoice" type="string" /> - <element name="Element1InChoice" type="string" maxOccurs="2"/> - </sequence> - </group> - - <element name="ElementInChoice"> - <complexType> - <sequence> - <choice maxOccurs="3"> - <group ref="tns:Group1"/> - <group ref="tns:Group2"/> - </choice> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSDOChangeSummaryType.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSDOChangeSummaryType.xml deleted file mode 100644 index 27bb1ce9cc..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSDOChangeSummaryType.xml +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ElementOfSDOChangeSummaryType xmlns:sdo="commonj.sdo" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop ElementOfSDOChangeSummaryType.xsd commonj.sdo datagraph.xsd "> - <ElementOfSDOChangeSummaryTypeElement> - <ChangeSummaryElement> - ChangeSummaryText - </ChangeSummaryElement> - </ElementOfSDOChangeSummaryTypeElement> -</tns:ElementOfSDOChangeSummaryType> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSDOChangeSummaryType.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSDOChangeSummaryType.xsd deleted file mode 100644 index 2bf1df8c99..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSDOChangeSummaryType.xsd +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:sdo="commonj.sdo"> - - <import schemaLocation="datagraph.xsd" namespace="commonj.sdo"/> - - <element name="ElementOfSDOChangeSummaryType"> - <complexType> - <sequence> - <element name="ElementOfSDOChangeSummaryTypeElement" type="sdo:ChangeSummaryType"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithDefault.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithDefault.xml deleted file mode 100644 index 9b5561ed43..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithDefault.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ElementOfSimpleTypeWithDefault xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop ElementOfSimpleTypeWithDefault.xsd "> - <ElementOfSimpleTypeWithDefaultElement>ElementOfSimpleTypeWithDefaultDefault</ElementOfSimpleTypeWithDefaultElement> -</tns:ElementOfSimpleTypeWithDefault> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithDefault.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithDefault.xsd deleted file mode 100644 index 0b4e7bdf45..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithDefault.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="ElementOfSimpleTypeWithDefault"> - <complexType> - <sequence> - <element name="ElementOfSimpleTypeWithDefaultElement" type="string" default="ElementOfSimpleTypeWithDefaultDefault" /> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithFixed.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithFixed.xml deleted file mode 100644 index f1b7cd264c..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithFixed.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ElementOfSimpleTypeWithFixed xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop ElementOfSimpleTypeWithFixed.xsd "> - <ElementOfSimpleTypeWithFixedElement>ElementOfSimpleTypeWithFixedFixed</ElementOfSimpleTypeWithFixedElement> -</tns:ElementOfSimpleTypeWithFixed> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithFixed.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithFixed.xsd deleted file mode 100644 index a2c8456257..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithFixed.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="ElementOfSimpleTypeWithFixed"> - <complexType> - <sequence> - <element name="ElementOfSimpleTypeWithFixedElement" type="string" fixed="ElementOfSimpleTypeWithFixedFixed" /> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDODataType.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDODataType.xml deleted file mode 100644 index 1f60b0423f..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDODataType.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ElementOfSimpleTypeWithSDODataType xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop ElementOfSimpleTypeWithSDODataType.xsd "> - <ElementOfSimpleTypeWithSDODataTypeElement>ElementOfSimpleTypeWithSDODataTypeElement</ElementOfSimpleTypeWithSDODataTypeElement> -</tns:ElementOfSimpleTypeWithSDODataType> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDODataType.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDODataType.xsd deleted file mode 100644 index 21e55ab8c1..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDODataType.xsd +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:sdo="commonj.sdo"> - - - <element name="ElementOfSimpleTypeWithSDODataType"> - <complexType> - <sequence> - <element name="ElementOfSimpleTypeWithSDODataTypeElement" type="string" sdo:dataType="string"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOOppositePropertyType.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOOppositePropertyType.xml deleted file mode 100644 index 30762f4912..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOOppositePropertyType.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ElementOfSimpleTypeWithSDOOppositePropertyType xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop ElementOfSimpleTypeWithSDOOppositePropertyType.xsd "> - <ElementOfSimpleTypeWithSDOOppositePropertyTypeElement>idvalue0</ElementOfSimpleTypeWithSDOOppositePropertyTypeElement> -</tns:ElementOfSimpleTypeWithSDOOppositePropertyType> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOOppositePropertyType.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOOppositePropertyType.xsd deleted file mode 100644 index 5bf35d0d70..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOOppositePropertyType.xsd +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:sdo="commonj.sdo"> - - - <element name="ElementOfSimpleTypeWithSDOOppositePropertyType"> - <complexType> - <sequence> - <element name="ElementOfSimpleTypeWithSDOOppositePropertyTypeElement" type="IDREF" sdo:propertyType="tns:SimpleTypeWithNameType" sdo:oppositeProperty="tns:ElementOfSimpleTypeWithSDOPropertyType"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOPropertyType.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOPropertyType.xml deleted file mode 100644 index 2dd01e4090..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOPropertyType.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ElementOfSimpleTypeWithSDOPropertyType xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop ElementOfSimpleTypeWithSDOPropertyType.xsd "> - <ElementOfSimpleTypeWithSDOPropertyTypeElement>idvalue0</ElementOfSimpleTypeWithSDOPropertyTypeElement> -</tns:ElementOfSimpleTypeWithSDOPropertyType> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOPropertyType.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOPropertyType.xsd deleted file mode 100644 index 6920cd8dd0..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOPropertyType.xsd +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:sdo="commonj.sdo"> - - <element name="ElementOfSimpleTypeWithSDOPropertyType"> - <complexType> - <sequence> - <element name="ElementOfSimpleTypeWithSDOPropertyTypeElement" type="IDREF" sdo:propertyType="tns:SimpleTypeWithNameType"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOString.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOString.xml deleted file mode 100644 index 6a526bdc47..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOString.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ElementOfSimpleTypeWithSDOString xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop ElementOfSimpleTypeWithSDOString.xsd "> - <ElementOfSimpleTypeWithSDOStringElement>ElementOfSimpleTypeWithSDOStringElement</ElementOfSimpleTypeWithSDOStringElement> -</tns:ElementOfSimpleTypeWithSDOString> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOString.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOString.xsd deleted file mode 100644 index 1117a95eb8..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOString.xsd +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:sdo="commonj.sdo"> - - <element name="ElementOfSimpleTypeWithSDOString"> - <complexType> - <sequence> - <element name="ElementOfSimpleTypeWithSDOStringElement" type="string" sdo:string="true"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementSubstitutionGroupBase.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementSubstitutionGroupBase.xml deleted file mode 100644 index ab91458bff..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementSubstitutionGroupBase.xml +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ElementSubstitutionGroupBase xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop ElementSubstitutionGroupBase.xsd "> - <ElementSubstitutionGroupBaseElement> - <ElementInSubstitutionGroupBase> - ElementInSubstitutionGroupBase - </ElementInSubstitutionGroupBase> - </ElementSubstitutionGroupBaseElement> - - <ElementSubstitutionUnrelated>Some Data</ElementSubstitutionUnrelated> - - <ElementSubstitutionGroupExtends> - <ElementInSubstitutionGroupBase> - ElementInSubstitutionGroupBase - </ElementInSubstitutionGroupBase> - <ElementInSubstitutionGroupExtends> - ElementInSubstitutionGroupExtends - </ElementInSubstitutionGroupExtends> - </ElementSubstitutionGroupExtends> - -</tns:ElementSubstitutionGroupBase> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementSubstitutionGroupBase.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementSubstitutionGroupBase.xsd deleted file mode 100644 index 3e015843b5..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementSubstitutionGroupBase.xsd +++ /dev/null @@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <complexType name="ComplexTypeSubstitutionGroupBaseType"> - <sequence> - <element name="ElementInSubstitutionGroupBase" type="string"/> - </sequence> - </complexType> - <element name="ElementSubstitutionGroupBaseElement" type="tns:ComplexTypeSubstitutionGroupBaseType"/> - - <element name="ElementSubstitutionGroupUnrelated" type="string" substitutionGroup="tns:ElementSubstitutionGroupBaseElement"/> - - <complexType name="ComplexTypeSubstitutionGroupExtendsType"> - <complexContent> - <extension base="tns:ComplexTypeSubstitutionGroupBaseType"> - <sequence> - <element name="ElementInSubstitutionGroupExtends" type="string"/> - </sequence> - </extension> - </complexContent> - </complexType> - - <element name="ElementSubstitutionGroupExtends" type="tns:ComplexTypeSubstitutionGroupExtendsType" substitutionGroup="tns:ElementSubstitutionGroupBaseElement"/> - - <element name="ElementSubstitutionGroupBase"> - <complexType> - <sequence> - <element ref="tns:ElementSubstitutionGroupBaseElement" maxOccurs="unbounded" /> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementWithMaxOccurs.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementWithMaxOccurs.xml deleted file mode 100644 index b6d68fd08a..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementWithMaxOccurs.xml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ElementWithMaxOccurs xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop ElementWithMaxOccurs.xsd "> - <ElementWithMaxOccursElement>ElementWithMaxOccursElement1</ElementWithMaxOccursElement> - <ElementWithMaxOccursElement>ElementWithMaxOccursElement2</ElementWithMaxOccursElement> -</tns:ElementWithMaxOccurs> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementWithMaxOccurs.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementWithMaxOccurs.xsd deleted file mode 100644 index d4453a4477..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementWithMaxOccurs.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="ElementWithMaxOccurs"> - <complexType> - <sequence> - <element name="ElementWithMaxOccursElement" type="string" maxOccurs="2"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementWithNillable.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementWithNillable.xml deleted file mode 100644 index 6de3adc937..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementWithNillable.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ElementWithNillable xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop ElementWithNillable.xsd "> - <ElementWithNillableElement>ElementWithNillableElement</ElementWithNillableElement> -</tns:ElementWithNillable> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementWithNillable.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementWithNillable.xsd deleted file mode 100644 index 786ab226da..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementWithNillable.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="ElementWithNillable"> - <complexType> - <sequence> - <element name="ElementWithNillableElement" type="string" nillable="true" maxOccurs="unbounded"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementWithSDOAliasName.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementWithSDOAliasName.xml deleted file mode 100644 index 64093aa803..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementWithSDOAliasName.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ElementWithSDOAliasName xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop ElementWithSDOAliasName.xsd "> - <ElementWithSDOAliasName>ElementWithSDOAliasName</ElementWithSDOAliasName> -</tns:ElementWithSDOAliasName> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementWithSDOAliasName.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementWithSDOAliasName.xsd deleted file mode 100644 index 01f4c2b1ef..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementWithSDOAliasName.xsd +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:sdo="commonj.sdo"> - - <element name="ElementWithSDOAliasName"> - <complexType> - <sequence> - <element name="ElementWithSDOAliasName" sdo:aliasName="ElementWithSDOAliasNameSDOAliasName" type="string"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementWithSDOName.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementWithSDOName.xml deleted file mode 100644 index 774646f682..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementWithSDOName.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:ElementWithSDOName xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop ElementWithSDOName.xsd "> - <ElementWithSDONameElement>ElementWithSDONameElement</ElementWithSDONameElement> -</tns:ElementWithSDOName> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementWithSDOName.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementWithSDOName.xsd deleted file mode 100644 index 34da37564c..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ElementWithSDOName.xsd +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:sdo="commonj.sdo"> - - <element name="ElementWithSDOName"> - <complexType> - <sequence> - <element name="ElementWithSDONameElement" sdo:name="ElementWithSDONameSDOName" type="string"/> - </sequence> - </complexType> - </element> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/GlobalElementComplexType.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/GlobalElementComplexType.xml deleted file mode 100644 index a1fb3aa803..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/GlobalElementComplexType.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:GlobalElementComplexType xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop GlobalElementComplexType.xsd"> - <SimpleTypeWithName>SimpleTypeWithName</SimpleTypeWithName> -</tns:GlobalElementComplexType> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/GlobalElementComplexType.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/GlobalElementComplexType.xsd deleted file mode 100644 index 8eb7a4fce4..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/GlobalElementComplexType.xsd +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <complexType name="GlobalElementComplexTypeComplexType"> - <sequence> - <element name="SimpleTypeWithName" type="string"/> - </sequence> - </complexType> - - <element name="GlobalElementComplexType" type="tns:GlobalElementComplexTypeComplexType"/> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/GlobalElementSimpleType.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/GlobalElementSimpleType.xml deleted file mode 100644 index f68eb1939d..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/GlobalElementSimpleType.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<GlobalElementSimpleType xmlns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop GlobalElementSimpleType.xsd"> - GlobalElementSimpleType -</GlobalElementSimpleType> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/GlobalElementSimpleType.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/GlobalElementSimpleType.xsd deleted file mode 100644 index b9f77e6658..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/GlobalElementSimpleType.xsd +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - - <element name="GlobalElementSimpleType" type="string"/> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Import.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Import.xml deleted file mode 100644 index fd28850050..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Import.xml +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:Import xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:imp="http://www.apache.org/tuscany/interop/import" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop Import.xsd"> - - <SimpleTypeWithName>SimpleTypeWithName</SimpleTypeWithName> - <Imported> - <AnElement>SomeString</AnElement> - <AnotherElement>SomeString</AnotherElement> - </Imported> -</tns:Import> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Import.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Import.xsd deleted file mode 100644 index eae93fd44a..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Import.xsd +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:imp="http://www.apache.org/tuscany/interop/import" - xmlns:sdo="commonj.sdo" - xmlns:sdoJava="commonj.sdo"> - - <include schemaLocation="SimpleTypeWithName.xsd"/> - <import schemaLocation="ImportedSchema.xsd" - namespace="http://www.apache.org/tuscany/interop/import"/> - - <!-- top level test type --> - <complexType name="ImportComplexType"> - <sequence> - <element name="SimpleTypeWithName" type="tns:SimpleTypeWithNameType"/> - <element name="Imported" type="imp:ImportedComplexType"/> - </sequence> - </complexType> - - <element name="Import" type="tns:ImportComplexType"/> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ImportedSchema.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ImportedSchema.xsd deleted file mode 100644 index a7e568decf..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/ImportedSchema.xsd +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> - -<xsd:schema - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:imp="http://www.apache.org/tuscany/interop/import" - targetNamespace="http://www.apache.org/tuscany/interop/import"> - - <xsd:complexType name="ImportedComplexType"> - <xsd:sequence> - <xsd:element name="AnElement" type="xsd:string"/> - <xsd:element name="AnotherElement" type="xsd:string"/> - </xsd:sequence> - </xsd:complexType> - -</xsd:schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Include.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Include.xml deleted file mode 100644 index d4b9e24fa6..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Include.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:Include xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop Include.xsd"> - <SimpleTypeWithName>SimpleTypeWithName</SimpleTypeWithName> -</tns:Include> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Include.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Include.xsd deleted file mode 100644 index 34ff314a19..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Include.xsd +++ /dev/null @@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <include schemaLocation="../xsd/SimpleTypeWithName.xsd"/> - - <!-- top level test type --> - <complexType name="IncludeComplexType"> - <sequence> - <!-- simple types --> - <element name="SimpleTypeWithName" type="tns:SimpleTypeWithNameType"/> - - </sequence> - </complexType> - - <element name="IncludeElement" type="tns:IncludeComplexType"/> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Interop.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Interop.xsd deleted file mode 100644 index ae22ab2c44..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Interop.xsd +++ /dev/null @@ -1,138 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - -<!-- Causes SDO generator to crash - <include schemaLocation="../xsd/Annotation.xsd"/> ---> - <include schemaLocation="../xsd/Attribute.xsd"/> - <include schemaLocation="../xsd/AttributeReference.xsd"/> -<!-- - <include schemaLocation="AttributeWithDefaultValue.xsd"/> - <include schemaLocation="AttributeWithFixedValue.xsd"/> - <include schemaLocation="AttributeWithSDOAliasName.xsd"/> - <include schemaLocation="AttributeWithSDODataType.xsd"/> - <include schemaLocation="AttributeWithSDOName.xsd"/> - <include schemaLocation="AttributeWithSDOPropertySDOOppositePropertyType.xsd"/> - <include schemaLocation="AttributeWithSDOPropertyType.xsd"/> - <include schemaLocation="AttributeWithSDOString.xsd"/> - <include schemaLocation="BuiltInAnySimpleType.xsd"/> - <include schemaLocation="BuiltInAnyType.xsd"/> - <include schemaLocation="BuiltInAnyURI.xsd"/> - <include schemaLocation="BuiltInBase64Binary.xsd"/> - <include schemaLocation="BuiltInBoolean.xsd"/> - <include schemaLocation="BuiltInByte.xsd"/> - <include schemaLocation="BuiltInDate.xsd"/> - <include schemaLocation="BuiltInDateTime.xsd"/> - <include schemaLocation="BuiltInDecimal.xsd"/> - <include schemaLocation="BuiltInDouble.xsd"/> - <include schemaLocation="BuiltInDuration.xsd"/> - <include schemaLocation="BuiltInFloat.xsd"/> - <include schemaLocation="BuiltInGDay.xsd"/> - <include schemaLocation="BuiltInGMonth.xsd"/> - <include schemaLocation="BuiltInGMonthDay.xsd"/> - <include schemaLocation="BuiltInGYear.xsd"/> - <include schemaLocation="BuiltInGYearMonth.xsd"/> - <include schemaLocation="BuiltInHexBinary.xsd"/> - <include schemaLocation="BuiltInID.xsd"/> - <include schemaLocation="BuiltInIDREF.xsd"/> - <include schemaLocation="BuiltInIDREFS.xsd"/> - <include schemaLocation="BuiltInInt.xsd"/> - <include schemaLocation="BuiltInInteger.xsd"/> - <include schemaLocation="BuiltInLanguage.xsd"/> - <include schemaLocation="BuiltInLong.xsd"/> - <include schemaLocation="BuiltInNCName.xsd"/> - <include schemaLocation="BuiltInNMTOKEN.xsd"/> - <include schemaLocation="BuiltInNMTOKENS.xsd"/> - <include schemaLocation="BuiltInNOTATION.xsd"/> - <include schemaLocation="BuiltInName.xsd"/> - <include schemaLocation="BuiltInNegativeInteger.xsd"/> - <include schemaLocation="BuiltInNonNegativeInteger.xsd"/> - <include schemaLocation="BuiltInNonPositiveInteger.xsd"/> - <include schemaLocation="BuiltInNormalizedString.xsd"/> - <include schemaLocation="BuiltInPositiveInteger.xsd"/> - <include schemaLocation="BuiltInQName.xsd"/> - <include schemaLocation="BuiltInShort.xsd"/> - <include schemaLocation="BuiltInString.xsd"/> - <include schemaLocation="BuiltInTime.xsd"/> - <include schemaLocation="BuiltInToken.xsd"/> - <include schemaLocation="BuiltInUnsignedByte.xsd"/> - <include schemaLocation="BuiltInUnsignedInt.xsd"/> - <include schemaLocation="BuiltInUnsignedLong.xsd"/> - <include schemaLocation="BuiltInUnsignedShort.xsd"/> - <include schemaLocation="ComplexTypeComplexContentRestrictingComplexType.xsd"/> - <include schemaLocation="ComplexTypeExtendingComplexType.xsd"/> - <include schemaLocation="ComplexTypeExtendingSimpleType.xsd"/> - <include schemaLocation="ComplexTypeSimpleContentRestrictingComplexType.xsd"/> - <include schemaLocation="ComplexTypeWithAbstract.xsd"/> - <include schemaLocation="ComplexTypeWithCDATA.xsd"/> ---> - <include schemaLocation="../xsd/ComplexTypeWithContent.xsd"/> -<!-- - <include schemaLocation="ComplexTypeWithMixed.xsd"/> - <include schemaLocation="ComplexTypeWithOpenAttributes.xsd"/> - <include schemaLocation="ComplexTypeWithOpenContent.xsd"/> - <include schemaLocation="ComplexTypeWithOppositeProperty.xsd"/> - <include schemaLocation="ComplexTypeWithSDOAliasName.xsd"/> - <include schemaLocation="ComplexTypeWithSDOName.xsd"/> - <include schemaLocation="ComplexTypeWithSDOSequence.xsd"/> - <include schemaLocation="ComplexTypeWithoutContent.xsd"/> - <include schemaLocation="ComplexTypeWithoutName.xsd"/> - <include schemaLocation="DefaultNamespace.xsd"/> - <include schemaLocation="ElementInAll.xsd"/> - <include schemaLocation="ElementInChoice.xsd"/> - <include schemaLocation="ElementOfSDOChangeSummaryType.xsd"/> - <include schemaLocation="ElementOfSimpleTypeWithDefault.xsd"/> - <include schemaLocation="ElementOfSimpleTypeWithFixed.xsd"/> - <include schemaLocation="ElementOfSimpleTypeWithSDODataType.xsd"/> - <include schemaLocation="ElementOfSimpleTypeWithSDOOppositePropertyType.xsd"/> - <include schemaLocation="ElementOfSimpleTypeWithSDOPropertyType.xsd"/> - <include schemaLocation="ElementOfSimpleTypeWithSDOString.xsd"/> - <include schemaLocation="ElementSubstitutionGroupBase.xsd"/> - <include schemaLocation="ElementWithMaxOccurs.xsd"/> - <include schemaLocation="ElementWithNillable.xsd"/> - <include schemaLocation="ElementWithSDOAliasName.xsd"/> - <include schemaLocation="ElementWithSDOName.xsd"/> - <include schemaLocation="GlobalElementComplexType.xsd"/> - <include schemaLocation="GlobalElementSimpleType.xsd"/> - <include schemaLocation="Import.xsd"/> - <include schemaLocation="ImportedSchema.xsd"/> ---> - <include schemaLocation="../xsd/Include.xsd"/> -<!-- - <include schemaLocation="Notation.xsd"/> - <include schemaLocation="SDOJavaPackage.xsd"/> ---> - <include schemaLocation="../xsd/SimpleTypeWithAbstract.xsd"/> -<!-- - <include schemaLocation="SimpleTypeWithExtendedInstanceClass.xsd"/> - <include schemaLocation="SimpleTypeWithInstanceClass.xsd"/> - <include schemaLocation="SimpleTypeWithList.xsd"/> ---> - <include schemaLocation="../xsd/SimpleTypeWithName.xsd"/> -<!-- - <include schemaLocation="SimpleTypeWithSDOName.xsd"/> - <include schemaLocation="SimpleTypeWithUnion.xsd"/> - <include schemaLocation="SimpleTypeWithoutName.xsd"/> - <include schemaLocation="TargetNamespace.xsd"/> ---> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Notation.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Notation.xml deleted file mode 100644 index b75ac6500a..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Notation.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:Notation xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop Notation.xsd "> -tns:Tuscany -</tns:Notation> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Notation.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Notation.xsd deleted file mode 100644 index 6ad019cb81..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Notation.xsd +++ /dev/null @@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <notation name="Tuscany" public="http://cwiki.apache.org/TUSCANY/"/> - <notation name="PHP_SCA_SDO" public="http://pecl.php.net/package/sca_sdo/"/> - - <simpleType name="NotationSimpleType"> - <restriction base="NOTATION"> - <enumeration value="tns:Tuscany"/> - <enumeration value="tns:PHP_SCA_SDO"/> - </restriction> - </simpleType> - - <element name="Notation" type="tns:NotationSimpleType"/> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Person.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Person.xsd deleted file mode 100644 index 5f5021b15e..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/Person.xsd +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://apache.org/tuscany/sca/itest/databinding/types"> - - <xsd:complexType name="PersonType"> - <xsd:sequence> - <xsd:element name="firstName" type="xsd:string" /> - <xsd:element name="lastName" type="xsd:string" /> - <xsd:element name="greeting" type="xsd:string" /> - </xsd:sequence> - </xsd:complexType> -</xsd:schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SDOJavaPackage.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SDOJavaPackage.xml deleted file mode 100644 index 6c5ad88ff4..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SDOJavaPackage.xml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:SDOJavaPackage xmlns:p="commonj.sdo" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop interop05.xsd"> - <SimpleTypeWithName>SimpleTypeWithName</SimpleTypeWithName> -</tns:SDOJavaPackage> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SDOJavaPackage.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SDOJavaPackage.xsd deleted file mode 100644 index 6b7e39b334..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SDOJavaPackage.xsd +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:sdoJava="commonj.sdo/java" - sdoJava:package="org.apache.tuscany"> - - <!-- should be a reference to the real schema wherever that is going to be --> - <import schemaLocation="sdoJava.xsd" namespace="commonj.sdo/java"/> - - <!-- top level test type --> - <complexType name="SDOJavaPackageComplexType"> - <sequence> - <!-- simple types --> - <element name="SimpleTypeWithName" type="string"/> - - </sequence> - </complexType> - - <element name="SDOJavaPackage" type="tns:SDOJavaPackageComplexType"/> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithAbstract.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithAbstract.xml deleted file mode 100644 index f9d4a24a49..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithAbstract.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:SimpleTypeWithAbstract xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop SimpleTypeWithAbstract.xsd "> - <SimpleTypeWithAbstractExtensionElement>SimpleTypeWithAbstractExtensionElement</SimpleTypeWithAbstractExtensionElement> -</tns:SimpleTypeWithAbstract> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithAbstract.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithAbstract.xsd deleted file mode 100644 index f649e2ba83..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithAbstract.xsd +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <!--simpleType name="SimpleTypeWithAbstractType" abstract="true"--> - <simpleType name="SimpleTypeWithAbstractType" > - <restriction base="string"/> - </simpleType> - - <simpleType name="SimpleTypeWithAbstractExtensionType"> - <restriction base="tns:SimpleTypeWithAbstractType"/> - </simpleType> - - <complexType name="SimpleTypeWithAbstractComplexType"> - <sequence> - <element name="SimpleTypeWithAbstractExtensionElement" type="tns:SimpleTypeWithAbstractExtensionType"/> - </sequence> - </complexType> - - <element name="SimpleTypeWithAbstract" type="tns:SimpleTypeWithAbstractComplexType"/> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithExtendedInstanceClass.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithExtendedInstanceClass.xml deleted file mode 100644 index 410df4b7e4..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithExtendedInstanceClass.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:SimpleTypeWithExtendedInstanceClass xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop SimpleTypeWithExtendedInstanceClass.xsd "> - <SimpleTypeWithExtendedInstanceClassElement>SimpleTypeWithExtendedInstanceClassElement</SimpleTypeWithExtendedInstanceClassElement> -</tns:SimpleTypeWithExtendedInstanceClass> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithExtendedInstanceClass.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithExtendedInstanceClass.xsd deleted file mode 100644 index 5d27ef5ce1..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithExtendedInstanceClass.xsd +++ /dev/null @@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:sdoJava="commonj.sdo"> - - <simpleType name="SimpleTypeWithExtendedInstanceClassType" sdoJava:extendedInstanceClass="String"> - <restriction base="string"/> - </simpleType> - - <complexType name="SimpleTypeWithExtendedInstanceClassComplexType"> - <sequence> - <element name="SimpleTypeWithExtendedInstanceClassElement" type="tns:SimpleTypeWithExtendedInstanceClassType"/> - </sequence> - </complexType> - - <element name="SimpleTypeWithExtendedInstanceClass" type="SimpleTypeWithExtendedInstanceClassComplexType"/> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithInstanceClass.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithInstanceClass.xml deleted file mode 100644 index 7b74867c03..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithInstanceClass.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:SimpleTypeWithInstanceClass xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop SimpleTypeWithInstanceClass.xsd "> - <SimpleTypeWithInstanceClassElement>SimpleTypeWithInstanceClassElement</SimpleTypeWithInstanceClassElement> -</tns:SimpleTypeWithInstanceClass> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithInstanceClass.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithInstanceClass.xsd deleted file mode 100644 index ec16a678a3..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithInstanceClass.xsd +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:sdoJava="commonj.sdo"> - - <simpleType name="SimpleTypeWithInstanceClassType" sdoJava:instanceClass="String"> - <restriction base="string"/> - </simpleType> - - - <complexType name="SimpleTypeWithInstanceClassComplexType"> - <sequence> - <element name="SimpleTypeWithInstanceClassElement" type="tns:SimpleTypeWithInstanceClassType"/> - </sequence> - </complexType> - - <element name="SimpleTypeWithInstanceClass" type="SimpleTypeWithInstanceClassComplexType"/> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithList.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithList.xml deleted file mode 100644 index 708d526f44..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithList.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:SimpleTypeWithList xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop SimpleTypeWithList.xsd "> - <SimpleTypeWithListElement>listmember1 listmember2</SimpleTypeWithListElement> -</tns:SimpleTypeWithList> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithList.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithList.xsd deleted file mode 100644 index ed681009f9..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithList.xsd +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:sdoJava="commonj.sdo"> - - <simpleType name="SimpleTypeWithListType"> - <list itemType="string"/> - </simpleType> - - - <complexType name="SimpleTypeWithListComplexType"> - <sequence> - <element name="SimpleTypeWithListElement" type="tns:SimpleTypeWithListType"/> - </sequence> - </complexType> - - <element name="SimpleTypeWithList" type="SimpleTypeWithListComplexType"/> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithName.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithName.xml deleted file mode 100644 index e404ac86b7..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithName.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:SimpleTypeWithName xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop SimpleTypeWithName.xsd "> - <SimpleTypeWithNameElement>SimpleTypeWithNameElement</SimpleTypeWithNameElement> -</tns:SimpleTypeWithName> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithName.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithName.xsd deleted file mode 100644 index af0431f048..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithName.xsd +++ /dev/null @@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <simpleType name="SimpleTypeWithNameType"> - <restriction base="string"/> - </simpleType> - - <complexType name="SimpleTypeWithNameComplexType"> - <sequence> - <element name="SimpleTypeWithNameElement" type="tns:SimpleTypeWithNameType"/> - </sequence> - </complexType> - - <element name="SimpleTypeWithName" type="tns:SimpleTypeWithNameComplexType"/> - -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithSDOName.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithSDOName.xml deleted file mode 100644 index c86a0f6bcb..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithSDOName.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:SimpleTypeWithSDOName xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop SimpleTypeWithSDOName.xsd "> - <SimpleTypeWithSDONameElement>SimpleTypeWithSDONameElement</SimpleTypeWithSDONameElement> -</tns:SimpleTypeWithSDOName> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithSDOName.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithSDOName.xsd deleted file mode 100644 index 89b00a36cc..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithSDOName.xsd +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:sdo="commonj.sdo"> - - <simpleType name="SimpleTypeWithSDONameType" sdo:name="SimpleTypeWithSDONameTypeSDOName"> - <restriction base="string"/> - </simpleType> - - - <complexType name="SimpleTypeWithSDONameComplexType"> - <sequence> - <element name="SimpleTypeWithSDONameElement" type="tns:SimpleTypeWithSDONameType"/> - </sequence> - </complexType> - - <element name="SimpleTypeWithSDOName" type="tns:SimpleTypeWithSDONameComplexType"/> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithUnion.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithUnion.xml deleted file mode 100644 index 399b0d8175..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithUnion.xml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:SimpleTypeWithUnion xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop SimpleTypeWithUnion.xsd "> - <SimpleTypeWithUnionElement>EN</SimpleTypeWithUnionElement> - <SimpleTypeWithUnionElement>01:02:03</SimpleTypeWithUnionElement> -</tns:SimpleTypeWithUnion> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithUnion.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithUnion.xsd deleted file mode 100644 index ea35bec61a..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithUnion.xsd +++ /dev/null @@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:sdoJava="commonj.sdo"> - - <simpleType name="SimpleTypeWithUnionType"> - <union> - <simpleType> - <restriction base="language"> - </restriction> - </simpleType> - <simpleType> - <restriction base="time"> - </restriction> - </simpleType> - </union> - </simpleType> - - - <complexType name="SimpleTypeWithUnionComplexType"> - <sequence> - <element name="SimpleTypeWithUnionElement" type="tns:SimpleTypeWithUnionType" minOccurs="2" maxOccurs="2"/> - </sequence> - </complexType> - - <element name="SimpleTypeWithUnion" type="SimpleTypeWithUnionComplexType"/> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithoutName.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithoutName.xml deleted file mode 100644 index bc8cf35368..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithoutName.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> - <SimpleTypeWithoutName xmlns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop SimpleTypeWithoutName.xsd"> - <SimpleTypeWithoutNameElement> - SimpleTypeWithoutName - </SimpleTypeWithoutNameElement> -</SimpleTypeWithoutName> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithoutName.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithoutName.xsd deleted file mode 100644 index 57981e3666..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithoutName.xsd +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <element name="SimpleTypeWithoutNameElement"> - <simpleType> - <restriction base="string"/> - </simpleType> - </element> - - - <complexType name="SimpleTypeWithoutNameComplexType"> - <sequence> - <element ref="tns:SimpleTypeWithoutNameElement"/> - </sequence> - </complexType> - - <element name="SimpleTypeWithoutName" type="SimpleTypeWithoutNameComplexType"/> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/TargetNamespace.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/TargetNamespace.xml deleted file mode 100644 index da2929776e..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/TargetNamespace.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:TargetNamespace xmlns:tns="http://www.apache.org/tuscany/interop" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.apache.org/tuscany/interop TargetNamespace.xsd"> - <SimpleTypeWithName>SimpleTypeWithName</SimpleTypeWithName> -</tns:TargetNamespace> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/TargetNamespace.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/TargetNamespace.xsd deleted file mode 100644 index ace5427786..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/TargetNamespace.xsd +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<schema xmlns="http://www.w3.org/2001/XMLSchema" - targetNamespace="http://www.apache.org/tuscany/interop" - xmlns:tns="http://www.apache.org/tuscany/interop"> - - <!-- top level test type --> - <complexType name="TargetNamespaceComplexType"> - <sequence> - <!-- simple types --> - <element name="SimpleTypeWithName" type="string"/> - - </sequence> - </complexType> - - <element name="TargetNamespace" type="tns:TargetNamespaceComplexType"/> -</schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/datagraph.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/datagraph.xsd deleted file mode 100644 index e6b9697a8d..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/datagraph.xsd +++ /dev/null @@ -1,88 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- -/** - * <copyright> - * - * Service Data Objects - * Version 2.1.0 - * Licensed Materials - * - * (c) Copyright BEA Systems, Inc., International Business Machines Corporation, - * Oracle Corporation, Primeton Technologies Ltd., Rogue Wave Software, SAP AG., - * Software AG., Sun Microsystems, Sybase Inc., Xcalia, Zend Technologies, - * 2005, 2006. All rights reserved. - * - * </copyright> - * - */ ---> - -<xsd:schema - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:sdo="commonj.sdo" - xmlns:sdoJava="commonj.sdo/java" - targetNamespace="commonj.sdo"> - - <xsd:element name="datagraph" type="sdo:DataGraphType"/> - - <xsd:complexType name="DataGraphType"> - <xsd:complexContent> - <xsd:extension base="sdo:BaseDataGraphType"> - <xsd:sequence> - <xsd:any minOccurs="0" maxOccurs="1" namespace="##other" processContents="lax"/> - </xsd:sequence> - </xsd:extension> - </xsd:complexContent> - </xsd:complexType> - - <xsd:complexType name="BaseDataGraphType" abstract="true"> - <xsd:sequence> - <xsd:element name="models" type="sdo:ModelsType" minOccurs="0"/> - <xsd:element name="xsd" type="sdo:XSDType" minOccurs="0"/> - <xsd:element name="changeSummary" type="sdo:ChangeSummaryType" minOccurs="0"/> - </xsd:sequence> - <xsd:anyAttribute namespace="##other" processContents="lax"/> - </xsd:complexType> - - <xsd:complexType name="ModelsType"> - <xsd:annotation> - <xsd:documentation> - Expected type is emof:Package. - </xsd:documentation> - </xsd:annotation> - <xsd:sequence> - <xsd:any minOccurs="0" maxOccurs="unbounded" namespace="##other" processContents="lax"/> - </xsd:sequence> - </xsd:complexType> - - <xsd:complexType name="XSDType"> - <xsd:annotation> - <xsd:documentation> - Expected type is xsd:schema. - </xsd:documentation> - </xsd:annotation> - <xsd:sequence> - <xsd:any minOccurs="0" maxOccurs="unbounded" namespace="http://www.w3.org/2001/XMLSchema" processContents="lax"/> - </xsd:sequence> - </xsd:complexType> - -<!-- FB TEMP --> - <xsd:simpleType name="ChangeSummaryType" sdoJava:instanceClass="commonj.sdo.ChangeSummary"> - <xsd:restriction base="xsd:string"/> - </xsd:simpleType> -<!-- - <xsd:complexType name="ChangeSummaryType"> - <xsd:sequence> - <xsd:any minOccurs="0" maxOccurs="unbounded" namespace="##any" processContents="lax"/> - </xsd:sequence> - <xsd:attribute name="create" type="xsd:string"/> - <xsd:attribute name="delete" type="xsd:string"/> - <xsd:attribute name="logging" type="xsd:boolean"/> - </xsd:complexType> ---> - - <xsd:attribute name="ref" type="xsd:string"/> - <xsd:attribute name="unset" type="xsd:string"/> - -</xsd:schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/sdoJava.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/sdoJava.xsd deleted file mode 100644 index 7387568942..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/sdoJava.xsd +++ /dev/null @@ -1,88 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- -/** - * <copyright> - * - * Service Data Objects - * Version 2.1.0 - * Licensed Materials - * - * (c) Copyright BEA Systems, Inc., International Business Machines Corporation, - * Oracle Corporation, Primeton Technologies Ltd., Rogue Wave Software, SAP AG., - * Software AG., Sun Microsystems, Sybase Inc., Xcalia, Zend Technologies, - * 2005, 2006. All rights reserved. - * - * </copyright> - * - */ ---> - -<xsd:schema - targetNamespace="commonj.sdo/java" - xmlns:sdoJava="commonj.sdo/java" - xmlns:sdo="commonj.sdo" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - -<xsd:import namespace="commonj.sdo" schemaLocation="sdoModel.xsd"/> - -<!-- - These attributes are used to customize the Java mapping of - XSD to SDO Types and Properties. ---> - -<xsd:attribute name="package" type="xsd:string" /> -<xsd:attribute name="instanceClass" type="xsd:string" /> -<xsd:attribute name="extendedInstanceClass" type="xsd:string" /> -<xsd:attribute name="nestedInterfaces" type="xsd:boolean" /> - -<!-- - Global properties used in open content for - the Java binding of SDO Types and Properties. ---> - -<xsd:attribute name="javaClass" type="sdo:String"/> - -<!-- JavaInfo deprecated in 2.1.0 --> -<xsd:complexType name="JavaInfo"> - <xsd:attribute name="javaClass" type="sdo:String"/> -</xsd:complexType> - -<!-- - The Java object data types. ---> - -<xsd:simpleType name="BooleanObject" sdoJava:instanceClass="java.lang.Boolean"> - <xsd:restriction base="xsd:boolean"/> -</xsd:simpleType> - -<xsd:simpleType name="ByteObject" sdoJava:instanceClass="java.lang.Byte"> - <xsd:restriction base="xsd:byte"/> -</xsd:simpleType> - -<xsd:simpleType name="CharacterObject" sdoJava:instanceClass="java.lang.Character"> - <xsd:restriction base="xsd:string"/> -</xsd:simpleType> - -<xsd:simpleType name="DoubleObject" sdoJava:instanceClass="java.lang.Double"> - <xsd:restriction base="xsd:double"/> -</xsd:simpleType> - -<xsd:simpleType name="FloatObject" sdoJava:instanceClass="java.lang.Float"> - <xsd:restriction base="xsd:float"/> -</xsd:simpleType> - -<xsd:simpleType name="IntObject" sdoJava:instanceClass="java.lang.Integer"> - <xsd:restriction base="xsd:int"/> -</xsd:simpleType> - -<xsd:simpleType name="LongObject" sdoJava:instanceClass="java.lang.Long"> - <xsd:restriction base="xsd:long"/> -</xsd:simpleType> - -<xsd:simpleType name="ShortObject" sdoJava:instanceClass="java.lang.Short"> - <xsd:restriction base="xsd:short"/> -</xsd:simpleType> - -</xsd:schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/sdoModel.xsd b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/sdoModel.xsd deleted file mode 100644 index c5aabc9cc8..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/main/resources/xsd/sdoModel.xsd +++ /dev/null @@ -1,221 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- -/** - * <copyright> - * - * Service Data Objects - * Version 2.1.0 - * Licensed Materials - * - * (c) Copyright BEA Systems, Inc., International Business Machines Corporation, - * Oracle Corporation, Primeton Technologies Ltd., Rogue Wave Software, SAP AG., - * Software AG., Sun Microsystems, Sybase Inc., Xcalia, Zend Technologies, - * 2005, 2006. All rights reserved. - * - * </copyright> - * - */ - ---> - -<xsd:schema - targetNamespace="commonj.sdo" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:sdo="commonj.sdo" - xmlns:sdoXML="commonj.sdo/xml" - xmlns:sdoJava="commonj.sdo/java" - elementFormDefault="qualified" - xsi:schemaLocation="commonj.sdo/xml sdoXML.xsd - commonj.sdo/java sdoJava.xsd"> - -<xsd:include schemaLocation="datagraph.xsd"/> - -<!-- Root element for defining several Types in one document. - Is not part of the model. ---> -<xsd:element name="types" type="sdo:Types"/> -<xsd:complexType name="Types"> - <xsd:sequence> - <xsd:element name="type" type="sdo:Type" minOccurs="0" maxOccurs="unbounded"/> - </xsd:sequence> -</xsd:complexType> - -<!-- Any data object may be serialized with this element, - with xsi:type to declare the - actual type of the DataObject serialized. ---> -<xsd:element name="dataObject" type="xsd:anyType"/> - -<!-- Model Types - SDO Type and Property are defined in terms of themselves. ---> -<xsd:element name="type" type="sdo:Type"/> -<xsd:complexType name="Type"> - <xsd:sequence> - <xsd:element name="baseType" type="sdo:URI" - minOccurs="0" maxOccurs="unbounded" - sdoXML:propertyType="sdo:Type" /> - <xsd:element name="property" type="sdo:Property" - minOccurs="0" maxOccurs="unbounded" /> - <xsd:element name="aliasName" type="sdo:String" - minOccurs="0" maxOccurs="unbounded" /> - <xsd:any namespace="##other" processContents="lax" - minOccurs="0" maxOccurs="unbounded" /> - </xsd:sequence> - <xsd:attribute name="name" type="xsd:ID" sdoXML:dataType="sdo:String"/> - <xsd:attribute name="uri" type="sdo:URI"/> - <xsd:attribute name="dataType" type="sdo:Boolean"/> - <xsd:attribute name="open" type="sdo:Boolean"/> - <xsd:attribute name="sequenced" type="sdo:Boolean"/> - <xsd:attribute name="abstract" type="sdo:Boolean"/> - <xsd:anyAttribute namespace="##any" processContents="lax"/> -</xsd:complexType> - -<xsd:complexType name="Property"> - <xsd:sequence> - <xsd:element name="aliasName" type="sdo:String" - minOccurs="0" maxOccurs="unbounded" /> - <xsd:any namespace="##other" processContents="lax" - minOccurs="0" maxOccurs="unbounded" /> - </xsd:sequence> - <xsd:attribute name="name" type="sdo:String"/> - <xsd:attribute name="many" type="sdo:Boolean"/> - <xsd:attribute name="containment" type="sdo:Boolean"/> - <xsd:attribute name="default" type="sdo:String"/> - <xsd:attribute name="readOnly" type="sdo:Boolean"/> - <xsd:attribute name="type" type="sdo:URI" sdoXML:propertyType="sdo:Type"/> - <xsd:attribute name="opposite" type="sdo:URI" sdoXML:propertyType="sdo:Property"/> - <xsd:attribute name="nullable" type="sdo:Boolean"/> - <xsd:anyAttribute namespace="##any" processContents="lax"/> -</xsd:complexType> - -<!-- Special Types --> -<xsd:complexType name="DataObject" abstract="true"/> - -<!-- TextType deprecated in 2.1.0 --> - <xsd:complexType name="TextType" abstract="true"> - <xsd:sequence> - <xsd:element name="text" minOccurs="0" maxOccurs="unbounded" type="xsd:string"/> - </xsd:sequence> - </xsd:complexType> - -<!-- ChangeSummaryType is defined in datagraph.xsd. - Although declared there as a ComplexType, - at the model level it is treated as a SimpleType - with a special XML serialization. ---> - -<!-- Data Types --> -<xsd:simpleType name="Boolean" sdoJava:instanceClass="boolean"> - <xsd:restriction base="xsd:boolean"/> -</xsd:simpleType> - -<xsd:simpleType name="Byte" sdoJava:instanceClass="byte"> - <xsd:restriction base="xsd:byte"/> -</xsd:simpleType> - -<xsd:simpleType name="Bytes" sdoJava:instanceClass="byte[]"> - <xsd:restriction base="xsd:hexBinary"/> -</xsd:simpleType> - -<xsd:simpleType name="Character" sdoJava:instanceClass="char"> - <xsd:restriction base="xsd:string"/> -</xsd:simpleType> - -<xsd:simpleType name="Date" sdoJava:instanceClass="java.util.Date"> - <xsd:restriction base="xsd:dateTime"/> -</xsd:simpleType> - -<xsd:simpleType name="DateTime" sdoJava:instanceClass="java.lang.String"> - <xsd:restriction base="xsd:dateTime"/> -</xsd:simpleType> - -<xsd:simpleType name="Day" sdoJava:instanceClass="java.lang.String"> - <xsd:restriction base="xsd:gDay"/> -</xsd:simpleType> - -<xsd:simpleType name="Decimal" sdoJava:instanceClass="java.math.BigDecimal"> - <xsd:restriction base="xsd:decimal"/> -</xsd:simpleType> - -<xsd:simpleType name="Double" sdoJava:instanceClass="double"> - <xsd:restriction base="xsd:double"/> -</xsd:simpleType> - -<xsd:simpleType name="Duration" sdoJava:instanceClass="java.lang.String"> - <xsd:restriction base="xsd:duration"/> -</xsd:simpleType> - -<xsd:simpleType name="Float" sdoJava:instanceClass="float"> - <xsd:restriction base="xsd:float"/> -</xsd:simpleType> - -<xsd:simpleType name="Int" sdoJava:instanceClass="int"> - <xsd:restriction base="xsd:int"/> -</xsd:simpleType> - -<xsd:simpleType name="Integer" sdoJava:instanceClass="java.math.BigInteger"> - <xsd:restriction base="xsd:integer"/> -</xsd:simpleType> - -<xsd:simpleType name="Long" sdoJava:instanceClass="long"> - <xsd:restriction base="xsd:long"/> -</xsd:simpleType> - -<xsd:simpleType name="Month" sdoJava:instanceClass="java.lang.String"> - <xsd:restriction base="xsd:gMonth"/> -</xsd:simpleType> - -<xsd:simpleType name="MonthDay" sdoJava:instanceClass="java.lang.String"> - <xsd:restriction base="xsd:gMonthDay"/> -</xsd:simpleType> - -<xsd:simpleType name="Object" sdoJava:instanceClass="java.lang.Object"> - <!-- Only the schema for schemas is allowed to restrict anySimpleType. - <xsd:restriction base="xsd:anySimpleType"/> - The equivalent declaration is a union of the predefined XSD data types. - --> - <xsd:union memberTypes="xsd:anyURI xsd:base64Binary xsd:boolean xsd:byte - xsd:date xsd:dateTime xsd:decimal xsd:double xsd:duration xsd:ENTITIES xsd:ENTITY xsd:float - xsd:gDay xsd:gMonth xsd:gMonthDay xsd:gYear xsd:gYearMonth xsd:hexBinary xsd:ID xsd:IDREF xsd:IDREFS - xsd:int xsd:integer xsd:language xsd:long xsd:Name xsd:NCName xsd:negativeInteger - xsd:NMTOKEN xsd:NMTOKENS xsd:nonNegativeInteger xsd:nonPositiveInteger - xsd:normalizedString xsd:NOTATION xsd:positiveInteger xsd:QName xsd:short xsd:string - xsd:time xsd:token xsd:unsignedByte xsd:unsignedInt xsd:unsignedLong xsd:unsignedShort"/> -</xsd:simpleType> - -<xsd:simpleType name="Short" sdoJava:instanceClass="short"> - <xsd:restriction base="xsd:short"/> -</xsd:simpleType> - -<xsd:simpleType name="String" sdoJava:instanceClass="java.lang.String"> - <xsd:restriction base="xsd:string"/> -</xsd:simpleType> - -<xsd:simpleType name="Strings" sdoJava:instanceClass="java.util.List"> - <xsd:restriction base="xsd:string"/> -</xsd:simpleType> - -<xsd:simpleType name="Time" sdoJava:instanceClass="java.lang.String"> - <xsd:restriction base="xsd:time"/> -</xsd:simpleType> - -<xsd:simpleType name="Year" sdoJava:instanceClass="java.lang.String"> - <xsd:restriction base="xsd:gYear"/> -</xsd:simpleType> - -<xsd:simpleType name="YearMonth" sdoJava:instanceClass="java.lang.String"> - <xsd:restriction base="xsd:gYearMonth"/> -</xsd:simpleType> - -<xsd:simpleType name="YearMonthDay" sdoJava:instanceClass="java.lang.String"> - <xsd:restriction base="xsd:date"/> -</xsd:simpleType> - -<xsd:simpleType name="URI" sdoJava:instanceClass="java.lang.String"> - <xsd:restriction base="xsd:anyURI"/> -</xsd:simpleType> - -</xsd:schema> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/test/java/org/apache/tuscany/sca/itest/generate/GenerateTestCase.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/test/java/org/apache/tuscany/sca/itest/generate/GenerateTestCase.java deleted file mode 100644 index fa3f310d4d..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/common/src/test/java/org/apache/tuscany/sca/itest/generate/GenerateTestCase.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.generate; - -import junit.framework.TestCase; - - -/** - * - */ -public class GenerateTestCase extends TestCase { - - //private Generate generator = null; - - @Override - protected void setUp() throws Exception { - //generator = new Generate(); - } - - @Override - protected void tearDown() { - } - - /** - * Invokes the Generate class to generate databinding test classes and resources. - * - * @throws Exception - */ - public void testGenerate() throws Exception { - //generator.generate(); - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/config.png b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/config.png Binary files differdeleted file mode 100644 index 7912019e9d..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/config.png +++ /dev/null diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/config.svg b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/config.svg deleted file mode 100644 index aaf027e2df..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/config.svg +++ /dev/null @@ -1,117 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> - -<!-- Created with Inkscape (http://www.inkscape.org/) --> -<svg - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:cc="http://web.resource.org/cc/" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" - xmlns:svg="http://www.w3.org/2000/svg" - xmlns="http://www.w3.org/2000/svg" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="744.09448819" - height="1052.3622047" - id="svg3168" - sodipodi:version="0.32" - inkscape:version="0.44" - sodipodi:docbase="C:\simon\Projects\Tuscany\java\java-head\sca\itest\databindings" - sodipodi:docname="config.svg"> - <defs - id="defs3170" /> - <sodipodi:namedview - id="base" - pagecolor="#ffffff" - bordercolor="#666666" - borderopacity="1.0" - gridtolerance="10000" - guidetolerance="10" - objecttolerance="10" - inkscape:pageopacity="0.0" - inkscape:pageshadow="2" - inkscape:zoom="0.7" - inkscape:cx="375" - inkscape:cy="748.57143" - inkscape:document-units="px" - inkscape:current-layer="layer1" - inkscape:window-width="990" - inkscape:window-height="664" - inkscape:window-x="103" - inkscape:window-y="84" /> - <metadata - id="metadata3173"> - <rdf:RDF> - <cc:Work - rdf:about=""> - <dc:format>image/svg+xml</dc:format> - <dc:type - rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> - </cc:Work> - </rdf:RDF> - </metadata> - <g - inkscape:label="Layer 1" - inkscape:groupmode="layer" - id="layer1"> - <flowRoot - xml:space="preserve" - id="flowRoot3194" - inkscape:export-xdpi="52.84" - inkscape:export-ydpi="52.84"><flowRegion - id="flowRegion3196"><rect - id="rect3198" - width="505.71429" - height="531.42859" - x="94.285713" - y="83.790756" /></flowRegion><flowPara - id="flowPara3200"><tns:Generate ...></flowPara><flowPara - id="flowPara3202"> <Template></flowPara><flowPara - id="flowPara3204"> <TemplateName>greeter.composite.vm</TemplateName></flowPara><flowPara - id="flowPara3206"> <TemplateTargetDir>classes</TemplateTargetDir></flowPara><flowPara - id="flowPara3208"> </Template></flowPara><flowPara - id="flowPara3210"> ...</flowPara><flowPara - id="flowPara3212"> </flowPara><flowPara - id="flowPara3214"> <InputFile></flowPara><flowPara - id="flowPara3216"> <FileName>Person.xsd</FileName></flowPara><flowPara - id="flowPara3218"> <FilePath>xsd</FilePath></flowPara><flowPara - id="flowPara3220"> <JavaPackage>org.apache.tuscany.sca.itest.databinding.types</JavaPackage></flowPara><flowPara - id="flowPara3222"> <Factory>TypesFactory</Factory></flowPara><flowPara - id="flowPara3224"> <Namespace>http://apache.org/tuscany/sca/itest/databinding/types</Namespace></flowPara><flowPara - id="flowPara3226"> <Prefix>p</Prefix></flowPara><flowPara - id="flowPara3228"> <Type></flowPara><flowPara - id="flowPara3230"> <TypeName>PersonType</TypeName></flowPara><flowPara - id="flowPara3232"> <CreateTypeCode></flowPara><flowPara - id="flowPara3234"> TypesFactory factory = TypesFactory.INSTANCE;</flowPara><flowPara - id="flowPara3236"> param = factory.createPersonType();</flowPara><flowPara - id="flowPara3238"> param.setFirstName("George");</flowPara><flowPara - id="flowPara3240"> param.setLastName("Doors");</flowPara><flowPara - id="flowPara3242"> </CreateTypeCode></flowPara><flowPara - id="flowPara3244"> <ModifyTypeCode></flowPara><flowPara - id="flowPara3246"> param.setGreeting("Hello");</flowPara><flowPara - id="flowPara3248"> </ModifyTypeCode></flowPara><flowPara - id="flowPara3250"> <ResultComparison></flowPara><flowPara - id="flowPara3252"> assertNotSame("greetedPerson.getGreeting() not set", "", result.getGreeting());</flowPara><flowPara - id="flowPara3254"> </ResultComparison></flowPara><flowPara - id="flowPara3256"> </Type></flowPara><flowPara - id="flowPara3258"> </InputFile></flowPara><flowPara - id="flowPara3260"> ...</flowPara><flowPara - id="flowPara3262"></flowPara><flowPara - id="flowPara3264"></tns:Generate></flowPara></flowRoot> </g> -</svg> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/databinding.png b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/databinding.png Binary files differdeleted file mode 100644 index 76a9c71b7d..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/databinding.png +++ /dev/null diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/databinding.svg b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/databinding.svg deleted file mode 100644 index d6850ccf7d..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/databinding.svg +++ /dev/null @@ -1,242 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> - -<!-- Created with Inkscape (http://www.inkscape.org/) --> -<svg - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:cc="http://web.resource.org/cc/" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" - xmlns:svg="http://www.w3.org/2000/svg" - xmlns="http://www.w3.org/2000/svg" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="1052.3622" - height="744.09448" - id="svg2" - sodipodi:version="0.32" - inkscape:version="0.44" - sodipodi:docbase="C:\simon\Projects\Tuscany\java\java-head\sca\itest\databindings" - sodipodi:docname="databinding.svg" - version="1.0" - inkscape:export-filename="C:\simon\Projects\Tuscany\java\java-head\sca\itest\databindings\databinding.png" - inkscape:export-xdpi="52.84" - inkscape:export-ydpi="52.84"> - <defs - id="defs4"> - <marker - inkscape:stockid="Arrow2Lend" - orient="auto" - refY="0.0" - refX="0.0" - id="Arrow2Lend" - style="overflow:visible;"> - <path - id="path3078" - style="font-size:12.0;fill-rule:evenodd;stroke-width:0.62500000;stroke-linejoin:round;" - d="M 8.7185878,4.0337352 L -2.2072895,0.016013256 L 8.7185884,-4.0017078 C 6.9730900,-1.6296469 6.9831476,1.6157441 8.7185878,4.0337352 z " - transform="scale(1.1) rotate(180) translate(1,0)" /> - </marker> - </defs> - <sodipodi:namedview - id="base" - pagecolor="#ffffff" - bordercolor="#666666" - borderopacity="1.0" - gridtolerance="10000" - guidetolerance="10" - objecttolerance="10" - inkscape:pageopacity="0.0" - inkscape:pageshadow="2" - inkscape:zoom="1.4" - inkscape:cx="499.13602" - inkscape:cy="337.74555" - inkscape:document-units="px" - inkscape:current-layer="layer1" - inkscape:window-width="1180" - inkscape:window-height="775" - inkscape:window-x="36" - inkscape:window-y="42" /> - <metadata - id="metadata7"> - <rdf:RDF> - <cc:Work - rdf:about=""> - <dc:format>image/svg+xml</dc:format> - <dc:type - rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> - </cc:Work> - </rdf:RDF> - </metadata> - <g - inkscape:label="Layer 1" - inkscape:groupmode="layer" - id="layer1"> - <g - id="g2997" - transform="matrix(1.084673,0,0,0.856154,-21.78728,27.4907)"> - <rect - rx="15.307091" - ry="15.260983" - y="192.00233" - x="258.31146" - height="360.71414" - width="495.71429" - id="rect2067" - style="opacity:1;fill:#90baf4;fill-opacity:1;stroke:#060000;stroke-width:2.07541251;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> - <flowRoot - id="flowRoot2954" - xml:space="preserve"><flowRegion - id="flowRegion2956"><rect - y="212.66591" - x="281.42856" - height="61.42857" - width="170" - id="rect2958" /></flowRegion><flowPara - id="flowPara2960">GreeterService</flowPara></flowRoot> </g> - <rect - style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" - id="rect2988" - width="115.66247" - height="85.862968" - x="312.05917" - y="258.59619" - rx="6.9961648" - ry="7.1230249" /> - <flowRoot - xml:space="preserve" - id="flowRoot2966" - transform="translate(44.4684,52.65764)"><flowRegion - id="flowRegion2968"><rect - id="rect2970" - width="170" - height="61.42857" - x="281.42856" - y="212.66591" /></flowRegion><flowPara - id="flowPara2972">DefaultGreeter</flowPara><flowPara - id="flowPara2019">ServiceClient</flowPara></flowRoot> <path - style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 294.90867,290.44317 L 328.24371,290.44317 L 334.30462,303.57515 L 327.23356,315.69699 L 294.90867,315.69699 L 302.48482,303.57515 L 294.90867,290.44317 z " - id="path3017" /> - <path - style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 408.16111,288.60489 L 441.49615,288.60489 L 447.55706,301.73687 L 440.486,313.85871 L 408.16111,313.85871 L 415.73726,301.73687 L 408.16111,288.60489 z " - id="path3019" /> - <rect - style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" - id="rect1985" - width="115.66247" - height="85.862968" - x="642.96918" - y="315.88455" - rx="6.9961648" - ry="7.1230249" /> - <flowRoot - xml:space="preserve" - id="flowRoot1987" - transform="translate(375.3784,109.946)"><flowRegion - id="flowRegion1989"><rect - id="rect1991" - width="170" - height="61.42857" - x="281.42856" - y="212.66591" /></flowRegion><flowPara - id="flowPara1993">GreeterService</flowPara><flowPara - id="flowPara2017">Component</flowPara></flowRoot> <path - style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 625.81867,347.73153 L 659.15371,347.73153 L 665.21462,360.86351 L 658.14356,372.98535 L 625.81867,372.98535 L 633.39482,360.86351 L 625.81867,347.73153 z " - id="path1997" /> - <rect - style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" - id="rect2001" - width="115.66247" - height="85.862968" - x="313.68344" - y="371.59885" - rx="6.9961648" - ry="7.1230249" /> - <flowRoot - xml:space="preserve" - id="flowRoot2003" - transform="translate(46.09269,165.6602)"><flowRegion - id="flowRegion2005"><rect - id="rect2007" - width="170" - height="61.42857" - x="281.42856" - y="212.66591" /></flowRegion><flowPara - id="flowPara2009">WSGreeter</flowPara><flowPara - id="flowPara2021">ServiceClient</flowPara></flowRoot> <path - style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 296.53296,403.44581 L 329.868,403.44581 L 335.92891,416.57779 L 328.85785,428.69963 L 296.53296,428.69963 L 304.10911,416.57779 L 296.53296,403.44581 z " - id="path2013" /> - <path - style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 409.7854,401.60753 L 443.12044,401.60753 L 449.18135,414.73951 L 442.11029,426.86135 L 409.7854,426.86135 L 417.36155,414.73951 L 409.7854,401.60753 z " - id="path2015" /> - <path - style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;marker-end:url(#Arrow2Lend);stroke-opacity:1" - d="M 447.14297,301.23734 L 527.11201,301.95163 L 526.12473,354.09448 L 626.8265,354.80877" - id="path2039" /> - <path - style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1.00000012px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 463.87333,395.75343 L 516.54902,395.75343 L 526.12641,417.42827 L 514.95279,437.43583 L 463.87333,437.43583 L 475.84509,417.42827 L 463.87333,395.75343 z " - id="path3108" - inkscape:transform-center-y="-33.571429" - inkscape:transform-center-x="31.706144" /> - <path - style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 535.3019,397.182 L 577.70287,397.182 L 585.41213,416.99969 L 576.41799,435.29297 L 535.3019,435.29297 L 544.93849,416.99969 L 535.3019,397.182 z " - id="path3110" /> - <flowRoot - xml:space="preserve" - id="flowRoot3112" - transform="matrix(0.778099,0,0,0.884748,255.7727,214.0266)"><flowRegion - id="flowRegion3114"><rect - id="rect3116" - width="170" - height="61.42857" - x="281.42856" - y="212.66591" /></flowRegion><flowPara - id="flowPara3120">WS</flowPara><flowPara - id="flowPara3124">Reference</flowPara></flowRoot> <flowRoot - xml:space="preserve" - id="flowRoot3128" - transform="matrix(0.778099,0,0,0.884748,324.368,215.5376)"><flowRegion - id="flowRegion3130"><rect - id="rect3132" - width="170" - height="61.42857" - x="281.42856" - y="212.66591" /></flowRegion><flowPara - id="flowPara3134">WS</flowPara><flowPara - id="flowPara3136">Service</flowPara></flowRoot> <path - style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#Arrow2Lend)" - d="M 447.85714,415.52305 L 475.71429,415.52305" - id="path3138" /> - <path - style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#Arrow2Lend)" - d="M 525.71429,417.66591 L 543.57143,417.66591" - id="path3140" /> - <path - style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#Arrow2Lend)" - d="M 585.71429,416.23734 L 599.28571,416.23734 L 600,364.80877 L 629.28571,364.80877" - id="path3142" /> - </g> -</svg> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/interop.png b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/interop.png Binary files differdeleted file mode 100644 index 005e0f24ea..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/interop.png +++ /dev/null diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/interop.svg b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/interop.svg deleted file mode 100644 index 03897c6d09..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/interop.svg +++ /dev/null @@ -1,352 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> - -<!-- Created with Inkscape (http://www.inkscape.org/) --> -<svg - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:cc="http://web.resource.org/cc/" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" - xmlns:svg="http://www.w3.org/2000/svg" - xmlns="http://www.w3.org/2000/svg" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="1052.3622" - height="744.09448" - id="svg2" - sodipodi:version="0.32" - inkscape:version="0.44" - sodipodi:docbase="C:\simon\Projects\Tuscany\java\java-head\sca\itest\databindings" - sodipodi:docname="interop.svg" - version="1.0" - inkscape:export-filename="C:\simon\Projects\Tuscany\java\java-head\sca\itest\databindings\interop.png" - inkscape:export-xdpi="52.84" - inkscape:export-ydpi="52.84"> - <defs - id="defs4"> - <marker - inkscape:stockid="Arrow2Lend" - orient="auto" - refY="0.0" - refX="0.0" - id="Arrow2Lend" - style="overflow:visible;"> - <path - id="path3078" - style="font-size:12.0;fill-rule:evenodd;stroke-width:0.62500000;stroke-linejoin:round;" - d="M 8.7185878,4.0337352 L -2.2072895,0.016013256 L 8.7185884,-4.0017078 C 6.9730900,-1.6296469 6.9831476,1.6157441 8.7185878,4.0337352 z " - transform="scale(1.1) rotate(180) translate(1,0)" /> - </marker> - </defs> - <sodipodi:namedview - id="base" - pagecolor="#ffffff" - bordercolor="#666666" - borderopacity="1.0" - gridtolerance="10000" - guidetolerance="10" - objecttolerance="10" - inkscape:pageopacity="0.0" - inkscape:pageshadow="2" - inkscape:zoom="1.4" - inkscape:cx="428.95418" - inkscape:cy="356.33178" - inkscape:document-units="px" - inkscape:current-layer="g2997" - inkscape:window-width="1234" - inkscape:window-height="800" - inkscape:window-x="27" - inkscape:window-y="108" /> - <metadata - id="metadata7"> - <rdf:RDF> - <cc:Work - rdf:about=""> - <dc:format>image/svg+xml</dc:format> - <dc:type - rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> - </cc:Work> - </rdf:RDF> - </metadata> - <g - inkscape:label="Layer 1" - inkscape:groupmode="layer" - id="layer1"> - <g - id="g2997" - transform="matrix(0.979246,0,0,1.158467,-105.7257,-23.34339)"> - <rect - rx="25.230545" - ry="12.196672" - y="179.85953" - x="146.34595" - height="288.28497" - width="817.08154" - id="rect2067" - style="opacity:1;fill:#90baf4;fill-opacity:1;stroke:#060000;stroke-width:1.87776983;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> - <flowRoot - id="flowRoot2954" - xml:space="preserve" - transform="translate(-102.7603,-25.12021)"><flowRegion - id="flowRegion2956"><rect - y="212.66591" - x="281.42856" - height="61.42857" - width="170" - id="rect2958" /></flowRegion><flowPara - id="flowPara2960">InteropGreeterService</flowPara></flowRoot> </g> - <rect - style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" - id="rect3332" - width="115.66247" - height="85.862968" - x="77.514153" - y="231.09024" - rx="6.9961648" - ry="7.1230249" /> - <flowRoot - xml:space="preserve" - id="flowRoot3334" - transform="translate(-185.0766,21.58025)"><flowRegion - id="flowRegion3336"><rect - id="rect3338" - width="170" - height="61.42857" - x="281.42856" - y="212.66591" /></flowRegion><flowPara - id="flowPara3340">SDO</flowPara><flowPara - id="flowPara3379">DefaultGreeter</flowPara><flowPara - id="flowPara2019">ServiceClient</flowPara></flowRoot> <path - style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 60.363662,262.93721 L 93.698702,262.93721 L 99.759609,276.06919 L 92.688552,288.19103 L 60.363662,288.19103 L 67.939812,276.06919 L 60.363662,262.93721 z " - id="path3343" /> - <path - style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 173.6161,261.09893 L 206.95114,261.09893 L 213.01205,274.23091 L 205.94099,286.35275 L 173.6161,286.35275 L 181.19225,274.23091 L 173.6161,261.09893 z " - id="path3345" /> - <rect - style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" - id="rect1985" - width="115.66247" - height="85.862968" - x="681.65045" - y="289.48157" - rx="6.9961648" - ry="7.1230249" /> - <flowRoot - xml:space="preserve" - id="flowRoot1987" - transform="translate(423.3454,80.68594)"><flowRegion - id="flowRegion1989"><rect - id="rect1991" - width="170" - height="61.42857" - x="281.42856" - y="212.66591" /></flowRegion><flowPara - id="flowPara1993">SDO</flowPara><flowPara - id="flowPara3399">GreeterService</flowPara><flowPara - id="flowPara2017">Component</flowPara></flowRoot> <path - style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 664.49995,321.32854 L 697.83499,321.32854 L 703.8959,334.46052 L 696.82484,346.58236 L 664.49995,346.58236 L 672.0761,334.46052 L 664.49995,321.32854 z " - id="path1997" /> - <rect - style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" - id="rect2001" - width="115.66247" - height="85.862968" - x="76.281281" - y="356.23575" - rx="6.9961648" - ry="7.1230249" /> - <flowRoot - xml:space="preserve" - id="flowRoot2003" - transform="translate(-185.5951,150.2971)"><flowRegion - id="flowRegion2005"><rect - id="rect2007" - width="170" - height="61.42857" - x="281.42856" - y="212.66591" /></flowRegion><flowPara - id="flowPara2009">SDO</flowPara><flowPara - id="flowPara3401">WSGreeter</flowPara><flowPara - id="flowPara2021">ServiceClient</flowPara></flowRoot> <path - style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 59.130809,388.08271 L 92.465849,388.08271 L 98.526759,401.21469 L 91.455699,413.33653 L 59.130809,413.33653 L 66.706959,401.21469 L 59.130809,388.08271 z " - id="path2013" /> - <path - style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 172.38325,386.24443 L 205.71829,386.24443 L 211.7792,399.37641 L 204.70814,411.49825 L 172.38325,411.49825 L 179.9594,399.37641 L 172.38325,386.24443 z " - id="path2015" /> - <path - style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:0.99999982px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 226.47114,380.39017 L 271.82375,380.39017 L 280.06966,400.95073 L 270.44943,419.92971 L 226.47114,419.92971 L 236.77856,400.95073 L 226.47114,380.39017 z " - id="path3108" - inkscape:transform-center-y="-31.845711" - inkscape:transform-center-x="27.298337" /> - <path - style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:0.99999982px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 286.59013,381.79328 L 328.89058,381.79328 L 336.58156,401.62413 L 327.60875,419.92957 L 286.59013,419.92957 L 296.20387,401.62413 L 286.59013,381.79328 z " - id="path3110" /> - <flowRoot - xml:space="preserve" - id="flowRoot3112" - transform="matrix(0.654898,0,0,0.869049,51.92158,201.8882)"><flowRegion - id="flowRegion3114"><rect - id="rect3116" - width="170" - height="61.42857" - x="281.42856" - y="212.66591" /></flowRegion><flowPara - id="flowPara3120">WS</flowPara><flowPara - id="flowPara3124">Reference</flowPara></flowRoot> <flowRoot - xml:space="preserve" - id="flowRoot3128" - transform="matrix(0.654898,0,0,0.869049,112.0605,203.3723)"><flowRegion - id="flowRegion3130"><rect - id="rect3132" - width="170" - height="61.42857" - x="281.42856" - y="212.66591" /></flowRegion><flowPara - id="flowPara3134">WS</flowPara><flowPara - id="flowPara3136">Service</flowPara></flowRoot> <rect - style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" - id="rect3381" - width="115.66247" - height="85.862968" - x="376.54059" - y="229.73444" - rx="6.9961648" - ry="7.1230249" /> - <flowRoot - xml:space="preserve" - id="flowRoot3383" - transform="translate(113.9499,20.22444)"><flowRegion - id="flowRegion3385"><rect - id="rect3387" - width="170" - height="61.42857" - x="281.42856" - y="212.66591" /></flowRegion><flowPara - id="flowPara3389">JAXB</flowPara><flowPara - id="flowPara3391">DefaultGreeter</flowPara><flowPara - id="flowPara3393">ServiceClient</flowPara></flowRoot> <path - style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 359.39009,261.5814 L 392.72513,261.5814 L 398.78604,274.71338 L 391.71498,286.83522 L 359.39009,286.83522 L 366.96624,274.71338 L 359.39009,261.5814 z " - id="path3395" /> - <path - style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 472.64253,259.74312 L 505.97757,259.74312 L 512.03848,272.8751 L 504.96742,284.99694 L 472.64253,284.99694 L 480.21868,272.8751 L 472.64253,259.74312 z " - id="path3397" /> - <rect - style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" - id="rect3403" - width="115.66247" - height="85.862968" - x="375.19193" - y="355.69083" - rx="6.9961648" - ry="7.1230249" /> - <flowRoot - xml:space="preserve" - id="flowRoot3405" - transform="translate(112.6012,146.1808)"><flowRegion - id="flowRegion3407"><rect - id="rect3409" - width="170" - height="61.42857" - x="281.42856" - y="212.66591" /></flowRegion><flowPara - id="flowPara3411">JAXB</flowPara><flowPara - id="flowPara3413">WSGreeter</flowPara><flowPara - id="flowPara3415">ServiceClient</flowPara></flowRoot> <path - style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 358.0414,387.53779 L 391.37644,387.53779 L 397.43735,400.66977 L 390.36629,412.79161 L 358.0414,412.79161 L 365.61755,400.66977 L 358.0414,387.53779 z " - id="path3417" /> - <path - style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 471.29384,385.69951 L 504.62888,385.69951 L 510.68979,398.83149 L 503.61873,410.95333 L 471.29384,410.95333 L 478.86999,398.83149 L 471.29384,385.69951 z " - id="path3419" /> - <path - style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:0.99999982px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 531.84342,380.87285 L 577.19603,380.87285 L 585.44194,401.43341 L 575.82171,420.41239 L 531.84342,420.41239 L 542.15084,401.43341 L 531.84342,380.87285 z " - id="path3421" - inkscape:transform-center-y="-31.845711" - inkscape:transform-center-x="27.298337" /> - <path - style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:0.99999982px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 591.96241,382.27596 L 634.26286,382.27596 L 641.95384,402.10681 L 632.98103,420.41225 L 591.96241,420.41225 L 601.57615,402.10681 L 591.96241,382.27596 z " - id="path3423" /> - <flowRoot - xml:space="preserve" - id="flowRoot3425" - transform="matrix(0.654898,0,0,0.869049,357.2939,202.3709)"><flowRegion - id="flowRegion3427"><rect - id="rect3429" - width="170" - height="61.42857" - x="281.42856" - y="212.66591" /></flowRegion><flowPara - id="flowPara3431">WS</flowPara><flowPara - id="flowPara3433">Reference</flowPara></flowRoot> <flowRoot - xml:space="preserve" - id="flowRoot3435" - transform="matrix(0.654898,0,0,0.869049,417.4328,203.855)"><flowRegion - id="flowRegion3437"><rect - id="rect3439" - width="170" - height="61.42857" - x="281.42856" - y="212.66591" /></flowRegion><flowPara - id="flowPara3441">WS</flowPara><flowPara - id="flowPara3443">Service</flowPara></flowRoot> <path - style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 212.14286,274.09448 L 366.42857,274.80877" - id="path3447" /> - <path - style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 512.14286,272.66591 L 599.28571,272.66591 L 599.28571,325.52305 L 665.71429,325.52305" - id="path3453" /> - <path - style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 210.71429,399.80877 L 235.71429,399.80877" - id="path3455" /> - <path - style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 278.57143,401.23734 L 295.71429,401.23734" - id="path3459" /> - <path - style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 336.42857,401.95163 L 365.71429,401.95163" - id="path3461" /> - <path - style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 510.71429,399.80877 L 540.71429,399.80877" - id="path3463" /> - <path - style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 585,401.95163 L 600.71429,401.95163" - id="path3465" /> - <path - style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 641.42857,402.66591 L 657.14286,402.66591 L 657.85714,339.09448 L 669.28571,339.09448" - id="path3467" /> - </g> -</svg> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/interop/pom.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/interop/pom.xml deleted file mode 100644 index fd4bc7c0a5..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/interop/pom.xml +++ /dev/null @@ -1,223 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<project> - <parent> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>itest-databindings</artifactId> - <version>1.5.1</version> - </parent> - - <modelVersion>4.0.0</modelVersion> - - <artifactId>itest-databindings-interop</artifactId> - <version>1.5.1</version> - <packaging>jar</packaging> - <name>Apache Tuscany SCA iTest DataBinding Interop</name> - - <repositories> - <repository> - <snapshots> - <enabled>true</enabled> - </snapshots> - <id>java.net</id> - <name>java.net Maven 1.x Repository</name> - <url>http://download.java.net/maven/1</url> - <layout>legacy</layout> - </repository> - <repository> - <id>java.net2</id> - <name>java.net Maven 2.x Repository</name> - <url>http://download.java.net/maven/2</url> - </repository> - </repositories> - - <pluginRepositories> - <pluginRepository> - <snapshots> - <enabled>true</enabled> - </snapshots> - <id>java.net</id> - <name>java.net Maven 1.x Repository</name> - <url>http://download.java.net/maven/1</url> - <layout>legacy</layout> - </pluginRepository> - </pluginRepositories> - - <dependencies> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-binding-ws-axis2</artifactId> - <version>${pom.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-databinding-jaxb</artifactId> - <version>${pom.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-databinding-sdo</artifactId> - <version>${pom.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-databinding-axiom</artifactId> - <version>${pom.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>javax.xml.bind</groupId> - <artifactId>jaxb-api</artifactId> - <version>2.1</version> - <scope>compile</scope> - </dependency> - - <dependency> - <groupId>com.sun.xml.ws</groupId> - <artifactId>jaxws-rt</artifactId> - <version>2.1.3</version> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>itest-databindings-common</artifactId> - <version>${pom.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>itest-databindings-sdo</artifactId> - <version>${pom.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>itest-databindings-jaxb</artifactId> - <version>${pom.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-host-embedded</artifactId> - <version>${pom.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-implementation-java-runtime</artifactId> - <version>${pom.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-interface-java-xml</artifactId> - <version>${pom.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-host-jetty</artifactId> - <version>1.5.1</version> - <scope>test</scope> - </dependency> - </dependencies> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <configuration> - <argLine>-Djava.endorsed.dirs=target/endorsed</argLine> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-dependency-plugin</artifactId> - <executions> - <execution> - <phase>generate-sources</phase> - <goals> - <goal>unpack</goal> - </goals> - <configuration> - <artifactItems> - <artifactItem> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>itest-databindings-common</artifactId> - <version>${project.version}</version> - <overWrite>true</overWrite> - <outputDirectory>${project.build.directory}/classes</outputDirectory> - </artifactItem> - </artifactItems> - </configuration> - </execution> - <execution> - <id>copy</id> - <phase>generate-sources</phase> - <goals> - <goal>copy</goal> - </goals> - <configuration> - <artifactItems> - <artifactItem> - <groupId>javax.xml.ws</groupId> - <artifactId>jaxws-api</artifactId> - <version>2.1</version> - <type>jar</type> - </artifactItem> - <artifactItem> - <groupId>javax.xml.bind</groupId> - <artifactId>jaxb-api</artifactId> - <version>2.1</version> - <type>jar</type> - </artifactItem> - </artifactItems> - <outputDirectory>${project.build.directory}/endorsed</outputDirectory> - <overWriteReleases>false</overWriteReleases> - <overWriteSnapshots>true</overWriteSnapshots> - </configuration> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>exec-maven-plugin</artifactId> - <executions> - <execution> - <id>generate-test-source</id> - <phase>process-resources</phase> - <goals> - <goal>java</goal> - </goals> - </execution> - </executions> - <configuration> - <mainClass>org.apache.tuscany.sca.itest.generate.Generate</mainClass> - <arguments> - <argument>${project.build.directory}</argument> - </arguments> - </configuration> - </plugin> - </plugins> - </build> -</project> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/interop/src/main/resources/generate/InteropDatabindingTestCase.java.vm b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/interop/src/main/resources/generate/InteropDatabindingTestCase.java.vm deleted file mode 100644 index 7bdfc57924..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/interop/src/main/resources/generate/InteropDatabindingTestCase.java.vm +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package $template.getJavaPackage(); - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.host.embedded.SCADomain; -import ${template.getJavaPackage()}.GreeterService; - -// Data types -#foreach($file in $fileList) -#set($typeList = $file.getType_()) -#foreach($typeInstance in $typeList) -import $file.getJavaPackage().$typeInstance.getTypeName(); -import $file.getJavaPackage().$file.getFactory(); -#end -#end - -/** - * Automatically generated test case. Calls the greeter client for a number of - * bindings and a number of data types. - * - * @version $Rev: 511417 $ $Date: 2007-02-25 03:06:42 +0000 (Sun, 25 Feb 2007) $ - */ -public class InteropDatabindingTestCase extends TestCase { - - private static boolean initalised = false; - private GreeterService greeterClient; - private static SCADomain domain; - - /** - * Runs before each test method - */ - protected void setUp() throws Exception { - if (!initalised) { - domain = SCADomain.newInstance("interopgreeter.composite"); - super.setUp(); - initalised = true; - } - } - - /** - * Runs after each test method - */ - protected void tearDown() { - - } - - /** - * Finds the SCA component that relates to the protocol being tested. This test - * always connects locally to the client component but the client component will - * connect to the back end component using the appropriate protocol - * - * @param ext the protcol required - */ - private void setUpClient(String ext) throws Exception { - greeterClient = domain.getService(GreeterService.class, "SDO" + ext + "GreeterServiceClient"); - } - - /** - * Invokes the SDO Greet service using web service bindings with SDO payload - */ - public void testWSGreet() throws Exception { - setUpClient("WS"); - greet(); - } - - /** - * Invokes the SDO Greet service using default bindings with SDO payload - */ - public void testDefaultGreet() throws Exception { - setUpClient("Default"); - greet(); - } - - /** - * A generic method which, regarless of which client is connected, sends out a - * series of requrests passing different data types. - */ - public void greet() { -#foreach($file in $fileList) -#set($typeList = $file.getType_()) -#foreach($typeInstance in $typeList) - - // test $typeInstance.getTypeName() - { - $typeInstance.getTypeName() param = null; - $typeInstance.getCreateTypeCode() - $typeInstance.getTypeName() result = greeterClient.greet$typeInstance.getTypeName()(param); - $typeInstance.getResultComparison() - } -#end -#end - } - -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/interop/src/main/resources/generate/JAXBGreeter.wsdl.vm b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/interop/src/main/resources/generate/JAXBGreeter.wsdl.vm deleted file mode 100644 index 38bfccce0c..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/interop/src/main/resources/generate/JAXBGreeter.wsdl.vm +++ /dev/null @@ -1,103 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<wsdl:definitions targetNamespace="http://apache.org/tuscany/sca/itest/databinding/services/jaxb" - xmlns:tns="http://apache.org/tuscany/sca/itest/databinding/services/jaxb" - xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" - xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - name="Greeter"> - - <wsdl:types> - <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" -#foreach($file in $fileList) - xmlns:$file.getPrefix()="$file.getNamespace()" -#end - targetNamespace="http://apache.org/tuscany/sca/itest/databinding/services/jaxb" - elementFormDefault="qualified"> - -#foreach($file in $fileList) - <xsd:import namespace="$file.getNamespace()" - schemaLocation="../xsd/$file.getFileName()" /> -#end - -#foreach($file in $fileList) -#set($typeList = $file.getType_()) -#foreach($typeInstance in $typeList) - <element name="greet$typeInstance.getTypeName()"> - <complexType> - <sequence> - <element name="parm" type="$file.getPrefix():$typeInstance.getTypeName()" /> - </sequence> - </complexType> - </element> -#end -#end - </xsd:schema> - </wsdl:types> -#foreach($file in $fileList) -#set($typeList = $file.getType_()) -#foreach($typeInstance in $typeList) - - <wsdl:message name="$typeInstance.getTypeName()Request"> - <wsdl:part element="tns:greet$typeInstance.getTypeName()" name="parameters" /> - </wsdl:message> - <wsdl:message name="$typeInstance.getTypeName()Response"> - <wsdl:part element="tns:greet$typeInstance.getTypeName()" name="parameters" /> - </wsdl:message> -#end -#end - - <wsdl:portType name="GreeterPortType"> -#foreach($file in $fileList) -#set($typeList = $file.getType_()) -#foreach($typeInstance in $typeList) - <wsdl:operation name="greet$typeInstance.getTypeName()"> - <wsdl:input message="tns:$typeInstance.getTypeName()Request" name="$typeInstance.getTypeName()RequestMsg" /> - <wsdl:output message="tns:$typeInstance.getTypeName()Response" name="$typeInstance.getTypeName()ResponseMsg" /> - </wsdl:operation> -#end -#end - </wsdl:portType> - - <wsdl:binding name="GreeterBinding" type="tns:GreeterPortType"> - <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> -#foreach($file in $fileList) -#set($typeList = $file.getType_()) -#foreach($typeInstance in $typeList) - <wsdl:operation name="greet$typeInstance.getTypeName()"> - <wsdlsoap:operation soapAction="" /> - <wsdl:input name="$typeInstance.getTypeName()RequestMsg"> - <wsdlsoap:body use="literal" /> - </wsdl:input> - <wsdl:output name="$typeInstance.getTypeName()ResponseMsg"> - <wsdlsoap:body use="literal" /> - </wsdl:output> - </wsdl:operation> -#end -#end - </wsdl:binding> - - <wsdl:service name="GreeterService"> - <wsdl:port name="GreeterPort" binding="tns:GreeterBinding"> - <wsdlsoap:address location="http://localhost:8085/services/JAXBGreeterServiceWebServiceBinding" /> - </wsdl:port> - </wsdl:service> - -</wsdl:definitions> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/interop/src/main/resources/generate/SDOGreeter.wsdl.vm b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/interop/src/main/resources/generate/SDOGreeter.wsdl.vm deleted file mode 100644 index 6f02af4c9d..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/interop/src/main/resources/generate/SDOGreeter.wsdl.vm +++ /dev/null @@ -1,103 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<wsdl:definitions targetNamespace="http://apache.org/tuscany/sca/itest/databinding/services/sdo" - xmlns:tns="http://apache.org/tuscany/sca/itest/databinding/services/sdo" - xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" - xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - name="Greeter"> - - <wsdl:types> - <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" -#foreach($file in $fileList) - xmlns:$file.getPrefix()="$file.getNamespace()" -#end - targetNamespace="http://apache.org/tuscany/sca/itest/databinding/services/sdo" - elementFormDefault="qualified"> - -#foreach($file in $fileList) - <xsd:import namespace="$file.getNamespace()" - schemaLocation="../xsd/$file.getFileName()" /> -#end - -#foreach($file in $fileList) -#set($typeList = $file.getType_()) -#foreach($typeInstance in $typeList) - <element name="greet$typeInstance.getTypeName()"> - <complexType> - <sequence> - <element name="parm" type="$file.getPrefix():$typeInstance.getTypeName()" /> - </sequence> - </complexType> - </element> -#end -#end - </xsd:schema> - </wsdl:types> -#foreach($file in $fileList) -#set($typeList = $file.getType_()) -#foreach($typeInstance in $typeList) - - <wsdl:message name="$typeInstance.getTypeName()Request"> - <wsdl:part element="tns:greet$typeInstance.getTypeName()" name="parameters" /> - </wsdl:message> - <wsdl:message name="$typeInstance.getTypeName()Response"> - <wsdl:part element="tns:greet$typeInstance.getTypeName()" name="parameters" /> - </wsdl:message> -#end -#end - - <wsdl:portType name="GreeterPortType"> -#foreach($file in $fileList) -#set($typeList = $file.getType_()) -#foreach($typeInstance in $typeList) - <wsdl:operation name="greet$typeInstance.getTypeName()"> - <wsdl:input message="tns:$typeInstance.getTypeName()Request" name="$typeInstance.getTypeName()RequestMsg" /> - <wsdl:output message="tns:$typeInstance.getTypeName()Response" name="$typeInstance.getTypeName()ResponseMsg" /> - </wsdl:operation> -#end -#end - </wsdl:portType> - - <wsdl:binding name="GreeterBinding" type="tns:GreeterPortType"> - <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> -#foreach($file in $fileList) -#set($typeList = $file.getType_()) -#foreach($typeInstance in $typeList) - <wsdl:operation name="greet$typeInstance.getTypeName()"> - <wsdlsoap:operation soapAction="" /> - <wsdl:input name="$typeInstance.getTypeName()RequestMsg"> - <wsdlsoap:body use="literal" /> - </wsdl:input> - <wsdl:output name="$typeInstance.getTypeName()ResponseMsg"> - <wsdlsoap:body use="literal" /> - </wsdl:output> - </wsdl:operation> -#end -#end - </wsdl:binding> - - <wsdl:service name="GreeterService"> - <wsdl:port name="GreeterPort" binding="tns:GreeterBinding"> - <wsdlsoap:address location="http://localhost:8085/services/SDOGreeterServiceWebServiceBinding" /> - </wsdl:port> - </wsdl:service> - -</wsdl:definitions> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/interop/src/main/resources/generate/generate.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/interop/src/main/resources/generate/generate.xml deleted file mode 100644 index 8453dd56b4..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/interop/src/main/resources/generate/generate.xml +++ /dev/null @@ -1,159 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:Generate xmlns:tns="http://www.apache.org/tuscany/generate" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.example.org/generate generate.xsd "> - - <Template> - <TemplateName>InteropDatabindingTestCase.java.vm</TemplateName> - <TemplateTargetDir>../src/test/java/org/apache/tuscany/sca/itest/sdodatabinding</TemplateTargetDir> - <JavaPackage>org.apache.tuscany.sca.itest.sdodatabinding</JavaPackage> - </Template> - <Template> - <TemplateName>interopgreeter.composite.vm</TemplateName> - <TemplateTargetDir>classes</TemplateTargetDir> - </Template> - <Template> - <TemplateName>SDOGreeter.wsdl.vm</TemplateName> - <TemplateTargetDir>classes/wsdl</TemplateTargetDir> - </Template> - <Template> - <TemplateName>JAXBGreeter.wsdl.vm</TemplateName> - <TemplateTargetDir>classes/wsdl</TemplateTargetDir> - </Template> - <InputFile> - <FileName>Person.xsd</FileName> - <FilePath>xsd</FilePath> - <JavaPackage>org.apache.tuscany.sca.itest.databinding.types</JavaPackage> - <Factory>TypesFactory</Factory> - <Namespace>http://apache.org/tuscany/sca/itest/databinding/types</Namespace> - <Prefix>p</Prefix> - <Type> - <TypeName>PersonType</TypeName> - <CreateTypeCode> - TypesFactory factory = TypesFactory.INSTANCE; - param = factory.createPersonType(); - param.setFirstName("George"); - param.setLastName("Doors"); - </CreateTypeCode> - <ModifyTypeCode> - param.setGreeting("Hello"); - </ModifyTypeCode> - <ResultComparison> - assertNotSame("greetedPerson.getGreeting() not set", "", result.getGreeting()); - </ResultComparison> - </Type> - </InputFile> - <InputFile> - <FileName>Interop.xsd</FileName> - <FilePath>xsd</FilePath> - <JavaPackage>org.apache.tuscany.interop</JavaPackage> - <Factory>InteropFactory</Factory> - <Namespace>http://www.apache.org/tuscany/interop</Namespace> - <Prefix>i</Prefix> - <!-- Type> - <TypeName>AnnotationComplexType</TypeName> - <CreateTypeCode> - InteropFactory factory = InteropFactory.INSTANCE; - param = factory.createAnnotationComplexType(); - param.setSimpleTypeWithNameElement("SomeText"); - </CreateTypeCode> - <ModifyTypeCode> - param.setSimpleTypeWithNameElement("SomeChangedText");; - </ModifyTypeCode> - <ResultComparison> - assertEquals("data not changed corretly", "SomeChangedText", result.getSimpleTypeWithNameElement()); - </ResultComparison> - </Type--> - <Type> - <TypeName>AttributeComplexType</TypeName> - <CreateTypeCode> - InteropFactory factory = InteropFactory.INSTANCE; - org.apache.tuscany.interop.AttributeType attrib = factory.createAttributeType(); - attrib.setAttribute("SomeText"); - param = factory.createAttributeComplexType(); - param.setAttributeElement(attrib); - </CreateTypeCode> - <ModifyTypeCode> - param.getAttributeElement().setAttribute("SomeChangedText");; - </ModifyTypeCode> - <ResultComparison> - assertEquals("data not changed corretly", "SomeChangedText", result.getAttributeElement().getAttribute()); - </ResultComparison> - </Type> - <Type> - <TypeName>AttributeReferenceComplexType</TypeName> - <CreateTypeCode> - InteropFactory factory = InteropFactory.INSTANCE; - param = factory.createAttributeReferenceComplexType(); - - param.setReferencedAttribute("SomeText"); - </CreateTypeCode> - <ModifyTypeCode> - param.setReferencedAttribute("SomeChangedText");; - </ModifyTypeCode> - <ResultComparison> - assertEquals("data not changed corretly", "SomeChangedText", result.getReferencedAttribute()); - </ResultComparison> - </Type> - <Type> - <TypeName>SimpleTypeWithAbstractComplexType</TypeName> - <CreateTypeCode> - InteropFactory factory = InteropFactory.INSTANCE; - param = factory.createSimpleTypeWithAbstractComplexType(); - param.setSimpleTypeWithAbstractExtensionElement("SomeText"); - </CreateTypeCode> - <ModifyTypeCode> - param.setSimpleTypeWithAbstractExtensionElement("SomeChangedText");; - </ModifyTypeCode> - <ResultComparison> - assertEquals("data not changed corretly", "SomeChangedText", result.getSimpleTypeWithAbstractExtensionElement()); - </ResultComparison> - </Type> - <Type> - <TypeName>SimpleTypeWithNameComplexType</TypeName> - <CreateTypeCode> - InteropFactory factory = InteropFactory.INSTANCE; - param = factory.createSimpleTypeWithNameComplexType(); - param.setSimpleTypeWithNameElement("SomeText"); - </CreateTypeCode> - <ModifyTypeCode> - param.setSimpleTypeWithNameElement("SomeChangedText");; - </ModifyTypeCode> - <ResultComparison> - assertEquals("data not changed corretly", "SomeChangedText", result.getSimpleTypeWithNameElement()); - </ResultComparison> - </Type> - <Type> - <TypeName>ComplexTypeWithContentType</TypeName> - <CreateTypeCode> - InteropFactory factory = InteropFactory.INSTANCE; - param = factory.createComplexTypeWithContentType(); - param.setSimpleTypeWithName("SomeText"); - </CreateTypeCode> - <ModifyTypeCode> - param.setSimpleTypeWithName("SomeChangedText");; - </ModifyTypeCode> - <ResultComparison> - assertEquals("data not changed corretly", "SomeChangedText", result.getSimpleTypeWithName()); - </ResultComparison> - </Type> - </InputFile> -</tns:Generate> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/interop/src/main/resources/generate/interopgreeter.composite.vm b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/interop/src/main/resources/generate/interopgreeter.composite.vm deleted file mode 100644 index 36797fde57..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/interop/src/main/resources/generate/interopgreeter.composite.vm +++ /dev/null @@ -1,78 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance" - xmlns:dbsdo="http://tuscany.apache.org/xmlns/sca/databinding/sdo/1.0" - name="InteropGreeterService"> - - <!-- SDO factory classes --> - #foreach( $file in $fileList ) - <dbsdo:import.sdo factory="$file.getJavaPackage().$file.getFactory()"/> - #end - - <!-- Default binding test --> - <component name="SDODefaultGreeterServiceClient"> - <implementation.java class="org.apache.tuscany.sca.itest.sdodatabinding.GreeterServiceClientImpl" /> - <reference name="greeterService" target="JAXBDefaultGreeterServiceClient"/> - </component> - - <component name="JAXBDefaultGreeterServiceClient"> - <implementation.java class="org.apache.tuscany.sca.itest.jaxbdatabinding.GreeterServiceClientImpl" /> - <reference name="greeterService" target="SDODefaultGreeterServiceComponent"/> - </component> - - <component name="SDODefaultGreeterServiceComponent"> - <implementation.java class="org.apache.tuscany.sca.itest.sdodatabinding.GreeterServiceImpl" /> - </component> - - <!-- WS binding test --> - <component name="SDOWSGreeterServiceClient"> - <implementation.java class="org.apache.tuscany.sca.itest.sdodatabinding.GreeterServiceClientImpl" /> - </component> - - <reference name="JAXBWSGreeterServiceReference" promote="SDOWSGreeterServiceClient/greeterService"> - <interface.wsdl interface="http://apache.org/tuscany/sca/itest/databinding/services/jaxb#wsdl.interface(GreeterPortType)"/> - <binding.ws wsdlElement="http://apache.org/tuscany/sca/itest/databinding/services/jaxb#wsdl.port(GreeterService/GreeterPort)"/> - </reference> - - <service name="JAXBWSGreeterService" promote="JAXBWSGreeterServiceClient"> - <interface.wsdl interface="http://apache.org/tuscany/sca/itest/databinding/services/jaxb#wsdl.interface(GreeterPortType)"/> - <binding.ws wsdlElement="http://apache.org/tuscany/sca/itest/databinding/services/jaxb#wsdl.port(GreeterService/GreeterPort)"/> - </service> - - <component name="JAXBWSGreeterServiceClient"> - <implementation.java class="org.apache.tuscany.sca.itest.jaxbdatabinding.GreeterServiceClientImpl" /> - </component> - - <reference name="SDOWSGreeterServiceReference" promote="JAXBWSGreeterServiceClient/greeterService"> - <interface.wsdl interface="http://apache.org/tuscany/sca/itest/databinding/services/sdo#wsdl.interface(GreeterPortType)"/> - <binding.ws wsdlElement="http://apache.org/tuscany/sca/itest/databinding/services/sdo#wsdl.port(GreeterService/GreeterPort)"/> - </reference> - - <service name="SDOWSGreeterService" promote="SDOWSGreeterServiceComponent"> - <interface.wsdl interface="http://apache.org/tuscany/sca/itest/databinding/services/sdo#wsdl.interface(GreeterPortType)"/> - <binding.ws wsdlElement="http://apache.org/tuscany/sca/itest/databinding/services/sdo#wsdl.port(GreeterService/GreeterPort)"/> - </service> - - <component name="SDOWSGreeterServiceComponent"> - <implementation.java class="org.apache.tuscany.sca.itest.sdodatabinding.GreeterServiceImpl" /> - </component> - -</composite> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/pom.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/pom.xml deleted file mode 100644 index c4e60ddc5b..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/pom.xml +++ /dev/null @@ -1,239 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<project> - <parent> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>itest-databindings</artifactId> - <version>1.5.1</version> - </parent> - - <modelVersion>4.0.0</modelVersion> - - <artifactId>itest-databindings-jaxb-bottom-up</artifactId> - <version>1.5.1</version> - <packaging>jar</packaging> - <name>Apache Tuscany SCA iTest Databinding - JAXB Bottom Up</name> - - <repositories> - <repository> - <snapshots> - <enabled>true</enabled> - </snapshots> - <id>java.net</id> - <name>java.net Maven 1.x Repository</name> - <url>http://download.java.net/maven/1</url> - <layout>legacy</layout> - </repository> - <repository> - <id>java.net2</id> - <name>java.net Maven 2.x Repository</name> - <url>http://download.java.net/maven/2</url> - </repository> - </repositories> - - <pluginRepositories> - <pluginRepository> - <id>java.net2</id> - <name>java.net Maven 2.x Repository</name> - <url>http://download.java.net/maven/2</url> - </pluginRepository> - </pluginRepositories> - - <dependencies> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-binding-ws-axis2</artifactId> - <version>${pom.version}</version> - <scope>runtime</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-databinding-jaxb</artifactId> - <version>${pom.version}</version> - <scope>runtime</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-databinding-sdo</artifactId> - <version>${pom.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-databinding-axiom</artifactId> - <version>${pom.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>itest-databindings-common</artifactId> - <version>${pom.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-host-embedded</artifactId> - <version>${pom.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-implementation-java-runtime</artifactId> - <version>${pom.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-interface-java-xml</artifactId> - <version>${pom.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-host-jetty</artifactId> - <version>1.5.1</version> - <scope>runtime</scope> - </dependency> - <dependency> - <groupId>javax.xml.bind</groupId> - <artifactId>jaxb-api</artifactId> - <version>2.1</version> - <scope>compile</scope> - </dependency> - - <dependency> - <groupId>com.sun.xml.ws</groupId> - <artifactId>jaxws-rt</artifactId> - <version>2.1.3</version> - </dependency> - <!-- Added by Simon Nash --> - <dependency> - <groupId>commons-collections</groupId> - <artifactId>commons-collections</artifactId> - <version>3.1</version> - </dependency> - <dependency> - <groupId>log4j</groupId> - <artifactId>log4j</artifactId> - <version>1.2.12</version> - <scope>provided</scope> - </dependency> - <!-- End of addition --> - </dependencies> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <configuration> - <argLine>-Djava.endorsed.dirs=target/endorsed</argLine> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-dependency-plugin</artifactId> - <executions> - <execution> - <id>copy</id> - <phase>generate-sources</phase> - <goals> - <goal>copy</goal> - </goals> - <configuration> - <artifactItems> - <artifactItem> - <groupId>javax.xml.ws</groupId> - <artifactId>jaxws-api</artifactId> - <version>2.1</version> - <type>jar</type> - </artifactItem> - <artifactItem> - <groupId>javax.xml.bind</groupId> - <artifactId>jaxb-api</artifactId> - <version>2.1</version> - <type>jar</type> - </artifactItem> - </artifactItems> - <outputDirectory>${project.build.directory}/endorsed</outputDirectory> - <overWriteReleases>false</overWriteReleases> - <overWriteSnapshots>true</overWriteSnapshots> - </configuration> - </execution> - </executions> - </plugin> - <!-- - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>build-helper-maven-plugin</artifactId> - <version>1.0</version> - <executions> - <execution> - <id>add-test-source</id> - <phase>generate-sources</phase> - <goals> - <goal>add-test-source</goal> - </goals> - <configuration> - <sources> - <source>target/jaxws-source</source> - </sources> - </configuration> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>jaxws-maven-plugin</artifactId> - <version>1.9</version> - <executions> - - <execution> - <id>wsgen</id> - <phase>process-test-classes</phase> - <goals> - <goal>wsgen-test</goal> - </goals> - <configuration> - <sei>org.apache.tuscany.sca.itest.databindings.jaxb.impl.HelloServiceSimpleImpl</sei> - <genWsdl>true</genWsdl> - <keep>true</keep> - <resourceDestDir>${project.build.directory}/jaxws-source</resourceDestDir> - <sourceDestDir>${project.build.directory}/jaxws-source</sourceDestDir> - </configuration> - </execution> - - </executions> - - <dependencies> - <dependency> - <groupId>com.sun</groupId> - <artifactId>tools</artifactId> - <version>1.5.0</version> - <scope>system</scope> - <systemPath>${java.home}/../lib/tools.jar</systemPath> - </dependency> - </dependencies> - - </plugin> - --> - </plugins> - </build> -</project> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/AClientService.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/AClientService.java deleted file mode 100644 index 7f9b62f9b4..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/AClientService.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.itest.databindings.jaxb; - -import org.osoa.sca.annotations.Remotable; - -/** - * The interface for AClientService. - */ -@Remotable -public interface AClientService { - public String getGreetingsForward(String name); -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/AService.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/AService.java deleted file mode 100644 index 1762812c1f..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/AService.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.itest.databindings.jaxb; - -import javax.jws.soap.SOAPBinding; - -import org.osoa.sca.annotations.Remotable; - -/** - * The interface for AService. - */ -@Remotable -@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) -public interface AService { - public String getGreetings(String name); -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean1.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean1.java deleted file mode 100644 index 7529c2b841..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean1.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.itest.databindings.jaxb; - -/** - * @version $Rev$ $Date$ - */ -public class Bean1<T> { - private T item; - - public Bean1() { - } - - public Bean1(T item) { - this.item = item; - } - - public void setItem(T item) { - this.item = item; - } - - public T getItem() { - return item; - } - - public boolean equals(Object that) { - if(that == null) { - return false; - } - if(that.getClass() != this.getClass()) { - return false; - } - - Bean1<?> that1 = (Bean1<?>)that; - if(this == that1) { - return true; - } else if(this.item != null) { - return this.item.equals(that1.item); - } else { - return that1.item == null; - } - } - - public String toString() { - return this.getClass().getSimpleName()+"[item = "+item+"]"; - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean10.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean10.java deleted file mode 100644 index 4a4419a42b..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean10.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.itest.databindings.jaxb; - -/** - * @version $Rev$ $Date$ - */ -public class Bean10 extends Bean1<String> { -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean11.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean11.java deleted file mode 100644 index 65f019ec48..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean11.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.itest.databindings.jaxb; - -/** - * @version $Rev$ $Date$ - */ -public class Bean11 extends Bean1<String> { -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean2.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean2.java deleted file mode 100644 index 844e28863a..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean2.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.itest.databindings.jaxb; - -/** - * @version $Rev$ $Date$ - */ -public class Bean2 { - private String name; - - public void setName(String name) { - this.name = name; - } - - public String getName() { - return name; - } - - public boolean equals(Object that) { - if(that == null) { - return false; - } - - if(this.getClass() != that.getClass()) { - return false; - } - - if(this == that) { - return true; - } else if(this.name != null) { - return this.name.equals(((Bean2)that).name); - } else { - return ((Bean2)that).name == null; - } - } - - public String toString() { - return this.getClass().getSimpleName()+"[name = "+name+"]"; - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean3.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean3.java deleted file mode 100644 index 4e0bd38b2b..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean3.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.itest.databindings.jaxb; - -/** - * @version $Rev$ $Date$ - */ -public class Bean3 extends Bean2 { - private String address; - - public void setAddress(String address) { - this.address = address; - } - - public String getAddress() { - return address; - } - - public boolean equals(Object that) { - if(that == null) { - return false; - } - - if(this.getClass() != that.getClass()) { - return false; - } - - if(this == that) { - return true; - } else if(this.address != null) { - return this.address.equals(((Bean3)that).address) && super.equals(that); - } else { - return ((Bean3)that).address == null && super.equals(that); - } - } - - public String toString() { - return this.getClass().getSimpleName()+"[name = "+super.getName()+", address = "+address+"]"; - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean31.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean31.java deleted file mode 100644 index 40aff31297..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean31.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.itest.databindings.jaxb; - -/** - * @version $Rev$ $Date$ - */ -public class Bean31 extends Bean2 { - private String address; - - public void setAddress(String address) { - this.address = address; - } - - public String getAddress() { - return address; - } - - public boolean equals(Object that) { - if(that == null) { - return false; - } - - if(this.getClass() != that.getClass()) { - return false; - } - - if(this == that) { - return true; - } else if(this.address != null) { - return this.address.equals(((Bean31)that).address) && super.equals(that); - } else { - return ((Bean31)that).address == null && super.equals(that); - } - } - - public String toString() { - return this.getClass().getSimpleName()+"[name = "+super.getName()+", address = "+address+"]"; - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsLocalService.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsLocalService.java deleted file mode 100644 index ca012b967d..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsLocalService.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.itest.databindings.jaxb; - -/** - * The interface for GenericsLocalService. - * - * @version $Rev$ $Date$ - */ -public interface GenericsLocalService { - Bean1<String> getTypeExplicit(Bean1<String> arg); - - <T> Bean1<T> getTypeUnbound(T[] anArray); - - <T extends Bean2> Bean1<T> getTypeExtends(T[] anArray); - - <T extends Bean1<String>> Bean1<T> getRecursiveTypeBound(T[] anArray); - - Bean1<?> getWildcardUnbound(Bean1<?> arg); - - Bean1<? super Bean3> getWildcardSuper(Bean1<? super Bean3> arg); - - Bean1<? extends Bean2> getWildcardExtends(Bean1<? extends Bean2> arg); - - Bean2 getPolymorphic(Bean2 arg); -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsService.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsService.java deleted file mode 100644 index 12ed7d0ec7..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsService.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.itest.databindings.jaxb; - -import org.osoa.sca.annotations.Remotable; - -/** - * The interface for GenericsService. - * - * @version $Rev$ $Date$ - */ -@Remotable -public interface GenericsService extends GenericsLocalService{ -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsServiceClient.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsServiceClient.java deleted file mode 100644 index 3bae554dc7..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsServiceClient.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb; - -/** - * The interface for GenericsServiceClient. - * - * @version $Rev$ $Date$ - */ -public interface GenericsServiceClient { - Bean1<String> getTypeExplicitForward(Bean1<String> arg); - - <T> Bean1<T> getTypeUnboundForward(T[] anArray); - - <T extends Bean2> Bean1<T> getTypeExtendsForward(T[] anArray); - - <T extends Bean1<String>> Bean1<T> getRecursiveTypeBoundForward(T[] anArray); - - Bean1<?> getWildcardUnboundForward(Bean1<?> arg); - - Bean1<? super Bean3> getWildcardSuperForward(Bean1<? super Bean3> arg); - - Bean1<? extends Bean2> getWildcardExtendsForward(Bean1<? extends Bean2> arg); - - Bean2 getPolymorphicForward(Bean2 arg); -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloLocalServiceSimple.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloLocalServiceSimple.java deleted file mode 100644 index a31cc3d45a..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloLocalServiceSimple.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.itest.databindings.jaxb; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * The interface for HelloLocalServiceSimple. - */ -public interface HelloLocalServiceSimple { - String getGreetings(String name); - String[] getGreetingsArray(String[] names); - List<String> getGreetingsList(List<String> names); - ArrayList<String> getGreetingsArrayList(ArrayList<String> names); - Map<String, String> getGreetingsMap(Map<String, String> namesMap); - HashMap<String, String> getGreetingsHashMap(HashMap<String, String> namesMap); - String getGreetingsVarArgs(String... names); -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceSimple.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceSimple.java deleted file mode 100644 index 34ac9024f6..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceSimple.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.itest.databindings.jaxb; - -import org.osoa.sca.annotations.Remotable; - -/** - * The interface for HelloServiceSimple. - */ -@Remotable -public interface HelloServiceSimple extends HelloLocalServiceSimple { - // Add any methods to the local interface. -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceSimpleClient.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceSimpleClient.java deleted file mode 100644 index 23ed57dec9..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceSimpleClient.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb; - -import java.util.ArrayList; -import java.util.List; -import java.util.HashMap; -import java.util.Map; - -/** - * The interface for HelloServiceSimpleClient. - */ -public interface HelloServiceSimpleClient { - String getGreetingsForward(String name); - String[] getGreetingsArrayForward(String[] names); - List<String> getGreetingsListForward(List<String> names); - ArrayList<String> getGreetingsArrayListForward(ArrayList<String> names); - Map<String, String> getGreetingsMapForward(Map<String, String> namesMap); - HashMap<String, String> getGreetingsHashMapForward(HashMap<String, String> namesMap); - String getGreetingsVarArgsForward(String... names); -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesLocalService.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesLocalService.java deleted file mode 100644 index 6239c0f5f1..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesLocalService.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.itest.databindings.jaxb; - - -/** - * The interface for PrimitivesLocalService. - */ -public interface PrimitivesLocalService { - boolean negateBoolean(boolean flag); - boolean[] negateBooleanArray(boolean[] flags); - boolean[] identityBooleanArray(boolean[] flags); - byte negateByte(byte b); - byte[] negateByteArray(byte[] ba); - byte[] identityByteArray(byte[] ba); - short negateShort(short s); - short[] negateShortArray(short[] s); - short[] identityShortArray(short[] sa); - int negateInt(int s); - int[] negateIntArray(int[] s); - int[] identityIntArray(int[] ia); - long negateLong(long l); - long[] negateLongArray(long[] la); - long[] identityLongArray(long[] la); - float negateFloat(float f); - float[] negateFloatArray(float[] fa); - float[] identityFloatArray(float[] fa); - double negateDouble(double d); - double[] negateDoubleArray(double[] da); - double[] identityDoubleArray(double[] da); -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesService.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesService.java deleted file mode 100644 index c5553688e2..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesService.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.itest.databindings.jaxb; - -import org.osoa.sca.annotations.Remotable; - -/** - * The interface for PrimitivesService. - */ -@Remotable -public interface PrimitivesService extends PrimitivesLocalService { - // Add any methods to the local interface. -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesServiceClient.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesServiceClient.java deleted file mode 100644 index 3bdf886dfa..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesServiceClient.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb; - - -/** - * The interface for PrimitivesServiceClient. - */ -public interface PrimitivesServiceClient { - boolean negateBooleanForward(boolean flag); - boolean[] negateBooleanArrayForward(boolean[] flags); - boolean passByValueBooleanArray(); - byte negateByteForward(byte b); - byte[] negateByteArrayForward(byte[] ba); - boolean passByValueByteArray(); - short negateShortForward(short s); - short[] negateShortArrayForward(short[] sa); - boolean passByValueShortArray(); - int negateIntForward(int i); - int[] negateIntArrayForward(int[] ia); - boolean passByValueIntArray(); - long negateLongForward(long l); - long[] negateLongArrayForward(long[] la); - boolean passByValueLongArray(); - float negateFloatForward(float f); - float[] negateFloatArrayForward(float[] fa); - boolean passByValueFloatArray(); - double negateDoubleForward(double d); - double[] negateDoubleArrayForward(double[] da); - boolean passByValueDoubleArray(); -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesLocalService.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesLocalService.java deleted file mode 100644 index 0fdf69459f..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesLocalService.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.itest.databindings.jaxb; - -import java.awt.Image; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.URI; -import java.util.Calendar; -import java.util.Date; -import java.util.UUID; - -import javax.activation.DataHandler; -import javax.xml.datatype.Duration; -import javax.xml.datatype.XMLGregorianCalendar; -import javax.xml.namespace.QName; -import javax.xml.transform.Source; - - -/** - * The interface for StandardTypesLocalService. - */ -public interface StandardTypesLocalService { - BigInteger getNewBigInteger(BigInteger bi); - BigInteger[] getNewBigIntegerArray(BigInteger[] bia); - - BigDecimal getNewBigDecimal(BigDecimal bd); - BigDecimal[] getNewBigDecimalArray(BigDecimal[] bda); - - Calendar getNewCalendar(Calendar c); - Calendar[] getNewCalendarArray(Calendar[] ca); - - Date getNewDate(Date d); - Date[] getNewDateArray(Date[] da); - - QName getNewQName(QName qname); - QName[] getNewQNameArray(QName[] qnames); - - URI getNewURI(URI uri); - URI[] getNewURIArray(URI[] uris); - - XMLGregorianCalendar getNewXMLGregorianCalendar(XMLGregorianCalendar xgcal); - XMLGregorianCalendar[] getNewXMLGregorianCalendarArray(XMLGregorianCalendar[] xgcal); - - Duration getNewDuration(Duration d); - Duration[] getNewDurationArray(Duration[] da); - - Object getNewObject(Object obj); - Object[] getNewObjectArray(Object[] objs); - - Image getNewImage(Image img); - Image[] getNewImageArray(Image[] imgs); - - DataHandler getNewDataHandler(DataHandler dh); - DataHandler[] getNewDataHandlerArray(DataHandler[] dha); - - Source getNewSource(Source src); - Source[] getNewSourceArray(Source[] srcs); - - UUID getNewUUID(UUID uuid); - UUID[] getNewUUIDArray(UUID[] uuids); -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesService.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesService.java deleted file mode 100644 index 2842205085..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesService.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.itest.databindings.jaxb; - -import org.osoa.sca.annotations.Remotable; - - - -/** - * The interface for StandardTypesService. - */ -@Remotable -public interface StandardTypesService extends StandardTypesLocalService{ -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesServiceClient.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesServiceClient.java deleted file mode 100644 index 351d9df0cb..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesServiceClient.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb; - -import java.awt.Image; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.URI; -import java.util.Calendar; -import java.util.Date; -import java.util.UUID; - -import javax.activation.DataHandler; -import javax.xml.datatype.Duration; -import javax.xml.datatype.XMLGregorianCalendar; -import javax.xml.namespace.QName; -import javax.xml.transform.Source; - - -/** - * The interface for StandardTypesServiceClient. - */ -public interface StandardTypesServiceClient { - BigInteger getNewBigIntegerForward(BigInteger bi); - BigInteger[] getNewBigIntegerArrayForward(BigInteger[] bia); - - BigDecimal getNewBigDecimalForward(BigDecimal bd); - BigDecimal[] getNewBigDecimalArrayForward(BigDecimal[] bda); - - Calendar getNewCalendarForward(Calendar c); - Calendar[] getNewCalendarArrayForward(Calendar[] ca); - - Date getNewDateForward(Date d); - Date[] getNewDateArrayForward(Date[] da); - - QName getNewQNameForward(QName qname); - QName[] getNewQNameArrayForward(QName[] qnames); - - URI getNewURIForward(URI uri); - URI[] getNewURIArrayForward(URI[] uris); - - XMLGregorianCalendar getNewXMLGregorianCalendarForward(XMLGregorianCalendar xgcal); - XMLGregorianCalendar[] getNewXMLGregorianCalendarArrayForward(XMLGregorianCalendar[] xgcals); - - Duration getNewDurationForward(Duration d); - Duration[] getNewDurationArrayForward(Duration[] da); - - Object getNewObjectForward(Object obj); - Object[] getNewObjectArrayForward(Object[] objs); - - Image getNewImageForward(Image img); - Image[] getNewImageArrayForward(Image[] imgs); - - DataHandler getNewDataHandlerForward(DataHandler dh); - DataHandler[] getNewDataHandlerArrayForward(DataHandler[] dha); - - Source getNewSourceForward(Source src); - Source[] getNewSourceArrayForward(Source[] srcs); - - UUID getNewUUIDForward(UUID uuid); - UUID[] getNewUUIDArrayForward(UUID[] uuids); -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/AClientServiceImpl.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/AClientServiceImpl.java deleted file mode 100644 index 8b484e93f0..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/AClientServiceImpl.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import org.apache.tuscany.sca.itest.databindings.jaxb.AClientService; -import org.apache.tuscany.sca.itest.databindings.jaxb.AService; -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -/** - * This class implements AService. - */ -@Service(AClientService.class) -public class AClientServiceImpl implements AClientService { - - @Reference - protected AService aService; - - public String getGreetingsForward(String name) { - return aService.getGreetings(name); - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/AServiceImpl.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/AServiceImpl.java deleted file mode 100644 index 4a35d41c04..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/AServiceImpl.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import org.apache.tuscany.sca.itest.databindings.jaxb.AService; -import org.osoa.sca.annotations.Service; - -/** - * This class implements AService. - */ -@Service(AService.class) -public class AServiceImpl implements AService { - - public String getGreetings(String name) { - return "Hello " + name; - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsLocalServiceClientImpl.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsLocalServiceClientImpl.java deleted file mode 100644 index 9e042ffe6a..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsLocalServiceClientImpl.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import org.apache.tuscany.sca.itest.databindings.jaxb.Bean1; -import org.apache.tuscany.sca.itest.databindings.jaxb.Bean2; -import org.apache.tuscany.sca.itest.databindings.jaxb.Bean3; -import org.apache.tuscany.sca.itest.databindings.jaxb.GenericsLocalService; -import org.apache.tuscany.sca.itest.databindings.jaxb.GenericsServiceClient; -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -/** - * An implementation of GenericsLocalServiceClient. - * The client forwards the request to the service component and returns the response from the service component. - * - * @version $Rev$ $Date$ - */ -@Service(GenericsServiceClient.class) -public class GenericsLocalServiceClientImpl implements GenericsServiceClient { - - private GenericsLocalService service; - - @Reference(required=false) - protected void setGenericsLocalService(GenericsLocalService service) { - this.service = service; - } - - public Bean1<String> getTypeExplicitForward(Bean1<String> arg) { - return service.getTypeExplicit(arg); - } - - public <T> Bean1<T> getTypeUnboundForward(T[] anArray) { - return service.getTypeUnbound(anArray); - } - - public <T extends Bean2> Bean1<T> getTypeExtendsForward(T[] anArray) { - return service.getTypeExtends(anArray); - } - - public <T extends Bean1<String>> Bean1<T> getRecursiveTypeBoundForward(T[] anArray) { - return service.getRecursiveTypeBound(anArray); - } - - public Bean1<?> getWildcardUnboundForward(Bean1<?> arg) { - return service.getWildcardUnbound(arg); - } - - public Bean1<? super Bean3> getWildcardSuperForward(Bean1<? super Bean3> arg) { - return service.getWildcardSuper(arg); - } - - public Bean1<? extends Bean2> getWildcardExtendsForward(Bean1<? extends Bean2> arg) { - return service.getWildcardExtends(arg); - } - - public Bean2 getPolymorphicForward(Bean2 arg) { - return service.getPolymorphic(arg); - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsServiceClientImpl.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsServiceClientImpl.java deleted file mode 100644 index ec929ddece..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsServiceClientImpl.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import org.apache.tuscany.sca.itest.databindings.jaxb.GenericsService; -import org.apache.tuscany.sca.itest.databindings.jaxb.GenericsServiceClient; -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -/** - * An implementation of GenericsServiceClient. - * The client forwards the request to the service component and returns the response from the service component. - * - * @version $Rev$ $Date$ - */ -@Service(GenericsServiceClient.class) -public class GenericsServiceClientImpl extends GenericsLocalServiceClientImpl { - - @Reference - public void setGenericsService(GenericsService service) { - super.setGenericsLocalService(service); - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsServiceImpl.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsServiceImpl.java deleted file mode 100644 index 58808eec4f..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsServiceImpl.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import org.apache.tuscany.sca.itest.databindings.jaxb.Bean1; -import org.apache.tuscany.sca.itest.databindings.jaxb.Bean2; -import org.apache.tuscany.sca.itest.databindings.jaxb.Bean3; -import org.apache.tuscany.sca.itest.databindings.jaxb.GenericsLocalService; -import org.apache.tuscany.sca.itest.databindings.jaxb.GenericsService; -import org.osoa.sca.annotations.Service; - -/** - * An implementation of GenericsService. - * This implementation provides both a local and a remotable service. - * - * @version $Rev$ $Date$ - */ -@Service(interfaces={GenericsService.class, GenericsLocalService.class}) -public class GenericsServiceImpl implements GenericsService, GenericsLocalService { - - public Bean1<String> getTypeExplicit(Bean1<String> arg) { - return GenericsTransformer.getTypeExplicit(arg); - } - - public <T> Bean1<T> getTypeUnbound(T[] anArray) { - return GenericsTransformer.getTypeUnbound(anArray); - } - - public <T extends Bean2> Bean1<T> getTypeExtends(T[] anArray) { - return GenericsTransformer.getTypeExtends(anArray); - } - - public <T extends Bean1<String>> Bean1<T> getRecursiveTypeBound(T[] anArray) { - return GenericsTransformer.getRecursiveTypeBound(anArray); - } - - public Bean1<?> getWildcardUnbound(Bean1<?> arg) { - return GenericsTransformer.getWildcardUnbound(arg); - } - - public Bean1<? super Bean3> getWildcardSuper(Bean1<? super Bean3> arg) { - return GenericsTransformer.getWildcardSuper(arg); - } - - public Bean1<? extends Bean2> getWildcardExtends(Bean1<? extends Bean2> arg) { - return GenericsTransformer.getWildcardExtends(arg); - } - - public Bean2 getPolymorphic(Bean2 arg) { - return GenericsTransformer.getPolymorphic(arg); - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsTransformer.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsTransformer.java deleted file mode 100644 index 858b8da59a..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsTransformer.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import org.apache.tuscany.sca.itest.databindings.jaxb.Bean1; -import org.apache.tuscany.sca.itest.databindings.jaxb.Bean10; -import org.apache.tuscany.sca.itest.databindings.jaxb.Bean11; -import org.apache.tuscany.sca.itest.databindings.jaxb.Bean2; -import org.apache.tuscany.sca.itest.databindings.jaxb.Bean3; -import org.apache.tuscany.sca.itest.databindings.jaxb.Bean31; - - -/** - * GenericsTransformer class that provide for transforming input provided to GenericsService methods. - * - * @version $Rev$ $Date$ - */ -public class GenericsTransformer { - - public static Bean1<String> getTypeExplicit(Bean1<String> arg) { - return new Bean1<String>(arg.getItem() == null ? null : arg.getItem()+" AA"); - } - - public static <T> Bean1<T> getTypeUnbound(T[] arg) { - if(arg instanceof String[]) { - return new Bean1<T>(arg[0]); - } else if(arg instanceof Integer[]){ - return new Bean1<T>(arg[1]); - } else { - return new Bean1<T>(arg[2]); - } - } - - public static <T extends Bean2> Bean1<T> getTypeExtends(T[] arg) { - if(arg instanceof Bean3[]) { - return new Bean1<T>(arg[0]); - } else if(arg instanceof Bean31[]) { - return new Bean1<T>(arg[1]); - } else { - return new Bean1<T>(arg[2]); - } - } - - public static <T extends Bean1<String>> Bean1<T> getRecursiveTypeBound(T[] arg) { - if(arg instanceof Bean10[]) { - return new Bean1<T>(arg[0]); - } else if(arg instanceof Bean11[]) { - return new Bean1<T>(arg[1]); - } else { - return new Bean1<T>(arg[2]); - } - } - - public static Bean1<?> getWildcardUnbound(Bean1<?> arg) { - if(arg.getItem() instanceof String) { - Bean1<String> temp = new Bean1<String>(); - temp.setItem("Hello "+arg.getItem()); - return temp; - } else if(arg.getItem() instanceof Integer) { - Bean1<Integer> temp = new Bean1<Integer>(); - temp.setItem(10+(Integer)arg.getItem()); - return temp; - } else { - return new Bean1<String>(arg.toString()); - } - } - - public static Bean1<? super Bean3> getWildcardSuper(Bean1<? super Bean3> arg) { - Object item = arg.getItem(); - if(item instanceof Bean3) { - Bean3 temp = new Bean3(); - temp.setName("Hello " + ((Bean3)item).getName()); - temp.setAddress("New "+((Bean3)item).getAddress()); - return new Bean1<Bean3>(temp); - } else if(item instanceof Bean2) { - Bean2 temp = new Bean2(); - temp.setName("Hello " + ((Bean3)item).getName()); - return new Bean1<Bean2>(temp); - } else { - Bean2 temp = new Bean2(); - temp.setName(item.toString()); - return new Bean1<Bean2>(temp); - } - } - - public static Bean1<? extends Bean2> getWildcardExtends(Bean1<? extends Bean2> arg) { - Bean2 item = arg.getItem(); - if(item instanceof Bean3) { - Bean3 temp = new Bean3(); - temp.setName("Hello "+item.getName()); - temp.setAddress("New "+((Bean3)item).getAddress()); - return new Bean1<Bean3>(temp); - } else if(item instanceof Bean31) { - Bean31 temp = new Bean31(); - temp.setName("Hello "+item.getName()); - temp.setAddress("New "+((Bean31)item).getAddress()); - return new Bean1<Bean31>(temp); - } else { - Bean2 temp = new Bean2(); - temp.setName("Hello "+item.getName()); - return new Bean1<Bean2>(temp); - } - } - - public static Bean2 getPolymorphic(Bean2 arg) { - return arg; - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloLocalServiceSimpleClientImpl.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloLocalServiceSimpleClientImpl.java deleted file mode 100644 index 51e48edbc9..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloLocalServiceSimpleClientImpl.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import java.util.ArrayList; -import java.util.List; -import java.util.HashMap; -import java.util.Map; - -import org.apache.tuscany.sca.itest.databindings.jaxb.HelloLocalServiceSimple; -import org.apache.tuscany.sca.itest.databindings.jaxb.HelloServiceSimpleClient; -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -/** - * An implementation of HelloServiceSimpleClient. - * The client forwards the request to the service component and returns the response from the service component. - */ -@Service(HelloServiceSimpleClient.class) -public class HelloLocalServiceSimpleClientImpl implements HelloServiceSimpleClient { - - private HelloLocalServiceSimple service; - - @Reference(required=false) - protected void setHelloLocalServiceSimple(HelloLocalServiceSimple service) { - this.service = service; - } - - public String getGreetingsForward(String name) { - return service.getGreetings(name); - } - - public String[] getGreetingsArrayForward(String[] names) { - return service.getGreetingsArray(names); - } - - public List<String> getGreetingsListForward(List<String> names) { - return service.getGreetingsList(names); - } - - public Map<String, String> getGreetingsMapForward(Map<String, String> namesMap) { - return service.getGreetingsMap(namesMap); - } - - public ArrayList<String> getGreetingsArrayListForward(ArrayList<String> names) { - return service.getGreetingsArrayList(names); - } - - public HashMap<String, String> getGreetingsHashMapForward(HashMap<String, String> namesMap) { - return service.getGreetingsHashMap(namesMap); - } - - public String getGreetingsVarArgsForward(String... names) { - return service.getGreetingsVarArgs(names[0], names[1], names[2]); - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceSimpleClientImpl.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceSimpleClientImpl.java deleted file mode 100644 index de52cdfac3..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceSimpleClientImpl.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import org.apache.tuscany.sca.itest.databindings.jaxb.HelloServiceSimple; -import org.apache.tuscany.sca.itest.databindings.jaxb.HelloServiceSimpleClient; -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -/** - * An implementation of HelloServiceSimpleClient. - * The client forwards the request to the service component and returns the response from the service component. - */ -@Service(HelloServiceSimpleClient.class) -public class HelloServiceSimpleClientImpl extends HelloLocalServiceSimpleClientImpl { - - @Reference - public void setHelloServiceSimple(HelloServiceSimple service) { - super.setHelloLocalServiceSimple(service); - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceSimpleImpl.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceSimpleImpl.java deleted file mode 100644 index 199335c38c..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceSimpleImpl.java +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.apache.tuscany.sca.itest.databindings.jaxb.HelloLocalServiceSimple; -import org.apache.tuscany.sca.itest.databindings.jaxb.HelloServiceSimple; -import org.osoa.sca.annotations.Service; - -/** - * An implementation of HelloServiceSimple. - * The implementation provides both a local and a remotable service. - */ -@Service(interfaces = {HelloServiceSimple.class, HelloLocalServiceSimple.class}) -public class HelloServiceSimpleImpl implements HelloServiceSimple { - public String getGreetings(String name) { - return "Hello " + name; - } - - public String[] getGreetingsArray(String[] names) { - String[] resps = new String[names.length]; - for (int i = 0; i < names.length; ++i) { - resps[i] = "Hello " + names[i]; - } - return resps; - } - - public List<String> getGreetingsList(List<String> names) { - List<String> resps = new ArrayList<String>(); - for (int i = 0; i < names.size(); ++i) { - resps.add("Hello " + names.get(i)); - } - return resps; - } - - public ArrayList<String> getGreetingsArrayList(ArrayList<String> names) { - ArrayList<String> resps = new ArrayList<String>(); - for (int i = 0; i < names.size(); ++i) { - resps.add("Hello " + names.get(i)); - } - return resps; - } - - public Map<String, String> getGreetingsMap(Map<String, String> namesMap) { - for (Map.Entry<String, String> entry : namesMap.entrySet()) { - entry.setValue("Hello " + entry.getKey()); - } - return namesMap; - } - - public HashMap<String, String> getGreetingsHashMap(HashMap<String, String> namesMap) { - for (Map.Entry<String, String> entry : namesMap.entrySet()) { - entry.setValue("Hello " + entry.getKey()); - } - return namesMap; - } - - public String getGreetingsVarArgs(String... names) { - String resp = "Hello"; - for(int i = 0; i < names.length; ++i) { - resp += (" "+names[i]); - } - return resp; - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesLocalServiceClientImpl.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesLocalServiceClientImpl.java deleted file mode 100644 index fe9121be9d..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesLocalServiceClientImpl.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import org.apache.tuscany.sca.itest.databindings.jaxb.PrimitivesLocalService; -import org.apache.tuscany.sca.itest.databindings.jaxb.PrimitivesServiceClient; -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -/** - * An implementation of PrimitivesLocalServiceClient. - * The client forwards the request to the service component and returns the response from the service component. - */ -@Service(PrimitivesServiceClient.class) -public class PrimitivesLocalServiceClientImpl implements PrimitivesServiceClient { - - private PrimitivesLocalService service; - - @Reference(required=false) - protected void setPrimitivesLocalService(PrimitivesLocalService service) { - this.service = service; - } - - public boolean negateBooleanForward(boolean flag) { - return service.negateBoolean(flag); - } - - public boolean[] negateBooleanArrayForward(boolean[] flags) { - return service.negateBooleanArray(flags); - } - - public boolean passByValueBooleanArray() { - boolean[] req = new boolean[2]; - boolean[] resp = service.identityBooleanArray(req); - return req != resp; - } - - public byte negateByteForward(byte b) { - return service.negateByte(b); - } - - public byte[] negateByteArrayForward(byte[] ba) { - return service.negateByteArray(ba); - } - - public boolean passByValueByteArray() { - byte[] req = new byte[2]; - byte[] resp = service.identityByteArray(req); - return req != resp; - } - - public short negateShortForward(short s) { - return service.negateShort(s); - } - - public short[] negateShortArrayForward(short[] s) { - return service.negateShortArray(s); - } - - public boolean passByValueShortArray() { - short[] req = new short[2]; - short[] resp = service.identityShortArray(req); - return req != resp; - } - - public int negateIntForward(int i) { - return service.negateInt(i); - } - - public int[] negateIntArrayForward(int[] ia) { - return service.negateIntArray(ia); - } - - public boolean passByValueIntArray() { - int[] req = new int[2]; - int[] resp = service.identityIntArray(req); - return req != resp; - } - - public long negateLongForward(long l) { - return service.negateLong(l); - } - - public long[] negateLongArrayForward(long[] la) { - return service.negateLongArray(la); - } - - public boolean passByValueLongArray() { - long[] req = new long[2]; - long[] resp = service.identityLongArray(req); - return req != resp; - } - - public float negateFloatForward(float f) { - return service.negateFloat(f); - } - - public float[] negateFloatArrayForward(float[] fa) { - return service.negateFloatArray(fa); - } - - public boolean passByValueFloatArray() { - float[] req = new float[2]; - float[] resp = service.identityFloatArray(req); - return req != resp; - } - - public double negateDoubleForward(double d) { - return service.negateDouble(d); - } - - public double[] negateDoubleArrayForward(double[] da) { - return service.negateDoubleArray(da); - } - - public boolean passByValueDoubleArray() { - double[] req = new double[2]; - double[] resp = service.identityDoubleArray(req); - return req != resp; - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceClientImpl.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceClientImpl.java deleted file mode 100644 index 28ace6aab7..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceClientImpl.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import org.apache.tuscany.sca.itest.databindings.jaxb.PrimitivesService; -import org.apache.tuscany.sca.itest.databindings.jaxb.PrimitivesServiceClient; -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -/** - * An implementation of PrimitivesServiceClient. - * The client forwards the request to the service component and returns the response from the service component. - */ -@Service(PrimitivesServiceClient.class) -public class PrimitivesServiceClientImpl extends PrimitivesLocalServiceClientImpl { - - @Reference - public void setPrimitivesService(PrimitivesService service) { - super.setPrimitivesLocalService(service); - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceImpl.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceImpl.java deleted file mode 100644 index ab1a3b4ab8..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceImpl.java +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import org.apache.tuscany.sca.itest.databindings.jaxb.PrimitivesLocalService; -import org.apache.tuscany.sca.itest.databindings.jaxb.PrimitivesService; -import org.osoa.sca.annotations.Service; - -/** - * An implementation of PrimitivesService. - * This implementation provides both a local and a remotable service. - */ -@Service(interfaces={PrimitivesService.class, PrimitivesLocalService.class}) -public class PrimitivesServiceImpl implements PrimitivesService, PrimitivesLocalService { - - public boolean negateBoolean(boolean flag) { - return !flag; - } - - public boolean[] negateBooleanArray(boolean[] flags) { - boolean[] resp = new boolean[flags.length]; - - for(int i = 0; i < flags.length; ++i) { - resp[i] = !flags[i]; - } - return resp; - } - - public boolean[] identityBooleanArray(boolean[] flags) { - return flags; - } - - public byte negateByte(byte b) { - return (byte)-b; - } - - public byte[] negateByteArray(byte[] ba) { - byte[] resp = new byte[ba.length]; - - for(int i = 0; i < ba.length; ++i) { - resp[i] = (byte)-ba[i]; - } - return resp; - } - - public byte[] identityByteArray(byte[] ba) { - return ba; - } - - public short negateShort(short s) { - return (short)-s; - } - - public short[] negateShortArray(short[] s) { - short[] resp = new short[s.length]; - - for(int i = 0; i < s.length; ++i) { - resp[i] = (short)-s[i]; - } - return resp; - } - - public short[] identityShortArray(short[] sa) { - return sa; - } - - public int negateInt(int i) { - return -i; - } - - public int[] negateIntArray(int[] ia) { - int[] resp = new int[ia.length]; - - for(int i = 0; i < ia.length; ++i) { - resp[i] = -ia[i]; - } - return resp; - } - - public int[] identityIntArray(int[] ia) { - return ia; - } - - public long negateLong(long l) { - return -l; - } - - public long[] negateLongArray(long[] la) { - long[] resp = new long[la.length]; - - for(int i = 0; i < la.length; ++i) { - resp[i] = -la[i]; - } - return resp; - } - - public long[] identityLongArray(long[] la) { - return la; - } - - public float negateFloat(float f) { - return -f; - } - - public float[] negateFloatArray(float[] fa) { - float[] resp = new float[fa.length]; - - for(int i = 0; i < fa.length; ++i) { - resp[i] = -fa[i]; - } - return resp; - } - - public float[] identityFloatArray(float[] fa) { - return fa; - } - - public double negateDouble(double d) { - return -d; - } - - public double[] negateDoubleArray(double[] da) { - double[] resp = new double[da.length]; - - for(int i = 0; i < da.length; ++i) { - resp[i] = -da[i]; - } - return resp; - } - - public double[] identityDoubleArray(double[] da) { - return da; - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesLocalServiceClientImpl.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesLocalServiceClientImpl.java deleted file mode 100644 index 0a8f6772b5..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesLocalServiceClientImpl.java +++ /dev/null @@ -1,157 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import java.awt.Image; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.URI; -import java.util.Calendar; -import java.util.Date; -import java.util.UUID; - -import javax.activation.DataHandler; -import javax.xml.datatype.Duration; -import javax.xml.datatype.XMLGregorianCalendar; -import javax.xml.namespace.QName; -import javax.xml.transform.Source; - -import org.apache.tuscany.sca.itest.databindings.jaxb.StandardTypesLocalService; -import org.apache.tuscany.sca.itest.databindings.jaxb.StandardTypesServiceClient; -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -/** - * An implementation of StandardTypesLocalServiceClient. - * The client forwards the request to the service component and returns the response from the service component. - */ -@Service(StandardTypesServiceClient.class) -public class StandardTypesLocalServiceClientImpl implements StandardTypesServiceClient { - - private StandardTypesLocalService service; - - @Reference(required=false) - protected void setStandardTypesLocalService(StandardTypesLocalService service) { - this.service = service; - } - - public BigInteger getNewBigIntegerForward(BigInteger bi) { - return service.getNewBigInteger(bi); - } - - public BigInteger[] getNewBigIntegerArrayForward(BigInteger[] bia) { - return service.getNewBigIntegerArray(bia); - } - - public BigDecimal getNewBigDecimalForward(BigDecimal bd) { - return service.getNewBigDecimal(bd); - } - - public BigDecimal[] getNewBigDecimalArrayForward(BigDecimal[] bda) { - return service.getNewBigDecimalArray(bda); - } - public Calendar getNewCalendarForward(Calendar c) { - return service.getNewCalendar(c); - } - public Calendar[] getNewCalendarArrayForward(Calendar[] ca) { - return service.getNewCalendarArray(ca); - } - - public Date getNewDateForward(Date d) { - return service.getNewDate(d); - } - - public Date[] getNewDateArrayForward(Date[] da) { - return service.getNewDateArray(da); - } - - public QName getNewQNameForward(QName qname) { - return service.getNewQName(qname); - } - - public QName[] getNewQNameArrayForward(QName[] qnames) { - return service.getNewQNameArray(qnames); - } - - public URI getNewURIForward(URI uri) { - return service.getNewURI(uri); - } - - public URI[] getNewURIArrayForward(URI[] uris) { - return service.getNewURIArray(uris); - } - - public XMLGregorianCalendar getNewXMLGregorianCalendarForward(XMLGregorianCalendar xgcal) { - return service.getNewXMLGregorianCalendar(xgcal); - } - - public XMLGregorianCalendar[] getNewXMLGregorianCalendarArrayForward(XMLGregorianCalendar[] xgcals) { - return service.getNewXMLGregorianCalendarArray(xgcals); - } - - public Duration getNewDurationForward(Duration d) { - return service.getNewDuration(d); - } - - public Duration[] getNewDurationArrayForward(Duration[] da) { - return service.getNewDurationArray(da); - } - - public Object getNewObjectForward(Object obj) { - return service.getNewObject(obj); - } - - public Object[] getNewObjectArrayForward(Object[] objs) { - return service.getNewObjectArray(objs); - } - - public Image getNewImageForward(Image img) { - return service.getNewImage(img); - } - - public Image[] getNewImageArrayForward(Image[] imgs) { - return service.getNewImageArray(imgs); - } - - public DataHandler getNewDataHandlerForward(DataHandler dh) { - return service.getNewDataHandler(dh); - } - - public DataHandler[] getNewDataHandlerArrayForward(DataHandler[] dha) { - return service.getNewDataHandlerArray(dha); - } - - - public Source getNewSourceForward(Source src) { - return service.getNewSource(src); - } - - public Source[] getNewSourceArrayForward(Source[] srcs) { - return service.getNewSourceArray(srcs); - } - - public UUID getNewUUIDForward(UUID uuid) { - return service.getNewUUID(uuid); - } - - public UUID[] getNewUUIDArrayForward(UUID[] uuids) { - return service.getNewUUIDArray(uuids); - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceClientImpl.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceClientImpl.java deleted file mode 100644 index 626b0e9844..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceClientImpl.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import org.apache.tuscany.sca.itest.databindings.jaxb.StandardTypesService; -import org.apache.tuscany.sca.itest.databindings.jaxb.StandardTypesServiceClient; -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -/** - * An implementation of StandardTypesServiceClient. - * The client forwards the request to the service component and returns the response from the service component. - */ -@Service(StandardTypesServiceClient.class) -public class StandardTypesServiceClientImpl extends StandardTypesLocalServiceClientImpl { - - @Reference - public void setStandardTypesService(StandardTypesService service) { - super.setStandardTypesLocalService(service); - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceImpl.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceImpl.java deleted file mode 100644 index 19a6cae01b..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceImpl.java +++ /dev/null @@ -1,208 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import java.awt.Image; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.URI; -import java.util.Calendar; -import java.util.Date; -import java.util.UUID; - -import javax.activation.DataHandler; -import javax.xml.datatype.Duration; -import javax.xml.datatype.XMLGregorianCalendar; -import javax.xml.namespace.QName; -import javax.xml.transform.Source; - -import org.apache.tuscany.sca.itest.databindings.jaxb.StandardTypesLocalService; -import org.apache.tuscany.sca.itest.databindings.jaxb.StandardTypesService; -import org.osoa.sca.annotations.Service; - -/** - * An implementation of StandardTypesService. - * This implementation provides both a local and a remotable service. - */ -@Service(interfaces={StandardTypesService.class, StandardTypesLocalService.class}) -public class StandardTypesServiceImpl implements StandardTypesService, StandardTypesLocalService { - - public BigInteger getNewBigInteger(BigInteger bi) { - return bi.negate(); - } - - public BigInteger[] getNewBigIntegerArray(BigInteger[] bia) { - BigInteger[] resp = new BigInteger[bia.length]; - for(int i = 0; i < bia.length; ++i) { - resp[i] = bia[i].negate(); - } - return resp; - } - - public BigDecimal getNewBigDecimal(BigDecimal bd) { - return bd.negate(); - } - - public BigDecimal[] getNewBigDecimalArray(BigDecimal[] bda) { - BigDecimal[] resp = new BigDecimal[bda.length]; - for(int i = 0; i < bda.length; ++i) { - resp[i] = bda[i].negate(); - } - return resp; - } - - public Calendar getNewCalendar(Calendar c) { - Calendar resp = (Calendar)c.clone(); - resp.add(Calendar.DAY_OF_MONTH, 5); - return resp; - } - - public Calendar[] getNewCalendarArray(Calendar[] ca) { - Calendar[] resp = new Calendar[ca.length]; - for(int i = 0; i < ca.length; ++i) { - resp[i] = getNewCalendar(ca[i]); - } - return resp; - } - - public Date getNewDate(Date d) { - return new Date(d.getTime() + 5*24*60*60*1000); - } - - public Date[] getNewDateArray(Date[] da) { - Date[] resp = new Date[da.length]; - for(int i = 0; i < da.length; ++i) { - resp[i] = getNewDate(da[i]); - } - return resp; - } - - public QName getNewQName(QName qname) { - return new QName(qname.getNamespaceURI()+"q", qname.getLocalPart()+"q", qname.getPrefix()+"q"); - - } - - public QName[] getNewQNameArray(QName[] qnames) { - QName[] resp = new QName[qnames.length]; - for(int i = 0; i < qnames.length; ++i) { - resp[i] = getNewQName(qnames[i]); - } - return resp; - } - - public URI getNewURI(URI uri) { - return uri.resolve("uri"); - } - - public URI[] getNewURIArray(URI[] uris) { - URI[] resp = new URI[uris.length]; - for(int i = 0; i < uris.length; ++i) { - resp[i] = getNewURI(uris[i]); - } - return resp; - } - - public XMLGregorianCalendar getNewXMLGregorianCalendar(XMLGregorianCalendar xgcal) { - xgcal = (XMLGregorianCalendar)xgcal.clone(); - xgcal.setDay(xgcal.getDay()+5); - return xgcal; - } - - public XMLGregorianCalendar[] getNewXMLGregorianCalendarArray(XMLGregorianCalendar[] xgcals) { - XMLGregorianCalendar[] resp = new XMLGregorianCalendar[xgcals.length]; - for(int i = 0; i < xgcals.length; ++i) { - resp[i] = getNewXMLGregorianCalendar(xgcals[i]); - } - return resp; - } - - public Duration getNewDuration(Duration d) { - return d.negate(); - } - - public Duration[] getNewDurationArray(Duration[] da) { - Duration[] resp = new Duration[da.length]; - for(int i = 0; i < da.length; ++i) { - resp[i] = da[i].negate(); - } - return resp; - } - - public Object getNewObject(Object obj) { - return StandardTypesTransformer.getNewObject(obj); - } - - public Object[] getNewObjectArray(Object[] objs) { - Object[] resp = new Object[objs.length]; - for(int i = 0; i < objs.length; ++i) { - resp[i] = getNewObject(objs[i]); - } - return resp; - } - - public Image getNewImage(Image img) { - return StandardTypesTransformer.getNewImage(img); - } - - public Image[] getNewImageArray(Image[] imgs) { - Image[] resp = new Image[imgs.length]; - for(int i = 0; i < imgs.length; ++i) { - resp[i] = getNewImage(imgs[i]); - } - return resp; - } - - public DataHandler getNewDataHandler(DataHandler dh) { - // FIXME: transform the input - return dh; - } - - public DataHandler[] getNewDataHandlerArray(DataHandler[] dha) { - DataHandler[] resp = new DataHandler[dha.length]; - for(int i = 0; i < dha.length; ++i) { - resp[i] = dha[i]; - } - return resp; - } - - public Source getNewSource(Source src) { - return StandardTypesTransformer.getNewSource(src); - } - - public Source[] getNewSourceArray(Source[] srcs) { - Source[] resp = new Source[srcs.length]; - for(int i = 0; i < srcs.length; ++i) { - resp[i] = getNewSource(srcs[i]); - } - return resp; - } - - public UUID getNewUUID(UUID uuid) { - return UUID.fromString(uuid.toString()+"AAA"); - } - - public UUID[] getNewUUIDArray(UUID[] uuids) { - UUID[] resp = new UUID[uuids.length]; - for(int i = 0; i < uuids.length; ++i) { - resp[i] = getNewUUID(uuids[i]); - } - return resp; - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesTransformer.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesTransformer.java deleted file mode 100644 index 68510b4b03..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesTransformer.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import java.awt.Image; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.CharArrayReader; -import java.io.CharArrayWriter; -import java.io.IOException; -import java.io.InputStream; -import java.io.Reader; - -import javax.xml.transform.Source; -import javax.xml.transform.dom.DOMSource; -import javax.xml.transform.sax.SAXSource; -import javax.xml.transform.stream.StreamSource; - -import org.xml.sax.InputSource; - - - -/** - * StandardTypesTransformer class that provide for transforming input provided to StandardTypesService methods. - * - * @version $Rev$ $Date$ - */ -public class StandardTypesTransformer { - - public static Object getNewObject(Object obj) { - if(obj instanceof String) { - return "Hello "+obj; - } else if(obj instanceof Integer) { - return new Integer(-((Integer)obj).intValue()); - } else if(obj instanceof Double) { - return new Double(-((Double)obj).doubleValue()); - } - - return obj; - } - - /** - * Returns a copy of the source object if the input is DOMSource, SAXSource or StreamSource. - * Returns the input object as is for other types. - */ - public static Source getNewSource(Source src) { - Source ret = null; - if(src instanceof DOMSource) { - DOMSource dsrc = (DOMSource)src; - ret = new DOMSource(dsrc.getNode() != null ? dsrc.getNode().cloneNode(true) : null); - } else if(src instanceof SAXSource) { - SAXSource ssrc = (SAXSource)src; - if(ssrc.getInputSource().getByteStream() != null) { - InputStream inp = ssrc.getInputSource().getByteStream(); - ByteArrayOutputStream bout = new ByteArrayOutputStream(); - int b; - try { - while((b = inp.read()) != -1) { - bout.write(b); - } - } catch (IOException ignored) { - } - try { bout.close();} catch (IOException ignored) {} - try { inp.reset();} catch (IOException ignored) {} - ret = new SAXSource(new InputSource(new ByteArrayInputStream(bout.toByteArray()))); - } else if(ssrc.getInputSource().getCharacterStream() != null) { - Reader rdr = ssrc.getInputSource().getCharacterStream(); - CharArrayWriter caw = new CharArrayWriter(); - try { - int c; - while((c = rdr.read()) != -1) { - caw.append((char)c); - } - } catch (IOException ignored) { - } - caw.close(); - try{ rdr.reset();} catch(IOException ignored) {} - ret = new SAXSource(new InputSource(new CharArrayReader(caw.toCharArray()))); - } else { - ret = new SAXSource(); - } - } else if(src instanceof StreamSource) { - StreamSource ssrc = (StreamSource)src; - if(ssrc.getInputStream() != null) { - InputStream inp = ssrc.getInputStream(); - ByteArrayOutputStream bout = new ByteArrayOutputStream(); - int b; - try { - while((b = inp.read()) != -1) { - bout.write(b); - } - } catch (IOException ignored) { - } - try { bout.close();} catch (IOException ignored) {} - try { inp.reset();} catch (IOException ignored) {} - ret = new StreamSource(new ByteArrayInputStream(bout.toByteArray())); - } else if(ssrc.getReader() != null) { - Reader rdr = ssrc.getReader(); - CharArrayWriter caw = new CharArrayWriter(); - try { - int c; - while((c = rdr.read()) != -1) { - caw.append((char)c); - } - } catch (IOException ignored) { - } - caw.close(); - try{ rdr.reset();} catch(IOException ignored) {} - ret = new StreamSource(new CharArrayReader(caw.toCharArray())); - } else { - ret = new StreamSource(); - } - } - - if(ret != null) { - ret.setSystemId(src.getSystemId()); - } else { - ret = src; - } - return ret; - } - - public static Image getNewImage(Image arg) { - arg.getGraphics().drawOval(2, 2, 7, 7); - return arg; - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/aservice.wsdl b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/aservice.wsdl deleted file mode 100644 index 10a242be4d..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/aservice.wsdl +++ /dev/null @@ -1,127 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
--->
-<wsdl:definitions targetNamespace="http://jaxb.databindings.itest.sca.tuscany.apache.org"
- xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
- xmlns:ns0="http://jaxb.databindings.itest.sca.tuscany.apache.org"
- xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
- xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
- xmlns:ns1="http://org.apache.axis2/xsd"
- xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
- xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
- <wsdl:types>
- <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://jaxb.databindings.itest.sca.tuscany.apache.org" xmlns:ns="http://jaxb.databindings.itest.sca.tuscany.apache.org">
- <xs:element name="getGreetings" nillable="true" type="xs:string"/>
- <xs:element name="getGreetingsResponse" nillable="true" type="xs:string"/>
- </xs:schema>
- </wsdl:types>
-
- <wsdl:message name="getGreetingsRequest">
- <wsdl:part name="parameters" element="ns0:getGreetings"/>
- </wsdl:message>
-
- <wsdl:message name="getGreetingsResponse">
- <wsdl:part name="parameters" element="ns0:getGreetingsResponse"/>
- </wsdl:message>
-
- <wsdl:portType name="AServicePortType">
- <wsdl:operation name="getGreetings">
- <wsdl:input message="ns0:getGreetingsRequest" wsaw:Action="urn:getGreetings"/>
- <wsdl:output message="ns0:getGreetingsResponse" wsaw:Action="urn:getGreetingsResponse"/>
- </wsdl:operation>
- </wsdl:portType>
-
- <wsdl:binding name="AServiceSOAP12Binding" type="ns0:AServicePortType">
- <soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
- <wsdl:operation name="getGreetings">
- <soap12:operation soapAction="urn:getGreetings" style="document"/>
- <wsdl:input>
- <soap12:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap12:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
-
- <wsdl:binding name="AServicePortTypeBinding" type="ns0:AServicePortType">
- <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
- <wsdl:operation name="getGreetings">
- <soap:operation soapAction=""/>
- <wsdl:input>
- <soap:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
-
- <wsdl:binding name="AServiceHttpBinding" type="ns0:AServicePortType">
- <http:binding verb="POST"/>
- <wsdl:operation name="getGreetings">
- <http:operation location="AService/getGreetings"/>
- <wsdl:input>
- <mime:content part="getGreetings" type="text/xml"/>
- </wsdl:input>
- <wsdl:output>
- <mime:content part="getGreetings" type="text/xml"/>
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
-
- <wsdl:binding name="AServiceSOAP11Binding" type="ns0:AServicePortType">
- <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
- <wsdl:operation name="getGreetings">
- <soap:operation soapAction="urn:getGreetings" style="document"/>
- <wsdl:input>
- <soap:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
-
- <wsdl:service name="AServicePortTypeService">
- <wsdl:port name="AServicePortTypePort" binding="ns0:AServicePortTypeBinding">
- <soap:address location="http://localhost:8080/AService"/>
- </wsdl:port>
- </wsdl:service>
-
- <wsdl:service name="AService">
- <wsdl:port name="AServiceHttpport" binding="ns0:AServiceHttpBinding">
- <http:address location="http://localhost:8080/AService/httpport"/>
- </wsdl:port>
- <wsdl:port name="AServiceSOAP12port_http" binding="ns0:AServiceSOAP12Binding">
- <soap12:address location="http://localhost:8080/AService/soap12port"/>
- </wsdl:port>
- <wsdl:port name="AServiceSOAP11port_http" binding="ns0:AServiceSOAP11Binding">
- <soap:address location="http://localhost:8080/AService/soap11port"/>
- </wsdl:port>
- <wsdl:port name="AServiceSOAP12port_http_null" binding="ns0:AServiceSOAP12Binding">
- <soap12:address location=""/>
- </wsdl:port>
- <wsdl:port name="AServiceSOAP12port_http_wsdl" binding="ns0:AServiceSOAP12Binding">
- <soap12:address location="inWsdl"/>
- </wsdl:port>
- </wsdl:service>
-</wsdl:definitions>
diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/doclitbarewsdl.composite b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/doclitbarewsdl.composite deleted file mode 100644 index b0d3fe7aeb..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/doclitbarewsdl.composite +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
--->
-<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" targetNamespace="http://itest" name="doclitbarewsdltest">
-
- <component name="AComponent">
- <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.AServiceImpl"/>
- <service name="AService">
- <interface.wsdl interface="http://jaxb.databindings.itest.sca.tuscany.apache.org#wsdl.interface(AServicePortType)"/>
- <binding.ws uri="http://localhost:8085/AService/endpointref" requires="MTOM"/>
- </service>
- </component>
- <component name="AClientComponent">
- <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.AClientServiceImpl"/>
- <reference name="aService">
- <!--interface.wsdl interface="http://jaxb.databindings.itest.sca.tuscany.apache.org#wsdl.interface(AServicePortType)"/-->
- <interface.java interface="org.apache.tuscany.sca.itest.databindings.jaxb.AService"/>
- <binding.ws uri="http://localhost:8085/AService/endpointref" requires="MTOM"/>
- </reference>
- </component>
-</composite>
diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/generics-service.composite b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/generics-service.composite deleted file mode 100644 index 910091cf53..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/generics-service.composite +++ /dev/null @@ -1,69 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> - -<!-- $Rev$ $Date$ --> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance" - name="GenericsService"> - - <!-- Clients to test the service --> - <!-- A GenericsServiceClient component that uses WS binding to invoke GenericsService --> - <component name="GenericsServiceClientWSComponent"> - <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.GenericsServiceClientImpl" /> - <reference name="genericsService"> - <interface.java interface="org.apache.tuscany.sca.itest.databindings.jaxb.GenericsService"/> - <binding.ws uri="http://localhost:8085/gs-ep" requires="MTOM"/> - </reference> - </component> - - <!-- A GenericsServiceClient component that uses SCA binding to invoke GenericsService service --> - <component name="GenericsServiceClientSCAComponent"> - <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.GenericsServiceClientImpl" /> - <reference name="genericsService" target="GenericsServiceComponent/GenericsService"> - <interface.java interface="org.apache.tuscany.sca.itest.databindings.jaxb.GenericsService"/> - <binding.sca/> - </reference> - </component> - - <!-- A GenericsLocalServiceClient component that uses SCA binding to invoke GenericsLocalService service --> - <component name="GenericsLocalServiceClientSCAComponent"> - <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.GenericsLocalServiceClientImpl" /> - <reference name="genericsLocalService" target="GenericsServiceComponent/GenericsLocalService"> - <interface.java interface="org.apache.tuscany.sca.itest.databindings.jaxb.GenericsLocalService"/> - <binding.sca/> - </reference> - </component> - - <!-- Components used to implement the services --> - <!-- A GenericsService component. --> - <component name="GenericsServiceComponent"> - <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.GenericsServiceImpl"/> - <service name="GenericsService"> - <interface.java interface="org.apache.tuscany.sca.itest.databindings.jaxb.GenericsService"/> - <binding.ws uri="http://localhost:8085/gs-ep" requires="MTOM"/> - <binding.sca/> - </service> - <service name="GenericsLocalService"> - <interface.java interface="org.apache.tuscany.sca.itest.databindings.jaxb.GenericsLocalService"/> - <binding.sca/> - </service> - </component> -</composite> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/helloservice.composite b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/helloservice.composite deleted file mode 100644 index 2dfcb1327b..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/helloservice.composite +++ /dev/null @@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
--->
-<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
- xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"
- name="HelloService">
-
- <!-- Clients to test the service -->
- <!-- A HelloServiceSimpleClient component that uses WS binding to invoke HelloServiceSimple service -->
- <component name="HelloServiceSimpleClientWSComponent">
- <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.HelloServiceSimpleClientImpl" />
- <reference name="helloServiceSimple">
- <interface.java interface="org.apache.tuscany.sca.itest.databindings.jaxb.HelloServiceSimple"/>
- <binding.ws uri="http://localhost:8085/hs-ep0" requires="MTOM"/>
- </reference>
- </component>
-
- <!-- A HelloServiceSimpleClient component that uses SCA binding to invoke HelloServiceSimple service -->
- <component name="HelloServiceSimpleClientSCAComponent">
- <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.HelloServiceSimpleClientImpl" />
- <reference name="helloServiceSimple" target="HelloServiceSimpleComponent/HelloServiceSimple">
- <interface.java interface="org.apache.tuscany.sca.itest.databindings.jaxb.HelloServiceSimple"/>
- <binding.sca/>
- </reference>
- </component>
-
- <!-- A HelloLocalServiceSimpleClient component that uses SCA binding to invoke HelloLocalServiceSimple service -->
- <component name="HelloLocalServiceSimpleClientSCAComponent">
- <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.HelloLocalServiceSimpleClientImpl" />
- <reference name="helloLocalServiceSimple" target="HelloServiceSimpleComponent/HelloLocalServiceSimple">
- <interface.java interface="org.apache.tuscany.sca.itest.databindings.jaxb.HelloLocalServiceSimple"/>
- <binding.sca/>
- </reference>
- </component>
-
- <!-- Components used to implement the services -->
- <!-- A HelloServiceSimple component. -->
- <component name="HelloServiceSimpleComponent">
- <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.HelloServiceSimpleImpl"/>
- <service name="HelloServiceSimple">
- <interface.java interface="org.apache.tuscany.sca.itest.databindings.jaxb.HelloServiceSimple"/>
- <binding.ws uri="http://localhost:8085/hs-ep0" requires="MTOM"/>
- <binding.sca/>
- </service>
- <service name="HelloLocalServiceSimple">
- <binding.sca/>
- </service>
- </component>
-</composite>
diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/primitivesservice.composite b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/primitivesservice.composite deleted file mode 100644 index 20529e7273..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/primitivesservice.composite +++ /dev/null @@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
--->
-<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
- xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"
- name="PrimitivesService">
-
- <!-- Clients to test the service -->
- <!-- A PrimitivesServiceClient component that uses WS binding to invoke PrimitivesService -->
- <component name="PrimitivesServiceClientWSComponent">
- <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.PrimitivesServiceClientImpl" />
- <reference name="primitivesService">
- <interface.java interface="org.apache.tuscany.sca.itest.databindings.jaxb.PrimitivesService"/>
- <binding.ws uri="http://localhost:8085/ps-ep" requires="MTOM"/>
- </reference>
- </component>
-
- <!-- A PrimitivesServiceClient component that uses SCA binding to invoke PrimitivesService service -->
- <component name="PrimitivesServiceClientSCAComponent">
- <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.PrimitivesServiceClientImpl" />
- <reference name="primitivesService" target="PrimitivesServiceComponent/PrimitivesService">
- <interface.java interface="org.apache.tuscany.sca.itest.databindings.jaxb.PrimitivesService"/>
- <binding.sca/>
- </reference>
- </component>
-
- <!-- A PrimitivesLocalServiceClient component that uses SCA binding to invoke PrimitivesLocalService service -->
- <component name="PrimitivesLocalServiceClientSCAComponent">
- <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.PrimitivesLocalServiceClientImpl" />
- <reference name="primitivesLocalService" target="PrimitivesServiceComponent/PrimitivesLocalService">
- <interface.java interface="org.apache.tuscany.sca.itest.databindings.jaxb.PrimitivesLocalService"/>
- <binding.sca/>
- </reference>
- </component>
-
- <!-- Components used to implement the services -->
- <!-- A PrimitivesService component. -->
- <component name="PrimitivesServiceComponent">
- <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.PrimitivesServiceImpl"/>
- <service name="PrimitivesService">
- <interface.java interface="org.apache.tuscany.sca.itest.databindings.jaxb.PrimitivesService"/>
- <binding.ws uri="http://localhost:8085/ps-ep" requires="MTOM"/>
- <binding.sca/>
- </service>
- <service name="PrimitivesLocalService">
- <interface.java interface="org.apache.tuscany.sca.itest.databindings.jaxb.PrimitivesLocalService"/>
- <binding.sca/>
- </service>
- </component>
-</composite>
diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/standard-types-service.composite b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/standard-types-service.composite deleted file mode 100644 index 61c8a70a9a..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/standard-types-service.composite +++ /dev/null @@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
--->
-<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
- xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"
- name="StandardTypesService">
-
- <!-- Clients to test the service -->
- <!-- A StandardTypesServiceClient component that uses WS binding to invoke StandardTypesService -->
- <component name="StandardTypesServiceClientWSComponent">
- <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.StandardTypesServiceClientImpl" />
- <reference name="standardTypesService">
- <interface.java interface="org.apache.tuscany.sca.itest.databindings.jaxb.StandardTypesService"/>
- <binding.ws uri="http://localhost:8085/sts-ep" requires="MTOM"/>
- </reference>
- </component>
-
- <!-- A StandardTypesServiceClient component that uses SCA binding to invoke StandardTypesService service -->
- <component name="StandardTypesServiceClientSCAComponent">
- <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.StandardTypesServiceClientImpl" />
- <reference name="standardTypesService" target="StandardTypesServiceComponent/StandardTypesService">
- <interface.java interface="org.apache.tuscany.sca.itest.databindings.jaxb.StandardTypesService"/>
- <binding.sca/>
- </reference>
- </component>
-
- <!-- A StandardTypesLocalServiceClient component that uses SCA binding to invoke StandardTypesLocalService service -->
- <component name="StandardTypesLocalServiceClientSCAComponent">
- <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.StandardTypesLocalServiceClientImpl" />
- <reference name="standardTypesLocalService" target="StandardTypesServiceComponent/StandardTypesLocalService">
- <interface.java interface="org.apache.tuscany.sca.itest.databindings.jaxb.StandardTypesLocalService"/>
- <binding.sca/>
- </reference>
- </component>
-
- <!-- Components used to implement the services -->
- <!-- A StandardTypesService component. -->
- <component name="StandardTypesServiceComponent">
- <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.StandardTypesServiceImpl"/>
- <service name="StandardTypesService">
- <interface.java interface="org.apache.tuscany.sca.itest.databindings.jaxb.StandardTypesService"/>
- <binding.ws uri="http://localhost:8085/sts-ep" requires="MTOM"/>
- <binding.sca/>
- </service>
- <service name="StandardTypesLocalService">
- <interface.java interface="org.apache.tuscany.sca.itest.databindings.jaxb.StandardTypesLocalService"/>
- <binding.sca/>
- </service>
- </component>
-</composite>
diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/DatabindingTestCase.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/DatabindingTestCase.java deleted file mode 100644 index 4967b896a5..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/DatabindingTestCase.java +++ /dev/null @@ -1,339 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.host.embedded.SCADomain; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * @version $Rev$ $Date$ - */ -public class DatabindingTestCase { - - private static SCADomain domain; - - /** - * Runs once before running the tests - */ - @BeforeClass - public static void setUp() throws Exception { - try { - domain = SCADomain.newInstance("helloservice.composite"); - } catch(Throwable e) { - e.printStackTrace(); - } - } - - /** - * Runs once after running the tests - */ - @AfterClass - public static void tearDown() { - domain.close(); - } - - /** - * Invokes the HelloServiceSimple service using SCA binding. - * Service method invoked is getGreetings. - */ - @Test - public void testSCA() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = domain.getService(HelloServiceSimpleClient.class, "HelloServiceSimpleClientSCAComponent"); - performTest(helloServiceSimpleClient); - } - - /** - * Invokes the HelloServiceSimple service using SCA binding. - * Service method invoked is getGreetingsArray. - */ - @Test - public void testSCAArray() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = domain.getService(HelloServiceSimpleClient.class, "HelloServiceSimpleClientSCAComponent"); - performTestArray(helloServiceSimpleClient); - } - - /** - * Invokes the HelloServiceSimple service using SCA binding. - * Service method invoked is getGreetingsList. - */ - @Test - public void testSCAList() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = domain.getService(HelloServiceSimpleClient.class, "HelloServiceSimpleClientSCAComponent"); - performTestList(helloServiceSimpleClient); - } - - /** - * Invokes the HelloServiceSimple service using SCA binding. - * Service method invoked is getGreetingsArrayList. - */ - @Test - public void testSCAArrayList() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = domain.getService(HelloServiceSimpleClient.class, "HelloServiceSimpleClientSCAComponent"); - performTestArrayList(helloServiceSimpleClient); - } - - /** - * Invokes the HelloServiceSimple service using SCA binding. - * Service method invoked is getGreetingsMap. - */ - @Test - public void testSCAMap() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = domain.getService(HelloServiceSimpleClient.class, "HelloServiceSimpleClientSCAComponent"); - performTestMap(helloServiceSimpleClient); - } - - /** - * Invokes the HelloServiceSimple service using SCA binding. - * Service method invoked is getGreetingsHashMap. - */ - @Test - public void testSCAHashMap() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = domain.getService(HelloServiceSimpleClient.class, "HelloServiceSimpleClientSCAComponent"); - performTestHashMap(helloServiceSimpleClient); - } - - /** - * Invokes the HelloServiceSimple service using SCA binding. - * Service method invoked is getGreetingsVarArgs. - */ - @Test - public void testSCAVarArgs() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = domain.getService(HelloServiceSimpleClient.class, "HelloServiceSimpleClientSCAComponent"); - performTestVarArgs(helloServiceSimpleClient); - } - - /** - * Invokes the HelloServiceSimple service using WS binding. - * Service method invoked is getGreetings. - */ - @Test - public void testWS() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = domain.getService(HelloServiceSimpleClient.class, "HelloServiceSimpleClientWSComponent"); - performTest(helloServiceSimpleClient); - } - - /** - * Invokes the HelloServiceSimple service using WS binding. - * Service method invoked is getGreetingsArray. - */ - @Test - public void testWSArray() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = domain.getService(HelloServiceSimpleClient.class, "HelloServiceSimpleClientWSComponent"); - performTestArray(helloServiceSimpleClient); - } - - /** - * Invokes the HelloServiceSimple service using WS binding. - * Service method invoked is getGreetingsList. - */ - @Test - public void testWSList() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = domain.getService(HelloServiceSimpleClient.class, "HelloServiceSimpleClientWSComponent"); - performTestList(helloServiceSimpleClient); - } - - /** - * Invokes the HelloServiceSimple service using WS binding. - * Service method invoked is getGreetingsArrayList. - */ - @Test - public void testWSArrayList() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = domain.getService(HelloServiceSimpleClient.class, "HelloServiceSimpleClientWSComponent"); - performTestArrayList(helloServiceSimpleClient); - } - - /** - * Invokes the HelloServiceSimple service using WS binding. - * Service method invoked is getGreetingsMap. - */ - @Test - public void testWSMap() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = domain.getService(HelloServiceSimpleClient.class, "HelloServiceSimpleClientWSComponent"); - performTestMap(helloServiceSimpleClient); - } - - /** - * Invokes the HelloServiceSimple service using WS binding. - * Service method invoked is getGreetingsHashMap. - */ - @Test - public void testWSHashMap() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = domain.getService(HelloServiceSimpleClient.class, "HelloServiceSimpleClientWSComponent"); - performTestHashMap(helloServiceSimpleClient); - } - - /** - * Invokes the HelloServiceSimple service using WS binding. - * Service method invoked is getGreetingsVarArgs. - */ - @Test - public void testWSVarArgs() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = domain.getService(HelloServiceSimpleClient.class, "HelloServiceSimpleClientWSComponent"); - performTestVarArgs(helloServiceSimpleClient); - } - - /** - * Invokes the HelloLocalServiceSimple service using SCA binding. - * Service method invoked is getGreetings. - */ - @Test - public void testSCALocal() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = domain.getService(HelloServiceSimpleClient.class, "HelloLocalServiceSimpleClientSCAComponent"); - performTest(helloServiceSimpleClient); - } - - /** - * Invokes the HelloLocalServiceSimple service using SCA binding. - * Service method invoked is getGreetingsArray. - */ - @Test - public void testSCALocalArray() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = domain.getService(HelloServiceSimpleClient.class, "HelloLocalServiceSimpleClientSCAComponent"); - performTestArray(helloServiceSimpleClient); - } - - /** - * Invokes the HelloLocalServiceSimple service using SCA binding. - * Service method invoked is getGreetingsList. - */ - @Test - public void testSCALocalList() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = domain.getService(HelloServiceSimpleClient.class, "HelloLocalServiceSimpleClientSCAComponent"); - performTestList(helloServiceSimpleClient); - } - - /** - * Invokes the HelloLocalServiceSimple service using SCA binding. - * Service method invoked is getGreetingsArrayList. - */ - @Test - public void testSCALocalArrayList() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = domain.getService(HelloServiceSimpleClient.class, "HelloLocalServiceSimpleClientSCAComponent"); - performTestArrayList(helloServiceSimpleClient); - } - - /** - * Invokes the HelloLocalServiceSimple service using SCA binding. - * Service method invoked is getGreetingsMap. - */ - @Test - public void testSCALocalMap() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = domain.getService(HelloServiceSimpleClient.class, "HelloLocalServiceSimpleClientSCAComponent"); - performTestMap(helloServiceSimpleClient); - } - - /** - * Invokes the HelloLocalServiceSimple service using SCA binding. - * Service method invoked is getGreetingsHashMap. - */ - @Test - public void testSCALocalHashMap() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = domain.getService(HelloServiceSimpleClient.class, "HelloLocalServiceSimpleClientSCAComponent"); - performTestHashMap(helloServiceSimpleClient); - } - - /** - * Invokes the HelloLocalServiceSimple service using SCA binding. - * Service method invoked is getGreetingsVarArgs. - */ - @Test - public void testSCALocalVarArgs() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = domain.getService(HelloServiceSimpleClient.class, "HelloLocalServiceSimpleClientSCAComponent"); - performTestVarArgs(helloServiceSimpleClient); - } - - private void performTest(HelloServiceSimpleClient helloServiceSimpleClient) { - String name = "Pandu"; - String resp = helloServiceSimpleClient.getGreetingsForward(name); - Assert.assertEquals("Hello "+name, resp); - } - - private void performTestArray(HelloServiceSimpleClient helloServiceSimpleClient) { - String[] names = {"Me", "Pandu"}; - String[] resps = helloServiceSimpleClient.getGreetingsArrayForward(names); - for(int i = 0; i < names.length; ++i) { - Assert.assertEquals("Hello "+names[i], resps[i]); - } - } - - private void performTestList(HelloServiceSimpleClient helloServiceSimpleClient) { - List<String> namesList = new ArrayList<String>(); - namesList.add("Me"); - namesList.add("Pandu"); - namesList.add("Chinnipandu"); - List<String> respList = helloServiceSimpleClient.getGreetingsListForward(namesList); - Assert.assertEquals(namesList.size(), respList.size()); - for(int i = 0; i < namesList.size(); ++i) { - Assert.assertEquals("Hello "+namesList.get(i), respList.get(i)); - } - } - - private void performTestArrayList(HelloServiceSimpleClient helloServiceSimpleClient) { - ArrayList<String> namesList = new ArrayList<String>(); - namesList.add("Me"); - namesList.add("Pandu"); - namesList.add("Chinnipandu"); - ArrayList<String> respList = helloServiceSimpleClient.getGreetingsArrayListForward(namesList); - Assert.assertEquals(namesList.size(), respList.size()); - for(int i = 0; i < namesList.size(); ++i) { - Assert.assertEquals("Hello "+namesList.get(i), respList.get(i)); - } - } - - private void performTestMap(HelloServiceSimpleClient helloServiceSimpleClient) { - Map<String, String> namesMap = new HashMap<String, String>(); - namesMap.put("Me", null); - namesMap.put("Pandu", null); - namesMap.put("Chinnipandu", null); - Map<String, String> respMap = helloServiceSimpleClient.getGreetingsMapForward(namesMap); - Assert.assertEquals(namesMap.keySet().size(), respMap.keySet().size()); - for(Map.Entry<String, String> entry: namesMap.entrySet()) { - Assert.assertEquals("Hello "+entry.getKey(), respMap.get(entry.getKey())); - } - } - - private void performTestHashMap(HelloServiceSimpleClient helloServiceSimpleClient) { - HashMap<String, String> namesMap = new HashMap<String, String>(); - namesMap.put("Me", null); - namesMap.put("Pandu", null); - namesMap.put("Chinnipandu", null); - Map<String, String> respMap = helloServiceSimpleClient.getGreetingsHashMapForward(namesMap); - Assert.assertEquals(namesMap.keySet().size(), respMap.keySet().size()); - for(Map.Entry<String, String> entry: namesMap.entrySet()) { - Assert.assertEquals("Hello "+entry.getKey(), respMap.get(entry.getKey())); - } - } - - private void performTestVarArgs(HelloServiceSimpleClient helloServiceSimpleClient) { - String[] names = { "Me", "You", "Pandu" }; // Do not change the array size from 3. - String expected = "Hello Me You Pandu"; - String actual = helloServiceSimpleClient.getGreetingsVarArgsForward(names[0], names[1], names[2]); - Assert.assertEquals(expected, actual); - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/DocLitBareWsdlTestCase.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/DocLitBareWsdlTestCase.java deleted file mode 100644 index 744bf20494..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/DocLitBareWsdlTestCase.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.host.embedded.SCADomain; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * @version $Rev$ $Date$ - */ -public class DocLitBareWsdlTestCase { - - private static SCADomain domain; - - /** - * Runs once before running the tests - */ - @BeforeClass - public static void setUp() throws Exception { - try { - domain = SCADomain.newInstance("doclitbarewsdl.composite"); - } catch (Throwable e) { - // @Ignore("TUSCANY-2398") - e.printStackTrace(); - } - } - - /** - * Runs once after running the tests - */ - @AfterClass - public static void tearDown() { - if (domain != null) { - domain.close(); - } - } - - // @Ignore("TUSCANY-2398") - @Test - public void testDocLitBareWsdl() throws Exception { - AClientService client = domain.getService(AClientService.class, "AClientComponent"); - String name = "Pandu"; - String resp = client.getGreetingsForward(name); - Assert.assertEquals("Hello " + name, resp); - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsDatabindingTestCase.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsDatabindingTestCase.java deleted file mode 100644 index c22d00140e..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsDatabindingTestCase.java +++ /dev/null @@ -1,484 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.host.embedded.SCADomain; -import org.apache.tuscany.sca.itest.databindings.jaxb.impl.GenericsTransformer; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * Databinding tests for generics, parameterized and polymorphic types. - * - * @version $Rev$ $Date$ - */ -public class GenericsDatabindingTestCase { - private static SCADomain domain; - - /** - * Runs before each test method - */ - @BeforeClass - public static void setUp() throws Exception { - try { - domain = SCADomain.newInstance("generics-service.composite"); - } catch(Throwable e) { - e.printStackTrace(); - } - } - - /** - * Runs after each test method - */ - @AfterClass - public static void tearDown() { - domain.close(); - } - - /** - * Invokes the GenericsService service using SCA binding. - * Service method invoked is getTypeExplicit. - */ - @Test - public void testSCATypeExplicit() throws Exception { - GenericsServiceClient serviceClient = domain.getService(GenericsServiceClient.class, "GenericsServiceClientSCAComponent"); - performTestTypeExplicit(serviceClient); - } - - /** - * Invokes the GenericsService service using SCA binding. - * Service method invoked is getTypeUnbound. - */ - @Test - public void testSCATypeUnbound() throws Exception { - GenericsServiceClient serviceClient = domain.getService(GenericsServiceClient.class, "GenericsServiceClientSCAComponent"); - performTestTypeUnbound(serviceClient); - } - - /** - * Invokes the GenericsService service using SCA binding. - * Service method invoked is getTypeExtends. - */ - @Test - public void testSCATypeExtends() throws Exception { - GenericsServiceClient serviceClient = domain.getService(GenericsServiceClient.class, "GenericsServiceClientSCAComponent"); - performTestTypeExtends(serviceClient); - } - - /** - * Invokes the GenericsService service using SCA binding. - * Service method invoked is getRecursiveTypeBound. - */ - @Test - public void testSCARecursiveTypeBound() throws Exception { - GenericsServiceClient serviceClient = domain.getService(GenericsServiceClient.class, "GenericsServiceClientSCAComponent"); - performTestRecursiveTypeBound(serviceClient); - } - - /** - * Invokes the GenericsService service using SCA binding. - * Service method invoked is getWildcardUnbound. - */ - @Test - public void testSCAWildcardUnbound() throws Exception { - GenericsServiceClient serviceClient = domain.getService(GenericsServiceClient.class, "GenericsServiceClientSCAComponent"); - performTestWildcardUnbound(serviceClient); - } - - /** - * Invokes the GenericsService service using SCA binding. - * Service method invoked is getWildcardSuper. - */ - @Test - public void testSCAWildcardSuper() throws Exception { - GenericsServiceClient serviceClient = domain.getService(GenericsServiceClient.class, "GenericsServiceClientSCAComponent"); - performTestWildcardSuper(serviceClient); - } - - /** - * Invokes the GenericsService service using SCA binding. - * Service method invoked is getWildcardExtends. - */ - @Test - public void testSCAWildcardExtends() throws Exception { - GenericsServiceClient serviceClient = domain.getService(GenericsServiceClient.class, "GenericsServiceClientSCAComponent"); - performTestWildcardExtends(serviceClient); - } - - /** - * Invokes the GenericsService service using SCA binding. - * Service method invoked is getPolymorphic. - */ - @Test - public void testSCAPolymorphic() throws Exception { - GenericsServiceClient serviceClient = domain.getService(GenericsServiceClient.class, "GenericsServiceClientSCAComponent"); - performTestPolymorphic(serviceClient); - } - - /** - * Invokes the GenericsService service using WS binding. - * Service method invoked is getTypeExplicit. - */ - @Test - public void testWSTypeExplicit() throws Exception { - GenericsServiceClient serviceClient = domain.getService(GenericsServiceClient.class, "GenericsServiceClientWSComponent"); - performTestTypeExplicit(serviceClient); - } - - /** - * Invokes the GenericsService service using WS binding. - * Service method invoked is getTypeUnbound. - */ - @Test - public void testWSTypeUnbound() throws Exception { - GenericsServiceClient serviceClient = domain.getService(GenericsServiceClient.class, "GenericsServiceClientWSComponent"); - performTestTypeUnbound(serviceClient); - } - - /** - * Invokes the GenericsService service using WS binding. - * Service method invoked is getTypeExtends. - */ - @Test - public void testWSTypeExtends() throws Exception { - GenericsServiceClient serviceClient = domain.getService(GenericsServiceClient.class, "GenericsServiceClientWSComponent"); - performTestTypeExtends(serviceClient); - } - - /** - * Invokes the GenericsService service using WS binding. - * Service method invoked is getRecursiveTypeBound. - */ - @Test - public void testWSRecursiveTypeBound() throws Exception { - GenericsServiceClient serviceClient = domain.getService(GenericsServiceClient.class, "GenericsServiceClientWSComponent"); - performTestRecursiveTypeBound(serviceClient); - } - - /** - * Invokes the GenericsService service using WS binding. - * Service method invoked is getWildcardUnbound. - */ - @Test - public void testWSWildcardUnbound() throws Exception { - GenericsServiceClient serviceClient = domain.getService(GenericsServiceClient.class, "GenericsServiceClientWSComponent"); - performTestWildcardUnbound(serviceClient); - } - - /** - * Invokes the GenericsService service using WS binding. - * Service method invoked is getWildcardSuper. - */ - @Test - public void testWSWildcardSuper() throws Exception { - GenericsServiceClient serviceClient = domain.getService(GenericsServiceClient.class, "GenericsServiceClientWSComponent"); - performTestWildcardSuper(serviceClient); - } - - /** - * Invokes the GenericsService service using WS binding. - * Service method invoked is getWildcardExtends. - */ - @Test - public void testWSWildcardExtends() throws Exception { - GenericsServiceClient serviceClient = domain.getService(GenericsServiceClient.class, "GenericsServiceClientWSComponent"); - performTestWildcardExtends(serviceClient); - } - - /** - * Invokes the GenericsService service using WS binding. - * Service method invoked is getPolymorphic. - */ - @Test - public void testWSPolymorphic() throws Exception { - GenericsServiceClient serviceClient = domain.getService(GenericsServiceClient.class, "GenericsServiceClientWSComponent"); - performTestPolymorphic(serviceClient); - } - - /** - * Invokes the GenericsLocalService service using SCA binding. - * Service method invoked is getTypeExplicit. - */ - @Test - public void testSCALocalTypeExplicit() throws Exception { - GenericsServiceClient serviceClient = domain.getService(GenericsServiceClient.class, "GenericsLocalServiceClientSCAComponent"); - performTestTypeExplicit(serviceClient); - } - - /** - * Invokes the GenericsLocalService service using SCA binding. - * Service method invoked is getTypeUnbound. - */ - @Test - public void testSCALocalTypeUnbound() throws Exception { - GenericsServiceClient serviceClient = domain.getService(GenericsServiceClient.class, "GenericsLocalServiceClientSCAComponent"); - performTestTypeUnbound(serviceClient); - } - - /** - * Invokes the GenericsLocalService service using SCA binding. - * Service method invoked is getTypeExtends. - */ - @Test - public void testSCALocalTypeExtends() throws Exception { - GenericsServiceClient serviceClient = domain.getService(GenericsServiceClient.class, "GenericsLocalServiceClientSCAComponent"); - performTestTypeExtends(serviceClient); - } - - /** - * Invokes the GenericsLocalService service using SCA binding. - * Service method invoked is getRecursiveTypeBound. - */ - @Test - public void testSCALocalRecursiveTypeBound() throws Exception { - GenericsServiceClient serviceClient = domain.getService(GenericsServiceClient.class, "GenericsLocalServiceClientSCAComponent"); - performTestRecursiveTypeBound(serviceClient); - } - - /** - * Invokes the GenericsLocalService service using SCA binding. - * Service method invoked is getWildcardUnbound. - */ - @Test - public void testSCALocalWildcardUnbound() throws Exception { - GenericsServiceClient serviceClient = domain.getService(GenericsServiceClient.class, "GenericsLocalServiceClientSCAComponent"); - performTestWildcardUnbound(serviceClient); - } - - /** - * Invokes the GenericsLocalService service using SCA binding. - * Service method invoked is getWildcardSuper. - */ - @Test - public void testSCALocalWildcardSuper() throws Exception { - GenericsServiceClient serviceClient = domain.getService(GenericsServiceClient.class, "GenericsLocalServiceClientSCAComponent"); - performTestWildcardSuper(serviceClient); - } - - /** - * Invokes the GenericsLocalService service using SCA binding. - * Service method invoked is getWildcardExtends. - */ - @Test - public void testSCALocalWildcardExtends() throws Exception { - GenericsServiceClient serviceClient = domain.getService(GenericsServiceClient.class, "GenericsLocalServiceClientSCAComponent"); - performTestWildcardExtends(serviceClient); - } - - /** - * Invokes the GenericsLocalService service using SCA binding. - * Service method invoked is getPolymorphic. - */ - @Test - public void testSCALocalPolymorphic() throws Exception { - GenericsServiceClient serviceClient = domain.getService(GenericsServiceClient.class, "GenericsLocalServiceClientSCAComponent"); - performTestPolymorphic(serviceClient); - } - - private void performTestTypeExplicit(GenericsServiceClient serviceClient) { - Bean1<String> args[] = new Bean1[2]; - args[0] = new Bean1<String>("Me"); - args[1] = new Bean1<String>(); - for(int i = 0; i < args.length; ++i) { - Bean1<String> arg = args[i]; - Bean1<String> expected = GenericsTransformer.getTypeExplicit(arg); - Bean1<String> actual = serviceClient.getTypeExplicitForward(arg); - Assert.assertEquals(expected, actual); - } - } - - private void performTestTypeUnbound(GenericsServiceClient serviceClient) { - { // String - String[] args = { "Me", "You", "Him" }; - Bean1<String> expected = GenericsTransformer.getTypeUnbound(args); - Bean1<String> actual = serviceClient.getTypeUnboundForward(args); - // Assert.assertEquals(expected, actual); - } - { // Integer - Integer[] args = new Integer[3]; - args[0] = -10; - args[1] = 0; - args[2] = 10; - Bean1<Integer> expected = GenericsTransformer.getTypeUnbound(args); - Bean1<Integer> actual = serviceClient.getTypeUnboundForward(args); - // Assert.assertEquals(expected, actual); - } - { // Object - Object[] args = new Object[3]; - args[0] = "Me"; - args[1] = 10; - args[2] = "Him"; - Bean1<Object> expected = GenericsTransformer.getTypeUnbound(args); - Bean1<Object> actual = serviceClient.getTypeUnboundForward(args); - Assert.assertEquals(expected, actual); - } - } - - private void performTestTypeExtends(GenericsServiceClient serviceClient) { - { // Bean2 - Bean2[] args = new Bean2[3]; - for(int i = 0; i < args.length; ++i) { - args[i] = new Bean2(); - args[i].setName("Name"+i); - } - - Bean1<Bean2> expected = GenericsTransformer.getTypeExtends(args); - Bean1<Bean2> actual = serviceClient.getTypeExtendsForward(args); - Assert.assertEquals(expected, actual); - } - { // Bean3 extends Bean2 - Bean3[] args = new Bean3[3]; - for(int i = 0; i < args.length; ++i) { - args[i] = new Bean3(); - args[i].setName("Name"+i); - args[i].setAddress("Address"+i); - } - - Bean1<Bean3> expected = GenericsTransformer.getTypeExtends(args); - Bean1<Bean3> actual = serviceClient.getTypeExtendsForward(args); - // Assert.assertEquals(expected, actual); - } - { //Bean31 extends Bean2 - Bean31[] args = new Bean31[3]; - for(int i = 0; i < args.length; ++i) { - args[i] = new Bean31(); - args[i].setName("Name"+i); - args[i].setAddress("Address"+i); - } - - Bean1<Bean31> expected = GenericsTransformer.getTypeExtends(args); - Bean1<Bean31> actual = serviceClient.getTypeExtendsForward(args); - // Assert.assertEquals(expected, actual); - } - } - - private void performTestRecursiveTypeBound(GenericsServiceClient serviceClient) { - { // Bean1<String> - Bean1<String>[] args = new Bean1[3]; - for(int i = 0; i < args.length; ++i) { - args[i] = new Bean1<String>(); - args[i].setItem("Bean."+i); - } - Bean1<Bean1<String>> expected = GenericsTransformer.getRecursiveTypeBound(args); - Bean1<Bean1<String>> actual = serviceClient.getRecursiveTypeBoundForward(args); - Assert.assertEquals(expected, actual); - } - { // Bean10 extends Bean1<String> - Bean10[] args = new Bean10[3]; - for(int i = 0; i < args.length; ++i) { - args[i] = new Bean10(); - args[i].setItem("Bean10."+i); - } - Bean1<Bean10> expected = GenericsTransformer.getRecursiveTypeBound(args); - Bean1<Bean10> actual = serviceClient.getRecursiveTypeBoundForward(args); - // Assert.assertEquals(expected, actual); - } - { // Bean11 extends Bean1<String> - Bean11[] args = new Bean11[3]; - for(int i = 0; i < args.length; ++i) { - args[i] = new Bean11(); - args[i].setItem("Bean11."+i); - } - Bean1<Bean11> expected = GenericsTransformer.getRecursiveTypeBound(args); - Bean1<Bean11> actual = serviceClient.getRecursiveTypeBoundForward(args); - // Assert.assertEquals(expected, actual); - } - } - - private void performTestWildcardUnbound(GenericsServiceClient serviceClient) { - { - Bean1<?> arg = new Bean1<String>("Me"); - Bean1<?> expected = GenericsTransformer.getWildcardUnbound(arg); - Bean1<?> actual = serviceClient.getWildcardUnboundForward(arg); - Assert.assertEquals(expected, actual); - } - { - Bean1<?> arg = new Bean1<Integer>(1); - Bean1<?> expected = GenericsTransformer.getWildcardUnbound(arg); - Bean1<?> actual = serviceClient.getWildcardUnboundForward(arg); - Assert.assertEquals(expected, actual); - } - } - - private void performTestWildcardSuper(GenericsServiceClient serviceClient) { - Bean1<? super Bean3> arg = new Bean1<Bean2>(); - Bean3 item = new Bean3(); - item.setName("Name"); - item.setAddress("Address"); - arg.setItem(item); - Bean1<? super Bean3> expected = GenericsTransformer.getWildcardSuper(arg); - Bean1<? super Bean3> actual = serviceClient.getWildcardSuperForward(arg); - Assert.assertEquals(expected, actual); - } - - private void performTestWildcardExtends(GenericsServiceClient serviceClient) { - { // Bean2 - Bean2 temp = new Bean2(); - temp.setName("Me"); - Bean1<? extends Bean2> arg = new Bean1<Bean2>(temp); - Bean1<? extends Bean2> expected = GenericsTransformer.getWildcardExtends(arg); - Bean1<? extends Bean2> actual = serviceClient.getWildcardExtendsForward(arg); - Assert.assertEquals(expected, actual); - } - { // Bean3 extends Bean2 - Bean3 temp = new Bean3(); - temp.setName("Me"); - temp.setAddress("My address"); - Bean1<? extends Bean2> arg = new Bean1<Bean3>(temp); - Bean1<? extends Bean2> expected = GenericsTransformer.getWildcardExtends(arg); - Bean1<? extends Bean2> actual = serviceClient.getWildcardExtendsForward(arg); - // The Bean3 will be unmarshalled into Bean2 - // Assert.assertEquals(expected, actual); - Assert.assertTrue(actual.getItem() instanceof Bean2); - } - { // Bean31 extends Bean2 - Bean31 temp = new Bean31(); - temp.setName("Me1"); - temp.setAddress("My address1"); - Bean1<? extends Bean2> arg = new Bean1<Bean31>(temp); - Bean1<? extends Bean2> expected = GenericsTransformer.getWildcardExtends(arg); - Bean1<? extends Bean2> actual = serviceClient.getWildcardExtendsForward(arg); - // The Bean31 will be unmarshalled into Bean2 - // Assert.assertEquals(expected, actual); - Assert.assertTrue(actual.getItem() instanceof Bean2); - } - } - - private void performTestPolymorphic(GenericsServiceClient serviceClient) { - { // Bean2 - Bean2 arg = new Bean2(); - arg.setName("Me"); - Bean2 expected = GenericsTransformer.getPolymorphic(arg); - Bean2 actual = serviceClient.getPolymorphicForward(arg); - Assert.assertEquals(expected, actual); - } - { // Bean3 extends Bean2 - Bean3 arg = new Bean3(); - arg.setName("Me"); - arg.setAddress("My address"); - Bean2 expected = GenericsTransformer.getPolymorphic(arg); - Bean2 actual = serviceClient.getPolymorphicForward(arg); - Assert.assertEquals(expected.getName(), actual.getName()); - } - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesDatabindingTestCase.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesDatabindingTestCase.java deleted file mode 100644 index f8aaad3dac..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesDatabindingTestCase.java +++ /dev/null @@ -1,776 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.host.embedded.SCADomain; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * @version $Rev$ $Date$ - */ -public class PrimitivesDatabindingTestCase { - - private static SCADomain domain; - - /** - * Runs before each test method - */ - @BeforeClass - public static void setUp() throws Exception { - try { - domain = SCADomain.newInstance("primitivesservice.composite"); - } catch(Throwable e) { - e.printStackTrace(); - Assert.fail(); - } - } - - /** - * Runs after each test method - */ - @AfterClass - public static void tearDown() { - domain.close(); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateBoolean. - */ - @Test - public void testSCANegateBoolean() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - performTestNegateBoolean(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateBooleanArray. - */ - @Test - public void testSCANegateBooleanArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - performTestNegateBooleanArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with SCA binding. - * Test for boolean array. - */ - @Test - public void testSCAPassByValueBooleanArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueBooleanArray()); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateByte. - */ - @Test - public void testSCANegateByte() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - performTestNegateByte(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateByteArray. - */ - @Test - public void testSCANegateByteArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - performTestNegateByteArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with SCA binding. - * Test for byte array. - */ - @Test - public void testSCAPassByValueByteArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueByteArray()); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateShort. - */ - @Test - public void testSCANegateShort() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - performTestNegateShort(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateShortArray. - */ - @Test - public void testSCANegateShortArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - performTestNegateShortArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with SCA binding. - * Test for short array. - */ - @Test - public void testSCAPassByValueShortArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueShortArray()); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateInt. - */ - @Test - public void testSCANegateInt() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - performTestNegateInt(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateIntArray. - */ - @Test - public void testSCANegateIntArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - performTestNegateIntArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with SCA binding. - * Test for int array. - */ - @Test - public void testSCAPassByValueIntArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueIntArray()); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateLong. - */ - @Test - public void testSCANegateLong() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - performTestNegateLong(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateLongArray. - */ - @Test - public void testSCANegateLongArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - performTestNegateLongArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with SCA binding. - * Test for long array. - */ - @Test - public void testSCAPassByValueLongArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueLongArray()); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateFloat. - */ - @Test - public void testSCANegateFloat() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - performTestNegateFloat(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateFloatArray. - */ - @Test - public void testSCANegateFloatArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - performTestNegateFloatArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with SCA binding. - * Test for float array. - */ - @Test - public void testSCAPassByValueFloatArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueFloatArray()); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateDouble. - */ - @Test - public void testSCANegateDouble() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - performTestNegateDouble(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateDoubleArray. - */ - @Test - public void testSCANegateDoubleArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - performTestNegateDoubleArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with SCA binding. - * Test for double array. - */ - @Test - public void testSCAPassByValueDoubleArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueDoubleArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateBoolean. - */ - @Test - public void testWSNegateBoolean() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - performTestNegateBoolean(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateBooleanArray. - */ - @Test - public void testWSNegateBooleanArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - performTestNegateBooleanArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for boolean array. - */ - @Test - public void testWSPassByValueBooleanArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueBooleanArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateByte. - */ - @Test - public void testWSNegateByte() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - performTestNegateByte(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateByteArray. - */ - @Test - public void testWSNegateByteArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - performTestNegateByteArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for byte array. - */ - @Test - public void testWSPassByValueByteArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueByteArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateShort. - */ - @Test - public void testWSNegateShort() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - performTestNegateShort(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateShortArray. - */ - @Test - public void testWSNegateShortArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - performTestNegateShortArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for short array. - */ - @Test - public void testWSPassByValueShortArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueShortArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateInt. - */ - @Test - public void testWSNegateInt() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - performTestNegateInt(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateIntArray. - */ - @Test - public void testWSNegateIntArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - performTestNegateIntArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for int array. - */ - @Test - public void testWSPassByValueIntArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueIntArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateLong. - */ - @Test - public void testWSNegateLong() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - performTestNegateLong(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateLongArray. - */ - @Test - public void testWSNegateLongArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - performTestNegateLongArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for long array. - */ - @Test - public void testWSPassByValueLongArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueLongArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateFloat. - */ - @Test - public void testWSNegateFloat() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - performTestNegateFloat(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateFloatArray. - */ - @Test - public void testWSNegateFloatArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - performTestNegateFloatArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for float array. - */ - @Test - public void testWSPassByValueFloatArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueFloatArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateDouble. - */ - @Test - public void testWSNegateDouble() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - performTestNegateDouble(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateDoubleArray. - */ - @Test - public void testWSNegateDoubleArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - performTestNegateDoubleArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for double array. - */ - @Test - public void testWSPassByValueDoubleArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueDoubleArray()); - } - - /** - * Invokes the PrimitivesLocalService service using SCA binding. - * Service method invoked is negateBoolean. - */ - @Test - public void testSCALocalNegateBoolean() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesLocalServiceClientSCAComponent"); - performTestNegateBoolean(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesLocalService service using SCA binding. - * Service method invoked is negateBooleanArray. - */ - @Test - public void testSCALocalNegateBooleanArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesLocalServiceClientSCAComponent"); - performTestNegateBooleanArray(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesLocalService service using SCA binding. - * Service method invoked is negateByte. - */ - @Test - public void testSCALocalNegateByte() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesLocalServiceClientSCAComponent"); - performTestNegateByte(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesLocalService service using SCA binding. - * Service method invoked is negateByteArray. - */ - @Test - public void testSCALocalNegateByteArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesLocalServiceClientSCAComponent"); - performTestNegateByteArray(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesLocalService service using SCA binding. - * Service method invoked is negateShort. - */ - @Test - public void testSCALocalNegateShort() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesLocalServiceClientSCAComponent"); - performTestNegateShort(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesLocalService service using SCA binding. - * Service method invoked is negateShortArray. - */ - @Test - public void testSCALocalNegateShortArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesLocalServiceClientSCAComponent"); - performTestNegateShortArray(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesLocalService service using SCA binding. - * Service method invoked is negateInt. - */ - @Test - public void testSCALocalNegateInt() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesLocalServiceClientSCAComponent"); - performTestNegateInt(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesLocalService service using SCA binding. - * Service method invoked is negateIntArray. - */ - @Test - public void testSCALocalNegateIntArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesLocalServiceClientSCAComponent"); - performTestNegateIntArray(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesLocalService service using SCA binding. - * Service method invoked is negateLong. - */ - @Test - public void testSCALocalNegateLong() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesLocalServiceClientSCAComponent"); - performTestNegateLong(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesLocalService service using SCA binding. - * Service method invoked is negateLongArray. - */ - @Test - public void testSCALocalNegateLongArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesLocalServiceClientSCAComponent"); - performTestNegateLongArray(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesLocalService service using SCA binding. - * Service method invoked is negateFloat. - */ - @Test - public void testSCALocalNegateFloat() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesLocalServiceClientSCAComponent"); - performTestNegateFloat(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateFloatArray. - */ - @Test - public void testSCALocalNegateFloatArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesLocalServiceClientSCAComponent"); - performTestNegateFloatArray(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesLocalService service using SCA binding. - * Service method invoked is negateDouble. - */ - @Test - public void testSCALocalNegateDouble() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesLocalServiceClientSCAComponent"); - performTestNegateDouble(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesLocalService service using SCA binding. - * Service method invoked is negateDoubleArray. - */ - @Test - public void testSCALocalNegateDoubleArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesLocalServiceClientSCAComponent"); - performTestNegateDoubleArray(primitivesServiceClient); - } - - private void performTestNegateBoolean(PrimitivesServiceClient primitivesServiceClient) { - Assert.assertTrue(primitivesServiceClient.negateBooleanForward(false)); - Assert.assertFalse(primitivesServiceClient.negateBooleanForward(true)); - } - - private void performTestNegateBooleanArray(PrimitivesServiceClient primitivesServiceClient) { - boolean flags[] = new boolean[2]; - flags[0] = false; - flags[1] = true; - boolean[] respFlags = primitivesServiceClient.negateBooleanArrayForward(flags); - Assert.assertEquals(flags.length, respFlags.length); - for(int i = 0; i < flags.length; ++i) { - Assert.assertEquals(!flags[i], respFlags[i]); - } - } - - private void performTestNegateByte(PrimitivesServiceClient primitivesServiceClient) { - byte[] ba = new byte[3]; - ba[0] = -1; - ba[1] = 0; - ba[2] = 1; - - for(int i = 0; i < ba.length; ++i) { - Assert.assertEquals((byte)-ba[i], primitivesServiceClient.negateByteForward(ba[i])); - } - } - - private void performTestNegateByteArray(PrimitivesServiceClient primitivesServiceClient) { - byte[] ba = new byte[3]; - ba[0] = -1; - ba[1] = 0; - ba[2] = 1; - - byte[] r = primitivesServiceClient.negateByteArrayForward(ba); - Assert.assertEquals(ba.length, r.length); - for(int i = 0; i < ba.length; ++i) { - Assert.assertEquals((byte)-ba[i], r[i]); - } - } - - private void performTestNegateShort(PrimitivesServiceClient primitivesServiceClient) { - short[] s = new short[3]; - s[0] = -1; - s[1] = 0; - s[2] = 1; - - for(int i = 0; i < s.length; ++i) { - Assert.assertEquals((short)-s[i], primitivesServiceClient.negateShortForward(s[i])); - } - } - - private void performTestNegateShortArray(PrimitivesServiceClient primitivesServiceClient) { - short[] s = new short[3]; - s[0] = -1; - s[1] = 0; - s[2] = 1; - - short[] r = primitivesServiceClient.negateShortArrayForward(s); - Assert.assertEquals(s.length, r.length); - for(int i = 0; i < s.length; ++i) { - Assert.assertEquals((short)-s[i], r[i]); - } - } - - private void performTestNegateInt(PrimitivesServiceClient primitivesServiceClient) { - int[] ia = new int[3]; - ia[0] = -1; - ia[1] = 0; - ia[2] = 1; - - for(int i = 0; i < ia.length; ++i) { - Assert.assertEquals(-ia[i], primitivesServiceClient.negateIntForward(ia[i])); - } - } - - private void performTestNegateIntArray(PrimitivesServiceClient primitivesServiceClient) { - int[] ia = new int[3]; - ia[0] = -1; - ia[1] = 0; - ia[2] = 1; - - int[] r = primitivesServiceClient.negateIntArrayForward(ia); - Assert.assertEquals(ia.length, r.length); - for(int i = 0; i < ia.length; ++i) { - Assert.assertEquals(-ia[i], r[i]); - } - } - - private void performTestNegateLong(PrimitivesServiceClient primitivesServiceClient) { - long[] la = new long[3]; - la[0] = -1; - la[1] = 0; - la[2] = 1; - - for(int i = 0; i < la.length; ++i) { - Assert.assertEquals(-la[i], primitivesServiceClient.negateLongForward(la[i])); - } - } - - private void performTestNegateLongArray(PrimitivesServiceClient primitivesServiceClient) { - long[] la = new long[3]; - la[0] = -1; - la[1] = 0; - la[2] = 1; - - long[] r = primitivesServiceClient.negateLongArrayForward(la); - Assert.assertEquals(la.length, r.length); - for(int i = 0; i < la.length; ++i) { - Assert.assertEquals(-la[i], r[i]); - } - } - - private void performTestNegateFloat(PrimitivesServiceClient primitivesServiceClient) { - float[] fa = new float[3]; - fa[0] = -1; - fa[1] = 0; - fa[2] = 1; - - for(int i = 0; i < fa.length; ++i) { - Assert.assertEquals(-fa[i], primitivesServiceClient.negateFloatForward(fa[i])); - } - } - - private void performTestNegateFloatArray(PrimitivesServiceClient primitivesServiceClient) { - float[] ia = new float[3]; - ia[0] = -1; - ia[1] = 0; - ia[2] = 1; - - float[] r = primitivesServiceClient.negateFloatArrayForward(ia); - Assert.assertEquals(ia.length, r.length); - for(int i = 0; i < ia.length; ++i) { - Assert.assertEquals(-ia[i], r[i]); - } - } - - private void performTestNegateDouble(PrimitivesServiceClient primitivesServiceClient) { - double[] da = new double[3]; - da[0] = -1; - da[1] = 0; - da[2] = 1; - - for(int i = 0; i < da.length; ++i) { - Assert.assertEquals(-da[i], primitivesServiceClient.negateDoubleForward(da[i])); - } - } - - private void performTestNegateDoubleArray(PrimitivesServiceClient primitivesServiceClient) { - double[] da = new double[3]; - da[0] = -1; - da[1] = 0; - da[2] = 1; - - double[] r = primitivesServiceClient.negateDoubleArrayForward(da); - Assert.assertEquals(da.length, r.length); - for(int i = 0; i < da.length; ++i) { - Assert.assertEquals(-da[i], r[i]); - } - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesDatabindingTestCase.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesDatabindingTestCase.java deleted file mode 100644 index 079e1cdfff..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesDatabindingTestCase.java +++ /dev/null @@ -1,1439 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb; - -import java.awt.Image; -import java.awt.image.BufferedImage; -import java.awt.image.PixelGrabber; -import java.io.IOException; -import java.io.InputStream; -import java.io.StringReader; -import java.io.StringWriter; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.URI; -import java.net.URL; -import java.util.Calendar; -import java.util.Date; -import java.util.GregorianCalendar; -import java.util.TimeZone; -import java.util.UUID; - -import javax.activation.DataHandler; -import javax.xml.datatype.DatatypeConfigurationException; -import javax.xml.datatype.DatatypeFactory; -import javax.xml.datatype.Duration; -import javax.xml.datatype.XMLGregorianCalendar; -import javax.xml.namespace.QName; -import javax.xml.transform.Result; -import javax.xml.transform.Source; -import javax.xml.transform.TransformerFactory; -import javax.xml.transform.dom.DOMSource; -import javax.xml.transform.sax.SAXSource; -import javax.xml.transform.stream.StreamResult; -import javax.xml.transform.stream.StreamSource; - -import junit.framework.Assert; - -import org.apache.axiom.attachments.ByteArrayDataSource; -import org.apache.tuscany.sca.databinding.xml.String2Node; -import org.apache.tuscany.sca.host.embedded.SCADomain; -import org.apache.tuscany.sca.itest.databindings.jaxb.impl.StandardTypesTransformer; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Ignore; -import org.junit.Test; -import org.xml.sax.InputSource; - -/** - * @version $Rev$ $Date$ - */ -public class StandardTypesDatabindingTestCase { - - private static SCADomain domain; - - /** - * Runs before each test method - */ - @BeforeClass - public static void setUp() throws Exception { - try { - domain = SCADomain.newInstance("standard-types-service.composite"); - } catch (Throwable e) { - e.printStackTrace(); - } - } - - /** - * Runs after each test method - */ - @AfterClass - public static void tearDown() { - domain.close(); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewBigInteger. - */ - @Test - public void testSCANewBigInteger() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewBigInteger(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewBigIntegerArray. - */ - @Test - public void testSCANewBigIntegerArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewBigIntegerArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewBigDecimal. - */ - @Test - public void testSCANewBigDecimal() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewBigDecimal(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewBigDecimalArray. - */ - @Test - public void testSCANewBigDecimalArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewBigDecimalArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewCalendar. - */ - @Test - public void testSCANewCalendar() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewCalendar(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewCalendarArray. - */ - @Test - public void testSCANewCalendarArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewCalendarArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewDate. - */ - @Test - public void testSCANewDate() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewDate(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewDateArray. - */ - @Test - public void testSCANewDateArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewDateArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewQName. - */ - @Test - public void testSCANewQName() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewQName(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewQNameArray. - */ - @Test - public void testSCANewQNameArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewQNameArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewURI. - */ - @Test - public void testSCANewURI() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewURI(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewURIArray. - */ - @Test - public void testSCANewURIArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewURIArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewXMLGregorianCalendar. - */ - @Test - public void testSCANewXMLGregorianCalendar() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewXMLGregorianCalendar(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewXMLGregorianCalendarArray. - */ - @Test - public void testSCANewXMLGregorianCalendarArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewXMLGregorianCalendarArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewDuration. - */ - @Test - public void testSCANewDuration() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewDuration(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewDurationArray. - */ - @Test - public void testSCANewDurationArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewDurationArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewObject. - */ - @Test - public void testSCANewObject() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewObject(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewObjectArray. - */ - @Test - public void testSCANewObjectArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewObjectArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewImage. - */ - @Test - public void testSCANewImage() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewImage(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewImageArray. - */ - @Test - public void testSCANewImageArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewImageArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewDataHandler. - */ - @Test - public void testSCANewDataHandler() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewDataHandler(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewDataHandlerArray. - */ - @Test - public void testSCANewDataHandlerArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewDataHandlerArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewSource. - */ - @Test - public void testSCANewSource() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewSource(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewSourceArray. - */ - @Test - @Ignore("TUSCANY-2387") - public void testSCANewSourceArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewSourceArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewUUID. - */ - @Test - public void testSCANewUUID() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewUUID(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewUUIDArray. - */ - @Test - public void testSCANewUUIDArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewUUIDArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigInteger. - */ - @Test - public void testWSNewBigInteger() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewBigInteger(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigIntegerArray. - */ - @Test - public void testWSNewBigIntegerArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewBigIntegerArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigDecimal. - */ - @Test - public void testWSNewBigDecimal() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewBigDecimal(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigDecimalArray. - */ - @Test - public void testWSNewBigDecimalArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewBigDecimalArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewCalendar. - */ - @Test - public void testWSNewCalendar() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewCalendar(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewCalendarArray. - */ - @Test - public void testWSNewCalendarArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewCalendarArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDate. - */ - @Test - public void testWSNewDate() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewDate(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDateArray. - */ - @Test - public void testWSNewDateArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewDateArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewQName. - */ - @Test - public void testWSNewQName() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewQName(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewQNameArray. - */ - @Test - public void testWSNewQNameArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewQNameArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewURI. - */ - @Test - public void testWSNewURI() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewURI(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewURIArray. - */ - @Test - public void testWSNewURIArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewURIArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewXMLGregorianCalendar. - */ - @Test - public void testWSNewXMLGregorianCalendar() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewXMLGregorianCalendar(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewXMLGregorianCalendarArray. - */ - @Test - public void testWSNewXMLGregorianCalendarArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewXMLGregorianCalendarArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDuration. - */ - @Test - public void testWSNewDuration() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewDuration(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDurationArray. - */ - @Test - public void testWSNewDurationArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewDurationArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewObject. - */ - @Test - public void testWSNewObject() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewObject(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewObjectArray. - */ - @Test - public void testWSNewObjectArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewObjectArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewImage. - */ - @Test - public void testWSNewImage() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewImage(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewImageArray. - */ - @Test - public void testWSNewImageArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewImageArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDataHandler. - */ - @Test - public void testWSNewDataHandler() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewDataHandler(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDataHandlerArray. - */ - @Test - public void testWSNewDataHandlerArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewDataHandlerArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewSource. - */ - @Test - // @Ignore("junit.framework.ComparisonFailure: null expected:<... encoding=\"UTF-8\"?><[a>A</a]>> but was:<... encoding=\"UTF-8\"?><[return xmlns=\"http://jaxb.databindings.itest.sca.tuscany.apache.org/\">A</return]>>") - public void testWSNewSource() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewSource(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewSourceArray. - */ - @Test - @Ignore("TUSCANY-2386") - public void testWSNewSourceArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewSourceArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewUUID. - */ - @Test - public void testWSNewUUID() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewUUID(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewUUIDArray. - */ - @Test - public void testWSNewUUIDArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewUUIDArray(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewBigInteger. - */ - @Test - public void testSCALocalNewBigInteger() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewBigInteger(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewBigIntegerArray. - */ - @Test - public void testSCALocalNewBigIntegerArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewBigIntegerArray(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewBigDecimal. - */ - @Test - public void testSCALocalNewBigDecimal() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewBigDecimal(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewBigDecimalArray. - */ - @Test - public void testSCALocalNewBigDecimalArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewBigDecimalArray(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewCalendar. - */ - @Test - public void testSCALocalNewCalendar() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewCalendar(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewCalendarArray. - */ - @Test - public void testSCALocalNewCalendarArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewCalendarArray(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewDate. - */ - @Test - public void testSCALocalNewDate() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewDate(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewDateArray. - */ - @Test - public void testSCALocalNewDateArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewDateArray(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewQName. - */ - @Test - public void testSCALocalNewQName() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewQName(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewQNameArray. - */ - @Test - public void testSCALocalNewQNameArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewQNameArray(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewURI. - */ - @Test - public void testSCALocalNewURI() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewURI(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewURIArray. - */ - @Test - public void testSCALocalNewURIArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewURIArray(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewXMLGregorianCalendar. - */ - @Test - public void testSCALocalNewXMLGregorianCalendar() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewXMLGregorianCalendar(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewXMLGregorianCalendarArray. - */ - @Test - public void testSCALocalNewXMLGregorianCalendarArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewXMLGregorianCalendarArray(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewDuration. - */ - @Test - public void testSCALocalNewDuration() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewDuration(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewDurationArray. - */ - @Test - public void testSCALocalNewDurationArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewDurationArray(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewObject. - */ - @Test - public void testSCALocalNewObject() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewObject(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewObjectArray. - */ - @Test - public void testSCALocalNewObjectArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewObjectArray(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewImage. - */ - @Test - public void testSCALocalNewImage() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewImage(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewImageArray. - */ - @Test - public void testSCALocalNewImageArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewImageArray(serviceClient); - } - - /** - * Invokes the StandardTypesLocalLocalService service using SCA binding. - * Service method invoked is getNewDataHandler. - */ - @Test - public void testSCALocalNewDataHandler() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewDataHandler(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewDataHandlerArray. - */ - @Test - public void testSCALocalNewDataHandlerArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewDataHandlerArray(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewSource. - */ - @Test - public void testSCALocalNewSource() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewSource(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewSourceArray. - */ - @Test - public void testSCALocalNewSourceArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewSourceArray(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewUUID. - */ - @Test - public void testSCALocalNewUUID() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewUUID(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewUUIDArray. - */ - @Test - public void testSCALocalNewUUIDArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewUUIDArray(serviceClient); - } - - private void performTestNewBigInteger(StandardTypesServiceClient serviceClient) { - BigInteger bi = new BigInteger("1234567890123456789012345678901234"); - BigInteger expected = bi.negate(); - BigInteger actual = serviceClient.getNewBigIntegerForward(bi); - Assert.assertEquals(expected, actual); - } - - private void performTestNewBigIntegerArray(StandardTypesServiceClient serviceClient) { - BigInteger[] bia = new BigInteger[2]; - bia[0] = new BigInteger("1234567890123456789012345678901234"); - bia[1] = new BigInteger("-98765432109876543210987654321"); - BigInteger[] actual = serviceClient.getNewBigIntegerArrayForward(bia); - Assert.assertEquals(bia.length, actual.length); - for (int i = 0; i < bia.length; ++i) { - Assert.assertEquals(bia[i].negate(), actual[i]); - } - } - - private void performTestNewBigDecimal(StandardTypesServiceClient serviceClient) { - BigDecimal bd = new BigDecimal("12345678901234567890.12345678901234"); - BigDecimal expected = bd.negate(); - BigDecimal actual = serviceClient.getNewBigDecimalForward(bd); - Assert.assertEquals(expected, actual); - } - - private void performTestNewBigDecimalArray(StandardTypesServiceClient serviceClient) { - BigDecimal[] bda = new BigDecimal[2]; - bda[0] = new BigDecimal("1234567890123456.789012345678901234"); - bda[1] = new BigDecimal("-987654321098765.43210987654321"); - BigDecimal[] actual = serviceClient.getNewBigDecimalArrayForward(bda); - Assert.assertEquals(bda.length, actual.length); - for (int i = 0; i < bda.length; ++i) { - Assert.assertEquals(bda[i].negate(), actual[i]); - } - } - - private void performTestNewCalendar(StandardTypesServiceClient serviceClient) { - Calendar[] ca = new Calendar[3]; - String[] tz = {"GMT+05:30", "GMT+00:00", "GMT-05:00"}; - for (int i = 0; i < ca.length; ++i) { - ca[i] = Calendar.getInstance(TimeZone.getTimeZone(tz[i])); - ca[i].set(Calendar.DAY_OF_MONTH, i + 1); - } - for (int i = 0; i < ca.length; ++i) { - Calendar actual = serviceClient.getNewCalendarForward(ca[i]); - ca[i].add(Calendar.DAY_OF_MONTH, 5); - if (actual instanceof GregorianCalendar && ca[i] instanceof GregorianCalendar) { - // FIXME: Is this a problem? - // The instance returned by service method invoked over binding.ws seems to have a gregorianCutover - // different from the instance passed. Adjust the gregorianCutover as per the input instance. - ((GregorianCalendar)actual).setGregorianChange(((GregorianCalendar)ca[i]).getGregorianChange()); - } - Assert.assertEquals(ca[i], actual); - } - } - - private void performTestNewCalendarArray(StandardTypesServiceClient serviceClient) { - Calendar[] ca = new Calendar[3]; - String[] tz = {"GMT+05:30", "GMT+00:00", "GMT-05:00"}; - for (int i = 0; i < ca.length; ++i) { - ca[i] = Calendar.getInstance(TimeZone.getTimeZone(tz[i])); - ca[i].set(Calendar.DAY_OF_MONTH, i + 1); - } - Calendar[] actual = serviceClient.getNewCalendarArrayForward(ca); - Assert.assertEquals(ca.length, actual.length); - for (int i = 0; i < ca.length; ++i) { - ca[i].add(Calendar.DAY_OF_MONTH, 5); - if (actual[i] instanceof GregorianCalendar && ca[i] instanceof GregorianCalendar) { - // FIXME: Is this a problem? - // The instance returned by service method invoked over binding.ws seems to have a gregorianCutover - // different from the instance passed. Adjust the gregorianCutover as per the input instance. - ((GregorianCalendar)actual[i]).setGregorianChange(((GregorianCalendar)ca[i]).getGregorianChange()); - } - Assert.assertEquals(ca[i], actual[i]); - } - } - - private void performTestNewDate(StandardTypesServiceClient serviceClient) { - Date d = new Date(); - Date expected = new Date(d.getTime() + 5 * 24 * 60 * 60 * 1000); - Date actual = serviceClient.getNewDateForward(d); - Assert.assertEquals(expected, actual); - } - - private void performTestNewDateArray(StandardTypesServiceClient serviceClient) { - Date[] d = new Date[2]; - Date[] expected = new Date[d.length]; - for (int i = 0; i < d.length; ++i) { - d[i] = new Date(); - d[i].setTime(d[i].getTime() + i * 24 * 60 * 60 * 1000); - expected[i] = new Date(d[i].getTime() + 5 * 24 * 60 * 60 * 1000); - } - Date[] actual = serviceClient.getNewDateArrayForward(d); - Assert.assertEquals(expected.length, actual.length); - for (int i = 0; i < expected.length; ++i) { - Assert.assertEquals(expected[i], actual[i]); - } - } - - private void performTestNewQName(StandardTypesServiceClient serviceClient) { - QName[] qnames = new QName[3]; - qnames[0] = new QName("localPart"); - qnames[1] = new QName("namespaceUri", "localPart"); - qnames[2] = new QName("namespaceUri", "localPart", "prefix"); - QName[] expected = new QName[qnames.length]; - for (int i = 0; i < qnames.length; ++i) { - expected[i] = - new QName(qnames[i].getNamespaceURI() + "q", qnames[i].getLocalPart() + "q", - qnames[i].getPrefix() + "q"); - } - for (int i = 0; i < qnames.length; ++i) { - QName actual = serviceClient.getNewQNameForward(qnames[i]); - Assert.assertEquals(expected[i], actual); - } - } - - private void performTestNewQNameArray(StandardTypesServiceClient serviceClient) { - QName[] qnames = new QName[4]; - qnames[0] = new QName("localPart"); - qnames[1] = new QName("namespaceUri", "localPart"); - qnames[2] = new QName("namespaceUri", "localPart", "prefix"); - qnames[3] = new QName("localPart2"); - QName[] expected = new QName[qnames.length]; - for (int i = 0; i < qnames.length; ++i) { - expected[i] = - new QName(qnames[i].getNamespaceURI() + "q", qnames[i].getLocalPart() + "q", - qnames[i].getPrefix() + "q"); - } - QName[] actual = serviceClient.getNewQNameArrayForward(qnames); - Assert.assertEquals(expected.length, actual.length); - for (int i = 0; i < qnames.length; ++i) { - Assert.assertEquals(expected[i], actual[i]); - } - } - - private void performTestNewURI(StandardTypesServiceClient serviceClient) { - URI[] uris = new URI[4]; - uris[0] = URI.create("a/b/c"); - uris[1] = URI.create("http://abc/"); - uris[2] = URI.create("ftp://a/b"); - uris[3] = URI.create("http://abc/").resolve("xyz"); - - for (int i = 0; i < uris.length; ++i) { - URI expected = uris[i].resolve("uri"); - URI actual = serviceClient.getNewURIForward(uris[i]); - Assert.assertEquals(expected, actual); - } - } - - private void performTestNewURIArray(StandardTypesServiceClient serviceClient) { - URI[] uris = new URI[4]; - uris[0] = URI.create("a/b/c"); - // [rfeng] We need to have a trialign / to avoid the resolving problem - // FIXME: [vamsi] This is actually a data transformation problem. The array being returned from the service method is - // not making to the caller intact. - uris[1] = URI.create("http://abc/"); - uris[2] = URI.create("ftp://a/b"); - uris[3] = URI.create("http://abc/").resolve("xyz"); - - URI[] expected = new URI[uris.length]; - for (int i = 0; i < uris.length; ++i) { - expected[i] = uris[i].resolve("uri"); - } - - URI[] actual = serviceClient.getNewURIArrayForward(uris); - Assert.assertEquals(expected.length, actual.length); - for (int i = 0; i < uris.length; ++i) { - Assert.assertEquals(expected[i], actual[i]); - } - } - - private void performTestNewXMLGregorianCalendar(StandardTypesServiceClient serviceClient) - throws DatatypeConfigurationException { - DatatypeFactory df = DatatypeFactory.newInstance(); - XMLGregorianCalendar[] xgcals = new XMLGregorianCalendar[3]; - xgcals[0] = df.newXMLGregorianCalendar(new GregorianCalendar(1974, GregorianCalendar.APRIL, 19)); - xgcals[1] = df.newXMLGregorianCalendar(new GregorianCalendar(1978, GregorianCalendar.OCTOBER, 13)); - xgcals[2] = df.newXMLGregorianCalendar(new GregorianCalendar(2006, GregorianCalendar.JUNE, 16)); - - for (int i = 0; i < xgcals.length; ++i) { - XMLGregorianCalendar actual = serviceClient.getNewXMLGregorianCalendarForward(xgcals[i]); - xgcals[i].setDay(xgcals[i].getDay() + 5); - Assert.assertEquals(xgcals[i], actual); - } - } - - private void performTestNewXMLGregorianCalendarArray(StandardTypesServiceClient serviceClient) - throws DatatypeConfigurationException { - DatatypeFactory df = DatatypeFactory.newInstance(); - XMLGregorianCalendar[] xgcals = new XMLGregorianCalendar[3]; - xgcals[0] = df.newXMLGregorianCalendar(new GregorianCalendar(1974, GregorianCalendar.APRIL, 19)); - xgcals[1] = df.newXMLGregorianCalendar(new GregorianCalendar(1978, GregorianCalendar.OCTOBER, 13)); - xgcals[2] = df.newXMLGregorianCalendar(new GregorianCalendar(2006, GregorianCalendar.JUNE, 16)); - - XMLGregorianCalendar[] actual = serviceClient.getNewXMLGregorianCalendarArrayForward(xgcals); - Assert.assertEquals(xgcals.length, actual.length); - for (int i = 0; i < xgcals.length; ++i) { - xgcals[i].setDay(xgcals[i].getDay() + 5); - Assert.assertEquals(xgcals[i], actual[i]); - } - } - - private void performTestNewDuration(StandardTypesServiceClient serviceClient) throws DatatypeConfigurationException { - DatatypeFactory df = DatatypeFactory.newInstance(); - Duration[] da = new Duration[3]; - da[0] = df.newDuration(1000000000000L); - da[1] = df.newDurationDayTime(1000000000000L); - da[2] = df.newDurationYearMonth(true, 1, 3); - - for (int i = 0; i < da.length; ++i) { - Assert.assertEquals(da[i].negate(), serviceClient.getNewDurationForward(da[i])); - } - } - - private void performTestNewObject(StandardTypesServiceClient serviceClient) { - Object[] objs = new Object[5]; - objs[0] = "Hello"; - objs[1] = 10; - objs[2] = null; - objs[3] = -1.0; - objs[4] = null; - - for (int i = 0; i < objs.length; ++i) { - Object expected = StandardTypesTransformer.getNewObject(objs[i]); - Object actual = serviceClient.getNewObjectForward(objs[i]); - Assert.assertEquals(expected, actual); - } - } - - private void performTestNewObjectArray(StandardTypesServiceClient serviceClient) { - Object[] objs = new Object[5]; - objs[0] = "Hello"; - objs[1] = 10; - objs[2] = null; - objs[3] = -1.0; - objs[4] = null; - - Object[] actual = serviceClient.getNewObjectArrayForward(objs); - Assert.assertEquals(objs.length, actual.length); - for (int i = 0; i < objs.length; ++i) { - Object expected = StandardTypesTransformer.getNewObject(objs[i]); - Assert.assertEquals(expected, actual[i]); - } - } - - private void performTestNewImage(StandardTypesServiceClient serviceClient) throws InterruptedException { - // Create some images to test with. - Image[] imgs = new Image[3]; - imgs[0] = new BufferedImage(10, 10, BufferedImage.TYPE_3BYTE_BGR); - imgs[1] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_ARGB); - imgs[2] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_RGB); - imgs[0].getGraphics().drawLine(1, 1, 8, 8); - imgs[1].getGraphics().drawLine(8, 1, 1, 8); - imgs[2].getGraphics().drawLine(1, 8, 8, 1); - - Image[] copy = imgs; - // Create the same images once again as the StandardTypesTransformer may manipulate the image passed. - imgs = new Image[3]; - imgs[0] = new BufferedImage(10, 10, BufferedImage.TYPE_3BYTE_BGR); - imgs[1] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_ARGB); - imgs[2] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_RGB); - imgs[0].getGraphics().drawLine(1, 1, 8, 8); - imgs[1].getGraphics().drawLine(8, 1, 1, 8); - imgs[2].getGraphics().drawLine(1, 8, 8, 1); - - // Make sure the images and copies are equal using ImageInfo - for(int i = 0; i < imgs.length; ++i) { - Assert.assertEquals(new ImageInfo(imgs[i]), new ImageInfo(copy[i])); - } - - for (int i = 0; i < imgs.length; ++i) { - Image actual = serviceClient.getNewImageForward(imgs[i]); - Image expected = StandardTypesTransformer.getNewImage(copy[i]); - // Compare using ImageInfo - Assert.assertEquals(new ImageInfo(expected), new ImageInfo(actual)); - } - } - - private void performTestNewImageArray(StandardTypesServiceClient serviceClient) throws InterruptedException { - // Create some images to test with. - Image[] imgs = new Image[3]; - imgs[0] = new BufferedImage(10, 10, BufferedImage.TYPE_3BYTE_BGR); - imgs[1] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_ARGB); - imgs[2] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_RGB); - imgs[0].getGraphics().drawLine(1, 1, 8, 8); - imgs[1].getGraphics().drawLine(8, 1, 1, 8); - imgs[2].getGraphics().drawLine(1, 8, 8, 1); - - Image[] copy = imgs; - // Create the same images once again as the StandardTypesTransformer may manipulate the image passed. - imgs = new Image[3]; - imgs[0] = new BufferedImage(10, 10, BufferedImage.TYPE_3BYTE_BGR); - imgs[1] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_ARGB); - imgs[2] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_RGB); - imgs[0].getGraphics().drawLine(1, 1, 8, 8); - imgs[1].getGraphics().drawLine(8, 1, 1, 8); - imgs[2].getGraphics().drawLine(1, 8, 8, 1); - - // Make sure the images and copies are equal using ImageInfo - for(int i = 0; i < imgs.length; ++i) { - Assert.assertEquals(new ImageInfo(imgs[i]), new ImageInfo(copy[i])); - } - - Image[] actual = serviceClient.getNewImageArrayForward(imgs); - Assert.assertEquals(imgs.length, actual.length); - for (int i = 0; i < imgs.length; ++i) { - Image expected = StandardTypesTransformer.getNewImage(copy[i]); - // Compare using ImageInfo - Assert.assertEquals(new ImageInfo(expected), new ImageInfo(actual[i])); - } - } - - private void performTestNewDurationArray(StandardTypesServiceClient serviceClient) - throws DatatypeConfigurationException { - DatatypeFactory df = DatatypeFactory.newInstance(); - Duration[] da = new Duration[3]; - da[0] = df.newDuration(1000000000000L); - da[1] = df.newDurationDayTime(1000000000000L); - da[2] = df.newDurationYearMonth(true, 1, 3); - - Duration[] actual = serviceClient.getNewDurationArrayForward(da); - Assert.assertEquals(da.length, actual.length); - for (int i = 0; i < da.length; ++i) { - Assert.assertEquals(da[i].negate(), actual[i]); - } - } - - private void performTestNewDataHandler(StandardTypesServiceClient serviceClient) throws IOException { - DataHandler[] dha = new DataHandler[3]; - dha[0] = new DataHandler("Some data", "text/plain"); - dha[1] = new DataHandler(new URL("http://tuscany.apache.org/home.html")); - dha[2] = new DataHandler(new ByteArrayDataSource("Some data2".getBytes())); - - for (int i = 0; i < dha.length; ++i) { - DataHandler actual = serviceClient.getNewDataHandlerForward(dha[i]); - // Note: The DataHandler returned may use a different type of DataSource. - // Compare the data content instead of using equals(). - Assert.assertTrue(compare(dha[i], actual)); - } - } - - private void performTestNewDataHandlerArray(StandardTypesServiceClient serviceClient) throws IOException { - DataHandler[] dha = new DataHandler[3]; - dha[0] = new DataHandler("Some data", "text/plain"); - dha[1] = new DataHandler(new URL("http://tuscany.apache.org/home.html")); - dha[2] = new DataHandler(new ByteArrayDataSource("Some data2".getBytes())); - - DataHandler[] actual = serviceClient.getNewDataHandlerArrayForward(dha); - Assert.assertEquals(dha.length, actual.length); - for (int i = 0; i < dha.length; ++i) { - // Note: The DataHandler returned may use a different type of DataSource. - // Compare the data content instead of using equals(). - Assert.assertTrue(compare(dha[i], actual[i])); - } - } - - private void performTestNewSource(StandardTypesServiceClient serviceClient) throws Exception { - String xml = "<a>A<b>B</b><c>C</c></a>"; - Source[] srcs = new Source[3]; - srcs[0] = new DOMSource(new String2Node().transform(xml, null)); - srcs[1] = new SAXSource(new InputSource(new StringReader(xml))); - srcs[2] = new StreamSource(new StringReader(xml)); - - for (int i = 0; i < srcs.length; ++i) { - Source expected = StandardTypesTransformer.getNewSource(srcs[i]); - Source actual = serviceClient.getNewSourceForward(srcs[i]); - // [rfeng] The data may come back as a different source - Assert.assertEquals(sourceToString(expected), sourceToString(actual)); - } - } - - private void performTestNewSourceArray(StandardTypesServiceClient serviceClient) throws Exception { - String xml = "<a>A<b>B</b><c>C</c></a>"; - Source[] srcs = new Source[3]; - srcs[0] = new DOMSource(new String2Node().transform(xml, null)); - srcs[1] = new SAXSource(new InputSource(new StringReader(xml))); - srcs[2] = new StreamSource(new StringReader(xml)); - - Source[] actual = serviceClient.getNewSourceArrayForward(srcs); - Source[] expected = new Source[srcs.length]; - for(int i = 0; i < srcs.length; ++i) { - expected[i] = StandardTypesTransformer.getNewSource(srcs[i]); - } - Assert.assertEquals(srcs.length, actual.length); - for (int i = 0; i < srcs.length; ++i) { - // [rfeng] The data may come back as a different source - Assert.assertEquals(sourceToString(expected[i]), sourceToString(actual[i])); - } - - } - - private void performTestNewUUID(StandardTypesServiceClient serviceClient) { - UUID[] uuids = new UUID[3]; - uuids[0] = UUID.nameUUIDFromBytes("ABCDEFGHJKLMNOPQRSTUVWXYZ".getBytes()); - uuids[1] = UUID.nameUUIDFromBytes("abcdefghjklmnopqrstuvwxyz".getBytes()); - uuids[2] = UUID.randomUUID(); - - for (int i = 0; i < uuids.length; ++i) { - UUID expected = UUID.fromString(uuids[i].toString() + "AAA"); - UUID actual = serviceClient.getNewUUIDForward(uuids[i]); - Assert.assertEquals(expected, actual); - } - } - - private void performTestNewUUIDArray(StandardTypesServiceClient serviceClient) { - UUID[] uuids = new UUID[3]; - uuids[0] = UUID.nameUUIDFromBytes("ABCDEFGHJKLMNOPQRSTUVWXYZ".getBytes()); - uuids[1] = UUID.nameUUIDFromBytes("abcdefghjklmnopqrstuvwxyz".getBytes()); - uuids[2] = UUID.randomUUID(); - - UUID[] actual = serviceClient.getNewUUIDArrayForward(uuids); - for (int i = 0; i < uuids.length; ++i) { - UUID expected = UUID.fromString(uuids[i].toString() + "AAA"); - Assert.assertEquals(expected, actual[i]); - } - } - - /** - * This method compares two DataHandlers. - * @return true if the data in the two handlers is the same. - */ - private boolean compare(DataHandler dh1, DataHandler dh2) throws IOException { - InputStream inp1 = dh1.getInputStream(); - InputStream inp2 = dh2.getInputStream(); - for(;;) { - int i1 = inp1.read(); - int i2 = inp2.read(); - if(i1 == -1 && i2 == -1) { - return true; - } else if(i1 != -1 && i2 != -1) { - if(i1 != i2) { - return false; - } - } else { - return false; - } - } - } - - /** - * This method returns the content of a source object as String. - */ - private String sourceToString(Source s) throws Exception { - StringWriter sw = new StringWriter(); - Result r = new StreamResult(sw); - TransformerFactory.newInstance().newTransformer().transform(s, r); - sw.close(); - return sw.toString(); - } - - /** - * This class initializes with the width, height and pixel data of a java.awt.Image object. - */ - private static class ImageInfo { - private int h, w, pixels[]; - public ImageInfo(Image img) throws InterruptedException { - w = img.getWidth(null); - h = img.getHeight(null); - pixels = new int[w*h]; - PixelGrabber pg = new PixelGrabber(img, 0, 0, w, h, pixels, 0, w); - pg.grabPixels(); - } - - public boolean equals(Object that) { - if(that == null) { - return false; - } else if(!(that instanceof ImageInfo)) { - return false; - } - - ImageInfo that1 = (ImageInfo)that; - if(w != that1.w || h != that1.h || pixels == null || that1.pixels == null || pixels.length != that1.pixels.length) { - return false; - } - for(int i = 0; i < pixels.length; ++i) { - if(pixels[i] != that1.pixels[i]) { - return false; - } - } - return true; - } - - public String toString() { - return this.getClass().getSimpleName()+"[w = "+w+", h = "+h+", pixels = "+pixels+"]"; - } - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/pom.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/pom.xml deleted file mode 100644 index 784de8da24..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/pom.xml +++ /dev/null @@ -1,194 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> - -<!-- $Rev$ $Date$ --> - -<project> - <parent> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>itest-databindings</artifactId> - <version>1.5.1</version> - </parent> - - <modelVersion>4.0.0</modelVersion> - - <artifactId>itest-databindings-jaxb-top-down</artifactId> - <version>1.5.1</version> - <packaging>jar</packaging> - <name>Apache Tuscany SCA iTest Databinding - JAXB Top Down</name> - - <repositories> - <repository> - <snapshots> - <enabled>true</enabled> - </snapshots> - <id>java.net</id> - <name>java.net Maven 1.x Repository</name> - <url>http://download.java.net/maven/1</url> - <layout>legacy</layout> - </repository> - <repository> - <id>java.net2</id> - <name>java.net Maven 2.x Repository</name> - <url>http://download.java.net/maven/2</url> - </repository> - </repositories> - - <pluginRepositories> - <pluginRepository> - <id>java.net2</id> - <name>java.net Maven 2.x Repository</name> - <url>http://download.java.net/maven/2</url> - </pluginRepository> - </pluginRepositories> - - <dependencies> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-node-impl</artifactId> - <version>1.5.1</version> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-binding-ws-axis2</artifactId> - <version>1.5.1</version> - <scope>runtime</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-databinding-jaxb</artifactId> - <version>1.5.1</version> - <scope>runtime</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-databinding-sdo</artifactId> - <version>1.5.1</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-databinding-axiom</artifactId> - <version>1.5.1</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>itest-databindings-common</artifactId> - <version>1.5.1</version> - <scope>compile</scope> - </dependency> - <!-- dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-host-embedded</artifactId> - <version>1.5.1</version> - <scope>compile</scope> - </dependency--> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-implementation-java-runtime</artifactId> - <version>1.5.1</version> - <scope>runtime</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-interface-java-xml</artifactId> - <version>1.5.1</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-host-jetty</artifactId> - <version>1.5.1</version> - <scope>runtime</scope> - </dependency> - <dependency> - <groupId>javax.xml.bind</groupId> - <artifactId>jaxb-api</artifactId> - <version>2.1</version> - <scope>compile</scope> - </dependency> - - <dependency> - <groupId>com.sun.xml.ws</groupId> - <artifactId>jaxws-rt</artifactId> - <version>2.1.3</version> - </dependency> - <!-- Added by Simon Nash --> - <dependency> - <groupId>commons-collections</groupId> - <artifactId>commons-collections</artifactId> - <version>3.1</version> - </dependency> - <dependency> - <groupId>log4j</groupId> - <artifactId>log4j</artifactId> - <version>1.2.12</version> - <scope>provided</scope> - </dependency> - <!-- End of addition --> - - - </dependencies> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <configuration> - <argLine>-Djava.endorsed.dirs=target/endorsed</argLine> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-dependency-plugin</artifactId> - <executions> - <execution> - <id>copy</id> - <phase>generate-sources</phase> - <goals> - <goal>copy</goal> - </goals> - <configuration> - <artifactItems> - <artifactItem> - <groupId>javax.xml.ws</groupId> - <artifactId>jaxws-api</artifactId> - <version>2.1</version> - <type>jar</type> - </artifactItem> - <artifactItem> - <groupId>javax.xml.bind</groupId> - <artifactId>jaxb-api</artifactId> - <version>2.1</version> - <type>jar</type> - </artifactItem> - </artifactItems> - <outputDirectory>${project.build.directory}/endorsed</outputDirectory> - <overWriteReleases>false</overWriteReleases> - <overWriteSnapshots>true</overWriteSnapshots> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> -</project> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloService.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloService.java deleted file mode 100644 index 352f805c7d..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloService.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.itest.databindings.jaxb; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.osoa.sca.annotations.Remotable; - -/** - * The interface for HelloService. - * - * @version $Rev$ $Date$ - */ -@Remotable -public interface HelloService { - String getGreetings(String name); - String[] getGreetingsArray(String[] names); - List<String> getGreetingsList(List<String> names); - ArrayList<String> getGreetingsArrayList(ArrayList<String> names); - Map<String, String> getGreetingsMap(Map<String, String> namesMap); - HashMap<String, String> getGreetingsHashMap(HashMap<String, String> namesMap); - String getGreetingsVarArgs(String... names); -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceClient.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceClient.java deleted file mode 100644 index 7bd95cec95..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceClient.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - - -/** - * The interface for HelloServiceClient. - * - * @version $Rev$ $Date$ - */ -public interface HelloServiceClient { - String getGreetingsForward(String name); - String[] getGreetingsArrayForward(String[] names); - List<String> getGreetingsListForward(List<String> names); - ArrayList<String> getGreetingsArrayListForward(ArrayList<String> names); - Map<String, String> getGreetingsMapForward(Map<String, String> namesMap); - HashMap<String, String> getGreetingsHashMapForward(HashMap<String, String> namesMap); - String getGreetingsVarArgsForward(String... names); -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesService.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesService.java deleted file mode 100644 index 8c0fb24da9..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesService.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.itest.databindings.jaxb; - -import org.osoa.sca.annotations.Remotable; - -/** - * The interface for PrimitivesService. - * - * @version $Rev$ $Date$ - */ -@Remotable -public interface PrimitivesService { - boolean negateBoolean(boolean flag); - boolean[] negateBooleanArray(boolean[] flags); - boolean[] identityBooleanArray(boolean[] flags); - byte negateByte(byte b); - byte[] negateByteArray(byte[] ba); - byte[] identityByteArray(byte[] ba); - short negateShort(short s); - short[] negateShortArray(short[] s); - short[] identityShortArray(short[] sa); - int negateInt(int s); - int[] negateIntArray(int[] s); - int[] identityIntArray(int[] ia); - long negateLong(long l); - long[] negateLongArray(long[] la); - long[] identityLongArray(long[] la); - float negateFloat(float f); - float[] negateFloatArray(float[] fa); - float[] identityFloatArray(float[] fa); - double negateDouble(double d); - double[] negateDoubleArray(double[] da); - double[] identityDoubleArray(double[] da); -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesServiceClient.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesServiceClient.java deleted file mode 100644 index 3a5a81bae4..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesServiceClient.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb; - - -/** - * The interface for PrimitivesServiceClient. - * - * @version $Rev$ $Date$ - */ -public interface PrimitivesServiceClient { - boolean negateBooleanForward(boolean flag); - boolean[] negateBooleanArrayForward(boolean[] flags); - boolean passByValueBooleanArray(); - byte negateByteForward(byte b); - byte[] negateByteArrayForward(byte[] ba); - boolean passByValueByteArray(); - short negateShortForward(short s); - short[] negateShortArrayForward(short[] sa); - boolean passByValueShortArray(); - int negateIntForward(int i); - int[] negateIntArrayForward(int[] ia); - boolean passByValueIntArray(); - long negateLongForward(long l); - long[] negateLongArrayForward(long[] la); - boolean passByValueLongArray(); - float negateFloatForward(float f); - float[] negateFloatArrayForward(float[] fa); - boolean passByValueFloatArray(); - double negateDoubleForward(double d); - double[] negateDoubleArrayForward(double[] da); - boolean passByValueDoubleArray(); -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesService.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesService.java deleted file mode 100644 index 4be057fe68..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesService.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.itest.databindings.jaxb; - -import java.awt.Image; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.URI; -import java.util.Calendar; -import java.util.Date; -import java.util.UUID; - -import javax.activation.DataHandler; -import javax.xml.datatype.Duration; -import javax.xml.datatype.XMLGregorianCalendar; -import javax.xml.namespace.QName; -import javax.xml.transform.Source; - -import org.osoa.sca.annotations.Remotable; - - - -/** - * The interface for StandardTypesService. - * - * @version $Rev$ $Date$ - */ -@Remotable -public interface StandardTypesService { - BigInteger getNewBigInteger(BigInteger bi); - BigInteger[] getNewBigIntegerArray(BigInteger[] bia); - - BigDecimal getNewBigDecimal(BigDecimal bd); - BigDecimal[] getNewBigDecimalArray(BigDecimal[] bda); - - Calendar getNewCalendar(Calendar c); - Calendar[] getNewCalendarArray(Calendar[] ca); - - Date getNewDate(Date d); - Date[] getNewDateArray(Date[] da); - - QName getNewQName(QName qname); - QName[] getNewQNameArray(QName[] qnames); - - URI getNewURI(URI uri); - URI[] getNewURIArray(URI[] uris); - - XMLGregorianCalendar getNewXMLGregorianCalendar(XMLGregorianCalendar xgcal); - XMLGregorianCalendar[] getNewXMLGregorianCalendarArray(XMLGregorianCalendar[] xgcal); - - Duration getNewDuration(Duration d); - Duration[] getNewDurationArray(Duration[] da); - - Object getNewObject(Object obj); - Object[] getNewObjectArray(Object[] objs); - - Image getNewImage(Image img); - Image[] getNewImageArray(Image[] imgs); - - DataHandler getNewDataHandler(DataHandler dh); - DataHandler[] getNewDataHandlerArray(DataHandler[] dha); - - Source getNewSource(Source src); - Source[] getNewSourceArray(Source[] srcs); - - UUID getNewUUID(UUID uuid); - UUID[] getNewUUIDArray(UUID[] uuids); -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesServiceClient.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesServiceClient.java deleted file mode 100644 index 0c073cd054..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesServiceClient.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb; - -import java.awt.Image; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.URI; -import java.util.Calendar; -import java.util.Date; -import java.util.UUID; - -import javax.activation.DataHandler; -import javax.xml.datatype.Duration; -import javax.xml.datatype.XMLGregorianCalendar; -import javax.xml.namespace.QName; -import javax.xml.transform.Source; - - -/** - * The interface for StandardTypesServiceClient. - * - * @version $Rev$ $Date$ - */ -public interface StandardTypesServiceClient { - BigInteger getNewBigIntegerForward(BigInteger bi); - BigInteger[] getNewBigIntegerArrayForward(BigInteger[] bia); - - BigDecimal getNewBigDecimalForward(BigDecimal bd); - BigDecimal[] getNewBigDecimalArrayForward(BigDecimal[] bda); - - Calendar getNewCalendarForward(Calendar c); - Calendar[] getNewCalendarArrayForward(Calendar[] ca); - - Date getNewDateForward(Date d); - Date[] getNewDateArrayForward(Date[] da); - - QName getNewQNameForward(QName qname); - QName[] getNewQNameArrayForward(QName[] qnames); - - URI getNewURIForward(URI uri); - URI[] getNewURIArrayForward(URI[] uris); - - XMLGregorianCalendar getNewXMLGregorianCalendarForward(XMLGregorianCalendar xgcal); - XMLGregorianCalendar[] getNewXMLGregorianCalendarArrayForward(XMLGregorianCalendar[] xgcals); - - Duration getNewDurationForward(Duration d); - Duration[] getNewDurationArrayForward(Duration[] da); - - Object getNewObjectForward(Object obj); - Object[] getNewObjectArrayForward(Object[] objs); - - Image getNewImageForward(Image img); - Image[] getNewImageArrayForward(Image[] imgs); - - DataHandler getNewDataHandlerForward(DataHandler dh); - DataHandler[] getNewDataHandlerArrayForward(DataHandler[] dha); - - Source getNewSourceForward(Source src); - Source[] getNewSourceArrayForward(Source[] srcs); - - UUID getNewUUIDForward(UUID uuid); - UUID[] getNewUUIDArrayForward(UUID[] uuids); -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceClientImpl.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceClientImpl.java deleted file mode 100644 index c4026fdb9a..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceClientImpl.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.apache.tuscany.sca.itest.databindings.jaxb.HelloService; -import org.apache.tuscany.sca.itest.databindings.jaxb.HelloServiceClient; -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -/** - * An implementation of HelloServiceClient. - * The client forwards the request to the service component and returns the response from the service component. - */ -@Service(HelloServiceClient.class) -public class HelloServiceClientImpl { - - private HelloService service; - - @Reference - public void setHelloService(HelloService service) { - this.service = service; - } - - public String getGreetingsForward(String name) { - return service.getGreetings(name); - } - - public String[] getGreetingsArrayForward(String[] names) { - return service.getGreetingsArray(names); - } - - public List<String> getGreetingsListForward(List<String> names) { - return service.getGreetingsList(names); - } - - public Map<String, String> getGreetingsMapForward(Map<String, String> namesMap) { - return service.getGreetingsMap(namesMap); - } - - public ArrayList<String> getGreetingsArrayListForward(ArrayList<String> names) { - return service.getGreetingsArrayList(names); - } - - public HashMap<String, String> getGreetingsHashMapForward(HashMap<String, String> namesMap) { - return service.getGreetingsHashMap(namesMap); - } - - public String getGreetingsVarArgsForward(String... names) { - return service.getGreetingsVarArgs(names[0], names[1], names[2]); - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceImpl.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceImpl.java deleted file mode 100644 index fc2dc64b7d..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceImpl.java +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.apache.tuscany.sca.itest.databindings.jaxb.HelloService; -import org.osoa.sca.annotations.Service; - -/** - * An implementation of HelloService. - * - * @version $Rev$ $Date$ - */ -@Service(interfaces = {HelloService.class}) -public class HelloServiceImpl implements HelloService { - public String getGreetings(String name) { - return "Hello " + name; - } - - public String[] getGreetingsArray(String[] names) { - String[] resps = new String[names.length]; - for (int i = 0; i < names.length; ++i) { - resps[i] = "Hello " + names[i]; - } - return resps; - } - - public List<String> getGreetingsList(List<String> names) { - List<String> resps = new ArrayList<String>(); - for (int i = 0; i < names.size(); ++i) { - resps.add("Hello " + names.get(i)); - } - return resps; - } - - public ArrayList<String> getGreetingsArrayList(ArrayList<String> names) { - ArrayList<String> resps = new ArrayList<String>(); - for (int i = 0; i < names.size(); ++i) { - resps.add("Hello " + names.get(i)); - } - return resps; - } - - public Map<String, String> getGreetingsMap(Map<String, String> namesMap) { - for (Map.Entry<String, String> entry : namesMap.entrySet()) { - entry.setValue("Hello " + entry.getKey()); - } - return namesMap; - } - - public HashMap<String, String> getGreetingsHashMap(HashMap<String, String> namesMap) { - for (Map.Entry<String, String> entry : namesMap.entrySet()) { - entry.setValue("Hello " + entry.getKey()); - } - return namesMap; - } - - public String getGreetingsVarArgs(String... names) { - String resp = "Hello"; - for(int i = 0; i < names.length; ++i) { - resp += (" "+names[i]); - } - return resp; - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceClientImpl.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceClientImpl.java deleted file mode 100644 index ef1a907b29..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceClientImpl.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import org.apache.tuscany.sca.itest.databindings.jaxb.PrimitivesService; -import org.apache.tuscany.sca.itest.databindings.jaxb.PrimitivesServiceClient; -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -/** - * An implementation of PrimitivesServiceClient. - * The client forwards the request to the service component and returns the response from the service component. - * - * @version $Rev$ $Date$ - */ -@Service(PrimitivesServiceClient.class) -public class PrimitivesServiceClientImpl { - - private PrimitivesService service; - - @Reference - public void setPrimitivesService(PrimitivesService service) { - this.service = service; - } - public boolean negateBooleanForward(boolean flag) { - return service.negateBoolean(flag); - } - - public boolean[] negateBooleanArrayForward(boolean[] flags) { - return service.negateBooleanArray(flags); - } - - public boolean passByValueBooleanArray() { - boolean[] req = new boolean[2]; - boolean[] resp = service.identityBooleanArray(req); - return req != resp; - } - - public byte negateByteForward(byte b) { - return service.negateByte(b); - } - - public byte[] negateByteArrayForward(byte[] ba) { - return service.negateByteArray(ba); - } - - public boolean passByValueByteArray() { - byte[] req = new byte[2]; - byte[] resp = service.identityByteArray(req); - return req != resp; - } - - public short negateShortForward(short s) { - return service.negateShort(s); - } - - public short[] negateShortArrayForward(short[] s) { - return service.negateShortArray(s); - } - - public boolean passByValueShortArray() { - short[] req = new short[2]; - short[] resp = service.identityShortArray(req); - return req != resp; - } - - public int negateIntForward(int i) { - return service.negateInt(i); - } - - public int[] negateIntArrayForward(int[] ia) { - return service.negateIntArray(ia); - } - - public boolean passByValueIntArray() { - int[] req = new int[2]; - int[] resp = service.identityIntArray(req); - return req != resp; - } - - public long negateLongForward(long l) { - return service.negateLong(l); - } - - public long[] negateLongArrayForward(long[] la) { - return service.negateLongArray(la); - } - - public boolean passByValueLongArray() { - long[] req = new long[2]; - long[] resp = service.identityLongArray(req); - return req != resp; - } - - public float negateFloatForward(float f) { - return service.negateFloat(f); - } - - public float[] negateFloatArrayForward(float[] fa) { - return service.negateFloatArray(fa); - } - - public boolean passByValueFloatArray() { - float[] req = new float[2]; - float[] resp = service.identityFloatArray(req); - return req != resp; - } - - public double negateDoubleForward(double d) { - return service.negateDouble(d); - } - - public double[] negateDoubleArrayForward(double[] da) { - return service.negateDoubleArray(da); - } - - public boolean passByValueDoubleArray() { - double[] req = new double[2]; - double[] resp = service.identityDoubleArray(req); - return req != resp; - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceImpl.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceImpl.java deleted file mode 100644 index e60ae41767..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceImpl.java +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import org.apache.tuscany.sca.itest.databindings.jaxb.PrimitivesService; -import org.osoa.sca.annotations.Service; - -/** - * An implementation of PrimitivesService. - * - * @version $Rev$ $Date$ - */ -@Service(interfaces={PrimitivesService.class}) -public class PrimitivesServiceImpl implements PrimitivesService { - - public boolean negateBoolean(boolean flag) { - return !flag; - } - - public boolean[] negateBooleanArray(boolean[] flags) { - boolean[] resp = new boolean[flags.length]; - - for(int i = 0; i < flags.length; ++i) { - resp[i] = !flags[i]; - } - return resp; - } - - public boolean[] identityBooleanArray(boolean[] flags) { - return flags; - } - - public byte negateByte(byte b) { - return (byte)-b; - } - - public byte[] negateByteArray(byte[] ba) { - byte[] resp = new byte[ba.length]; - - for(int i = 0; i < ba.length; ++i) { - resp[i] = (byte)-ba[i]; - } - return resp; - } - - public byte[] identityByteArray(byte[] ba) { - return ba; - } - - public short negateShort(short s) { - return (short)-s; - } - - public short[] negateShortArray(short[] s) { - short[] resp = new short[s.length]; - - for(int i = 0; i < s.length; ++i) { - resp[i] = (short)-s[i]; - } - return resp; - } - - public short[] identityShortArray(short[] sa) { - return sa; - } - - public int negateInt(int i) { - return -i; - } - - public int[] negateIntArray(int[] ia) { - int[] resp = new int[ia.length]; - - for(int i = 0; i < ia.length; ++i) { - resp[i] = -ia[i]; - } - return resp; - } - - public int[] identityIntArray(int[] ia) { - return ia; - } - - public long negateLong(long l) { - return -l; - } - - public long[] negateLongArray(long[] la) { - long[] resp = new long[la.length]; - - for(int i = 0; i < la.length; ++i) { - resp[i] = -la[i]; - } - return resp; - } - - public long[] identityLongArray(long[] la) { - return la; - } - - public float negateFloat(float f) { - return -f; - } - - public float[] negateFloatArray(float[] fa) { - float[] resp = new float[fa.length]; - - for(int i = 0; i < fa.length; ++i) { - resp[i] = -fa[i]; - } - return resp; - } - - public float[] identityFloatArray(float[] fa) { - return fa; - } - - public double negateDouble(double d) { - return -d; - } - - public double[] negateDoubleArray(double[] da) { - double[] resp = new double[da.length]; - - for(int i = 0; i < da.length; ++i) { - resp[i] = -da[i]; - } - return resp; - } - - public double[] identityDoubleArray(double[] da) { - return da; - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceClientImpl.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceClientImpl.java deleted file mode 100644 index 8803eb262a..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceClientImpl.java +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import java.awt.Image; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.URI; -import java.util.Calendar; -import java.util.Date; -import java.util.UUID; - -import javax.activation.DataHandler; -import javax.xml.datatype.Duration; -import javax.xml.datatype.XMLGregorianCalendar; -import javax.xml.namespace.QName; -import javax.xml.transform.Source; - -import org.apache.tuscany.sca.itest.databindings.jaxb.StandardTypesService; -import org.apache.tuscany.sca.itest.databindings.jaxb.StandardTypesServiceClient; -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -/** - * An implementation of StandardTypesServiceClient. - * The client forwards the request to the service component and returns the response from the service component. - * - * @version $Rev$ $Date$ - */ -@Service(StandardTypesServiceClient.class) -public class StandardTypesServiceClientImpl implements StandardTypesServiceClient{ - - private StandardTypesService service; - - @Reference - public void setStandardTypesService(StandardTypesService service) { - this.service = service; - } - - public BigInteger getNewBigIntegerForward(BigInteger bi) { - return service.getNewBigInteger(bi); - } - - public BigInteger[] getNewBigIntegerArrayForward(BigInteger[] bia) { - return service.getNewBigIntegerArray(bia); - } - - public BigDecimal getNewBigDecimalForward(BigDecimal bd) { - return service.getNewBigDecimal(bd); - } - - public BigDecimal[] getNewBigDecimalArrayForward(BigDecimal[] bda) { - return service.getNewBigDecimalArray(bda); - } - public Calendar getNewCalendarForward(Calendar c) { - return service.getNewCalendar(c); - } - public Calendar[] getNewCalendarArrayForward(Calendar[] ca) { - return service.getNewCalendarArray(ca); - } - - public Date getNewDateForward(Date d) { - return service.getNewDate(d); - } - - public Date[] getNewDateArrayForward(Date[] da) { - return service.getNewDateArray(da); - } - - public QName getNewQNameForward(QName qname) { - return service.getNewQName(qname); - } - - public QName[] getNewQNameArrayForward(QName[] qnames) { - return service.getNewQNameArray(qnames); - } - - public URI getNewURIForward(URI uri) { - return service.getNewURI(uri); - } - - public URI[] getNewURIArrayForward(URI[] uris) { - return service.getNewURIArray(uris); - } - - public XMLGregorianCalendar getNewXMLGregorianCalendarForward(XMLGregorianCalendar xgcal) { - return service.getNewXMLGregorianCalendar(xgcal); - } - - public XMLGregorianCalendar[] getNewXMLGregorianCalendarArrayForward(XMLGregorianCalendar[] xgcals) { - return service.getNewXMLGregorianCalendarArray(xgcals); - } - - public Duration getNewDurationForward(Duration d) { - return service.getNewDuration(d); - } - - public Duration[] getNewDurationArrayForward(Duration[] da) { - return service.getNewDurationArray(da); - } - - public Object getNewObjectForward(Object obj) { - return service.getNewObject(obj); - } - - public Object[] getNewObjectArrayForward(Object[] objs) { - return service.getNewObjectArray(objs); - } - - public Image getNewImageForward(Image img) { - return service.getNewImage(img); - } - - public Image[] getNewImageArrayForward(Image[] imgs) { - return service.getNewImageArray(imgs); - } - - public DataHandler getNewDataHandlerForward(DataHandler dh) { - return service.getNewDataHandler(dh); - } - - public DataHandler[] getNewDataHandlerArrayForward(DataHandler[] dha) { - return service.getNewDataHandlerArray(dha); - } - - - public Source getNewSourceForward(Source src) { - return service.getNewSource(src); - } - - public Source[] getNewSourceArrayForward(Source[] srcs) { - return service.getNewSourceArray(srcs); - } - - public UUID getNewUUIDForward(UUID uuid) { - return service.getNewUUID(uuid); - } - - public UUID[] getNewUUIDArrayForward(UUID[] uuids) { - return service.getNewUUIDArray(uuids); - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceImpl.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceImpl.java deleted file mode 100644 index 46569311ff..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceImpl.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import java.awt.Image; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.URI; -import java.util.Calendar; -import java.util.Date; -import java.util.UUID; - -import javax.activation.DataHandler; -import javax.xml.datatype.Duration; -import javax.xml.datatype.XMLGregorianCalendar; -import javax.xml.namespace.QName; -import javax.xml.transform.Source; - -import org.apache.tuscany.sca.itest.databindings.jaxb.StandardTypesService; -import org.osoa.sca.annotations.Service; - -/** - * An implementation of StandardTypesService. - * - * @version $Rev$ $Date$ - */ -@Service(interfaces={StandardTypesService.class}) -public class StandardTypesServiceImpl implements StandardTypesService { - public BigInteger getNewBigInteger(BigInteger bi) { - return bi.negate(); - } - - public BigInteger[] getNewBigIntegerArray(BigInteger[] bia) { - BigInteger[] resp = new BigInteger[bia.length]; - for(int i = 0; i < bia.length; ++i) { - resp[i] = bia[i].negate(); - } - return resp; - } - - public BigDecimal getNewBigDecimal(BigDecimal bd) { - return bd.negate(); - } - - public BigDecimal[] getNewBigDecimalArray(BigDecimal[] bda) { - BigDecimal[] resp = new BigDecimal[bda.length]; - for(int i = 0; i < bda.length; ++i) { - resp[i] = bda[i].negate(); - } - return resp; - } - - public Calendar getNewCalendar(Calendar c) { - Calendar resp = (Calendar)c.clone(); - resp.add(Calendar.DAY_OF_MONTH, 5); - return resp; - } - - public Calendar[] getNewCalendarArray(Calendar[] ca) { - Calendar[] resp = new Calendar[ca.length]; - for(int i = 0; i < ca.length; ++i) { - resp[i] = getNewCalendar(ca[i]); - } - return resp; - } - - public Date getNewDate(Date d) { - return new Date(d.getTime() + 5*24*60*60*1000); - } - - public Date[] getNewDateArray(Date[] da) { - Date[] resp = new Date[da.length]; - for(int i = 0; i < da.length; ++i) { - resp[i] = getNewDate(da[i]); - } - return resp; - } - - public QName getNewQName(QName qname) { - return new QName(qname.getNamespaceURI()+"q", qname.getLocalPart()+"q", qname.getPrefix()+"q"); - - } - - public QName[] getNewQNameArray(QName[] qnames) { - QName[] resp = new QName[qnames.length]; - for(int i = 0; i < qnames.length; ++i) { - resp[i] = getNewQName(qnames[i]); - } - return resp; - } - - public URI getNewURI(URI uri) { - return uri.resolve("uri"); - } - - public URI[] getNewURIArray(URI[] uris) { - URI[] resp = new URI[uris.length]; - for(int i = 0; i < uris.length; ++i) { - resp[i] = getNewURI(uris[i]); - } - return resp; - } - - public XMLGregorianCalendar getNewXMLGregorianCalendar(XMLGregorianCalendar xgcal) { - xgcal = (XMLGregorianCalendar)xgcal.clone(); - xgcal.setDay(xgcal.getDay()+5); - return xgcal; - } - - public XMLGregorianCalendar[] getNewXMLGregorianCalendarArray(XMLGregorianCalendar[] xgcals) { - XMLGregorianCalendar[] resp = new XMLGregorianCalendar[xgcals.length]; - for(int i = 0; i < xgcals.length; ++i) { - resp[i] = getNewXMLGregorianCalendar(xgcals[i]); - } - return resp; - } - - public Duration getNewDuration(Duration d) { - return d.negate(); - } - - public Duration[] getNewDurationArray(Duration[] da) { - Duration[] resp = new Duration[da.length]; - for(int i = 0; i < da.length; ++i) { - resp[i] = da[i].negate(); - } - return resp; - } - - public Object getNewObject(Object obj) { - return StandardTypesTransformer.getNewObject(obj); - } - - public Object[] getNewObjectArray(Object[] objs) { - Object[] resp = new Object[objs.length]; - for(int i = 0; i < objs.length; ++i) { - resp[i] = getNewObject(objs[i]); - } - return resp; - } - - public Image getNewImage(Image img) { - return StandardTypesTransformer.getNewImage(img); - } - - public Image[] getNewImageArray(Image[] imgs) { - Image[] resp = new Image[imgs.length]; - for(int i = 0; i < imgs.length; ++i) { - resp[i] = getNewImage(imgs[i]); - } - return resp; - } - - public DataHandler getNewDataHandler(DataHandler dh) { - // FIXME: transform the input - return dh; - } - - public DataHandler[] getNewDataHandlerArray(DataHandler[] dha) { - DataHandler[] resp = new DataHandler[dha.length]; - for(int i = 0; i < dha.length; ++i) { - resp[i] = dha[i]; - } - return resp; - } - - public Source getNewSource(Source src) { - return StandardTypesTransformer.getNewSource(src); - } - - public Source[] getNewSourceArray(Source[] srcs) { - Source[] resp = new Source[srcs.length]; - for(int i = 0; i < srcs.length; ++i) { - resp[i] = getNewSource(srcs[i]); - } - return resp; - } - - public UUID getNewUUID(UUID uuid) { - return UUID.fromString(uuid.toString()+"AAA"); - } - - public UUID[] getNewUUIDArray(UUID[] uuids) { - UUID[] resp = new UUID[uuids.length]; - for(int i = 0; i < uuids.length; ++i) { - resp[i] = getNewUUID(uuids[i]); - } - return resp; - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesTransformer.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesTransformer.java deleted file mode 100644 index 9d851455da..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesTransformer.java +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import java.awt.Image; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.CharArrayReader; -import java.io.CharArrayWriter; -import java.io.IOException; -import java.io.InputStream; -import java.io.Reader; - -import javax.xml.transform.Source; -import javax.xml.transform.dom.DOMSource; -import javax.xml.transform.sax.SAXSource; -import javax.xml.transform.stream.StreamSource; - -import org.xml.sax.InputSource; - -/** - * StandardTypesTransformer class that provide for transforming input provided to StandardTypesService methods. - * - * @version $Rev$ $Date$ - */ -public class StandardTypesTransformer { - - public static Object getNewObject(Object obj) { - if(obj instanceof String) { - return "Hello "+obj; - } else if(obj instanceof Integer) { - return new Integer(-((Integer)obj).intValue()); - } else if(obj instanceof Double) { - return new Double(-((Double)obj).doubleValue()); - } - - return obj; - } - - /** - * Returns a copy of the source object if the input is DOMSource, SAXSource or StreamSource. - * Returns the input object as is for other types. - */ - public static Source getNewSource(Source src) { - Source ret = null; - if(src instanceof DOMSource) { - DOMSource dsrc = (DOMSource)src; - ret = new DOMSource(dsrc.getNode() != null ? dsrc.getNode().cloneNode(true) : null); - } else if(src instanceof SAXSource) { - SAXSource ssrc = (SAXSource)src; - if(ssrc.getInputSource().getByteStream() != null) { - InputStream inp = ssrc.getInputSource().getByteStream(); - ByteArrayOutputStream bout = new ByteArrayOutputStream(); - int b; - try { - while((b = inp.read()) != -1) { - bout.write(b); - } - } catch (IOException ignored) { - } - try { bout.close();} catch (IOException ignored) {} - try { inp.reset();} catch (IOException ignored) {} - ret = new SAXSource(new InputSource(new ByteArrayInputStream(bout.toByteArray()))); - } else if(ssrc.getInputSource().getCharacterStream() != null) { - Reader rdr = ssrc.getInputSource().getCharacterStream(); - CharArrayWriter caw = new CharArrayWriter(); - try { - int c; - while((c = rdr.read()) != -1) { - caw.append((char)c); - } - } catch (IOException ignored) { - } - caw.close(); - try{ rdr.reset();} catch(IOException ignored) {} - ret = new SAXSource(new InputSource(new CharArrayReader(caw.toCharArray()))); - } else { - ret = new SAXSource(); - } - } else if(src instanceof StreamSource) { - StreamSource ssrc = (StreamSource)src; - if(ssrc.getInputStream() != null) { - InputStream inp = ssrc.getInputStream(); - ByteArrayOutputStream bout = new ByteArrayOutputStream(); - int b; - try { - while((b = inp.read()) != -1) { - bout.write(b); - } - } catch (IOException ignored) { - } - try { bout.close();} catch (IOException ignored) {} - try { inp.reset();} catch (IOException ignored) {} - ret = new StreamSource(new ByteArrayInputStream(bout.toByteArray())); - } else if(ssrc.getReader() != null) { - Reader rdr = ssrc.getReader(); - CharArrayWriter caw = new CharArrayWriter(); - try { - int c; - while((c = rdr.read()) != -1) { - caw.append((char)c); - } - } catch (IOException ignored) { - } - caw.close(); - try{ rdr.reset();} catch(IOException ignored) {} - ret = new StreamSource(new CharArrayReader(caw.toCharArray())); - } else { - ret = new StreamSource(); - } - } - - if(ret != null) { - ret.setSystemId(src.getSystemId()); - } else { - ret = src; - } - return ret; - } - - public static Image getNewImage(Image arg) { - arg.getGraphics().drawOval(2, 2, 7, 7); - return arg; - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/hello-service.wsdl b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/hello-service.wsdl deleted file mode 100644 index 926e4154aa..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/hello-service.wsdl +++ /dev/null @@ -1,371 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> - -<!-- $Rev$ $Date$ --> - -<wsdl:definitions name="HelloService" - targetNamespace="http://jaxb.databindings.itest.sca.tuscany.apache.org/" - xmlns:tns="http://jaxb.databindings.itest.sca.tuscany.apache.org/" - xmlns:soap11="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> - <wsdl:types> - <xs:schema targetNamespace="http://util.java/" - version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema"> - <xs:complexType name="arrayList"> - <xs:complexContent> - <xs:extension base="abstractList"> - <xs:sequence /> - </xs:extension> - </xs:complexContent> - </xs:complexType> - <xs:complexType abstract="true" name="abstractList"> - <xs:complexContent> - <xs:extension base="abstractCollection"> - <xs:sequence /> - </xs:extension> - </xs:complexContent> - </xs:complexType> - <xs:complexType abstract="true" name="abstractCollection"> - <xs:sequence /> - </xs:complexType> - <xs:complexType name="hashMap"> - <xs:complexContent> - <xs:extension base="abstractMap"> - <xs:sequence /> - </xs:extension> - </xs:complexContent> - </xs:complexType> - <xs:complexType abstract="true" name="abstractMap"> - <xs:sequence /> - </xs:complexType> - </xs:schema> - <xs:schema targetNamespace="http://jaxb.dev.java.net/array" - version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema"> - <xs:complexType final="#all" name="stringArray"> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="item" nillable="true" type="xs:string" /> - </xs:sequence> - </xs:complexType> - </xs:schema> - <xs:schema attributeFormDefault="qualified" - elementFormDefault="unqualified" - targetNamespace="http://jaxb.databindings.itest.sca.tuscany.apache.org/" - xmlns:ns0="http://util.java/" - xmlns:xs="http://www.w3.org/2001/XMLSchema"> - <xs:element name="getGreetings"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="arg0" - nillable="true" type="xs:string" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getGreetingsResponse"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="return" - nillable="true" type="xs:string" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getGreetingsArray"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="arg0" nillable="true" type="xs:string" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getGreetingsArrayResponse"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="return" nillable="true" type="xs:string" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getGreetingsList"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="arg0" - nillable="true" type="xs:anyType" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getGreetingsListResponse"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="return" - nillable="true" type="xs:anyType" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getGreetingsArrayList"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="arg0" - nillable="true" type="ns0:arrayList" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getGreetingsArrayListResponse"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="return" - nillable="true" type="ns0:arrayList" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getGreetingsMap"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="arg0" - nillable="true" type="xs:anyType" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getGreetingsMapResponse"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="return" - nillable="true" type="xs:anyType" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getGreetingsHashMap"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="arg0" - nillable="true" type="ns0:hashMap" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getGreetingsHashMapResponse"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="return" - nillable="true" type="ns0:hashMap" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getGreetingsVarArgs"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="arg0" nillable="true" type="xs:string" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getGreetingsVarArgsResponse"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="return" - nillable="true" type="xs:string" /> - </xs:sequence> - </xs:complexType> - </xs:element> - </xs:schema> - </wsdl:types> - <wsdl:message name="getGreetings"> - <wsdl:part name="getGreetings" element="tns:getGreetings"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getGreetingsResponse"> - <wsdl:part name="getGreetingsResponse" - element="tns:getGreetingsResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getGreetingsArray"> - <wsdl:part name="getGreetingsArray" - element="tns:getGreetingsArray"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getGreetingsArrayResponse"> - <wsdl:part name="getGreetingsArrayResponse" - element="tns:getGreetingsArrayResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getGreetingsList"> - <wsdl:part name="getGreetingsList" - element="tns:getGreetingsList"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getGreetingsListResponse"> - <wsdl:part name="getGreetingsListResponse" - element="tns:getGreetingsListResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getGreetingsArrayList"> - <wsdl:part name="getGreetingsArrayList" - element="tns:getGreetingsArrayList"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getGreetingsArrayListResponse"> - <wsdl:part name="getGreetingsArrayListResponse" - element="tns:getGreetingsArrayListResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getGreetingsMap"> - <wsdl:part name="getGreetingsMap" - element="tns:getGreetingsMap"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getGreetingsMapResponse"> - <wsdl:part name="getGreetingsMapResponse" - element="tns:getGreetingsMapResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getGreetingsHashMap"> - <wsdl:part name="getGreetingsHashMap" - element="tns:getGreetingsHashMap"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getGreetingsHashMapResponse"> - <wsdl:part name="getGreetingsHashMapResponse" - element="tns:getGreetingsHashMapResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getGreetingsVarArgs"> - <wsdl:part name="getGreetingsVarArgs" - element="tns:getGreetingsVarArgs"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getGreetingsVarArgsResponse"> - <wsdl:part name="getGreetingsVarArgsResponse" - element="tns:getGreetingsVarArgsResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:portType name="HelloService"> - <wsdl:operation name="getGreetings"> - <wsdl:input message="tns:getGreetings"></wsdl:input> - <wsdl:output message="tns:getGreetingsResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getGreetingsArray"> - <wsdl:input message="tns:getGreetingsArray"></wsdl:input> - <wsdl:output message="tns:getGreetingsArrayResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getGreetingsList"> - <wsdl:input message="tns:getGreetingsList"></wsdl:input> - <wsdl:output message="tns:getGreetingsListResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getGreetingsArrayList"> - <wsdl:input message="tns:getGreetingsArrayList"> - </wsdl:input> - <wsdl:output message="tns:getGreetingsArrayListResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getGreetingsMap"> - <wsdl:input message="tns:getGreetingsMap"> - </wsdl:input> - <wsdl:output message="tns:getGreetingsMapResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getGreetingsHashMap"> - <wsdl:input message="tns:getGreetingsHashMap"></wsdl:input> - <wsdl:output message="tns:getGreetingsHashMapResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getGreetingsVarArgs"> - <wsdl:input message="tns:getGreetingsVarArgs"> - </wsdl:input> - <wsdl:output message="tns:getGreetingsVarArgsResponse"> - </wsdl:output> - </wsdl:operation> - </wsdl:portType> - <wsdl:binding name="HelloServiceBinding" type="tns:HelloService"> - <soap11:binding style="document" - transport="http://schemas.xmlsoap.org/soap/http" /> - <wsdl:operation name="getGreetings"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getGreetingsArray"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getGreetingsList"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getGreetingsArrayList"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getGreetingsMap"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getGreetingsHashMap"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getGreetingsVarArgs"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - </wsdl:binding> - <wsdl:service name="HelloServiceService"> - <wsdl:port name="HelloServicePort" - binding="tns:HelloServiceBinding"> - <soap11:address location="http://localhost:8085/hs-ep" /> - </wsdl:port> - </wsdl:service> -</wsdl:definitions> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/helloservice.composite b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/helloservice.composite deleted file mode 100644 index afde4b7de9..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/helloservice.composite +++ /dev/null @@ -1,80 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> - -<!-- $Rev$ $Date$ --> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance" - targetNamespace="http://jaxb.databindings.itest.sca.tuscany.apache.org/" - name="HelloService"> - - <!-- Clients to test the service --> - <!-- A HelloServiceClient component that uses WS binding to invoke HelloService service. - The service component uses interface.wsdl on the service element. - This client component uses interface.wsdl on the reference element. --> - <component name="HelloServiceClientW2WComponent"> - <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.HelloServiceClientImpl" /> - <reference name="helloService"> - <interface.wsdl interface="http://jaxb.databindings.itest.sca.tuscany.apache.org/#wsdl.interface(HelloService)"/> - <binding.ws uri="http://localhost:8085/hs-ep-w" requires="MTOM"/> - </reference> - </component> - - <!-- A HelloServiceClient component that uses WS binding to invoke HelloService service. - The service component uses interface.wsdl on the service element. - This client component uses interface.java on the reference element. --> - <component name="HelloServiceClientJ2WComponent"> - <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.HelloServiceClientImpl" /> - <reference name="helloService"> - <interface.java interface="org.apache.tuscany.sca.itest.databindings.jaxb.HelloService"/> - <binding.ws uri="http://localhost:8085/hs-ep-w" requires="MTOM"/> - </reference> - </component> - - <!-- A HelloServiceClient component that uses WS binding to invoke HelloService service. - The service component uses interface.wsdl on the service element. - This client component uses interface.java on the reference element. --> - <component name="HelloServiceClientW2JComponent"> - <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.HelloServiceClientImpl" /> - <reference name="helloService"> - <interface.wsdl interface="http://jaxb.databindings.itest.sca.tuscany.apache.org/#wsdl.interface(HelloService)"/> - <binding.ws uri="http://localhost:8085/hs-ep-j" requires="MTOM"/> - </reference> - </component> - - <!-- Components used to implement the services --> - <!-- A HelloService component that uses interface.wsdl --> - <component name="HelloServiceWSDLComponent"> - <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.HelloServiceImpl"/> - <service name="HelloService"> - <interface.wsdl interface="http://jaxb.databindings.itest.sca.tuscany.apache.org/#wsdl.interface(HelloService)"/> - <binding.ws uri="http://localhost:8085/hs-ep-w" requires="MTOM"/> - </service> - </component> - - <!-- A HelloService component that uses interface.java --> - <component name="HelloServiceJavaComponent"> - <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.HelloServiceImpl"/> - <service name="HelloService"> - <interface.java interface="org.apache.tuscany.sca.itest.databindings.jaxb.HelloService"/> - <binding.ws uri="http://localhost:8085/hs-ep-j" requires="MTOM"/> - </service> - </component> -</composite> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/primitives-service.wsdl b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/primitives-service.wsdl deleted file mode 100644 index f366783e5e..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/primitives-service.wsdl +++ /dev/null @@ -1,927 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> - -<!-- $Rev$ $Date$ --> - -<wsdl:definitions name="PrimitivesService" - targetNamespace="http://jaxb.databindings.itest.sca.tuscany.apache.org/" - xmlns:tns="http://jaxb.databindings.itest.sca.tuscany.apache.org/" - xmlns:soap11="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> - <wsdl:types> - <xs:schema targetNamespace="http://jaxb.dev.java.net/array" - version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema"> - <xs:complexType final="#all" name="shortArray"> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="item" nillable="true" type="xs:short" /> - </xs:sequence> - </xs:complexType> - <xs:complexType final="#all" name="intArray"> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="item" nillable="true" type="xs:int" /> - </xs:sequence> - </xs:complexType> - <xs:complexType final="#all" name="floatArray"> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="item" nillable="true" type="xs:float" /> - </xs:sequence> - </xs:complexType> - <xs:complexType final="#all" name="doubleArray"> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="item" nillable="true" type="xs:double" /> - </xs:sequence> - </xs:complexType> - <xs:complexType final="#all" name="longArray"> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="item" nillable="true" type="xs:long" /> - </xs:sequence> - </xs:complexType> - <xs:complexType final="#all" name="booleanArray"> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="item" nillable="true" type="xs:boolean" /> - </xs:sequence> - </xs:complexType> - </xs:schema> - <xs:schema attributeFormDefault="qualified" - elementFormDefault="unqualified" - targetNamespace="http://jaxb.databindings.itest.sca.tuscany.apache.org/" - xmlns:xs="http://www.w3.org/2001/XMLSchema"> - <xs:element name="negateLongArrayResponse"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="return" nillable="true" type="xs:long" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="identityByteArrayResponse"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="return" - nillable="true" type="xs:base64Binary" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="negateDoubleArray"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="arg0" nillable="true" type="xs:double" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="identityFloatArray"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="arg0" nillable="true" type="xs:float" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="negateLong"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="arg0" - type="xs:long" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="identityIntArray"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="arg0" nillable="true" type="xs:int" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="negateIntResponse"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="return" - type="xs:int" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="negateLongArray"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="arg0" nillable="true" type="xs:long" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="negateInt"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="arg0" - type="xs:int" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="negateFloatArrayResponse"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="return" nillable="true" type="xs:float" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="identityDoubleArrayResponse"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="return" nillable="true" type="xs:double" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="negateDouble"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="arg0" - type="xs:double" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="identityByteArray"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="arg0" - nillable="true" type="xs:base64Binary" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="negateByte"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="arg0" - type="xs:byte" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="identityLongArrayResponse"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="return" nillable="true" type="xs:long" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="negateDoubleResponse"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="return" - type="xs:double" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="identityFloatArrayResponse"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="return" nillable="true" type="xs:float" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="negateFloat"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="arg0" - type="xs:float" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="negateShortArrayResponse"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="return" nillable="true" type="xs:short" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="negateByteArrayResponse"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="return" - nillable="true" type="xs:base64Binary" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="negateLongResponse"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="return" - type="xs:long" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="negateShortArray"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="arg0" nillable="true" type="xs:short" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="negateFloatArray"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="arg0" nillable="true" type="xs:float" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="negateBoolean"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="arg0" - type="xs:boolean" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="negateShort"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="arg0" - type="xs:short" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="negateByteArray"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="arg0" - nillable="true" type="xs:base64Binary" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="identityBooleanArray"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="arg0" nillable="true" type="xs:boolean" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="identityShortArrayResponse"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="return" nillable="true" type="xs:short" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="negateBooleanResponse"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="return" - type="xs:boolean" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="negateFloatResponse"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="return" - type="xs:float" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="identityBooleanArrayResponse"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="return" nillable="true" type="xs:boolean" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="negateBooleanArray"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="arg0" nillable="true" type="xs:boolean" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="negateDoubleArrayResponse"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="return" nillable="true" type="xs:double" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="identityDoubleArray"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="arg0" nillable="true" type="xs:double" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="negateIntArrayResponse"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="return" nillable="true" type="xs:int" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="identityIntArrayResponse"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="return" nillable="true" type="xs:int" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="negateByteResponse"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="return" - type="xs:byte" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="negateBooleanArrayResponse"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="return" nillable="true" type="xs:boolean" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="negateShortResponse"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="return" - type="xs:short" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="negateIntArray"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="arg0" nillable="true" type="xs:int" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="identityShortArray"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="arg0" nillable="true" type="xs:short" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="identityLongArray"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="arg0" nillable="true" type="xs:long" /> - </xs:sequence> - </xs:complexType> - </xs:element> - </xs:schema> - </wsdl:types> - - <wsdl:message name="negateLongArrayResponse"> - <wsdl:part name="negateLongArrayResponse" - element="tns:negateLongArrayResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="identityByteArrayResponse"> - <wsdl:part name="identityByteArrayResponse" - element="tns:identityByteArrayResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="negateDoubleArray"> - <wsdl:part name="negateDoubleArray" - element="tns:negateDoubleArray"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="identityFloatArray"> - <wsdl:part name="identityFloatArray" - element="tns:identityFloatArray"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="negateLong"> - <wsdl:part name="negateLong" element="tns:negateLong"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="identityIntArray"> - <wsdl:part name="identityIntArray" - element="tns:identityIntArray"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="negateIntResponse"> - <wsdl:part name="negateIntResponse" - element="tns:negateIntResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="negateLongArray"> - <wsdl:part name="negateLongArray" - element="tns:negateLongArray"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="negateInt"> - <wsdl:part name="negateInt" element="tns:negateInt"></wsdl:part> - </wsdl:message> - - <wsdl:message name="negateFloatArrayResponse"> - <wsdl:part name="negateFloatArrayResponse" - element="tns:negateFloatArrayResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="identityDoubleArrayResponse"> - <wsdl:part name="identityDoubleArrayResponse" - element="tns:identityDoubleArrayResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="negateDouble"> - <wsdl:part name="negateDouble" element="tns:negateDouble"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="identityByteArray"> - <wsdl:part name="identityByteArray" - element="tns:identityByteArray"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="negateByte"> - <wsdl:part name="negateByte" element="tns:negateByte"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="identityLongArrayResponse"> - <wsdl:part name="identityLongArrayResponse" - element="tns:identityLongArrayResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="negateDoubleResponse"> - <wsdl:part name="negateDoubleResponse" - element="tns:negateDoubleResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="identityFloatArrayResponse"> - <wsdl:part name="identityFloatArrayResponse" - element="tns:identityFloatArrayResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="negateFloat"> - <wsdl:part name="negateFloat" element="tns:negateFloat"> - </wsdl:part> - </wsdl:message> - - <wsdl:message name="negateShortArrayResponse"> - <wsdl:part name="negateShortArrayResponse" - element="tns:negateShortArrayResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="negateByteArrayResponse"> - <wsdl:part name="negateByteArrayResponse" - element="tns:negateByteArrayResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="negateLongResponse"> - <wsdl:part name="negateLongResponse" - element="tns:negateLongResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="negateShortArray"> - <wsdl:part name="negateShortArray" - element="tns:negateShortArray"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="negateFloatArray"> - <wsdl:part name="negateFloatArray" - element="tns:negateFloatArray"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="negateBoolean"> - <wsdl:part name="negateBoolean" element="tns:negateBoolean"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="negateShort"> - <wsdl:part name="negateShort" element="tns:negateShort"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="negateByteArray"> - <wsdl:part name="negateByteArray" - element="tns:negateByteArray"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="identityBooleanArray"> - <wsdl:part name="identityBooleanArray" - element="tns:identityBooleanArray"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="identityShortArrayResponse"> - <wsdl:part name="identityShortArrayResponse" - element="tns:identityShortArrayResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="negateBooleanResponse"> - <wsdl:part name="negateBooleanResponse" - element="tns:negateBooleanResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="negateFloatResponse"> - <wsdl:part name="negateFloatResponse" - element="tns:negateFloatResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="identityBooleanArrayResponse"> - <wsdl:part name="identityBooleanArrayResponse" - element="tns:identityBooleanArrayResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="negateBooleanArray"> - <wsdl:part name="negateBooleanArray" - element="tns:negateBooleanArray"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="negateDoubleArrayResponse"> - <wsdl:part name="negateDoubleArrayResponse" - element="tns:negateDoubleArrayResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="identityDoubleArray"> - <wsdl:part name="identityDoubleArray" - element="tns:identityDoubleArray"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="negateIntArrayResponse"> - <wsdl:part name="negateIntArrayResponse" - element="tns:negateIntArrayResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="identityIntArrayResponse"> - <wsdl:part name="identityIntArrayResponse" - element="tns:identityIntArrayResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="negateByteResponse"> - <wsdl:part name="negateByteResponse" - element="tns:negateByteResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="negateBooleanArrayResponse"> - <wsdl:part name="negateBooleanArrayResponse" - element="tns:negateBooleanArrayResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="negateShortResponse"> - <wsdl:part name="negateShortResponse" - element="tns:negateShortResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="negateIntArray"> - <wsdl:part name="negateIntArray" element="tns:negateIntArray"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="identityShortArray"> - <wsdl:part name="identityShortArray" - element="tns:identityShortArray"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="identityLongArray"> - <wsdl:part name="identityLongArray" - element="tns:identityLongArray"> - </wsdl:part> - </wsdl:message> - <wsdl:portType name="PrimitivesService"> - <wsdl:operation name="negateBoolean"> - <wsdl:input message="tns:negateBoolean"> - </wsdl:input> - <wsdl:output message="tns:negateBooleanResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="negateBooleanArray"> - <wsdl:input message="tns:negateBooleanArray"></wsdl:input> - <wsdl:output message="tns:negateBooleanArrayResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="identityBooleanArray"> - <wsdl:input message="tns:identityBooleanArray"></wsdl:input> - <wsdl:output message="tns:identityBooleanArrayResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="negateByte"> - <wsdl:input message="tns:negateByte"> - </wsdl:input> - <wsdl:output message="tns:negateByteResponse"></wsdl:output> - </wsdl:operation> - <wsdl:operation name="negateByteArray"> - <wsdl:input message="tns:negateByteArray"></wsdl:input> - <wsdl:output message="tns:negateByteArrayResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="identityByteArray"> - <wsdl:input message="tns:identityByteArray"></wsdl:input> - <wsdl:output message="tns:identityByteArrayResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="negateShort"> - <wsdl:input message="tns:negateShort"> - </wsdl:input> - <wsdl:output message="tns:negateShortResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="negateShortArray"> - <wsdl:input message="tns:negateShortArray"></wsdl:input> - <wsdl:output message="tns:negateShortArrayResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="identityShortArray"> - <wsdl:input message="tns:identityShortArray"></wsdl:input> - <wsdl:output message="tns:identityShortArrayResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="negateInt"> - <wsdl:input message="tns:negateInt"> - </wsdl:input> - <wsdl:output message="tns:negateIntResponse"></wsdl:output> - </wsdl:operation> - <wsdl:operation name="negateIntArray"> - <wsdl:input message="tns:negateIntArray"></wsdl:input> - <wsdl:output message="tns:negateIntArrayResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="identityIntArray"> - <wsdl:input message="tns:identityIntArray"></wsdl:input> - <wsdl:output message="tns:identityIntArrayResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="negateLong"> - <wsdl:input message="tns:negateLong"> - </wsdl:input> - <wsdl:output message="tns:negateLongResponse"></wsdl:output> - </wsdl:operation> - <wsdl:operation name="negateLongArray"> - <wsdl:input message="tns:negateLongArray"></wsdl:input> - <wsdl:output message="tns:negateLongArrayResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="identityLongArray"> - <wsdl:input message="tns:identityLongArray"></wsdl:input> - <wsdl:output message="tns:identityLongArrayResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="negateFloat"> - <wsdl:input message="tns:negateFloat"> - </wsdl:input> - <wsdl:output message="tns:negateFloatResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="negateFloatArray"> - <wsdl:input message="tns:negateFloatArray"></wsdl:input> - <wsdl:output message="tns:negateFloatArrayResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="identityFloatArray"> - <wsdl:input message="tns:identityFloatArray"></wsdl:input> - <wsdl:output message="tns:identityFloatArrayResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="negateDouble"> - <wsdl:input message="tns:negateDouble"> - </wsdl:input> - <wsdl:output message="tns:negateDoubleResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="negateDoubleArray"> - <wsdl:input message="tns:negateDoubleArray"></wsdl:input> - <wsdl:output message="tns:negateDoubleArrayResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="identityDoubleArray"> - <wsdl:input message="tns:identityDoubleArray"></wsdl:input> - <wsdl:output message="tns:identityDoubleArrayResponse"> - </wsdl:output> - </wsdl:operation> - </wsdl:portType> - <wsdl:binding name="PrimitivesServiceBinding" - type="tns:PrimitivesService"> - <soap11:binding style="document" - transport="http://schemas.xmlsoap.org/soap/http" /> - <wsdl:operation name="negateBoolean"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="negateBooleanArray"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="identityBooleanArray"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="negateByte"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="negateByteArray"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="identityByteArray"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="negateShort"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="negateShortArray"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="identityShortArray"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="negateInt"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="negateIntArray"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="identityIntArray"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="negateLong"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="negateLongArray"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="identityLongArray"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="negateFloat"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="negateFloatArray"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="identityFloatArray"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="negateDouble"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="negateDoubleArray"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="identityDoubleArray"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - </wsdl:binding> - <wsdl:service name="PrimitivesServiceService"> - <wsdl:port name="PrimitivesServicePort" - binding="tns:PrimitivesServiceBinding"> - <soap11:address location="http://localhost:8085/ps-ep" /> - </wsdl:port> - </wsdl:service> -</wsdl:definitions> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/primitivesservice.composite b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/primitivesservice.composite deleted file mode 100644 index f218419f45..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/primitivesservice.composite +++ /dev/null @@ -1,80 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> - -<!-- $Rev$ $Date$ --> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - targetNamespace="http://jaxb.databindings.itest.sca.tuscany.apache.org/" - xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance" - name="PrimitivesService"> - - <!-- Clients to test the service --> - <!-- A PrimitivesServiceClient component that uses WS binding to invoke PrimitivesService. - The service component uses interface.wsdl on the service element. - This client component uses interface.wsdl on the reference element. --> - <component name="PrimitivesServiceClientW2WComponent"> - <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.PrimitivesServiceClientImpl" /> - <reference name="primitivesService"> - <interface.wsdl interface="http://jaxb.databindings.itest.sca.tuscany.apache.org/#wsdl.interface(PrimitivesService)"/> - <binding.ws uri="http://localhost:8085/ps-ep-w" requires="MTOM"/> - </reference> - </component> - - <!-- A PrimitivesServiceClient component that uses WS binding to invoke PrimitivesService. - The service component uses interface.wsdl on the service element. - This client component uses interface.java on the reference element. --> - <component name="PrimitivesServiceClientJ2WComponent"> - <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.PrimitivesServiceClientImpl" /> - <reference name="primitivesService"> - <interface.java interface="org.apache.tuscany.sca.itest.databindings.jaxb.PrimitivesService"/> - <binding.ws uri="http://localhost:8085/ps-ep-w" requires="MTOM"/> - </reference> - </component> - - <!-- A PrimitivesServiceClient component that uses WS binding to invoke PrimitivesService. - The service component uses interface.java on the service element. - This client component uses interface.wsdl on the reference element. --> - <component name="PrimitivesServiceClientW2JComponent"> - <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.PrimitivesServiceClientImpl" /> - <reference name="primitivesService"> - <interface.wsdl interface="http://jaxb.databindings.itest.sca.tuscany.apache.org/#wsdl.interface(PrimitivesService)"/> - <binding.ws uri="http://localhost:8085/ps-ep-j" requires="MTOM"/> - </reference> - </component> - - <!-- Components used to implement the services --> - <!-- A PrimitivesService component that uses interface.java --> - <component name="PrimitivesServiceJavaComponent"> - <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.PrimitivesServiceImpl"/> - <service name="PrimitivesService"> - <interface.java interface="org.apache.tuscany.sca.itest.databindings.jaxb.PrimitivesService"/> - <binding.ws uri="http://localhost:8085/ps-ep-j" requires="MTOM"/> - </service> - </component> - - <!-- A PrimitivesService component that uses interface.wsdl --> - <component name="PrimitivesServiceWSDLComponent"> - <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.PrimitivesServiceImpl"/> - <service name="PrimitivesService"> - <interface.wsdl interface="http://jaxb.databindings.itest.sca.tuscany.apache.org/#wsdl.interface(PrimitivesService)"/> - <binding.ws uri="http://localhost:8085/ps-ep-w" requires="MTOM"/> - </service> - </component> -</composite> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/standard-types-service.composite b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/standard-types-service.composite deleted file mode 100644 index 59e30dc801..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/standard-types-service.composite +++ /dev/null @@ -1,80 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> - -<!-- $Rev$ $Date$ --> - -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - targetNamespace="http://jaxb.databindings.itest.sca.tuscany.apache.org/" - xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance" - name="StandardTypesService"> - - <!-- Clients to test the service --> - <!-- A StandardTypesServiceClient component that uses WS binding to invoke StandardTypesService. - The service component uses interface.wsdl on the service element. - This client component uses interface.wsdl on the reference element. --> - <component name="StandardTypesServiceClientW2WComponent"> - <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.StandardTypesServiceClientImpl" /> - <reference name="standardTypesService"> - <interface.wsdl interface="http://jaxb.databindings.itest.sca.tuscany.apache.org/#wsdl.interface(StandardTypesService)"/> - <binding.ws uri="http://localhost:8085/sts-ep-w" requires="MTOM"/> - </reference> - </component> - - <!-- A StandardTypesServiceClient component that uses WS binding to invoke StandardTypesService. - The service component uses interface.wsdl on the service element. - This client component uses interface.java on the reference element. --> - <component name="StandardTypesServiceClientJ2WComponent"> - <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.StandardTypesServiceClientImpl" /> - <reference name="standardTypesService"> - <interface.java interface="org.apache.tuscany.sca.itest.databindings.jaxb.StandardTypesService"/> - <binding.ws uri="http://localhost:8085/sts-ep-w" requires="MTOM"/> - </reference> - </component> - - <!-- A StandardTypesServiceClient component that uses WS binding to invoke StandardTypesService. - The service component uses interface.java on the service element. - This client component uses interface.wsdl on the reference element. --> - <component name="StandardTypesServiceClientW2JComponent"> - <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.StandardTypesServiceClientImpl" /> - <reference name="standardTypesService"> - <interface.wsdl interface="http://jaxb.databindings.itest.sca.tuscany.apache.org/#wsdl.interface(StandardTypesService)"/> - <binding.ws uri="http://localhost:8085/sts-ep-j" requires="MTOM"/> - </reference> - </component> - - <!-- Components used to implement the services --> - <!-- A StandardTypesService component. --> - <component name="StandardTypesServiceJavaComponent"> - <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.StandardTypesServiceImpl"/> - <service name="StandardTypesService"> - <interface.java interface="org.apache.tuscany.sca.itest.databindings.jaxb.StandardTypesService"/> - <binding.ws uri="http://localhost:8085/sts-ep-j" requires="MTOM"/> - </service> - </component> - - <!-- A StandardTypesService component. --> - <component name="StandardTypesServiceWSDLComponent"> - <implementation.java class="org.apache.tuscany.sca.itest.databindings.jaxb.impl.StandardTypesServiceImpl"/> - <service name="StandardTypesService"> - <interface.wsdl interface="http://jaxb.databindings.itest.sca.tuscany.apache.org/#wsdl.interface(StandardTypesService)"/> - <binding.ws uri="http://localhost:8085/sts-ep-w" requires="MTOM"/> - </service> - </component> -</composite> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/standard-types-service.wsdl b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/standard-types-service.wsdl deleted file mode 100644 index 5bfd1ea277..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/standard-types-service.wsdl +++ /dev/null @@ -1,1155 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> - -<!-- $Rev$ $Date$ --> - -<wsdl:definitions name="StandardTypesService" - targetNamespace="http://jaxb.databindings.itest.sca.tuscany.apache.org/" - xmlns:tns="http://jaxb.databindings.itest.sca.tuscany.apache.org/" - xmlns:soap11="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> - <wsdl:types> - <xs:schema targetNamespace="http://jaxb.dev.java.net/array" - version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema"> - <xs:complexType final="#all" name="anyTypeArray"> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="item" nillable="true" type="xs:anyType" /> - </xs:sequence> - </xs:complexType> - <xs:complexType final="#all" name="base64BinaryArray"> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="item" nillable="true" type="xs:base64Binary" /> - </xs:sequence> - </xs:complexType> - </xs:schema> - <xs:schema targetNamespace="http://jaxb.dev.java.net/array" - version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema"> - <xs:complexType final="#all" name="dateTimeArray"> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="item" nillable="true" type="xs:dateTime" /> - </xs:sequence> - </xs:complexType> - <xs:complexType final="#all" name="durationArray"> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="item" nillable="true" type="xs:duration" /> - </xs:sequence> - </xs:complexType> - <xs:complexType final="#all" name="integerArray"> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="item" nillable="true" type="xs:integer" /> - </xs:sequence> - </xs:complexType> - <xs:complexType final="#all" name="anySimpleTypeArray"> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="item" nillable="true" type="xs:anySimpleType" /> - </xs:sequence> - </xs:complexType> - <xs:complexType final="#all" name="QNameArray"> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="item" nillable="true" type="xs:QName" /> - </xs:sequence> - </xs:complexType> - <xs:complexType final="#all" name="decimalArray"> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="item" nillable="true" type="xs:decimal" /> - </xs:sequence> - </xs:complexType> - - <xs:complexType final="#all" name="base64BinaryArray"> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="item" nillable="true" type="xs:base64Binary" /> - </xs:sequence> - </xs:complexType> - <xs:complexType final="#all" name="stringArray"> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="item" nillable="true" type="xs:string" /> - </xs:sequence> - </xs:complexType> - </xs:schema> - <xs:schema attributeFormDefault="qualified" - elementFormDefault="unqualified" - targetNamespace="http://jaxb.databindings.itest.sca.tuscany.apache.org/" - xmlns:ns0="http://activation.javax/" - xmlns:xs="http://www.w3.org/2001/XMLSchema"> - <xs:element name="getNewBigDecimalArray"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="arg0" nillable="true" type="xs:decimal" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewImageArrayResponse"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="return" nillable="true" type="xs:base64Binary" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewBigDecimal"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="arg0" - nillable="true" type="xs:decimal" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewURIArray"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="arg0" nillable="true" type="xs:string" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewObjectArray"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="arg0" nillable="true" type="xs:anyType" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewDataHandler"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="arg0" - nillable="true" type="xs:base64Binary" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewDateResponse"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="return" - nillable="true" type="xs:dateTime" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewBigInteger"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="arg0" - nillable="true" type="xs:integer" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewDateArrayResponse"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="return" nillable="true" type="xs:dateTime" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewBigIntegerArray"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="arg0" nillable="true" type="xs:integer" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewQNameArrayResponse"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="return" nillable="true" type="xs:QName" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewURIResponse"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="return" - nillable="true" type="xs:string" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewUUIDArrayResponse"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="return" nillable="true" type="xs:string" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewCalendarArrayResponse"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="return" nillable="true" type="xs:dateTime" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewXMLGregorianCalendarArray"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="arg0" nillable="true" type="xs:anySimpleType" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewCalendarResponse"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="return" - nillable="true" type="xs:dateTime" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewCalendar"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="arg0" - nillable="true" type="xs:dateTime" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewCalendarArray"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="arg0" nillable="true" type="xs:dateTime" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewImageArray"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="arg0" nillable="true" type="xs:base64Binary" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewObjectResponse"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="return" - nillable="true" type="xs:anyType" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewDurationArray"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="arg0" nillable="true" type="xs:duration" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element - name="getNewXMLGregorianCalendarArrayResponse"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="return" nillable="true" type="xs:anySimpleType" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewSource"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="arg0" - nillable="true" type="xs:base64Binary" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewObjectArrayResponse"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="return" nillable="true" type="xs:anyType" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewUUIDResponse"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="return" - nillable="true" type="xs:string" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewBigIntegerResponse"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="return" - nillable="true" type="xs:integer" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewQNameArray"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="arg0" nillable="true" type="xs:QName" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewUUIDArray"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="arg0" nillable="true" type="xs:string" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewBigDecimalResponse"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="return" - nillable="true" type="xs:decimal" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewDateArray"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="arg0" nillable="true" type="xs:dateTime" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewURIArrayResponse"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="return" nillable="true" type="xs:string" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewDurationArrayResponse"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="return" nillable="true" type="xs:duration" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewObject"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="arg0" - nillable="true" type="xs:anyType" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewDataHandlerResponse"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="return" - nillable="true" type="xs:base64Binary" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewQName"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="arg0" - nillable="true" type="xs:QName" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewDate"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="arg0" - nillable="true" type="xs:dateTime" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewUUID"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="arg0" - nillable="true" type="xs:string" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewXMLGregorianCalendarResponse"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="return" - nillable="true" type="xs:anySimpleType" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewBigIntegerArrayResponse"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="return" nillable="true" type="xs:integer" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewSourceArray"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="arg0" nillable="true" type="xs:base64Binary" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewImage"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="arg0" - nillable="true" type="xs:base64Binary" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewSourceArrayResponse"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="return" nillable="true" type="xs:base64Binary" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewXMLGregorianCalendar"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="arg0" - nillable="true" type="xs:anySimpleType" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewQNameResponse"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="return" - nillable="true" type="xs:QName" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewDataHandlerArrayResponse"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="return" nillable="true" type="xs:base64Binary" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewBigDecimalArrayResponse"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="return" nillable="true" type="xs:decimal" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewDuration"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="arg0" - nillable="true" type="xs:duration" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewDataHandlerArray"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" minOccurs="0" - name="arg0" nillable="true" type="xs:base64Binary" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewImageResponse"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="return" - nillable="true" type="xs:base64Binary" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewSourceResponse"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="return" - nillable="true" type="xs:base64Binary" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewDurationResponse"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="return" - nillable="true" type="xs:duration" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="getNewURI"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" name="arg0" - nillable="true" type="xs:string" /> - </xs:sequence> - </xs:complexType> - </xs:element> - </xs:schema> - </wsdl:types> - <wsdl:message name="getNewBigDecimalArray"> - <wsdl:part name="getNewBigDecimalArray" - element="tns:getNewBigDecimalArray"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewImageArrayResponse"> - - <wsdl:part name="getNewImageArrayResponse" - element="tns:getNewImageArrayResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewBigDecimal"> - <wsdl:part name="getNewBigDecimal" - element="tns:getNewBigDecimal"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewURIArray"> - <wsdl:part name="getNewURIArray" element="tns:getNewURIArray"> - - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewObjectArray"> - <wsdl:part name="getNewObjectArray" - element="tns:getNewObjectArray"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewDataHandler"> - <wsdl:part name="getNewDataHandler" - element="tns:getNewDataHandler"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewDateResponse"> - <wsdl:part name="getNewDateResponse" - element="tns:getNewDateResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewBigInteger"> - <wsdl:part name="getNewBigInteger" - element="tns:getNewBigInteger"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewDateArrayResponse"> - <wsdl:part name="getNewDateArrayResponse" - element="tns:getNewDateArrayResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewBigIntegerArray"> - <wsdl:part name="getNewBigIntegerArray" - element="tns:getNewBigIntegerArray"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewQNameArrayResponse"> - <wsdl:part name="getNewQNameArrayResponse" - element="tns:getNewQNameArrayResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewURIResponse"> - <wsdl:part name="getNewURIResponse" - element="tns:getNewURIResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewUUIDArrayResponse"> - <wsdl:part name="getNewUUIDArrayResponse" - element="tns:getNewUUIDArrayResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewCalendarArrayResponse"> - <wsdl:part name="getNewCalendarArrayResponse" - element="tns:getNewCalendarArrayResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewXMLGregorianCalendarArray"> - <wsdl:part name="getNewXMLGregorianCalendarArray" - element="tns:getNewXMLGregorianCalendarArray"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewCalendarResponse"> - <wsdl:part name="getNewCalendarResponse" - element="tns:getNewCalendarResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewCalendar"> - <wsdl:part name="getNewCalendar" element="tns:getNewCalendar"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewCalendarArray"> - <wsdl:part name="getNewCalendarArray" - element="tns:getNewCalendarArray"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewImageArray"> - <wsdl:part name="getNewImageArray" - element="tns:getNewImageArray"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewObjectResponse"> - <wsdl:part name="getNewObjectResponse" - element="tns:getNewObjectResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewDurationArray"> - <wsdl:part name="getNewDurationArray" - element="tns:getNewDurationArray"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewXMLGregorianCalendarArrayResponse"> - <wsdl:part name="getNewXMLGregorianCalendarArrayResponse" - element="tns:getNewXMLGregorianCalendarArrayResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewSource"> - <wsdl:part name="getNewSource" element="tns:getNewSource"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewObjectArrayResponse"> - <wsdl:part name="getNewObjectArrayResponse" - element="tns:getNewObjectArrayResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewUUIDResponse"> - <wsdl:part name="getNewUUIDResponse" - element="tns:getNewUUIDResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewBigIntegerResponse"> - <wsdl:part name="getNewBigIntegerResponse" - element="tns:getNewBigIntegerResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewQNameArray"> - <wsdl:part name="getNewQNameArray" - element="tns:getNewQNameArray"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewUUIDArray"> - <wsdl:part name="getNewUUIDArray" - element="tns:getNewUUIDArray"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewBigDecimalResponse"> - <wsdl:part name="getNewBigDecimalResponse" - element="tns:getNewBigDecimalResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewDateArray"> - <wsdl:part name="getNewDateArray" - element="tns:getNewDateArray"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewURIArrayResponse"> - <wsdl:part name="getNewURIArrayResponse" - element="tns:getNewURIArrayResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewDurationArrayResponse"> - <wsdl:part name="getNewDurationArrayResponse" - element="tns:getNewDurationArrayResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewObject"> - <wsdl:part name="getNewObject" element="tns:getNewObject"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewDataHandlerResponse"> - <wsdl:part name="getNewDataHandlerResponse" - element="tns:getNewDataHandlerResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewQName"> - <wsdl:part name="getNewQName" element="tns:getNewQName"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewDate"> - <wsdl:part name="getNewDate" element="tns:getNewDate"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewUUID"> - <wsdl:part name="getNewUUID" element="tns:getNewUUID"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewXMLGregorianCalendarResponse"> - <wsdl:part name="getNewXMLGregorianCalendarResponse" - element="tns:getNewXMLGregorianCalendarResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewBigIntegerArrayResponse"> - <wsdl:part name="getNewBigIntegerArrayResponse" - element="tns:getNewBigIntegerArrayResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewSourceArray"> - <wsdl:part name="getNewSourceArray" - element="tns:getNewSourceArray"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewImage"> - <wsdl:part name="getNewImage" element="tns:getNewImage"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewSourceArrayResponse"> - <wsdl:part name="getNewSourceArrayResponse" - element="tns:getNewSourceArrayResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewXMLGregorianCalendar"> - <wsdl:part name="getNewXMLGregorianCalendar" - element="tns:getNewXMLGregorianCalendar"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewQNameResponse"> - <wsdl:part name="getNewQNameResponse" - element="tns:getNewQNameResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewDataHandlerArrayResponse"> - <wsdl:part name="getNewDataHandlerArrayResponse" - element="tns:getNewDataHandlerArrayResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewBigDecimalArrayResponse"> - <wsdl:part name="getNewBigDecimalArrayResponse" - element="tns:getNewBigDecimalArrayResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewDuration"> - <wsdl:part name="getNewDuration" element="tns:getNewDuration"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewDataHandlerArray"> - <wsdl:part name="getNewDataHandlerArray" - element="tns:getNewDataHandlerArray"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewImageResponse"> - <wsdl:part name="getNewImageResponse" - element="tns:getNewImageResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewSourceResponse"> - <wsdl:part name="getNewSourceResponse" - element="tns:getNewSourceResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewDurationResponse"> - <wsdl:part name="getNewDurationResponse" - element="tns:getNewDurationResponse"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="getNewURI"> - <wsdl:part name="getNewURI" element="tns:getNewURI"></wsdl:part> - </wsdl:message> - <wsdl:portType name="StandardTypesService"> - <wsdl:operation name="getNewObject"> - <wsdl:input message="tns:getNewObject"></wsdl:input> - <wsdl:output message="tns:getNewObjectResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewImage"> - <wsdl:input message="tns:getNewImage"></wsdl:input> - <wsdl:output message="tns:getNewImageResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewSource"> - <wsdl:input message="tns:getNewSource"></wsdl:input> - <wsdl:output message="tns:getNewSourceResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewBigInteger"> - <wsdl:input message="tns:getNewBigInteger"></wsdl:input> - <wsdl:output message="tns:getNewBigIntegerResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewBigIntegerArray"> - <wsdl:input message="tns:getNewBigIntegerArray"> - </wsdl:input> - <wsdl:output message="tns:getNewBigIntegerArrayResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewBigDecimal"> - <wsdl:input message="tns:getNewBigDecimal"></wsdl:input> - <wsdl:output message="tns:getNewBigDecimalResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewBigDecimalArray"> - <wsdl:input message="tns:getNewBigDecimalArray"> - </wsdl:input> - <wsdl:output message="tns:getNewBigDecimalArrayResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewCalendar"> - <wsdl:input message="tns:getNewCalendar"></wsdl:input> - <wsdl:output message="tns:getNewCalendarResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewCalendarArray"> - <wsdl:input message="tns:getNewCalendarArray"></wsdl:input> - <wsdl:output message="tns:getNewCalendarArrayResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewDate"> - <wsdl:input message="tns:getNewDate"></wsdl:input> - <wsdl:output message="tns:getNewDateResponse"></wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewDateArray"> - <wsdl:input message="tns:getNewDateArray"></wsdl:input> - <wsdl:output message="tns:getNewDateArrayResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewQName"> - <wsdl:input message="tns:getNewQName"></wsdl:input> - <wsdl:output message="tns:getNewQNameResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewQNameArray"> - <wsdl:input message="tns:getNewQNameArray"></wsdl:input> - <wsdl:output message="tns:getNewQNameArrayResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewURI"> - <wsdl:input message="tns:getNewURI"></wsdl:input> - <wsdl:output message="tns:getNewURIResponse"></wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewURIArray"> - <wsdl:input message="tns:getNewURIArray"></wsdl:input> - <wsdl:output message="tns:getNewURIArrayResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewXMLGregorianCalendar"> - <wsdl:input message="tns:getNewXMLGregorianCalendar"> - </wsdl:input> - <wsdl:output - message="tns:getNewXMLGregorianCalendarResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewXMLGregorianCalendarArray"> - <wsdl:input message="tns:getNewXMLGregorianCalendarArray"> - </wsdl:input> - <wsdl:output - message="tns:getNewXMLGregorianCalendarArrayResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewDuration"> - <wsdl:input message="tns:getNewDuration"></wsdl:input> - <wsdl:output message="tns:getNewDurationResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewDurationArray"> - <wsdl:input message="tns:getNewDurationArray"></wsdl:input> - <wsdl:output message="tns:getNewDurationArrayResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewObjectArray"> - <wsdl:input message="tns:getNewObjectArray"></wsdl:input> - <wsdl:output message="tns:getNewObjectArrayResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewImageArray"> - <wsdl:input message="tns:getNewImageArray"></wsdl:input> - <wsdl:output message="tns:getNewImageArrayResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewDataHandler"> - <wsdl:input message="tns:getNewDataHandler"></wsdl:input> - <wsdl:output message="tns:getNewDataHandlerResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewDataHandlerArray"> - <wsdl:input message="tns:getNewDataHandlerArray"> - </wsdl:input> - <wsdl:output message="tns:getNewDataHandlerArrayResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewSourceArray"> - <wsdl:input message="tns:getNewSourceArray"></wsdl:input> - <wsdl:output message="tns:getNewSourceArrayResponse"> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewUUID"> - <wsdl:input message="tns:getNewUUID"></wsdl:input> - <wsdl:output message="tns:getNewUUIDResponse"></wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewUUIDArray"> - <wsdl:input message="tns:getNewUUIDArray"></wsdl:input> - <wsdl:output message="tns:getNewUUIDArrayResponse"> - </wsdl:output> - </wsdl:operation> - - </wsdl:portType> - <wsdl:binding name="StandardTypesServiceBinding" - type="tns:StandardTypesService"> - <soap11:binding style="document" - transport="http://schemas.xmlsoap.org/soap/http" /> - <wsdl:operation name="getNewObject"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewImage"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewSource"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewBigInteger"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewBigIntegerArray"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewBigDecimal"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewBigDecimalArray"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewCalendar"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewCalendarArray"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewDate"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewDateArray"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewQName"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewQNameArray"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewURI"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewURIArray"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewXMLGregorianCalendar"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewXMLGregorianCalendarArray"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewDuration"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewDurationArray"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewObjectArray"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewImageArray"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewDataHandler"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewDataHandlerArray"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewSourceArray"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewUUID"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="getNewUUIDArray"> - <soap11:operation /> - <wsdl:input> - <soap11:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap11:body use="literal" /> - </wsdl:output> - </wsdl:operation> - </wsdl:binding> - <wsdl:service name="StandardTypesServiceService"> - <wsdl:port name="StandardTypesServicePort" - binding="tns:StandardTypesServiceBinding"> - <soap11:address location="http://localhost:8085/sts-ep"/> - </wsdl:port> - </wsdl:service> -</wsdl:definitions> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/DatabindingTestCase.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/DatabindingTestCase.java deleted file mode 100644 index 7bb63fff1e..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/DatabindingTestCase.java +++ /dev/null @@ -1,347 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb.topdown; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.itest.databindings.jaxb.HelloServiceClient; -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; -import org.junit.Ignore; - -/** - * @version $Rev$ $Date$ - */ -public class DatabindingTestCase { - - private static SCAClient client; - private static SCANode node; - - /** - * Runs once before running the tests - */ - @BeforeClass - public static void setUp() throws Exception { - try { - SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); - node = nodeFactory.createSCANodeFromClassLoader("wsdl/wrapped/helloservice.composite", null); - node.start(); - client = (SCAClient)node; - }catch(Throwable e) { - e.printStackTrace(); - } - } - - /** - * Runs once after running the tests - */ - @AfterClass - public static void tearDown() { - node.stop(); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetings. - */ - @Test - public void testW2W() throws Exception { - HelloServiceClient helloServiceClient = client.getService(HelloServiceClient.class, "HelloServiceClientW2WComponent"); - performTest(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsArray. - */ - @Test - public void testW2WArray() throws Exception { - HelloServiceClient helloServiceClient = client.getService(HelloServiceClient.class, "HelloServiceClientW2WComponent"); - performTestArray(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsList. - */ - @Test - public void testW2WList() throws Exception { - HelloServiceClient helloServiceClient = client.getService(HelloServiceClient.class, "HelloServiceClientW2WComponent"); - performTestList(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsArrayList. - */ - @Test - public void testW2WArrayList() throws Exception { - HelloServiceClient helloServiceClient = client.getService(HelloServiceClient.class, "HelloServiceClientW2WComponent"); - performTestArrayList(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsMap. - */ - @Test - public void testW2WMap() throws Exception { - HelloServiceClient helloServiceClient = client.getService(HelloServiceClient.class, "HelloServiceClientW2WComponent"); - performTestMap(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsHashMap. - */ - @Test - public void testW2WHashMap() throws Exception { - HelloServiceClient helloServiceClient = client.getService(HelloServiceClient.class, "HelloServiceClientW2WComponent"); - performTestHashMap(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsVarArgs. - */ - @Test - public void testW2WVarArgs() throws Exception { - HelloServiceClient helloServiceClient = client.getService(HelloServiceClient.class, "HelloServiceClientW2WComponent"); - performTestVarArgs(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetings. - */ - @Test - public void testJ2W() throws Exception { - HelloServiceClient helloServiceClient = client.getService(HelloServiceClient.class, "HelloServiceClientJ2WComponent"); - performTest(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsArray. - */ - @Test - public void testJ2WArray() throws Exception { - HelloServiceClient helloServiceClient = client.getService(HelloServiceClient.class, "HelloServiceClientJ2WComponent"); - performTestArray(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsList. - */ - @Test - public void testJ2WList() throws Exception { - HelloServiceClient helloServiceClient = client.getService(HelloServiceClient.class, "HelloServiceClientJ2WComponent"); - performTestList(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsArrayList. - */ - @Test - public void testJ2WArrayList() throws Exception { - HelloServiceClient helloServiceClient = client.getService(HelloServiceClient.class, "HelloServiceClientJ2WComponent"); - performTestArrayList(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsMap. - */ - @Test - public void testJ2WMap() throws Exception { - HelloServiceClient helloServiceClient = client.getService(HelloServiceClient.class, "HelloServiceClientJ2WComponent"); - performTestMap(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsHashMap. - */ - @Test - public void testJ2WHashMap() throws Exception { - HelloServiceClient helloServiceClient = client.getService(HelloServiceClient.class, "HelloServiceClientJ2WComponent"); - performTestHashMap(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsVarArgs. - */ - @Test - public void testJ2WVarArgs() throws Exception { - HelloServiceClient helloServiceClient = client.getService(HelloServiceClient.class, "HelloServiceClientJ2WComponent"); - performTestVarArgs(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetings. - */ - @Test - public void testW2J() throws Exception { - HelloServiceClient helloServiceClient = client.getService(HelloServiceClient.class, "HelloServiceClientW2JComponent"); - performTest(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsArray. - */ - @Test - public void testW2JArray() throws Exception { - HelloServiceClient helloServiceClient = client.getService(HelloServiceClient.class, "HelloServiceClientW2JComponent"); - performTestArray(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsList. - */ - @Test - public void testW2JList() throws Exception { - HelloServiceClient helloServiceClient = client.getService(HelloServiceClient.class, "HelloServiceClientW2JComponent"); - performTestList(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsArrayList. - */ - @Test - public void testW2JArrayList() throws Exception { - HelloServiceClient helloServiceClient = client.getService(HelloServiceClient.class, "HelloServiceClientW2JComponent"); - performTestArrayList(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsMap. - */ - @Test - public void testW2JMap() throws Exception { - HelloServiceClient helloServiceClient = client.getService(HelloServiceClient.class, "HelloServiceClientW2JComponent"); - performTestMap(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsHashMap. - */ - @Test - public void testW2JHashMap() throws Exception { - HelloServiceClient helloServiceClient = client.getService(HelloServiceClient.class, "HelloServiceClientW2JComponent"); - performTestHashMap(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsVarArgs. - */ - @Test - public void testW2JVarArgs() throws Exception { - HelloServiceClient helloServiceClient = client.getService(HelloServiceClient.class, "HelloServiceClientW2JComponent"); - performTestVarArgs(helloServiceClient); - } - - private void performTest(HelloServiceClient helloServiceClient) { - String name = "Pandu"; - String resp = helloServiceClient.getGreetingsForward(name); - Assert.assertEquals("Hello "+name, resp); - } - - private void performTestArray(HelloServiceClient helloServiceClient) { - String[] names = {"Me", "Pandu"}; - String[] resps = helloServiceClient.getGreetingsArrayForward(names); - for(int i = 0; i < names.length; ++i) { - Assert.assertEquals("Hello "+names[i], resps[i]); - } - } - - private void performTestList(HelloServiceClient helloServiceClient) { - List<String> namesList = new ArrayList<String>(); - namesList.add("Me"); - namesList.add("Pandu"); - namesList.add("Chinnipandu"); - List<String> respList = helloServiceClient.getGreetingsListForward(namesList); - Assert.assertEquals(namesList.size(), respList.size()); - for(int i = 0; i < namesList.size(); ++i) { - Assert.assertEquals("Hello "+namesList.get(i), respList.get(i)); - } - } - - private void performTestArrayList(HelloServiceClient helloServiceClient) { - ArrayList<String> namesList = new ArrayList<String>(); - namesList.add("Me"); - namesList.add("Pandu"); - namesList.add("Chinnipandu"); - ArrayList<String> respList = helloServiceClient.getGreetingsArrayListForward(namesList); - Assert.assertEquals(namesList.size(), respList.size()); - for(int i = 0; i < namesList.size(); ++i) { - Assert.assertEquals("Hello "+namesList.get(i), respList.get(i)); - } - } - - private void performTestMap(HelloServiceClient helloServiceClient) { - Map<String, String> namesMap = new HashMap<String, String>(); - namesMap.put("Me", null); - namesMap.put("Pandu", null); - namesMap.put("Chinnipandu", null); - Map<String, String> respMap = helloServiceClient.getGreetingsMapForward(namesMap); - Assert.assertEquals(namesMap.keySet().size(), respMap.keySet().size()); - for(Map.Entry<String, String> entry: namesMap.entrySet()) { - Assert.assertEquals("Hello "+entry.getKey(), respMap.get(entry.getKey())); - } - } - - private void performTestHashMap(HelloServiceClient helloServiceClient) { - HashMap<String, String> namesMap = new HashMap<String, String>(); - namesMap.put("Me", null); - namesMap.put("Pandu", null); - namesMap.put("Chinnipandu", null); - Map<String, String> respMap = helloServiceClient.getGreetingsHashMapForward(namesMap); - Assert.assertEquals(namesMap.keySet().size(), respMap.keySet().size()); - for(Map.Entry<String, String> entry: namesMap.entrySet()) { - Assert.assertEquals("Hello "+entry.getKey(), respMap.get(entry.getKey())); - } - } - - private void performTestVarArgs(HelloServiceClient helloServiceClient) { - String[] names = { "Me", "You", "Pandu" }; // Do not change the array size from 3. - String expected = "Hello Me You Pandu"; - String actual = helloServiceClient.getGreetingsVarArgsForward(names[0], names[1], names[2]); - Assert.assertEquals(expected, actual); - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/PrimitivesDatabindingTestCase.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/PrimitivesDatabindingTestCase.java deleted file mode 100644 index eaf54b0f1b..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/PrimitivesDatabindingTestCase.java +++ /dev/null @@ -1,849 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb.topdown; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.itest.databindings.jaxb.PrimitivesServiceClient; -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; -import org.junit.Ignore; - -/** - * @version $Rev$ $Date$ - */ -public class PrimitivesDatabindingTestCase { - - private static SCAClient domain; - private static SCANode node; - - /** - * Runs before each test method - */ - @BeforeClass - public static void setUp() throws Exception { - SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); - node = nodeFactory.createSCANodeFromClassLoader("wsdl/wrapped/primitivesservice.composite", null); - node.start(); - domain = (SCAClient)node; - } - - /** - * Runs after each test method - */ - @AfterClass - public static void tearDown() { - node.stop(); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateBoolean. - */ - @Test - public void testW2WNegateBoolean() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - performTestNegateBoolean(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateBooleanArray. - */ - @Test - public void testW2WNegateBooleanArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - performTestNegateBooleanArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for boolean array. - */ - @Test - public void testW2WPassByValueBooleanArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueBooleanArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateByte. - */ - @Test - public void testW2WNegateByte() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - performTestNegateByte(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateByteArray. - */ - @Test - public void testW2WNegateByteArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - performTestNegateByteArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for byte array. - */ - @Test - public void testW2WPassByValueByteArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueByteArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateShort. - */ - @Test - public void testW2WNegateShort() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - performTestNegateShort(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateShortArray. - */ - @Test - public void testW2WNegateShortArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - performTestNegateShortArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for short array. - */ - @Test - public void testW2WPassByValueShortArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueShortArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateInt. - */ - @Test - public void testW2WNegateInt() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - performTestNegateInt(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateIntArray. - */ - @Test - public void testW2WNegateIntArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - performTestNegateIntArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for int array. - */ - @Test - public void testW2WPassByValueIntArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueIntArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateLong. - */ - @Test - public void testW2WNegateLong() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - performTestNegateLong(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateLongArray. - */ - @Test - public void testW2WNegateLongArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - performTestNegateLongArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for long array. - */ - @Test - public void testW2WPassByValueLongArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueLongArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateFloat. - */ - @Test - public void testW2WNegateFloat() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - performTestNegateFloat(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateFloatArray. - */ - @Test - public void testW2WNegateFloatArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - performTestNegateFloatArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for float array. - */ - @Test - public void testW2WPassByValueFloatArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueFloatArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateDouble. - */ - @Test - public void testW2WNegateDouble() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - performTestNegateDouble(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateDoubleArray. - */ - @Test - public void testW2WNegateDoubleArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - performTestNegateDoubleArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for double array. - */ - @Test - public void testW2WPassByValueDoubleArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueDoubleArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateBoolean. - */ - @Test - public void testJ2WNegateBoolean() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - performTestNegateBoolean(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateBooleanArray. - */ - @Test - public void testJ2WNegateBooleanArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - performTestNegateBooleanArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for boolean array. - */ - @Test - public void testJ2WPassByValueBooleanArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueBooleanArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateByte. - */ - @Test - public void testJ2WNegateByte() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - performTestNegateByte(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateByteArray. - */ - @Test - public void testJ2WNegateByteArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - performTestNegateByteArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for byte array. - */ - @Test - public void testJ2WPassByValueByteArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueByteArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateShort. - */ - @Test - public void testJ2WNegateShort() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - performTestNegateShort(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateShortArray. - */ - @Test - public void testJ2WNegateShortArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - performTestNegateShortArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for short array. - */ - @Test - public void testJ2WPassByValueShortArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueShortArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateInt. - */ - @Test - public void testJ2WNegateInt() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - performTestNegateInt(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateIntArray. - */ - @Test - public void testJ2WNegateIntArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - performTestNegateIntArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for int array. - */ - @Test - public void testJ2WPassByValueIntArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueIntArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateLong. - */ - @Test - public void testJ2WNegateLong() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - performTestNegateLong(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateLongArray. - */ - @Test - public void testJ2WNegateLongArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - performTestNegateLongArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for long array. - */ - @Test - public void testJ2WPassByValueLongArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueLongArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateFloat. - */ - @Test - public void testJ2WNegateFloat() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - performTestNegateFloat(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateFloatArray. - */ - @Test - public void testJ2WNegateFloatArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - performTestNegateFloatArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for float array. - */ - @Test - public void testJ2WPassByValueFloatArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueFloatArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateDouble. - */ - @Test - public void testJ2WNegateDouble() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - performTestNegateDouble(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateDoubleArray. - */ - @Test - public void testJ2WNegateDoubleArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - performTestNegateDoubleArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for double array. - */ - @Test - public void testJ2WPassByValueDoubleArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueDoubleArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateBoolean. - */ - @Test - public void testW2JNegateBoolean() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - performTestNegateBoolean(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateBooleanArray. - */ - @Test - public void testW2JNegateBooleanArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - performTestNegateBooleanArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for boolean array. - */ - @Test - public void testW2JPassByValueBooleanArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueBooleanArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateByte. - */ - @Test - public void testW2JNegateByte() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - performTestNegateByte(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateByteArray. - */ - @Test - public void testW2JNegateByteArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - performTestNegateByteArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for byte array. - */ - @Test - public void testW2JPassByValueByteArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueByteArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateShort. - */ - @Test - public void testW2JNegateShort() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - performTestNegateShort(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateShortArray. - */ - @Test - public void testW2JNegateShortArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - performTestNegateShortArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for short array. - */ - @Test - public void testW2JPassByValueShortArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueShortArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateInt. - */ - @Test - public void testW2JNegateInt() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - performTestNegateInt(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateIntArray. - */ - @Test - public void testW2JNegateIntArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - performTestNegateIntArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for int array. - */ - @Test - public void testW2JPassByValueIntArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueIntArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateLong. - */ - @Test - public void testW2JNegateLong() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - performTestNegateLong(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateLongArray. - */ - @Test - public void testW2JNegateLongArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - performTestNegateLongArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for long array. - */ - @Test - public void testW2JPassByValueLongArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueLongArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateFloat. - */ - @Test - public void testW2JNegateFloat() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - performTestNegateFloat(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateFloatArray. - */ - @Test - public void testW2JNegateFloatArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - performTestNegateFloatArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for float array. - */ - @Test - public void testW2JPassByValueFloatArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueFloatArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateDouble. - */ - @Test - public void testW2JNegateDouble() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - performTestNegateDouble(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateDoubleArray. - */ - @Test - public void testW2JNegateDoubleArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - performTestNegateDoubleArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for double array. - */ - @Test - public void testW2JPassByValueDoubleArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = domain.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueDoubleArray()); - } - - private void performTestNegateBoolean(PrimitivesServiceClient primitivesServiceClient) { - Assert.assertTrue(primitivesServiceClient.negateBooleanForward(false)); - Assert.assertFalse(primitivesServiceClient.negateBooleanForward(true)); - } - - private void performTestNegateBooleanArray(PrimitivesServiceClient primitivesServiceClient) { - boolean flags[] = new boolean[2]; - flags[0] = false; - flags[1] = true; - boolean[] respFlags = primitivesServiceClient.negateBooleanArrayForward(flags); - Assert.assertEquals(flags.length, respFlags.length); - for(int i = 0; i < flags.length; ++i) { - Assert.assertEquals(!flags[i], respFlags[i]); - } - } - - private void performTestNegateByte(PrimitivesServiceClient primitivesServiceClient) { - byte[] ba = new byte[3]; - ba[0] = -1; - ba[1] = 0; - ba[2] = 1; - - for(int i = 0; i < ba.length; ++i) { - Assert.assertEquals((byte)-ba[i], primitivesServiceClient.negateByteForward(ba[i])); - } - } - - private void performTestNegateByteArray(PrimitivesServiceClient primitivesServiceClient) { - byte[] ba = new byte[3]; - ba[0] = -1; - ba[1] = 0; - ba[2] = 1; - - byte[] r = primitivesServiceClient.negateByteArrayForward(ba); - Assert.assertEquals(ba.length, r.length); - for(int i = 0; i < ba.length; ++i) { - Assert.assertEquals((byte)-ba[i], r[i]); - } - } - - private void performTestNegateShort(PrimitivesServiceClient primitivesServiceClient) { - short[] s = new short[3]; - s[0] = -1; - s[1] = 0; - s[2] = 1; - - for(int i = 0; i < s.length; ++i) { - Assert.assertEquals((short)-s[i], primitivesServiceClient.negateShortForward(s[i])); - } - } - - private void performTestNegateShortArray(PrimitivesServiceClient primitivesServiceClient) { - short[] s = new short[3]; - s[0] = -1; - s[1] = 0; - s[2] = 1; - - short[] r = primitivesServiceClient.negateShortArrayForward(s); - Assert.assertEquals(s.length, r.length); - for(int i = 0; i < s.length; ++i) { - Assert.assertEquals((short)-s[i], r[i]); - } - } - - private void performTestNegateInt(PrimitivesServiceClient primitivesServiceClient) { - int[] ia = new int[3]; - ia[0] = -1; - ia[1] = 0; - ia[2] = 1; - - for(int i = 0; i < ia.length; ++i) { - Assert.assertEquals(-ia[i], primitivesServiceClient.negateIntForward(ia[i])); - } - } - - private void performTestNegateIntArray(PrimitivesServiceClient primitivesServiceClient) { - int[] ia = new int[3]; - ia[0] = -1; - ia[1] = 0; - ia[2] = 1; - - int[] r = primitivesServiceClient.negateIntArrayForward(ia); - Assert.assertEquals(ia.length, r.length); - for(int i = 0; i < ia.length; ++i) { - Assert.assertEquals(-ia[i], r[i]); - } - } - - private void performTestNegateLong(PrimitivesServiceClient primitivesServiceClient) { - long[] la = new long[3]; - la[0] = -1; - la[1] = 0; - la[2] = 1; - - for(int i = 0; i < la.length; ++i) { - Assert.assertEquals(-la[i], primitivesServiceClient.negateLongForward(la[i])); - } - } - - private void performTestNegateLongArray(PrimitivesServiceClient primitivesServiceClient) { - long[] la = new long[3]; - la[0] = -1; - la[1] = 0; - la[2] = 1; - - long[] r = primitivesServiceClient.negateLongArrayForward(la); - Assert.assertEquals(la.length, r.length); - for(int i = 0; i < la.length; ++i) { - Assert.assertEquals(-la[i], r[i]); - } - } - - private void performTestNegateFloat(PrimitivesServiceClient primitivesServiceClient) { - float[] fa = new float[3]; - fa[0] = -1; - fa[1] = 0; - fa[2] = 1; - - for(int i = 0; i < fa.length; ++i) { - Assert.assertEquals(-fa[i], primitivesServiceClient.negateFloatForward(fa[i])); - } - } - - private void performTestNegateFloatArray(PrimitivesServiceClient primitivesServiceClient) { - float[] ia = new float[3]; - ia[0] = -1; - ia[1] = 0; - ia[2] = 1; - - float[] r = primitivesServiceClient.negateFloatArrayForward(ia); - Assert.assertEquals(ia.length, r.length); - for(int i = 0; i < ia.length; ++i) { - Assert.assertEquals(-ia[i], r[i]); - } - } - - private void performTestNegateDouble(PrimitivesServiceClient primitivesServiceClient) { - double[] da = new double[3]; - da[0] = -1; - da[1] = 0; - da[2] = 1; - - for(int i = 0; i < da.length; ++i) { - Assert.assertEquals(-da[i], primitivesServiceClient.negateDoubleForward(da[i])); - } - } - - private void performTestNegateDoubleArray(PrimitivesServiceClient primitivesServiceClient) { - double[] da = new double[3]; - da[0] = -1; - da[1] = 0; - da[2] = 1; - - double[] r = primitivesServiceClient.negateDoubleArrayForward(da); - Assert.assertEquals(da.length, r.length); - for(int i = 0; i < da.length; ++i) { - Assert.assertEquals(-da[i], r[i]); - } - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/StandardTypesDatabindingTestCase.java b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/StandardTypesDatabindingTestCase.java deleted file mode 100644 index 4713179267..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/StandardTypesDatabindingTestCase.java +++ /dev/null @@ -1,1446 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.tuscany.sca.itest.databindings.jaxb.topdown; - -import java.awt.Image; -import java.awt.image.BufferedImage; -import java.awt.image.PixelGrabber; -import java.io.IOException; -import java.io.InputStream; -import java.io.StringReader; -import java.io.StringWriter; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.URI; -import java.net.URL; -import java.util.Calendar; -import java.util.Date; -import java.util.GregorianCalendar; -import java.util.TimeZone; -import java.util.UUID; - -import javax.activation.DataHandler; -import javax.xml.datatype.DatatypeConfigurationException; -import javax.xml.datatype.DatatypeFactory; -import javax.xml.datatype.Duration; -import javax.xml.datatype.XMLGregorianCalendar; -import javax.xml.namespace.QName; -import javax.xml.transform.Result; -import javax.xml.transform.Source; -import javax.xml.transform.TransformerFactory; -import javax.xml.transform.dom.DOMSource; -import javax.xml.transform.sax.SAXSource; -import javax.xml.transform.stream.StreamResult; -import javax.xml.transform.stream.StreamSource; - -import junit.framework.Assert; - -import org.apache.axiom.attachments.ByteArrayDataSource; -import org.apache.tuscany.sca.databinding.xml.String2Node; -import org.apache.tuscany.sca.itest.databindings.jaxb.StandardTypesServiceClient; -import org.apache.tuscany.sca.itest.databindings.jaxb.impl.StandardTypesTransformer; -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Ignore; -import org.junit.Test; -import org.xml.sax.InputSource; -import org.junit.Ignore; - -/** - * @version $Rev$ $Date$ - */ -public class StandardTypesDatabindingTestCase { - - private static SCAClient domain; - private static SCANode node; - - /** - * Runs once before the tests - */ - @BeforeClass - public static void setUp() throws Exception { - SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); - node = nodeFactory.createSCANodeFromClassLoader("wsdl/wrapped/standard-types-service.composite", null); - node.start(); - domain = (SCAClient)node; - } - - /** - * Runs once after the tests - */ - @AfterClass - public static void tearDown() { - node.stop(); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigInteger. - */ - @Test - public void testW2WNewBigInteger() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewBigInteger(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigIntegerArray. - */ - @Test - public void testW2WNewBigIntegerArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewBigIntegerArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigDecimal. - */ - @Test - public void testW2WNewBigDecimal() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewBigDecimal(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigDecimalArray. - */ - @Test - public void testW2WNewBigDecimalArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewBigDecimalArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewCalendar. - */ - @Test - public void testW2WNewCalendar() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewCalendar(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewCalendarArray. - */ - @Test - public void testW2WNewCalendarArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewCalendarArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDate. - */ - @Test - public void testW2WNewDate() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewDate(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDateArray. - */ - @Test - public void testW2WNewDateArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewDateArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewQName. - */ - @Test - public void testW2WNewQName() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewQName(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewQNameArray. - */ - @Test - public void testW2WNewQNameArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewQNameArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewURI. - */ - @Test - public void testW2WNewURI() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewURI(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewURIArray. - */ - @Test - public void testW2WNewURIArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewURIArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewXMLGregorianCalendar. - */ - @Test - public void testW2WNewXMLGregorianCalendar() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewXMLGregorianCalendar(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewXMLGregorianCalendarArray. - */ - @Test - public void testW2WNewXMLGregorianCalendarArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewXMLGregorianCalendarArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDuration. - */ - @Test - public void testW2WNewDuration() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewDuration(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDurationArray. - */ - @Test - public void testW2WNewDurationArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewDurationArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewObject. - */ - @Test - public void testW2WNewObject() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewObject(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewObjectArray. - */ - @Test - public void testW2WNewObjectArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewObjectArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewImage. - */ - @Test - public void testW2WNewImage() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewImage(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewImageArray. - */ - @Test - public void testW2WNewImageArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewImageArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDataHandler. - */ - @Test - public void testW2WNewDataHandler() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewDataHandler(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDataHandlerArray. - */ - @Test - public void testW2WNewDataHandlerArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewDataHandlerArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewSource. - */ - @Test - //@Ignore("junit.framework.ComparisonFailure: null expected:<... encoding=\"UTF-8\"?><[a>A</a]>> but was:<... encoding=\"UTF-8\"?><[return xmlns=\"http://jaxb.databindings.itest.sca.tuscany.apache.org/\">A</return]>>") - public void testW2WNewSource() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewSource(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewSourceArray. - */ - @Test - @Ignore("TUSCANY-2452") - public void testW2WNewSourceArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewSourceArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewUUID. - */ - @Test - public void testW2WNewUUID() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewUUID(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewUUIDArray. - */ - @Test - public void testW2WNewUUIDArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewUUIDArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigInteger. - */ - @Test - public void testJ2WNewBigInteger() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewBigInteger(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigIntegerArray. - */ - @Test - public void testJ2WNewBigIntegerArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewBigIntegerArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigDecimal. - */ - @Test - public void testJ2WNewBigDecimal() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewBigDecimal(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigDecimalArray. - */ - @Test - public void testJ2WNewBigDecimalArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewBigDecimalArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewCalendar. - */ - @Test - public void testJ2WNewCalendar() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewCalendar(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewCalendarArray. - */ - @Test - public void testJ2WNewCalendarArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewCalendarArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDate. - */ - @Test - public void testJ2WNewDate() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewDate(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDateArray. - */ - @Test - public void testJ2WNewDateArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewDateArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewQName. - */ - @Test - public void testJ2WNewQName() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewQName(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewQNameArray. - */ - @Test - public void testJ2WNewQNameArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewQNameArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewURI. - */ - @Test - public void testJ2WNewURI() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewURI(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewURIArray. - */ - @Test - public void testJ2WNewURIArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewURIArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewXMLGregorianCalendar. - */ - @Test - public void testJ2WNewXMLGregorianCalendar() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewXMLGregorianCalendar(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewXMLGregorianCalendarArray. - */ - @Test - public void testJ2WNewXMLGregorianCalendarArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewXMLGregorianCalendarArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDuration. - */ - @Test - public void testJ2WNewDuration() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewDuration(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDurationArray. - */ - @Test - public void testJ2WNewDurationArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewDurationArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewObject. - */ - @Test - public void testJ2WNewObject() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewObject(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewObjectArray. - */ - @Test - public void testJ2WNewObjectArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewObjectArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewImage. - */ - @Test - public void testJ2WNewImage() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewImage(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewImageArray. - */ - @Test - public void testJ2WNewImageArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewImageArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDataHandler. - */ - @Test - public void testJ2WNewDataHandler() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewDataHandler(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDataHandlerArray. - */ - @Test - public void testJ2WNewDataHandlerArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewDataHandlerArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewSource. - */ - @Test - //@Ignore("junit.framework.ComparisonFailure: null expected:<... encoding=\"UTF-8\"?><[a>A</a]>> but was:<... encoding=\"UTF-8\"?><[return xmlns=\"http://jaxb.databindings.itest.sca.tuscany.apache.org/\">A</return]>>") - public void testJ2WNewSource() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewSource(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewSourceArray. - */ - @Test - @Ignore("TUSCANY-2452") - public void testJ2WNewSourceArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewSourceArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewUUID. - */ - @Test - public void testJ2WNewUUID() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewUUID(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewUUIDArray. - */ - @Test - public void testJ2WNewUUIDArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewUUIDArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigInteger. - */ - @Test - public void testW2JNewBigInteger() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewBigInteger(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigIntegerArray. - */ - @Test - public void testW2JNewBigIntegerArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewBigIntegerArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigDecimal. - */ - @Test - public void testW2JNewBigDecimal() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewBigDecimal(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigDecimalArray. - */ - @Test - public void testW2JNewBigDecimalArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewBigDecimalArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewCalendar. - */ - @Test - public void testW2JNewCalendar() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewCalendar(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewCalendarArray. - */ - @Test - public void testW2JNewCalendarArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewCalendarArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDate. - */ - @Test - public void testW2JNewDate() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewDate(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDateArray. - */ - @Test - public void testW2JNewDateArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewDateArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewQName. - */ - @Test - public void testW2JNewQName() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewQName(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewQNameArray. - */ - @Test - public void testW2JNewQNameArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewQNameArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewURI. - */ - @Test - public void testW2JNewURI() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewURI(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewURIArray. - */ - @Test - public void testW2JNewURIArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewURIArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewXMLGregorianCalendar. - */ - @Test - public void testW2JNewXMLGregorianCalendar() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewXMLGregorianCalendar(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewXMLGregorianCalendarArray. - */ - @Test - public void testW2JNewXMLGregorianCalendarArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewXMLGregorianCalendarArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDuration. - */ - @Test - public void testW2JNewDuration() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewDuration(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDurationArray. - */ - @Test - public void testW2JNewDurationArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewDurationArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewObject. - */ - @Test - public void testW2JNewObject() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewObject(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewObjectArray. - */ - @Test - public void testW2JNewObjectArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewObjectArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewImage. - */ - @Test - public void testW2JNewImage() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewImage(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewImageArray. - */ - @Test - public void testW2JNewImageArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewImageArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDataHandler. - */ - @Test - public void testW2JNewDataHandler() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewDataHandler(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDataHandlerArray. - */ - @Test - public void testW2JNewDataHandlerArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewDataHandlerArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewSource. - */ - @Test - //@Ignore("junit.framework.ComparisonFailure: null expected:<... encoding=\"UTF-8\"?><[a>A</a]>> but was:<... encoding=\"UTF-8\"?><[return xmlns=\"http://jaxb.databindings.itest.sca.tuscany.apache.org/\">A</return]>>") - public void testW2JNewSource() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewSource(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewSourceArray. - */ - @Test - @Ignore("TUSCANY-2452") - public void testW2JNewSourceArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewSourceArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewUUID. - */ - @Test - public void testW2JNewUUID() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewUUID(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewUUIDArray. - */ - @Test - public void testW2JNewUUIDArray() throws Exception { - StandardTypesServiceClient serviceClient = - domain.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewUUIDArray(serviceClient); - } - - private void performTestNewBigInteger(StandardTypesServiceClient serviceClient) { - BigInteger bi = new BigInteger("1234567890123456789012345678901234"); - BigInteger expected = bi.negate(); - BigInteger actual = serviceClient.getNewBigIntegerForward(bi); - Assert.assertEquals(expected, actual); - } - - private void performTestNewBigIntegerArray(StandardTypesServiceClient serviceClient) { - BigInteger[] bia = new BigInteger[2]; - bia[0] = new BigInteger("1234567890123456789012345678901234"); - bia[1] = new BigInteger("-98765432109876543210987654321"); - BigInteger[] actual = serviceClient.getNewBigIntegerArrayForward(bia); - Assert.assertEquals(bia.length, actual.length); - for (int i = 0; i < bia.length; ++i) { - Assert.assertEquals(bia[i].negate(), actual[i]); - } - } - - private void performTestNewBigDecimal(StandardTypesServiceClient serviceClient) { - BigDecimal bd = new BigDecimal("12345678901234567890.12345678901234"); - BigDecimal expected = bd.negate(); - BigDecimal actual = serviceClient.getNewBigDecimalForward(bd); - Assert.assertEquals(expected, actual); - } - - private void performTestNewBigDecimalArray(StandardTypesServiceClient serviceClient) { - BigDecimal[] bda = new BigDecimal[2]; - bda[0] = new BigDecimal("1234567890123456.789012345678901234"); - bda[1] = new BigDecimal("-987654321098765.43210987654321"); - BigDecimal[] actual = serviceClient.getNewBigDecimalArrayForward(bda); - Assert.assertEquals(bda.length, actual.length); - for (int i = 0; i < bda.length; ++i) { - Assert.assertEquals(bda[i].negate(), actual[i]); - } - } - - private void performTestNewCalendar(StandardTypesServiceClient serviceClient) { - Calendar[] ca = new Calendar[3]; - String[] tz = {"GMT+05:30", "GMT+00:00", "GMT-05:00"}; - for (int i = 0; i < ca.length; ++i) { - ca[i] = Calendar.getInstance(TimeZone.getTimeZone(tz[i])); - ca[i].set(Calendar.DAY_OF_MONTH, i + 1); - } - for (int i = 0; i < ca.length; ++i) { - Calendar actual = serviceClient.getNewCalendarForward(ca[i]); - ca[i].add(Calendar.DAY_OF_MONTH, 5); - if (actual instanceof GregorianCalendar && ca[i] instanceof GregorianCalendar) { - // FIXME: Is this a problem? - // The instance returned by service method invoked over binding.ws seems to have a gregorianCutover - // different from the instance passed. Adjust the gregorianCutover as per the input instance. - ((GregorianCalendar)actual).setGregorianChange(((GregorianCalendar)ca[i]).getGregorianChange()); - } - Assert.assertEquals(ca[i], actual); - } - } - - private void performTestNewCalendarArray(StandardTypesServiceClient serviceClient) { - Calendar[] ca = new Calendar[3]; - String[] tz = {"GMT+05:30", "GMT+00:00", "GMT-05:00"}; - for (int i = 0; i < ca.length; ++i) { - ca[i] = Calendar.getInstance(TimeZone.getTimeZone(tz[i])); - ca[i].set(Calendar.DAY_OF_MONTH, i + 1); - } - Calendar[] actual = serviceClient.getNewCalendarArrayForward(ca); - Assert.assertEquals(ca.length, actual.length); - for (int i = 0; i < ca.length; ++i) { - ca[i].add(Calendar.DAY_OF_MONTH, 5); - if (actual[i] instanceof GregorianCalendar && ca[i] instanceof GregorianCalendar) { - // FIXME: Is this a problem? - // The instance returned by service method invoked over binding.ws seems to have a gregorianCutover - // different from the instance passed. Adjust the gregorianCutover as per the input instance. - ((GregorianCalendar)actual[i]).setGregorianChange(((GregorianCalendar)ca[i]).getGregorianChange()); - } - Assert.assertEquals(ca[i], actual[i]); - } - } - - private void performTestNewDate(StandardTypesServiceClient serviceClient) { - Date d = new Date(); - Date expected = new Date(d.getTime() + 5 * 24 * 60 * 60 * 1000); - Date actual = serviceClient.getNewDateForward(d); - Assert.assertEquals(expected, actual); - } - - private void performTestNewDateArray(StandardTypesServiceClient serviceClient) { - Date[] d = new Date[2]; - Date[] expected = new Date[d.length]; - for (int i = 0; i < d.length; ++i) { - d[i] = new Date(); - d[i].setTime(d[i].getTime() + i * 24 * 60 * 60 * 1000); - expected[i] = new Date(d[i].getTime() + 5 * 24 * 60 * 60 * 1000); - } - Date[] actual = serviceClient.getNewDateArrayForward(d); - Assert.assertEquals(expected.length, actual.length); - for (int i = 0; i < expected.length; ++i) { - Assert.assertEquals(expected[i], actual[i]); - } - } - - private void performTestNewQName(StandardTypesServiceClient serviceClient) { - QName[] qnames = new QName[3]; - qnames[0] = new QName("localPart"); - qnames[1] = new QName("namespaceUri", "localPart"); - qnames[2] = new QName("namespaceUri", "localPart", "prefix"); - QName[] expected = new QName[qnames.length]; - for (int i = 0; i < qnames.length; ++i) { - expected[i] = - new QName(qnames[i].getNamespaceURI() + "q", qnames[i].getLocalPart() + "q", - qnames[i].getPrefix() + "q"); - } - for (int i = 0; i < qnames.length; ++i) { - QName actual = serviceClient.getNewQNameForward(qnames[i]); - Assert.assertEquals(expected[i], actual); - } - } - - private void performTestNewQNameArray(StandardTypesServiceClient serviceClient) { - QName[] qnames = new QName[4]; - qnames[0] = new QName("localPart"); - qnames[1] = new QName("namespaceUri", "localPart"); - qnames[2] = new QName("namespaceUri", "localPart", "prefix"); - qnames[3] = new QName("localPart2"); - QName[] expected = new QName[qnames.length]; - for (int i = 0; i < qnames.length; ++i) { - expected[i] = - new QName(qnames[i].getNamespaceURI() + "q", qnames[i].getLocalPart() + "q", - qnames[i].getPrefix() + "q"); - } - QName[] actual = serviceClient.getNewQNameArrayForward(qnames); - Assert.assertEquals(expected.length, actual.length); - for (int i = 0; i < qnames.length; ++i) { - Assert.assertEquals(expected[i], actual[i]); - } - } - - private void performTestNewURI(StandardTypesServiceClient serviceClient) { - URI[] uris = new URI[4]; - uris[0] = URI.create("a/b/c"); - uris[1] = URI.create("http://abc/"); - uris[2] = URI.create("ftp://a/b"); - uris[3] = URI.create("http://abc/").resolve("xyz"); - - for (int i = 0; i < uris.length; ++i) { - URI expected = uris[i].resolve("uri"); - URI actual = serviceClient.getNewURIForward(uris[i]); - Assert.assertEquals(expected, actual); - } - } - - private void performTestNewURIArray(StandardTypesServiceClient serviceClient) { - URI[] uris = new URI[4]; - uris[0] = URI.create("a/b/c"); - // [rfeng] We need to have a trialign / to avoid the resolving problem - // FIXME: [vamsi] This is actually a data transformation problem. The array being returned from the service method is - // not making to the caller intact. - uris[1] = URI.create("http://abc/"); - uris[2] = URI.create("ftp://a/b"); - uris[3] = URI.create("http://abc/").resolve("xyz"); - - URI[] expected = new URI[uris.length]; - for (int i = 0; i < uris.length; ++i) { - expected[i] = uris[i].resolve("uri"); - } - - URI[] actual = serviceClient.getNewURIArrayForward(uris); - Assert.assertEquals(expected.length, actual.length); - for (int i = 0; i < uris.length; ++i) { - Assert.assertEquals(expected[i], actual[i]); - } - } - - private void performTestNewXMLGregorianCalendar(StandardTypesServiceClient serviceClient) - throws DatatypeConfigurationException { - DatatypeFactory df = DatatypeFactory.newInstance(); - XMLGregorianCalendar[] xgcals = new XMLGregorianCalendar[3]; - xgcals[0] = df.newXMLGregorianCalendar(new GregorianCalendar(1974, GregorianCalendar.APRIL, 19)); - xgcals[1] = df.newXMLGregorianCalendar(new GregorianCalendar(1978, GregorianCalendar.OCTOBER, 13)); - xgcals[2] = df.newXMLGregorianCalendar(new GregorianCalendar(2006, GregorianCalendar.JUNE, 16)); - - for (int i = 0; i < xgcals.length; ++i) { - XMLGregorianCalendar actual = serviceClient.getNewXMLGregorianCalendarForward(xgcals[i]); - xgcals[i].setDay(xgcals[i].getDay() + 5); - Assert.assertEquals(xgcals[i], actual); - } - } - - private void performTestNewXMLGregorianCalendarArray(StandardTypesServiceClient serviceClient) - throws DatatypeConfigurationException { - DatatypeFactory df = DatatypeFactory.newInstance(); - XMLGregorianCalendar[] xgcals = new XMLGregorianCalendar[3]; - xgcals[0] = df.newXMLGregorianCalendar(new GregorianCalendar(1974, GregorianCalendar.APRIL, 19)); - xgcals[1] = df.newXMLGregorianCalendar(new GregorianCalendar(1978, GregorianCalendar.OCTOBER, 13)); - xgcals[2] = df.newXMLGregorianCalendar(new GregorianCalendar(2006, GregorianCalendar.JUNE, 16)); - - XMLGregorianCalendar[] actual = serviceClient.getNewXMLGregorianCalendarArrayForward(xgcals); - Assert.assertEquals(xgcals.length, actual.length); - for (int i = 0; i < xgcals.length; ++i) { - xgcals[i].setDay(xgcals[i].getDay() + 5); - Assert.assertEquals(xgcals[i], actual[i]); - } - } - - private void performTestNewDuration(StandardTypesServiceClient serviceClient) throws DatatypeConfigurationException { - DatatypeFactory df = DatatypeFactory.newInstance(); - Duration[] da = new Duration[3]; - da[0] = df.newDuration(1000000000000L); - da[1] = df.newDurationDayTime(1000000000000L); - da[2] = df.newDurationYearMonth(true, 1, 3); - - for (int i = 0; i < da.length; ++i) { - Assert.assertEquals(da[i].negate(), serviceClient.getNewDurationForward(da[i])); - } - } - - private void performTestNewObject(StandardTypesServiceClient serviceClient) { - Object[] objs = new Object[5]; - objs[0] = "Hello"; - objs[1] = 10; - objs[2] = null; - objs[3] = -1.0; - objs[4] = null; - - for (int i = 0; i < objs.length; ++i) { - Object expected = StandardTypesTransformer.getNewObject(objs[i]); - Object actual = serviceClient.getNewObjectForward(objs[i]); - Assert.assertEquals(expected, actual); - } - } - - private void performTestNewObjectArray(StandardTypesServiceClient serviceClient) { - Object[] objs = new Object[5]; - objs[0] = "Hello"; - objs[1] = 10; - objs[2] = null; - objs[3] = -1.0; - objs[4] = null; - - Object[] actual = serviceClient.getNewObjectArrayForward(objs); - Assert.assertEquals(objs.length, actual.length); - for (int i = 0; i < objs.length; ++i) { - Object expected = StandardTypesTransformer.getNewObject(objs[i]); - Assert.assertEquals(expected, actual[i]); - } - } - - private void performTestNewImage(StandardTypesServiceClient serviceClient) throws InterruptedException { - // Create some images to test with. - Image[] imgs = new Image[3]; - imgs[0] = new BufferedImage(10, 10, BufferedImage.TYPE_3BYTE_BGR); - imgs[1] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_ARGB); - imgs[2] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_RGB); - imgs[0].getGraphics().drawLine(1, 1, 8, 8); - imgs[1].getGraphics().drawLine(8, 1, 1, 8); - imgs[2].getGraphics().drawLine(1, 8, 8, 1); - - Image[] copy = imgs; - // Create the same images once again as the StandardTypesTransformer may manipulate the image passed. - imgs = new Image[3]; - imgs[0] = new BufferedImage(10, 10, BufferedImage.TYPE_3BYTE_BGR); - imgs[1] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_ARGB); - imgs[2] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_RGB); - imgs[0].getGraphics().drawLine(1, 1, 8, 8); - imgs[1].getGraphics().drawLine(8, 1, 1, 8); - imgs[2].getGraphics().drawLine(1, 8, 8, 1); - - // Make sure the images and copies are equal using ImageInfo - for(int i = 0; i < imgs.length; ++i) { - Assert.assertEquals(new ImageInfo(imgs[i]), new ImageInfo(copy[i])); - } - - for (int i = 0; i < imgs.length; ++i) { - Image actual = serviceClient.getNewImageForward(imgs[i]); - Image expected = StandardTypesTransformer.getNewImage(copy[i]); - // Compare using ImageInfo - Assert.assertEquals(new ImageInfo(expected), new ImageInfo(actual)); - } - } - - private void performTestNewImageArray(StandardTypesServiceClient serviceClient) throws InterruptedException { - // Create some images to test with. - Image[] imgs = new Image[3]; - imgs[0] = new BufferedImage(10, 10, BufferedImage.TYPE_3BYTE_BGR); - imgs[1] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_ARGB); - imgs[2] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_RGB); - imgs[0].getGraphics().drawLine(1, 1, 8, 8); - imgs[1].getGraphics().drawLine(8, 1, 1, 8); - imgs[2].getGraphics().drawLine(1, 8, 8, 1); - - Image[] copy = imgs; - // Create the same images once again as the StandardTypesTransformer may manipulate the image passed. - imgs = new Image[3]; - imgs[0] = new BufferedImage(10, 10, BufferedImage.TYPE_3BYTE_BGR); - imgs[1] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_ARGB); - imgs[2] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_RGB); - imgs[0].getGraphics().drawLine(1, 1, 8, 8); - imgs[1].getGraphics().drawLine(8, 1, 1, 8); - imgs[2].getGraphics().drawLine(1, 8, 8, 1); - - // Make sure the images and copies are equal using ImageInfo - for(int i = 0; i < imgs.length; ++i) { - Assert.assertEquals(new ImageInfo(imgs[i]), new ImageInfo(copy[i])); - } - - Image[] actual = serviceClient.getNewImageArrayForward(imgs); - Assert.assertEquals(imgs.length, actual.length); - for (int i = 0; i < imgs.length; ++i) { - Image expected = StandardTypesTransformer.getNewImage(copy[i]); - // Compare using ImageInfo - Assert.assertEquals(new ImageInfo(expected), new ImageInfo(actual[i])); - } - } - - private void performTestNewDurationArray(StandardTypesServiceClient serviceClient) - throws DatatypeConfigurationException { - DatatypeFactory df = DatatypeFactory.newInstance(); - Duration[] da = new Duration[3]; - da[0] = df.newDuration(1000000000000L); - da[1] = df.newDurationDayTime(1000000000000L); - da[2] = df.newDurationYearMonth(true, 1, 3); - - Duration[] actual = serviceClient.getNewDurationArrayForward(da); - Assert.assertEquals(da.length, actual.length); - for (int i = 0; i < da.length; ++i) { - Assert.assertEquals(da[i].negate(), actual[i]); - } - } - - private void performTestNewDataHandler(StandardTypesServiceClient serviceClient) throws IOException { - DataHandler[] dha = new DataHandler[3]; - dha[0] = new DataHandler("Some data", "text/plain"); - dha[1] = new DataHandler(new URL("http://tuscany.apache.org/home.html")); - dha[2] = new DataHandler(new ByteArrayDataSource("Some data2".getBytes())); - - for (int i = 0; i < dha.length; ++i) { - DataHandler actual = serviceClient.getNewDataHandlerForward(dha[i]); - // Note: The DataHandler returned may use a different type of DataSource. - // Compare the data content instead of using equals(). - Assert.assertTrue(compare(dha[i], actual)); - } - } - - private void performTestNewDataHandlerArray(StandardTypesServiceClient serviceClient) throws IOException { - DataHandler[] dha = new DataHandler[3]; - dha[0] = new DataHandler("Some data", "text/plain"); - dha[1] = new DataHandler(new URL("http://tuscany.apache.org/home.html")); - dha[2] = new DataHandler(new ByteArrayDataSource("Some data2".getBytes())); - - DataHandler[] actual = serviceClient.getNewDataHandlerArrayForward(dha); - Assert.assertEquals(dha.length, actual.length); - for (int i = 0; i < dha.length; ++i) { - // Note: The DataHandler returned may use a different type of DataSource. - // Compare the data content instead of using equals(). - Assert.assertTrue(compare(dha[i], actual[i])); - } - } - - private void performTestNewSource(StandardTypesServiceClient serviceClient) throws Exception { - String xml = "<a>A<b>B</b><c>C</c></a>"; - Source[] srcs = new Source[3]; - srcs[0] = new DOMSource(new String2Node().transform(xml, null)); - srcs[1] = new SAXSource(new InputSource(new StringReader(xml))); - srcs[2] = new StreamSource(new StringReader(xml)); - - for (int i = 0; i < srcs.length; ++i) { - Source expected = StandardTypesTransformer.getNewSource(srcs[i]); - Source actual = serviceClient.getNewSourceForward(srcs[i]); - // [rfeng] The data may come back as a different source - Assert.assertEquals(sourceToString(expected), sourceToString(actual)); - } - } - - private void performTestNewSourceArray(StandardTypesServiceClient serviceClient) throws Exception { - String xml = "<a>A<b>B</b><c>C</c></a>"; - Source[] srcs = new Source[3]; - srcs[0] = new DOMSource(new String2Node().transform(xml, null)); - srcs[1] = new SAXSource(new InputSource(new StringReader(xml))); - srcs[2] = new StreamSource(new StringReader(xml)); - - Source[] actual = serviceClient.getNewSourceArrayForward(srcs); - Source[] expected = new Source[srcs.length]; - for(int i = 0; i < srcs.length; ++i) { - expected[i] = StandardTypesTransformer.getNewSource(srcs[i]); - } - Assert.assertEquals(srcs.length, actual.length); - for (int i = 0; i < srcs.length; ++i) { - // [rfeng] The data may come back as a different source - Assert.assertEquals(sourceToString(expected[i]), sourceToString(actual[i])); - } - - } - - private void performTestNewUUID(StandardTypesServiceClient serviceClient) { - UUID[] uuids = new UUID[3]; - uuids[0] = UUID.nameUUIDFromBytes("ABCDEFGHJKLMNOPQRSTUVWXYZ".getBytes()); - uuids[1] = UUID.nameUUIDFromBytes("abcdefghjklmnopqrstuvwxyz".getBytes()); - uuids[2] = UUID.randomUUID(); - - for (int i = 0; i < uuids.length; ++i) { - UUID expected = UUID.fromString(uuids[i].toString() + "AAA"); - UUID actual = serviceClient.getNewUUIDForward(uuids[i]); - Assert.assertEquals(expected, actual); - } - } - - private void performTestNewUUIDArray(StandardTypesServiceClient serviceClient) { - UUID[] uuids = new UUID[3]; - uuids[0] = UUID.nameUUIDFromBytes("ABCDEFGHJKLMNOPQRSTUVWXYZ".getBytes()); - uuids[1] = UUID.nameUUIDFromBytes("abcdefghjklmnopqrstuvwxyz".getBytes()); - uuids[2] = UUID.randomUUID(); - - UUID[] actual = serviceClient.getNewUUIDArrayForward(uuids); - for (int i = 0; i < uuids.length; ++i) { - UUID expected = UUID.fromString(uuids[i].toString() + "AAA"); - Assert.assertEquals(expected, actual[i]); - } - } - - /** - * This method compares two DataHandlers. - * @return true if the data in the two handlers is the same. - */ - private boolean compare(DataHandler dh1, DataHandler dh2) throws IOException { - InputStream inp1 = dh1.getInputStream(); - InputStream inp2 = dh2.getInputStream(); - for(;;) { - int i1 = inp1.read(); - int i2 = inp2.read(); - if(i1 == -1 && i2 == -1) { - return true; - } else if(i1 != -1 && i2 != -1) { - if(i1 != i2) { - return false; - } - } else { - return false; - } - } - } - - /** - * This method returns the content of a source object as String. - */ - private String sourceToString(Source s) throws Exception { - StringWriter sw = new StringWriter(); - Result r = new StreamResult(sw); - TransformerFactory.newInstance().newTransformer().transform(s, r); - sw.close(); - return sw.toString(); - } - - /** - * This class initializes with the width, height and pixel data of a java.awt.Image object. - */ - private static class ImageInfo { - private int h, w, pixels[]; - public ImageInfo(Image img) throws InterruptedException { - w = img.getWidth(null); - h = img.getHeight(null); - pixels = new int[w*h]; - PixelGrabber pg = new PixelGrabber(img, 0, 0, w, h, pixels, 0, w); - pg.grabPixels(); - } - - public boolean equals(Object that) { - if(that == null) { - return false; - } else if(!(that instanceof ImageInfo)) { - return false; - } - - ImageInfo that1 = (ImageInfo)that; - if(w != that1.w || h != that1.h || pixels == null || that1.pixels == null || pixels.length != that1.pixels.length) { - return false; - } - for(int i = 0; i < pixels.length; ++i) { - if(pixels[i] != that1.pixels[i]) { - return false; - } - } - return true; - } - - public String toString() { - return this.getClass().getSimpleName()+"[w = "+w+", h = "+h+", pixels = "+pixels+"]"; - } - } -} diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxbgen/pom.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxbgen/pom.xml deleted file mode 100644 index b1f71c57fa..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxbgen/pom.xml +++ /dev/null @@ -1,262 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<project> - <parent> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>itest-databindings</artifactId> - <version>1.5.1</version> - </parent> - - <modelVersion>4.0.0</modelVersion> - - <artifactId>itest-databindings-jaxb</artifactId> - <version>1.5.1</version> - <packaging>jar</packaging> - <name>Apache Tuscany SCA iTest JAXB Databinding</name> - - <repositories> - <repository> - <snapshots> - <enabled>true</enabled> - </snapshots> - <id>java.net</id> - <name>java.net Maven 1.x Repository</name> - <url>http://download.java.net/maven/1</url> - <layout>legacy</layout> - </repository> - <repository> - <id>java.net2</id> - <name>java.net Maven 2.x Repository</name> - <url>http://download.java.net/maven/2</url> - </repository> - </repositories> - - <pluginRepositories> - <pluginRepository> - <id>java.net2</id> - <name>java.net Maven 2.x Repository</name> - <url>http://download.java.net/maven/2</url> - </pluginRepository> - </pluginRepositories> - - <dependencies> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-binding-ws-axis2</artifactId> - <version>${pom.version}</version> - <scope>runtime</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-databinding-jaxb</artifactId> - <version>${pom.version}</version> - <scope>runtime</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-databinding-sdo</artifactId> - <version>${pom.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-databinding-axiom</artifactId> - <version>${pom.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>itest-databindings-common</artifactId> - <version>${pom.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-host-embedded</artifactId> - <version>${pom.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-implementation-java-runtime</artifactId> - <version>${pom.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-interface-java-xml</artifactId> - <version>${pom.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-host-jetty</artifactId> - <version>1.5.1</version> - <scope>runtime</scope> - </dependency> - <dependency> - <groupId>javax.xml.bind</groupId> - <artifactId>jaxb-api</artifactId> - <version>2.1</version> - <scope>compile</scope> - </dependency> - - <dependency> - <groupId>com.sun.xml.ws</groupId> - <artifactId>jaxws-rt</artifactId> - <version>2.1.3</version> - </dependency> - <!-- Added by Simon Nash --> - <dependency> - <groupId>commons-collections</groupId> - <artifactId>commons-collections</artifactId> - <version>3.1</version> - </dependency> - <dependency> - <groupId>log4j</groupId> - <artifactId>log4j</artifactId> - <version>1.2.12</version> - <scope>provided</scope> - </dependency> - <!-- End of addition --> - </dependencies> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <configuration> - <argLine>-Djava.endorsed.dirs=target/endorsed</argLine> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-dependency-plugin</artifactId> - <executions> - <execution> - <phase>generate-sources</phase> - <goals> - <goal>unpack</goal> - </goals> - <configuration> - <artifactItems> - <artifactItem> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>itest-databindings-common</artifactId> - <version>${project.version}</version> - <overWrite>true</overWrite> - <outputDirectory>${project.build.directory}/classes</outputDirectory> - </artifactItem> - </artifactItems> - </configuration> - </execution> - <execution> - <id>copy</id> - <phase>generate-sources</phase> - <goals> - <goal>copy</goal> - </goals> - <configuration> - <artifactItems> - <artifactItem> - <groupId>javax.xml.ws</groupId> - <artifactId>jaxws-api</artifactId> - <version>2.1</version> - <type>jar</type> - </artifactItem> - <artifactItem> - <groupId>javax.xml.bind</groupId> - <artifactId>jaxb-api</artifactId> - <version>2.1</version> - <type>jar</type> - </artifactItem> - </artifactItems> - <outputDirectory>${project.build.directory}/endorsed</outputDirectory> - <overWriteReleases>false</overWriteReleases> - <overWriteSnapshots>true</overWriteSnapshots> - </configuration> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>build-helper-maven-plugin</artifactId> - <version>1.0</version> - <executions> - <execution> - <id>add-test-source</id> - <phase>generate-sources</phase> - <goals> - <goal>add-test-source</goal> - </goals> - <configuration> - <sources> - <source>target/jaxws-source</source> - </sources> - </configuration> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>exec-maven-plugin</artifactId> - <executions> - <execution> - <id>generate-test-source</id> - <phase>process-resources</phase> - <goals> - <goal>java</goal> - </goals> - </execution> - </executions> - <configuration> - <mainClass>org.apache.tuscany.sca.itest.generate.Generate</mainClass> - <arguments> - <argument>${project.build.directory}</argument> - </arguments> - </configuration> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>jaxws-maven-plugin</artifactId> - <version>1.9</version> - <executions> - <execution> - <phase>process-resources</phase> - <goals> - <goal>wsimport</goal> - </goals> - </execution> - </executions> - <configuration> - <packageName>org.apache.tuscany.sca.itest.jaxbdatabinding.generated</packageName> - <wsdlDirectory>${project.build.directory}/classes/wsdl</wsdlDirectory> - <wsdlFiles> - <wsdlFile>Greeter.wsdl</wsdlFile> - </wsdlFiles> - <sourceDestDir>${project.build.directory}/jaxws-source</sourceDestDir> - <verbose>false</verbose> - <xnocompile>true</xnocompile> - </configuration> - </plugin> - </plugins> - </build> -</project> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxbgen/src/main/resources/generate/generate.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxbgen/src/main/resources/generate/generate.xml deleted file mode 100644 index 8381a164ea..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxbgen/src/main/resources/generate/generate.xml +++ /dev/null @@ -1,172 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:Generate xmlns:tns="http://www.apache.org/tuscany/generate" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.example.org/generate generate.xsd "> - - - <Template> - <TemplateName>GreeterService.java.vm</TemplateName> - <TemplateTargetDir>../src/main/java/org/apache/tuscany/sca/itest/jaxbdatabinding</TemplateTargetDir> - <JavaPackage>org.apache.tuscany.sca.itest.jaxbdatabinding</JavaPackage> - </Template> - <Template> - <TemplateName>GreeterServiceImpl.java.vm</TemplateName> - <TemplateTargetDir>../src/main/java/org/apache/tuscany/sca/itest/jaxbdatabinding</TemplateTargetDir> - <JavaPackage>org.apache.tuscany.sca.itest.jaxbdatabinding</JavaPackage> - </Template> - <Template> - <TemplateName>GreeterServiceClient.java.vm</TemplateName> - <TemplateTargetDir>../src/main/java/org/apache/tuscany/sca/itest/jaxbdatabinding</TemplateTargetDir> - <JavaPackage>org.apache.tuscany.sca.itest.jaxbdatabinding</JavaPackage> - </Template> - <Template> - <TemplateName>GreeterServiceClientImpl.java.vm</TemplateName> - <TemplateTargetDir>../src/main/java/org/apache/tuscany/sca/itest/jaxbdatabinding</TemplateTargetDir> - <JavaPackage>org.apache.tuscany.sca.itest.jaxbdatabinding</JavaPackage> - </Template> - <Template> - <TemplateName>DatabindingTestCase.java.vm</TemplateName> - <TemplateTargetDir>../src/test/java/org/apache/tuscany/sca/itest/jaxbdatabinding</TemplateTargetDir> - <JavaPackage>org.apache.tuscany.sca.itest.jaxbdatabinding</JavaPackage> - </Template> - <Template> - <TemplateName>Greeter.wsdl.vm</TemplateName> - <TemplateTargetDir>classes/wsdl</TemplateTargetDir> - </Template> - <InputFile> - <FileName>Person.xsd</FileName> - <FilePath>xsd</FilePath> - <JavaPackage>org.apache.tuscany.sca.itest.jaxbdatabinding.generated</JavaPackage> - <Factory>ObjectFactory</Factory> - <Namespace>http://apache.org/tuscany/sca/itest/databinding/types</Namespace> - <Prefix>p</Prefix> - <Type> - <TypeName>PersonType</TypeName> - <CreateTypeCode> - ObjectFactory factory = new ObjectFactory(); - param = factory.createPersonType(); - param.setFirstName("George"); - param.setLastName("Doors"); - </CreateTypeCode> - <ModifyTypeCode> - param.setGreeting("Hello"); - </ModifyTypeCode> - <ResultComparison> - assertNotSame("greetedPerson.getGreeting() not set", "", result.getGreeting()); - </ResultComparison> - </Type> - </InputFile> - <InputFile> - <FileName>Interop.xsd</FileName> - <FilePath>xsd</FilePath> - <JavaPackage>org.apache.tuscany.sca.itest.jaxbdatabinding.generated</JavaPackage> - <Factory>ObjectFactory</Factory> - <Namespace>http://www.apache.org/tuscany/interop</Namespace> - <Prefix>i</Prefix> - <!-- Type> - <TypeName>AnnotationComplexType</TypeName> - <CreateTypeCode> - ObjectFactory factory = new ObjectFactory(); - param = factory.createAnnotationComplexType(); - param.setSimpleTypeWithNameElement("SomeText"); - </CreateTypeCode> - <ModifyTypeCode> - param.setSimpleTypeWithNameElement("SomeChangedText");; - </ModifyTypeCode> - <ResultComparison> - assertEquals("data not changed corretly", "SomeChangedText", result.getSimpleTypeWithNameElement()); - </ResultComparison> - </Type--> - <Type> - <TypeName>AttributeComplexType</TypeName> - <CreateTypeCode> - ObjectFactory factory = new ObjectFactory(); - org.apache.tuscany.sca.itest.jaxbdatabinding.generated.AttributeType attrib = factory.createAttributeType(); - attrib.setAttribute("SomeText"); - param = factory.createAttributeComplexType(); - param.setAttributeElement(attrib); - </CreateTypeCode> - <ModifyTypeCode> - param.getAttributeElement().setAttribute("SomeChangedText");; - </ModifyTypeCode> - <ResultComparison> - assertEquals("data not changed corretly", "SomeChangedText", result.getAttributeElement().getAttribute()); - </ResultComparison> - </Type> - <Type> - <TypeName>AttributeReferenceComplexType</TypeName> - <CreateTypeCode> - ObjectFactory factory = new ObjectFactory(); - param = factory.createAttributeReferenceComplexType(); - - param.setReferencedAttribute("SomeText"); - </CreateTypeCode> - <ModifyTypeCode> - param.setReferencedAttribute("SomeChangedText");; - </ModifyTypeCode> - <ResultComparison> - assertEquals("data not changed corretly", "SomeChangedText", result.getReferencedAttribute()); - </ResultComparison> - </Type> - <Type> - <TypeName>SimpleTypeWithAbstractComplexType</TypeName> - <CreateTypeCode> - ObjectFactory factory = new ObjectFactory(); - param = factory.createSimpleTypeWithAbstractComplexType(); - param.setSimpleTypeWithAbstractExtensionElement("SomeText"); - </CreateTypeCode> - <ModifyTypeCode> - param.setSimpleTypeWithAbstractExtensionElement("SomeChangedText");; - </ModifyTypeCode> - <ResultComparison> - assertEquals("data not changed corretly", "SomeChangedText", result.getSimpleTypeWithAbstractExtensionElement()); - </ResultComparison> - </Type> - <Type> - <TypeName>SimpleTypeWithNameComplexType</TypeName> - <CreateTypeCode> - ObjectFactory factory = new ObjectFactory(); - param = factory.createSimpleTypeWithNameComplexType(); - param.setSimpleTypeWithNameElement("SomeText"); - </CreateTypeCode> - <ModifyTypeCode> - param.setSimpleTypeWithNameElement("SomeChangedText");; - </ModifyTypeCode> - <ResultComparison> - assertEquals("data not changed corretly", "SomeChangedText", result.getSimpleTypeWithNameElement()); - </ResultComparison> - </Type> - <Type> - <TypeName>ComplexTypeWithContentType</TypeName> - <CreateTypeCode> - ObjectFactory factory = new ObjectFactory(); - param = factory.createComplexTypeWithContentType(); - param.setSimpleTypeWithName("SomeText"); - </CreateTypeCode> - <ModifyTypeCode> - param.setSimpleTypeWithName("SomeChangedText");; - </ModifyTypeCode> - <ResultComparison> - assertEquals("data not changed corretly", "SomeChangedText", result.getSimpleTypeWithName()); - </ResultComparison> - </Type> - </InputFile> -</tns:Generate> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxbgen/src/main/resources/greeter.composite b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxbgen/src/main/resources/greeter.composite deleted file mode 100644 index ae0740e6fe..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/jaxbgen/src/main/resources/greeter.composite +++ /dev/null @@ -1,49 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
--->
-<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
- xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"
- name="JAXBGreeterService">
-
- <!-- Clients to test the services -->
- <component name="DefaultGreeterServiceClient">
- <implementation.java class="org.apache.tuscany.sca.itest.jaxbdatabinding.GreeterServiceClientImpl" />
- <reference name="greeterService" target="JAXBGreeterServiceComponent"/>
- </component>
-
- <component name="WSGreeterServiceClient">
- <implementation.java class="org.apache.tuscany.sca.itest.jaxbdatabinding.GreeterServiceClientImpl" />
- </component>
-
- <reference name="JAXBGreeterServiceWSReference" promote="WSGreeterServiceClient/greeterService">
- <interface.wsdl interface="http://apache.org/tuscany/sca/itest/databinding/services#wsdl.interface(GreeterPortType)"/>
- <binding.ws wsdlElement="http://apache.org/tuscany/sca/itest/databinding/services#wsdl.port(GreeterService/GreeterPort)"/>
- </reference>
-
- <!-- The greeter service -->
- <service name="JAXBGreeterService" promote="JAXBGreeterServiceComponent">
- <interface.wsdl interface="http://apache.org/tuscany/sca/itest/databinding/services#wsdl.interface(GreeterPortType)"/>
- <binding.ws wsdlElement="http://apache.org/tuscany/sca/itest/databinding/services#wsdl.port(GreeterService/GreeterPort)"/>
- </service>
-
- <!-- Components used to implement the services -->
- <component name="JAXBGreeterServiceComponent">
- <implementation.java class="org.apache.tuscany.sca.itest.jaxbdatabinding.GreeterServiceImpl" />
- </component>
-</composite>
diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/pom.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/pom.xml deleted file mode 100644 index 54c1623e32..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/pom.xml +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<project> - <parent> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-itest</artifactId> - <version>1.5.1</version> - <relativePath>../pom.xml</relativePath> - </parent> - <modelVersion>4.0.0</modelVersion> - - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>itest-databindings</artifactId> - <name>Apache Tuscany SCA Databindings Integration Tests</name> - <version>1.5.1</version> - - - <packaging>pom</packaging> - <build> - <defaultGoal>install</defaultGoal> - </build> - <modules> - <module>common</module> - <module>sdogen</module> - <module>jaxbgen</module> - <module>jaxb-bottom-up</module> - <module>jaxb-top-down</module> - <module>interop</module> - </modules> -</project> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/readme.html b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/readme.html deleted file mode 100644 index 24a44e4ed7..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/readme.html +++ /dev/null @@ -1,157 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> - -<html> -<head> - <meta http-equiv="Content-Type" content= - "text/html; charset=us-ascii"> - <meta http-equiv="Content-Style-Type" content="text/css"> - - <title>Tuscany SCA Integration Test Databindings</title> - <!-- LINK rel="stylesheet" href="ait.css" type="text/css" --> - <link rel="stylesheet" href="../../css/base.css" type="text/css"> -</head> - -<body> -<h3>Tuscany SCA Integation Test Databindings </h3> - -<h4>Overview</h4> - -<p> -This integration test tests the Tuscany SCA databinding implementation by passing various data structures -across various bindings using the supported databindings. There are tests for the individual databindings -which exercise various bindings with the same databinding at client and server ends of each binding. There -is also an integration test which exercises the transformer chains by specifying different databindings at -client and server ends of the binding. -</p> -<p> -In doing this testing it is apparent that there is a lot of repetition in creating client, services, idl and -type for each of the data types for each of the bindings for each of the databindings. To reduce the amount -of effort required to maintain the tests as new types, bindings and databindings are added the test cases -themselves are generated from configuration files. -</p> - -<h4>Test Structure</h4> - -Databindings/Common - hold files common across all tests <br/> -Databindings/Interop - test the transformer chains with combinations of databindings<br/> -Databindings/sdogen and jaxbgen - test each databindings independently<br/> - -<h4>Test Generation</h4> -<p> -To reduce the amount of manual effort involved in building and maintaining tests cases the test cases -themselves are generated at run time using a set of velocity templates. Each test module has a generate.xml -file in the resources/generate directory which tells the generator what to do. The file looks like this. -</p> -<img src="config.png"> -<p> -Each <Template> element describes a velocit template to use in the test. The generator process is to expand -each velocity template provided with all of the types specified in the <InputFile> sections. -</p> -<p> -Each <InputFile> element describes a schema file used in the test. It also contains a description of each -data type that will be tested. The generator then arranges for the databinding being tested to generate -appropriate Java classes to represent the type at runtime. The individual databinding tests use the following -flow. -</p> - -Create data object at client<br/> -Client passes data object to server<br/> -Server modifies data object<br/> -Server returns modified data object to client<br/> -Client tests that modified data object is as expected<br/> -<p> -Hence the CreateTypeCode, ModifyTypeCode and ResultComparison elements which contain the type specific code -that is used in the tests. -</p> - -<h4>The Common Directory</h4> -<p> -The common directory contains the information that is common across all of the tests. This includes the -common velocity templates and the source for the generator that reads the config.xml for each test. Common -also contains all of the data type schema as these are common across all tests. Each test pom is written so -that the contents of the common project are expanded into the tests target directory before the test starts. -In this way all of the common elements are available for the test generation phase and at test runtime. -</p> - -<h4>Individual Databinding Tests</h4> -<p> -The individual databinding tests, for example, sdogen and jaxbgen, are mostly empty as their content is -generated at runtime. The configuration and any test specific templates can be found in the resources/generate -directory. Some files are hand crafted for each test and live in their static position in the tests directory -structure. -</p> -<p> -Each test uses the same scenario -</p> -<img src="databinding.png"> -<p> -The interface exposed by the greeter service provides a greet method for each data type being tested, for -example, -</p> -<code> -PersonType greetPersonType(PersonType param);<br/> -AttributeComplexType greetAttributeComplexType(AttributeComplexType param);<br/> -AttributeReferenceComplexType greetAttributeReferenceComplexType(AttributeReferenceComplexType param);<br/> -</code> -<p> -These methods are taken from the SDO databinding test and hence PersonType, AttributeComplexType, etc. will -have been generated by the SDO static type generator. -</p> -<p> -Hence this tests a single databinding across a variety of data types and a variety of bindings. New bindings -be tested by extending the composite. Be datatypes can be tested by updating the confix.xml file. -</p> -<h4>Databinding Interoperability Tests</h4> -<p> -This test uses the generated client, services and types from the individual databinding tests. It does not -regenerate them and you will see a dependency in the interop test pom on the other databinding tests. Is also -has some generate elements because the composite file must currently have import statements for all of the -SDO factories required during tested. -</p> -<p> -The scenario used here is, -</p> -<img src="interop.png"> -<p> -A chain of components is built up for each binding. Each component, drawn from the the inidividual databinding -tests, tests the full range of datatypes. The client components are designed so that they can be chained together -and so tranformations across different databindings is tests. The service component simply changes the data -content and returns it as before. -</p> -<h4>Building And Running The Tests</h4> -<p> -The tests can be built by doing the following. -</p> -<code> -cd sca/itest/databindings <br/> -mvn -</code> -<p> -The only modification to this process is required if a new input file is added to the tests suite. In this -case you will need to edit the config.xml files as appropriate but run mvn twice. This may sound a little -odd but currently the sdo test uses its pom file to generate the require SDO types. As the test is self -generating the pom file will not be updated to include the new type file until the second time it's run. The -aim is at some point to remove this feature from the pom. -</p> - - -</body> -</html> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/sdogen/pom.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/sdogen/pom.xml deleted file mode 100644 index 2fde742fd8..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/sdogen/pom.xml +++ /dev/null @@ -1,251 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<project> - <parent> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>itest-databindings</artifactId> - <version>1.5.1</version> - </parent> - - <modelVersion>4.0.0</modelVersion> - - <artifactId>itest-databindings-sdo</artifactId> - <version>1.5.1</version> - <packaging>jar</packaging> - <name>Apache Tuscany SCA iTest SDO Databinding</name> - - <repositories> - <repository> - <snapshots> - <enabled>true</enabled> - </snapshots> - <id>java.net</id> - <name>java.net Maven 1.x Repository</name> - <url>http://download.java.net/maven/1</url> - <layout>legacy</layout> - </repository> - </repositories> - - <pluginRepositories> - <pluginRepository> - <snapshots> - <enabled>true</enabled> - </snapshots> - <id>java.net</id> - <name>java.net Maven 1.x Repository</name> - <url>http://download.java.net/maven/1</url> - <layout>legacy</layout> - </pluginRepository> - </pluginRepositories> - - <dependencies> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-binding-ws-axis2</artifactId> - <version>${pom.version}</version> - <scope>runtime</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-core-databinding</artifactId> - <version>${pom.version}</version> - <scope>runtime</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-databinding-jaxb</artifactId> - <version>${pom.version}</version> - <scope>runtime</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-databinding-sdo</artifactId> - <version>${pom.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-databinding-axiom</artifactId> - <version>${pom.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-host-embedded</artifactId> - <version>${pom.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-implementation-java-runtime</artifactId> - <version>${pom.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-interface-java-xml</artifactId> - <version>${pom.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>itest-databindings-common</artifactId> - <version>${pom.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>tuscany-host-jetty</artifactId> - <version>${pom.version}</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>javax.servlet</groupId> - <artifactId>servlet-api</artifactId> - <version>2.5</version> - <scope>test</scope> - </dependency> - <!-- Added by Mike Edwards --> - <dependency> - <groupId>commons-collections</groupId> - <artifactId>commons-collections</artifactId> - <version>3.1</version> - </dependency> - <dependency> - <groupId>log4j</groupId> - <artifactId>log4j</artifactId> - <version>1.2.12</version> - <scope>provided</scope> - </dependency> - <!-- End of addition --> - </dependencies> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-dependency-plugin</artifactId> - <executions> - <execution> - <phase>generate-sources</phase> - <goals> - <goal>unpack</goal> - </goals> - <configuration> - <artifactItems> - <artifactItem> - <groupId>org.apache.tuscany.sca</groupId> - <artifactId>itest-databindings-common</artifactId> - <version>${project.version}</version> - <overWrite>true</overWrite> - <outputDirectory>${project.build.directory}/classes</outputDirectory> - </artifactItem> - </artifactItems> - </configuration> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>build-helper-maven-plugin</artifactId> - <version>1.0</version> - <executions> - <execution> - <id>add-test-source</id> - <phase>generate-sources</phase> - <goals> - <goal>add-test-source</goal> - </goals> - <configuration> - <sources> - <source>target/sdo-source</source> - </sources> - </configuration> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>exec-maven-plugin</artifactId> - <executions> - <execution> - <id>generate-test-sdo-source</id> - <phase>process-resources</phase> - <goals> - <goal>java</goal> - </goals> - </execution> - </executions> - <configuration> - <mainClass>org.apache.tuscany.sca.itest.generate.Generate</mainClass> - <arguments> - <argument>${project.build.directory}</argument> - <argument>true</argument> - </arguments> - </configuration> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>exec-maven-plugin</artifactId> - <executions> - <execution> - <id>generate-test-source</id> - <phase>process-resources</phase> - <goals> - <goal>java</goal> - </goals> - </execution> - </executions> - <configuration> - <mainClass>org.apache.tuscany.sca.itest.generate.Generate</mainClass> - <arguments> - <argument>${project.build.directory}</argument> - <argument>true</argument> - </arguments> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.tuscany.sdo</groupId> - <artifactId>tuscany-sdo-plugin</artifactId> - <version>1.1.1</version> - <executions> - <execution> - <id>generate-sdo</id> - <phase>process-resources</phase> - <configuration> - <schemaFiles> - <configuration> - <fileName>${project.build.directory}/classes/wsdl/Greeter.wsdl</fileName> - <javaPackage>org.apache.tuscany.sca.itest.databinding.services</javaPackage> - </configuration> - </schemaFiles> - <noNotification>true</noNotification> - <noContainment>true</noContainment> - <noUnsettable>true</noUnsettable> - </configuration> - <goals> - <goal>generate</goal> - </goals> - </execution> - </executions> - </plugin> - </plugins> - </build> -</project> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/sdogen/src/main/resources/generate/generate.xml b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/sdogen/src/main/resources/generate/generate.xml deleted file mode 100644 index 3f9926604d..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/sdogen/src/main/resources/generate/generate.xml +++ /dev/null @@ -1,170 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<tns:Generate xmlns:tns="http://www.apache.org/tuscany/generate" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.example.org/generate generate.xsd "> - - <Template> - <TemplateName>greeter.composite.vm</TemplateName> - <TemplateTargetDir>classes</TemplateTargetDir> - </Template> - <Template> - <TemplateName>GreeterService.java.vm</TemplateName> - <TemplateTargetDir>../src/main/java/org/apache/tuscany/sca/itest/sdodatabinding</TemplateTargetDir> - <JavaPackage>org.apache.tuscany.sca.itest.sdodatabinding</JavaPackage> - </Template> - <Template> - <TemplateName>GreeterServiceImpl.java.vm</TemplateName> - <TemplateTargetDir>../src/main/java/org/apache/tuscany/sca/itest/sdodatabinding</TemplateTargetDir> - <JavaPackage>org.apache.tuscany.sca.itest.sdodatabinding</JavaPackage> - </Template> - <Template> - <TemplateName>GreeterServiceClientImpl.java.vm</TemplateName> - <TemplateTargetDir>../src/main/java/org/apache/tuscany/sca/itest/sdodatabinding</TemplateTargetDir> - <JavaPackage>org.apache.tuscany.sca.itest.sdodatabinding</JavaPackage> - </Template> - <Template> - <TemplateName>DatabindingTestCase.java.vm</TemplateName> - <TemplateTargetDir>../src/test/java/org/apache/tuscany/sca/itest/sdodatabinding</TemplateTargetDir> - <JavaPackage>org.apache.tuscany.sca.itest.sdodatabinding</JavaPackage> - </Template> - <Template> - <TemplateName>Greeter.wsdl.vm</TemplateName> - <TemplateTargetDir>classes/wsdl</TemplateTargetDir> - </Template> - <InputFile> - <FileName>Person.xsd</FileName> - <FilePath>xsd</FilePath> - <JavaPackage>org.apache.tuscany.sca.itest.databinding.types</JavaPackage> - <Factory>TypesFactory</Factory> - <Namespace>http://apache.org/tuscany/sca/itest/databinding/types</Namespace> - <Prefix>p</Prefix> - <Type> - <TypeName>PersonType</TypeName> - <CreateTypeCode> - TypesFactory factory = TypesFactory.INSTANCE; - param = factory.createPersonType(); - param.setFirstName("George"); - param.setLastName("Doors"); - </CreateTypeCode> - <ModifyTypeCode> - param.setGreeting("Hello"); - </ModifyTypeCode> - <ResultComparison> - assertNotSame("greetedPerson.getGreeting() not set", "", result.getGreeting()); - </ResultComparison> - </Type> - </InputFile> - <InputFile> - <FileName>Interop.xsd</FileName> - <FilePath>xsd</FilePath> - <JavaPackage>org.apache.tuscany.interop</JavaPackage> - <Factory>InteropFactory</Factory> - <Namespace>http://www.apache.org/tuscany/interop</Namespace> - <Prefix>i</Prefix> - <!-- Type> - <TypeName>AnnotationComplexType</TypeName> - <CreateTypeCode> - InteropFactory factory = InteropFactory.INSTANCE; - param = factory.createAnnotationComplexType(); - param.setSimpleTypeWithNameElement("SomeText"); - </CreateTypeCode> - <ModifyTypeCode> - param.setSimpleTypeWithNameElement("SomeChangedText");; - </ModifyTypeCode> - <ResultComparison> - assertEquals("data not changed corretly", "SomeChangedText", result.getSimpleTypeWithNameElement()); - </ResultComparison> - </Type--> - <Type> - <TypeName>AttributeComplexType</TypeName> - <CreateTypeCode> - InteropFactory factory = InteropFactory.INSTANCE; - org.apache.tuscany.interop.AttributeType attrib = factory.createAttributeType(); - attrib.setAttribute("SomeText"); - param = factory.createAttributeComplexType(); - param.setAttributeElement(attrib); - </CreateTypeCode> - <ModifyTypeCode> - param.getAttributeElement().setAttribute("SomeChangedText");; - </ModifyTypeCode> - <ResultComparison> - assertEquals("data not changed corretly", "SomeChangedText", result.getAttributeElement().getAttribute()); - </ResultComparison> - </Type> - <Type> - <TypeName>AttributeReferenceComplexType</TypeName> - <CreateTypeCode> - InteropFactory factory = InteropFactory.INSTANCE; - param = factory.createAttributeReferenceComplexType(); - - param.setReferencedAttribute("SomeText"); - </CreateTypeCode> - <ModifyTypeCode> - param.setReferencedAttribute("SomeChangedText");; - </ModifyTypeCode> - <ResultComparison> - assertEquals("data not changed corretly", "SomeChangedText", result.getReferencedAttribute()); - </ResultComparison> - </Type> - <Type> - <TypeName>SimpleTypeWithAbstractComplexType</TypeName> - <CreateTypeCode> - InteropFactory factory = InteropFactory.INSTANCE; - param = factory.createSimpleTypeWithAbstractComplexType(); - param.setSimpleTypeWithAbstractExtensionElement("SomeText"); - </CreateTypeCode> - <ModifyTypeCode> - param.setSimpleTypeWithAbstractExtensionElement("SomeChangedText");; - </ModifyTypeCode> - <ResultComparison> - assertEquals("data not changed corretly", "SomeChangedText", result.getSimpleTypeWithAbstractExtensionElement()); - </ResultComparison> - </Type> - <Type> - <TypeName>SimpleTypeWithNameComplexType</TypeName> - <CreateTypeCode> - InteropFactory factory = InteropFactory.INSTANCE; - param = factory.createSimpleTypeWithNameComplexType(); - param.setSimpleTypeWithNameElement("SomeText"); - </CreateTypeCode> - <ModifyTypeCode> - param.setSimpleTypeWithNameElement("SomeChangedText");; - </ModifyTypeCode> - <ResultComparison> - assertEquals("data not changed corretly", "SomeChangedText", result.getSimpleTypeWithNameElement()); - </ResultComparison> - </Type> - <Type> - <TypeName>ComplexTypeWithContentType</TypeName> - <CreateTypeCode> - InteropFactory factory = InteropFactory.INSTANCE; - param = factory.createComplexTypeWithContentType(); - param.setSimpleTypeWithName("SomeText"); - </CreateTypeCode> - <ModifyTypeCode> - param.setSimpleTypeWithName("SomeChangedText");; - </ModifyTypeCode> - <ResultComparison> - assertEquals("data not changed corretly", "SomeChangedText", result.getSimpleTypeWithName()); - </ResultComparison> - </Type> - </InputFile> -</tns:Generate> diff --git a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/sdogen/src/main/resources/generate/greeter.composite.vm b/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/sdogen/src/main/resources/generate/greeter.composite.vm deleted file mode 100644 index 9494d70f96..0000000000 --- a/sca-java-1.x/tags/1.5.1-RC3/itest/databindings/sdogen/src/main/resources/generate/greeter.composite.vm +++ /dev/null @@ -1,56 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. ---> -<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" - xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance" - xmlns:dbsdo="http://tuscany.apache.org/xmlns/sca/databinding/sdo/1.0" - name="SDOGreeterService"> - - <!-- SDO factory classes --> - <dbsdo:import.sdo factory="org.apache.tuscany.sca.itest.databinding.services.ServicesFactory"/> - #foreach( $file in $fileList ) - <dbsdo:import.sdo factory="$file.getJavaPackage().$file.getFactory()"/> - #end - - <!-- Clients to test the services --> - <component name="DefaultGreeterServiceClient"> - <implementation.java class="org.apache.tuscany.sca.itest.sdodatabinding.GreeterServiceClientImpl" /> - <reference name="greeterService" target="SDOGreeterServiceComponent"/> - </component> - - <component name="WSGreeterServiceClient"> - <implementation.java class="org.apache.tuscany.sca.itest.sdodatabinding.GreeterServiceClientImpl" /> - </component> - - <reference name="SDOGreeterServiceWSReference" promote="WSGreeterServiceClient/greeterService"> - <interface.wsdl interface="http://apache.org/tuscany/sca/itest/databinding/services#wsdl.interface(GreeterPortType)"/> - <binding.ws wsdlElement="http://apache.org/tuscany/sca/itest/databinding/services#wsdl.port(GreeterService/GreeterPort)"/> - </reference> - - <!-- The greeter service --> - <service name="SDOGreeterService" promote="SDOGreeterServiceComponent"> - <interface.wsdl interface="http://apache.org/tuscany/sca/itest/databinding/services#wsdl.interface(GreeterPortType)"/> - <binding.ws wsdlElement="http://apache.org/tuscany/sca/itest/databinding/services#wsdl.port(GreeterService/GreeterPort)"/> - </service> - - <component name="SDOGreeterServiceComponent"> - <implementation.java class="org.apache.tuscany.sca.itest.sdodatabinding.GreeterServiceImpl" /> - </component> - -</composite> |