From yoko-commits-returnstewartkevin@example.net Tue May 01 12:46:25 2007 Return-Path: <yoko-commits-returnstewartkevin@example.net> Delivered-To: stewartkevin@example.net Received: (qmail 18481 invoked from network); 1 May 2007 12:46:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2007 12:46:25 -0000 Received: (qmail 88271 invoked by uid 500); 1 May 2007 12:46:31 -0000 Delivered-To: stewartkevin@example.net Received: (qmail 88252 invoked by uid 500); 1 May 2007 12:46:31 -0000 Mailing-List: contact stewartkevin@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:stewartkevin@example.net> List-Unsubscribe: <mailto:stewartkevin@example.net> List-Post: <mailto:stewartkevin@example.net> List-Id: <yoko-commits.incubator.apache.org> Reply-To: stewartkevin@example.net Delivered-To: mailing list stewartkevin@example.net Received: (qmail 88243 invoked by uid 99); 1 May 2007 12:46:31 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2007 05:46:31 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2007 05:46:24 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 2D3301A9838; Tue, 1 May 2007 05:46:04 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r534042 - in /incubator/yoko/trunk: bindings/src/test/java/org/apache/yoko/bindings/corba/ bindings/src/test/resources/wsdl/type_test/ tools/src/main/java/org/apache/yoko/tools/processors/idl/ tools/src/test/java/org/apache/yoko/tools/ tool... Date: Tue, 01 May 2007 12:46:03 -0000 To: stewartkevin@example.net From: stewartkevin@example.net X-Mailer: svnmailer-1.1.0 Message-Id: <stewartkevin@example.net> X-Virus-Checked: Checked by ClamAV on apache.org Author: bravi Date: Tue May 1 05:46:02 2007 New Revision: 534042 URL: http://svn.apache.org/viewvc?view=rev&rev=534042 Log: [YOKO-363] - Fixed the issue with the exception message not referencing the proper namespace & also updated the name of the Enum type. Added: incubator/yoko/trunk/tools/src/test/resources/idl/expected_Exception_DiffNS.wsdl (with props) Modified: incubator/yoko/trunk/bindings/src/test/java/org/apache/yoko/bindings/corba/AbstractTypeTestClient.java incubator/yoko/trunk/bindings/src/test/resources/wsdl/type_test/type_test.xsd incubator/yoko/trunk/tools/src/main/java/org/apache/yoko/tools/processors/idl/OperationVisitor.java incubator/yoko/trunk/tools/src/test/java/org/apache/yoko/tools/IDLToWSDLTest.java Modified: incubator/yoko/trunk/bindings/src/test/java/org/apache/yoko/bindings/corba/AbstractTypeTestClient.java URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/bindings/src/test/java/org/apache/yoko/bindings/corba/AbstractTypeTestClient.java?view=diff&rev=534042&r1=534041&r2=534042 ============================================================================== --- incubator/yoko/trunk/bindings/src/test/java/org/apache/yoko/bindings/corba/AbstractTypeTestClient.java (original) +++ incubator/yoko/trunk/bindings/src/test/java/org/apache/yoko/bindings/corba/AbstractTypeTestClient.java Tue May 1 05:46:02 2007 @@ -36,7 +36,7 @@ import org.apache.type_test.corba.TypeTestCORBAService; import org.apache.type_test.types1.NMTokenEnum; -import org.apache.type_test.types1.StringEnum; +import org.apache.type_test.types1.SimpleEnum; import junit.framework.TestCase; @@ -871,24 +871,24 @@ */ } - public void testStringEnum() throws Exception { + public void testSimpleEnum() throws Exception { String[] xx = {"abc", "def", "ghi"}; String[] yy = {"ghi", "abc", "def"}; - Holder<StringEnum> z = new Holder<StringEnum>(); + Holder<SimpleEnum> z = new Holder<SimpleEnum>(); for (int i = 0; i < 3; i++) { - StringEnum x = StringEnum.fromValue(xx[i]); - StringEnum yOrig = StringEnum.fromValue(yy[i]); - Holder<StringEnum> y = new Holder<StringEnum>(yOrig); + SimpleEnum x = SimpleEnum.fromValue(xx[i]); + SimpleEnum yOrig = SimpleEnum.fromValue(yy[i]); + Holder<SimpleEnum> y = new Holder<SimpleEnum>(yOrig); - StringEnum ret = client.testStringEnum(x, y, z); + SimpleEnum ret = client.testSimpleEnum(x, y, z); if (!perfTestOnly) { - assertEquals("testStringEnum(): Incorrect value for inout param", + assertEquals("testSimpleEnum(): Incorrect value for inout param", x.value(), y.value.value()); - assertEquals("testStringEnum(): Incorrect value for out param", + assertEquals("testSimpleEnum(): Incorrect value for out param", yOrig.value(), z.value.value()); - assertEquals("testStringEnum(): Incorrect return value", + assertEquals("testSimpleEnum(): Incorrect return value", x.value(), ret.value()); } } Modified: incubator/yoko/trunk/bindings/src/test/resources/wsdl/type_test/type_test.xsd URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/bindings/src/test/resources/wsdl/type_test/type_test.xsd?view=diff&rev=534042&r1=534041&r2=534042 ============================================================================== --- incubator/yoko/trunk/bindings/src/test/resources/wsdl/type_test/type_test.xsd (original) +++ incubator/yoko/trunk/bindings/src/test/resources/wsdl/type_test/type_test.xsd Tue May 1 05:46:02 2007 @@ -185,7 +185,7 @@ <enumeration value="BLUE"/> </restriction> </simpleType> - <simpleType name="StringEnum"> + <simpleType name="SimpleEnum"> <restriction base="string"> <enumeration value="abc"/> <enumeration value="def"/> Modified: incubator/yoko/trunk/tools/src/main/java/org/apache/yoko/tools/processors/idl/OperationVisitor.java URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/tools/src/main/java/org/apache/yoko/tools/processors/idl/OperationVisitor.java?view=diff&rev=534042&r1=534041&r2=534042 ============================================================================== --- incubator/yoko/trunk/tools/src/main/java/org/apache/yoko/tools/processors/idl/OperationVisitor.java (original) +++ incubator/yoko/trunk/tools/src/main/java/org/apache/yoko/tools/processors/idl/OperationVisitor.java Tue May 1 05:46:02 2007 @@ -386,7 +386,7 @@ // message - part Part part = definition.createPart(); part.setName("exception"); - part.setElementName(new QName(definition.getTargetNamespace(), exceptionName)); + part.setElementName(new QName(schema.getTargetNamespace(), exceptionName)); faultMsg.addPart(part); // porttype - operation - fault Modified: incubator/yoko/trunk/tools/src/test/java/org/apache/yoko/tools/IDLToWSDLTest.java URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/tools/src/test/java/org/apache/yoko/tools/IDLToWSDLTest.java?view=diff&rev=534042&r1=534041&r2=534042 ============================================================================== --- incubator/yoko/trunk/tools/src/test/java/org/apache/yoko/tools/IDLToWSDLTest.java (original) +++ incubator/yoko/trunk/tools/src/test/java/org/apache/yoko/tools/IDLToWSDLTest.java Tue May 1 05:46:02 2007 @@ -308,4 +308,18 @@ assertEquals("IDLToWSDL Failed", noError, exc); doTestGeneratedWsdl(expected, actual); } + + public void testExceptionsWithSchemasInDifferentNS() throws Exception { + File input = new File(getClass().getResource("/idl/Exception.idl").getFile()); + File actual = new File(output, "Exception.wsdl"); + File expected = new File(getClass().getResource("/idl/expected_Exception_DiffNS.wsdl").getFile()); + + String[] args = new String[] {"-x", "http://schemas.apache.org/yoko/idl/Exception/types", + "-o", output.toString(), + input.toString() + }; + int exc = execute(args); + assertEquals("IDLToWSDL Failed", noError, exc); + doTestGeneratedWsdl(expected, actual); + } } Added: incubator/yoko/trunk/tools/src/test/resources/idl/expected_Exception_DiffNS.wsdl URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/tools/src/test/resources/idl/expected_Exception_DiffNS.wsdl?view=auto&rev=534042 ============================================================================== --- incubator/yoko/trunk/tools/src/test/resources/idl/expected_Exception_DiffNS.wsdl (added) +++ incubator/yoko/trunk/tools/src/test/resources/idl/expected_Exception_DiffNS.wsdl Tue May 1 05:46:02 2007 @@ -0,0 +1,181 @@ +<?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://schemas.apache.org/yoko/idl/Exception" xmlns:tns="http://schemas.apache.org/yoko/idl/Exception" xmlns:corba="http://schemas.apache.org/yoko/bindings/corba" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd1="http://schemas.apache.org/yoko/idl/Exception/types" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> + <corba:typeMapping targetNamespace="http://schemas.apache.org/yoko/idl/Exception/typemap"> + <corba:exception xmlns:ns4="http://schemas.apache.org/yoko/idl/Exception" xmlns="http://schemas.apache.org/yoko/idl/Exception/typemap" repositoryID="IDL:ExternalException:1.0" name="ExternalException" type="ns4:ExternalExceptionType"> + <corba:member name="description" idltype="corba:string" /> + </corba:exception> + <corba:exception xmlns:ns4="http://schemas.apache.org/yoko/idl/Exception" xmlns="http://schemas.apache.org/yoko/idl/Exception/typemap" repositoryID="IDL:InterfaceWithExceptions/EmptyException:1.0" name="InterfaceWithExceptions.EmptyException" type="ns4:InterfaceWithExceptions.EmptyExceptionType" /> + <corba:exception xmlns:ns4="http://schemas.apache.org/yoko/idl/Exception" xmlns="http://schemas.apache.org/yoko/idl/Exception/typemap" repositoryID="IDL:InterfaceWithExceptions/LongException:1.0" name="InterfaceWithExceptions.LongException" type="ns4:InterfaceWithExceptions.LongExceptionType"> + <corba:member name="error" idltype="corba:string" /> + <corba:member name="code" idltype="corba:long" /> + </corba:exception> + </corba:typeMapping> + <wsdl:types> + <xs:schema attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://schemas.apache.org/yoko/idl/Exception/types" xmlns="http://schemas.apache.org/yoko/idl/Exception/types" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <xs:element name="ExternalException" type="ExternalExceptionType"> + </xs:element> + <xs:complexType name="ExternalExceptionType"> + <xs:sequence> + <xs:element name="description" type="xs:string"> + </xs:element> + </xs:sequence> + </xs:complexType> + <xs:element name="InterfaceWithExceptions.EmptyException" type="InterfaceWithExceptions.EmptyExceptionType"> + </xs:element> + <xs:complexType name="InterfaceWithExceptions.EmptyExceptionType"> + <xs:sequence> + </xs:sequence> + </xs:complexType> + <xs:element name="InterfaceWithExceptions.LongException" type="InterfaceWithExceptions.LongExceptionType"> + </xs:element> + <xs:complexType name="InterfaceWithExceptions.LongExceptionType"> + <xs:sequence> + <xs:element name="error" type="xs:string"> + </xs:element> + <xs:element name="code" type="xs:int"> + </xs:element> + </xs:sequence> + </xs:complexType> + <xs:element name="method"> + <xs:complexType> + <xs:sequence> + <xs:element name="in_string" type="xs:string"> + </xs:element> + <xs:element name="inout_short" type="xs:short"> + </xs:element> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="methodResponse"> + <xs:complexType> + <xs:sequence> + <xs:element name="return" type="xs:string"> + </xs:element> + <xs:element name="out_long" type="xs:int"> + </xs:element> + <xs:element name="inout_short" type="xs:short"> + </xs:element> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="raiseExternalException"> + <xs:complexType> + <xs:sequence> + <xs:element name="aString" type="xs:string"> + </xs:element> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="raiseExternalExceptionResponse"> + <xs:complexType> + <xs:sequence> + </xs:sequence> + </xs:complexType> + </xs:element> + </xs:schema> + </wsdl:types> + <wsdl:message name="InterfaceWithExceptions.LongException"> + <wsdl:part name="exception" element="xsd1:InterfaceWithExceptions.LongException"> + </wsdl:part> + </wsdl:message> + <wsdl:message name="method"> + <wsdl:part name="inparameter" element="xsd1:method"> + </wsdl:part> + </wsdl:message> + <wsdl:message name="ExternalException"> + <wsdl:part name="exception" element="xsd1:ExternalException"> + </wsdl:part> + </wsdl:message> + <wsdl:message name="methodResponse"> + <wsdl:part name="outparameter" element="xsd1:methodResponse"> + </wsdl:part> + </wsdl:message> + <wsdl:message name="raiseExternalExceptionResponse"> + <wsdl:part name="outparameter" element="xsd1:raiseExternalExceptionResponse"> + </wsdl:part> + </wsdl:message> + <wsdl:message name="InterfaceWithExceptions.EmptyException"> + <wsdl:part name="exception" element="xsd1:InterfaceWithExceptions.EmptyException"> + </wsdl:part> + </wsdl:message> + <wsdl:message name="raiseExternalException"> + <wsdl:part name="inparameter" element="xsd1:raiseExternalException"> + </wsdl:part> + </wsdl:message> + <wsdl:portType name="InterfaceWithExceptions"> + <wsdl:operation name="method"> + <wsdl:input name="methodRequest" message="tns:method"> + </wsdl:input> + <wsdl:output name="methodResponse" message="tns:methodResponse"> + </wsdl:output> + <wsdl:fault name="InterfaceWithExceptions.EmptyException" message="tns:InterfaceWithExceptions.EmptyException"> + </wsdl:fault> + <wsdl:fault name="InterfaceWithExceptions.LongException" message="tns:InterfaceWithExceptions.LongException"> + </wsdl:fault> + </wsdl:operation> + <wsdl:operation name="raiseExternalException"> + <wsdl:input name="raiseExternalExceptionRequest" message="tns:raiseExternalException"> + </wsdl:input> + <wsdl:output name="raiseExternalExceptionResponse" message="tns:raiseExternalExceptionResponse"> + </wsdl:output> + <wsdl:fault name="ExternalException" message="tns:ExternalException"> + </wsdl:fault> + </wsdl:operation> + </wsdl:portType> + <wsdl:binding name="InterfaceWithExceptionsCORBABinding" type="tns:InterfaceWithExceptions"> + <corba:binding repositoryID="IDL:InterfaceWithExceptions:1.0" /> + <wsdl:operation name="method"> + <corba:operation name="method"> + <corba:param mode="in" name="in_string" idltype="corba:string" /> + <corba:param mode="out" name="out_long" idltype="corba:long" /> + <corba:param mode="inout" name="inout_short" idltype="corba:short" /> + <corba:return name="return" idltype="corba:string" /> + <corba:raises xmlns="http://schemas.apache.org/yoko/idl/Exception/typemap" exception="InterfaceWithExceptions.LongException" /> + <corba:raises xmlns="http://schemas.apache.org/yoko/idl/Exception/typemap" exception="InterfaceWithExceptions.EmptyException" /> + </corba:operation> + <wsdl:input name="methodRequest"> + </wsdl:input> + <wsdl:output name="methodResponse"> + </wsdl:output> + <wsdl:fault name="InterfaceWithExceptions.EmptyException"> + </wsdl:fault> + <wsdl:fault name="InterfaceWithExceptions.LongException"> + </wsdl:fault> + </wsdl:operation> + <wsdl:operation name="raiseExternalException"> + <corba:operation name="raiseExternalException"> + <corba:param mode="in" name="aString" idltype="corba:string" /> + <corba:raises xmlns="http://schemas.apache.org/yoko/idl/Exception/typemap" exception="ExternalException" /> + </corba:operation> + <wsdl:input name="raiseExternalExceptionRequest"> + </wsdl:input> + <wsdl:output name="raiseExternalExceptionResponse"> + </wsdl:output> + <wsdl:fault name="ExternalException"> + </wsdl:fault> + </wsdl:operation> + </wsdl:binding> + <wsdl:service name="InterfaceWithExceptionsCORBAService"> + <wsdl:port name="InterfaceWithExceptionsCORBAPort" binding="tns:InterfaceWithExceptionsCORBABinding"> + <corba:address location="IOR:" /> + </wsdl:port> + </wsdl:service> +</wsdl:definitions> Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_Exception_DiffNS.wsdl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_Exception_DiffNS.wsdl ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_Exception_DiffNS.wsdl ------------------------------------------------------------------------------ svn:mime-type = text/xml From yoko-commits-returnstewartkevin@example.net Tue May 01 15:21:25 2007 Return-Path: <yoko-commits-returnstewartkevin@example.net> Delivered-To: stewartkevin@example.net Received: (qmail 19209 invoked from network); 1 May 2007 15:21:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2007 15:21:25 -0000 Received: (qmail 40149 invoked by uid 500); 1 May 2007 15:21:31 -0000 Delivered-To: stewartkevin@example.net Received: (qmail 40112 invoked by uid 500); 1 May 2007 15:21:31 -0000 Mailing-List: contact stewartkevin@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:stewartkevin@example.net> List-Unsubscribe: <mailto:stewartkevin@example.net> List-Post: <mailto:stewartkevin@example.net> List-Id: <yoko-commits.incubator.apache.org> Reply-To: stewartkevin@example.net Delivered-To: mailing list stewartkevin@example.net Received: (qmail 40103 invoked by uid 99); 1 May 2007 15:21:31 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2007 08:21:31 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2007 08:21:22 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id DAB9A1A9838; Tue, 1 May 2007 08:21:01 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r534116 - in /incubator/yoko/trunk/tools/src: main/java/org/apache/yoko/tools/ main/java/org/apache/yoko/tools/common/ main/java/org/apache/yoko/tools/processors/idl/ test/java/org/apache/yoko/tools/processors/ test/resources/idl/ Date: Tue, 01 May 2007 15:21:00 -0000 To: stewartkevin@example.net From: stewartkevin@example.net X-Mailer: svnmailer-1.1.0 Message-Id: <stewartkevin@example.net> X-Virus-Checked: Checked by ClamAV on apache.org Author: enolan Date: Tue May 1 08:20:59 2007 New Revision: 534116 URL: http://svn.apache.org/viewvc?view=rev&rev=534116 Log: Yoko-325 - Add idltowsdl tool option -L <logical-wsdl-filename>. Yoko-326 - Add idltowsdl tool option -P <physical-wsdl-filename> Yoko-327 - Add idltowsdl tool option -T <schema-file-name>. Added: incubator/yoko/trunk/tools/src/test/resources/idl/OptionL.idl incubator/yoko/trunk/tools/src/test/resources/idl/OptionP.idl incubator/yoko/trunk/tools/src/test/resources/idl/OptionsLP.idl incubator/yoko/trunk/tools/src/test/resources/idl/OptionsLPT.idl incubator/yoko/trunk/tools/src/test/resources/idl/OptionsLT.idl incubator/yoko/trunk/tools/src/test/resources/idl/OptionsPT.idl incubator/yoko/trunk/tools/src/test/resources/idl/OptionsSchema.idl incubator/yoko/trunk/tools/src/test/resources/idl/expected_Logical.wsdl (with props) incubator/yoko/trunk/tools/src/test/resources/idl/expected_LogicalLP.wsdl (with props) incubator/yoko/trunk/tools/src/test/resources/idl/expected_LogicalLPT.wsdl (with props) incubator/yoko/trunk/tools/src/test/resources/idl/expected_LogicalLT.wsdl (with props) incubator/yoko/trunk/tools/src/test/resources/idl/expected_OptionsSchema.wsdl (with props) incubator/yoko/trunk/tools/src/test/resources/idl/expected_Physical.wsdl (with props) incubator/yoko/trunk/tools/src/test/resources/idl/expected_PhysicalLP.wsdl (with props) incubator/yoko/trunk/tools/src/test/resources/idl/expected_PhysicalLPT.wsdl (with props) incubator/yoko/trunk/tools/src/test/resources/idl/expected_PhysicalPT.wsdl (with props) incubator/yoko/trunk/tools/src/test/resources/idl/expected_Schema.wsdl (with props) incubator/yoko/trunk/tools/src/test/resources/idl/expected_SchemaLPT.wsdl (with props) incubator/yoko/trunk/tools/src/test/resources/idl/expected_SchemaLT.wsdl (with props) incubator/yoko/trunk/tools/src/test/resources/idl/expected_SchemaPT.wsdl (with props) Modified: incubator/yoko/trunk/tools/src/main/java/org/apache/yoko/tools/IDLToWSDL.java incubator/yoko/trunk/tools/src/main/java/org/apache/yoko/tools/common/ToolCorbaConstants.java incubator/yoko/trunk/tools/src/main/java/org/apache/yoko/tools/processors/idl/IDLToWSDLProcessor.java incubator/yoko/trunk/tools/src/main/java/org/apache/yoko/tools/processors/idl/WSDLASTVisitor.java incubator/yoko/trunk/tools/src/test/java/org/apache/yoko/tools/processors/IDLToWSDLGenerationTest.java Modified: incubator/yoko/trunk/tools/src/main/java/org/apache/yoko/tools/IDLToWSDL.java URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/tools/src/main/java/org/apache/yoko/tools/IDLToWSDL.java?view=diff&rev=534116&r1=534115&r2=534116 ============================================================================== --- incubator/yoko/trunk/tools/src/main/java/org/apache/yoko/tools/IDLToWSDL.java (original) +++ incubator/yoko/trunk/tools/src/main/java/org/apache/yoko/tools/IDLToWSDL.java Tue May 1 08:20:59 2007 @@ -116,6 +116,18 @@ env.put(ToolCorbaConstants.CFG_SCHEMA_NAMESPACE, doc.getParameter(ToolCorbaConstants.CFG_SCHEMA_NAMESPACE)); } + if (env.optionSet(ToolCorbaConstants.CFG_LOGICAL)) { + env.put(ToolCorbaConstants.CFG_LOGICAL, + doc.getParameter(ToolCorbaConstants.CFG_LOGICAL)); + } + if (env.optionSet(ToolCorbaConstants.CFG_PHYSICAL)) { + env.put(ToolCorbaConstants.CFG_PHYSICAL, + doc.getParameter(ToolCorbaConstants.CFG_PHYSICAL)); + } + if (env.optionSet(ToolCorbaConstants.CFG_SCHEMA)) { + env.put(ToolCorbaConstants.CFG_SCHEMA, + doc.getParameter(ToolCorbaConstants.CFG_SCHEMA)); + } //need to add all the other options } Modified: incubator/yoko/trunk/tools/src/main/java/org/apache/yoko/tools/common/ToolCorbaConstants.java URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/tools/src/main/java/org/apache/yoko/tools/common/ToolCorbaConstants.java?view=diff&rev=534116&r1=534115&r2=534116 ============================================================================== --- incubator/yoko/trunk/tools/src/main/java/org/apache/yoko/tools/common/ToolCorbaConstants.java (original) +++ incubator/yoko/trunk/tools/src/main/java/org/apache/yoko/tools/common/ToolCorbaConstants.java Tue May 1 08:20:59 2007 @@ -41,4 +41,6 @@ public static final String CFG_CORBATYPEMAP_NAMESPACE = "corbatypemapns"; public static final String CFG_WSDL_ENCODING = "encoding"; public static final String CFG_BOUNDEDSTRINGS = "boundedstrings"; + public static final String CFG_LOGICAL = "logical"; + public static final String CFG_PHYSICAL = "physical"; } Modified: incubator/yoko/trunk/tools/src/main/java/org/apache/yoko/tools/processors/idl/IDLToWSDLProcessor.java URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/tools/src/main/java/org/apache/yoko/tools/processors/idl/IDLToWSDLProcessor.java?view=diff&rev=534116&r1=534115&r2=534116 ============================================================================== --- incubator/yoko/trunk/tools/src/main/java/org/apache/yoko/tools/processors/idl/IDLToWSDLProcessor.java (original) +++ incubator/yoko/trunk/tools/src/main/java/org/apache/yoko/tools/processors/idl/IDLToWSDLProcessor.java Tue May 1 08:20:59 2007 @@ -51,11 +51,30 @@ protected ToolContext toolContext; private String idl; + private String schemaFilename; + private String logical; + private String physical; private ProcessorEnvironment env; private Writer outputWriter; + private Writer schemaOutputWriter; + private Writer logicalOutputWriter; + private Writer physicalOutputWriter; public void process() throws ToolException { idl = getBaseFilename(env.get(ToolCorbaConstants.CFG_IDLFILE).toString()); + + if (env.optionSet(ToolCorbaConstants.CFG_LOGICAL)) { + // deal with writing logical file + logical = getBaseFilename(env.get(ToolCorbaConstants.CFG_LOGICAL).toString()); + } + if (env.optionSet(ToolCorbaConstants.CFG_PHYSICAL)) { + // deal with writing physical file + physical = getBaseFilename(env.get(ToolCorbaConstants.CFG_PHYSICAL).toString()); + } + if (env.optionSet(ToolCorbaConstants.CFG_SCHEMA)) { + // deal with writing schema types to a specified file + schemaFilename = getBaseFilename(env.get(ToolCorbaConstants.CFG_SCHEMA).toString()); + } try { parseIDL(); } catch (Exception e) { @@ -71,6 +90,18 @@ public void setOutputWriter(Writer writer) { outputWriter = writer; } + + public void setSchemaOutputWriter(Writer writer) { + schemaOutputWriter = writer; + } + + public void setLogicalOutputWriter(Writer writer) { + logicalOutputWriter = writer; + } + + public void setPhysicalOutputWriter(Writer writer) { + physicalOutputWriter = writer; + } public void parseIDL() throws Exception { IDLPreProcessor preProcessor = new IDLPreProcessor(); @@ -126,12 +157,47 @@ Definition def = visitor.getDefinition(); Binding[] bindings = visitor.getCorbaBindings(); generateCORBAService(def, bindings); - visitor.writeDefinition(outputWriter); + writeDefinitions(visitor, outputDir); } catch (Exception ex) { throw new ToolException(ex.getMessage(), ex); } } + + private void writeDefinitions(WSDLASTVisitor visitor, String outputDir) + throws Exception { + + if (env.optionSet(ToolCorbaConstants.CFG_LOGICAL) + || env.optionSet(ToolCorbaConstants.CFG_PHYSICAL) + || env.optionSet(ToolCorbaConstants.CFG_SCHEMA)) { + if (logical != null) { + if (logicalOutputWriter == null) { + FileWriterUtil fw = new FileWriterUtil(outputDir); + logicalOutputWriter = fw.getWriter("", logical); + } + } + if (physical != null) { + if (physicalOutputWriter == null) { + FileWriterUtil fw = new FileWriterUtil(outputDir); + physicalOutputWriter = fw.getWriter("", physical); + } + } + + if (schemaFilename != null) { + if (schemaOutputWriter == null) { + FileWriterUtil fw = new FileWriterUtil(outputDir); + schemaOutputWriter = fw.getWriter("", schemaFilename); + } + } + visitor.setIdlFile(idl + ".wsdl"); + visitor.writeDefinitions(outputWriter, schemaOutputWriter, + logicalOutputWriter, physicalOutputWriter, + schemaFilename, logical, physical); + } else { + visitor.writeDefinition(outputWriter); + } + } + public void setEnvironment(ProcessorEnvironment penv) { env = penv; } Modified: incubator/yoko/trunk/tools/src/main/java/org/apache/yoko/tools/processors/idl/WSDLASTVisitor.java URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/tools/src/main/java/org/apache/yoko/tools/processors/idl/WSDLASTVisitor.java?view=diff&rev=534116&r1=534115&r2=534116 ============================================================================== --- incubator/yoko/trunk/tools/src/main/java/org/apache/yoko/tools/processors/idl/WSDLASTVisitor.java (original) +++ incubator/yoko/trunk/tools/src/main/java/org/apache/yoko/tools/processors/idl/WSDLASTVisitor.java Tue May 1 08:20:59 2007 @@ -28,7 +28,11 @@ import javax.wsdl.Binding; import javax.wsdl.BindingOperation; import javax.wsdl.Definition; +import javax.wsdl.Import; +import javax.wsdl.Message; import javax.wsdl.Port; +import javax.wsdl.PortType; +import javax.wsdl.Service; import javax.wsdl.Types; import javax.wsdl.WSDLException; import javax.wsdl.extensions.ExtensibilityElement; @@ -71,16 +75,19 @@ TypeMappingType typeMap; ScopeNameCollection scopedNames; DeferredActionCollection deferredActions; + String targetNamespace; private boolean declaredWSAImport; private XmlSchemaType sequenceOctetType; private boolean boundedStringOverride; + private String idlFile; public WSDLASTVisitor(String tns, String schemans, String corbatypemaptns) throws WSDLException, JAXBException { definition = createWsdlDefinition(tns); + targetNamespace = tns; schemas = new XmlSchemaCollection(); scopedNames = new ScopeNameCollection(); deferredActions = new DeferredActionCollection(); @@ -117,6 +124,14 @@ } } + public void setIdlFile(String idl) { + idlFile = idl; + } + + public String getIdlFile() { + return idlFile; + } + public Definition getDefinition() { return definition; } @@ -184,11 +199,173 @@ return (Binding[]) result.toArray(new Binding[result.size()]); } - public boolean writeDefinition(Writer writer) throws Exception { + public boolean writeDefinition(Writer writer) throws Exception { WSDLUtils.writeWSDL(definition, writer); return true; - } + } + + public boolean writeDefinition(Definition def, Writer writer) throws Exception { + WSDLUtils.writeWSDL(def, writer); + return true; + } + + public boolean writeDefinitions(Writer writer, Writer schemaWriter, + Writer logicalWriter, Writer physicalWriter, + String schemaFilename, String logicalFile, + String physicalFile) throws Exception { + + Definition logicalDef = getLogicalDefinition(schemaFilename, schemaWriter); + Definition physicalDef = null; + if (schemaFilename != null && logicalFile == null + && physicalFile == null) { + physicalDef = getPhysicalDefinition(logicalDef, true); + } else { + physicalDef = getPhysicalDefinition(logicalDef, false); + } + + // write out logical file -L and physical in default + if (logicalFile != null && physicalFile == null) { + writeDefinition(logicalDef, logicalWriter); + physicalDef = writeImport(physicalDef, logicalFile); + writeDefinition(physicalDef, writer); + } else if (logicalFile != null && physicalFile != null) { + // write both logical -L and physical files -P + writeDefinition(logicalDef, logicalWriter); + physicalDef = writeImport(physicalDef, logicalFile); + writeDefinition(physicalDef, physicalWriter); + } else if (logicalFile == null && physicalFile != null) { + // write pyhsical file -P and logical in default + writeDefinition(logicalDef, writer); + physicalDef = writeImport(physicalDef, getIdlFile()); + writeDefinition(physicalDef, physicalWriter); + } else if (logicalFile == null && physicalFile == null + && schemaFilename != null) { + // write out the schema file -T and default of logical + // and physical together. + writeDefinition(physicalDef, writer); + } else if (logicalFile == null && physicalFile == null + && schemaFilename == null) { + // write out the default file + writeDefinition(definition, writer); + } + + return true; + } + + // Writes import into either a logical, physical or schema file. + private Definition writeImport(Definition def, String filename) { + Import importDef = def.createImport(); + importDef.setLocationURI(filename); + importDef.setNamespaceURI(definition.getTargetNamespace()); + def.addImport(importDef); + return def; + } + + // -T option - generate schema types into a specified file. + private void writeSchemaFile(Writer schemaWriter) throws Exception { + Types types = definition.getTypes(); + Definition schemaDef = createWsdlDefinition(targetNamespace); + schemaDef.setTypes(types); + Iterator iter = definition.getNamespaces().values().iterator(); + while (iter.hasNext()) { + String namespace = (String)iter.next(); + String prefix = definition.getPrefix(namespace); + if (prefix.equals("corba")) { + schemaDef.removeNamespace(prefix); + } + } + writeDefinition(schemaDef, schemaWriter); + } + // Gets the logical definition for a file - an import will be added for the + // schema types if -T is used and a separate schema file generated. + private Definition getLogicalDefinition(String schemaFilename, Writer schemaWriter) + throws WSDLException, JAXBException, Exception { + Definition def = createWsdlDefinition(targetNamespace); + + // checks for -T option. + if (schemaFilename != null) { + writeSchemaFile(schemaWriter); + writeImport(def, schemaFilename); + } else { + Types types = definition.getTypes(); + def.setTypes(types); + } + + Iterator iter = definition.getAllPortTypes().values().iterator(); + while (iter.hasNext()) { + PortType port = (PortType)iter.next(); + def.addPortType(port); + } + + iter = definition.getMessages().values().iterator(); + while (iter.hasNext()) { + Message msg = (Message)iter.next(); + def.addMessage(msg); + } + + iter = definition.getNamespaces().values().iterator(); + while (iter.hasNext()) { + String namespace = (String)iter.next(); + String prefix = definition.getPrefix(namespace); + if (!prefix.equals("corba")) { + def.addNamespace(prefix, namespace); + } else { + def.removeNamespace(prefix); + } + } + + iter = definition.getImports().values().iterator(); + while (iter.hasNext()) { + Import importType = (Import)iter.next(); + def.addImport(importType); + } + + def.setDocumentationElement(definition.getDocumentationElement()); + def.setDocumentBaseURI(definition.getDocumentBaseURI()); + + return def; + } + + // Write the physical definitions to a file. + private Definition getPhysicalDefinition(Definition logicalDef, boolean schemaOnly) + throws WSDLException, JAXBException { + + Definition def = null; + if (schemaOnly) { + def = logicalDef; + } else { + def = createWsdlDefinition(targetNamespace); + } + + Iterator iter = definition.getNamespaces().values().iterator(); + while (iter.hasNext()) { + String namespace = (String)iter.next(); + String prefix = definition.getPrefix(namespace); + def.addNamespace(prefix, namespace); + } + + iter = definition.getAllBindings().values().iterator(); + while (iter.hasNext()) { + Binding binding = (Binding)iter.next(); + def.addBinding(binding); + } + iter = definition.getAllServices().values().iterator(); + while (iter.hasNext()) { + Service service = (Service)iter.next(); + def.addService(service); + } + iter = definition.getExtensibilityElements().iterator(); + while (iter.hasNext()) { + ExtensibilityElement ext = (ExtensibilityElement)iter.next(); + def.addExtensibilityElement(ext); + } + + def.setExtensionRegistry(definition.getExtensionRegistry()); + + return def; + } + private Definition createWsdlDefinition(String tns) throws WSDLException, JAXBException { WSDLFactory wsdlFactory = WSDLFactory.newInstance(); Definition wsdlDefinition = wsdlFactory.newDefinition(); Modified: incubator/yoko/trunk/tools/src/test/java/org/apache/yoko/tools/processors/IDLToWSDLGenerationTest.java URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/tools/src/test/java/org/apache/yoko/tools/processors/IDLToWSDLGenerationTest.java?view=diff&rev=534116&r1=534115&r2=534116 ============================================================================== --- incubator/yoko/trunk/tools/src/test/java/org/apache/yoko/tools/processors/IDLToWSDLGenerationTest.java (original) +++ incubator/yoko/trunk/tools/src/test/java/org/apache/yoko/tools/processors/IDLToWSDLGenerationTest.java Tue May 1 08:20:59 2007 @@ -20,6 +20,7 @@ package org.apache.yoko.tools.processors; import java.io.ByteArrayInputStream; +import java.io.File; import java.io.InputStream; import java.net.URL; import java.util.HashMap; @@ -245,4 +246,155 @@ // This tests consts where their types are scoped names testWSDLGeneration("/idl/ConstScopename.idl", "/idl/expected_ConstScopename.wsdl"); } + + public void testLogicalPhysicalSchemaGeneration(String sourceIdlFilename, String sourceLogicalName, + String sourcePhysicalName, String sourceSchemaFilename, + String expectedLogicalName, String expectedPhysicalName, + String expectedSchemaFilename) throws Exception { + + URL idl = getClass().getResource(sourceIdlFilename); + + ProcessorEnvironment env = new ProcessorEnvironment(); + Map<String, Object> cfg = new HashMap<String, Object>(); + cfg.put(ToolCorbaConstants.CFG_IDLFILE, idl.getFile()); + if (sourceLogicalName != null) { + cfg.put(ToolCorbaConstants.CFG_LOGICAL, sourceLogicalName); + } + if (sourcePhysicalName != null) { + cfg.put(ToolCorbaConstants.CFG_PHYSICAL, sourcePhysicalName); + } + if (sourceSchemaFilename != null) { + cfg.put(ToolCorbaConstants.CFG_SCHEMA, sourceSchemaFilename); + } + + env.setParameters(cfg); + IDLToWSDLProcessor processor = new IDLToWSDLProcessor(); + processor.setEnvironment(env); + java.io.CharArrayWriter outL = new java.io.CharArrayWriter(); + processor.setLogicalOutputWriter(outL); + java.io.CharArrayWriter outP = new java.io.CharArrayWriter(); + processor.setPhysicalOutputWriter(outP); + java.io.CharArrayWriter outS = new java.io.CharArrayWriter(); + processor.setSchemaOutputWriter(outS); + processor.process(); + + if (expectedLogicalName != null) { + InputStream origLogicalStream = getClass().getResourceAsStream(expectedLogicalName); + InputStream actualLogicalStream = new ByteArrayInputStream(outL.toString().getBytes()); + XMLStreamReader orig = factory.createXMLStreamReader(origLogicalStream); + XMLStreamReader actual = factory.createXMLStreamReader(actualLogicalStream); + wsdlGenTester.compare(orig, actual); + } + + if (expectedPhysicalName != null) { + InputStream origPhysicalStream = getClass().getResourceAsStream(expectedPhysicalName); + InputStream actualPhysicalStream = new ByteArrayInputStream(outP.toString().getBytes()); + XMLStreamReader orig = factory.createXMLStreamReader(origPhysicalStream); + XMLStreamReader actual = factory.createXMLStreamReader(actualPhysicalStream); + wsdlGenTester.compare(orig, actual); + } + + if (expectedSchemaFilename != null) { + InputStream origSchemaStream = getClass().getResourceAsStream(expectedSchemaFilename); + InputStream actualSchemaStream = new ByteArrayInputStream(outS.toString().getBytes()); + XMLStreamReader orig = factory.createXMLStreamReader(origSchemaStream); + XMLStreamReader actual = factory.createXMLStreamReader(actualSchemaStream); + wsdlGenTester.compare(orig, actual); + } + } + + + + public void testSchemaGeneration(String sourceIdlFilename, String sourceSchemaFilename, + String expectedDefaultName, String expectedSchemaFilename) + throws Exception { + URL idl = getClass().getResource(sourceIdlFilename); + ProcessorEnvironment env = new ProcessorEnvironment(); + Map<String, Object> cfg = new HashMap<String, Object>(); + cfg.put(ToolCorbaConstants.CFG_IDLFILE, idl.getFile()); + if (sourceSchemaFilename != null) { + cfg.put(ToolCorbaConstants.CFG_SCHEMA, sourceSchemaFilename); + } + + env.setParameters(cfg); + IDLToWSDLProcessor processor = new IDLToWSDLProcessor(); + processor.setEnvironment(env); + java.io.CharArrayWriter out = new java.io.CharArrayWriter(); + processor.setOutputWriter(out); + java.io.CharArrayWriter outS = new java.io.CharArrayWriter(); + processor.setSchemaOutputWriter(outS); + processor.process(); + + InputStream origSchemaStream = getClass().getResourceAsStream(expectedSchemaFilename); + InputStream actualSchemaStream = new ByteArrayInputStream(outS.toString().getBytes()); + XMLStreamReader orig = factory.createXMLStreamReader(origSchemaStream); + XMLStreamReader actual = factory.createXMLStreamReader(actualSchemaStream); + wsdlGenTester.compare(orig, actual); + + InputStream origDefaultStream = getClass().getResourceAsStream(expectedDefaultName); + InputStream actualDefaultStream = new ByteArrayInputStream(out.toString().getBytes()); + orig = factory.createXMLStreamReader(origDefaultStream); + actual = factory.createXMLStreamReader(actualDefaultStream); + wsdlGenTester.compare(orig, actual); + + } + + public void testSchemaOnly() throws Exception { + // This tests if -T option is only passed. + testSchemaGeneration("/idl/OptionsSchema.idl", "expected_Schema.wsdl", + "/idl/expected_OptionsSchema.wsdl", "/idl/expected_Schema.wsdl"); + } + + public void testPhysicalSchema() throws Exception { + // This tests if -P and -T options are passed. + testLogicalPhysicalSchemaGeneration("/idl/OptionsPT.idl", null, + "expected_PhysicalPT.wsdl", + "expected_SchemaPT.wsdl", null, + "/idl/expected_PhysicalPT.wsdl", + "/idl/expected_SchemaPT.wsdl"); + } + + public void testLogicalSchema() throws Exception { + // This tests -L and -T options are passed. + testLogicalPhysicalSchemaGeneration("/idl/OptionsLT.idl", "expected_LogicalLT.wsdl", + null, "expected_SchemaLT.wsdl", + "/idl/expected_LogicalLT.wsdl", null, + "/idl/expected_SchemaLT.wsdl"); + new File("OptionsLPT.wsdl").delete(); + } + + + public void testLogicalOnly() throws Exception { + // This tests if only -L option is passed. + testLogicalPhysicalSchemaGeneration("/idl/OptionL.idl", "expected_Logical.wsdl", + null, null, "/idl/expected_Logical.wsdl", + null, null); + } + + public void testLogicalPhysical() throws Exception { + // This tests if -L and -P options are passed. + testLogicalPhysicalSchemaGeneration("/idl/OptionsLP.idl", "expected_LogicalLP.wsdl", + "expected_PhysicalLP.wsdl", null, + "/idl/expected_LogicalLP.wsdl", + "/idl/expected_PhysicalLP.wsdl", null); + } + + public void testPhysicalOnly() throws Exception { + // This tests if -P option is only passed. + testLogicalPhysicalSchemaGeneration("/idl/OptionP.idl", null, + "expected_Physical.wsdl", + null, null, "/idl/expected_Physical.wsdl", + null); + } + + public void testLogicalPyhsicalSchema() throws Exception { + // This tests if -L, -P and -T options are passed. + testLogicalPhysicalSchemaGeneration("/idl/OptionsLPT.idl", "expected_LogicalLPT.wsdl", + "expected_PhysicalLPT.wsdl", "expected_SchemaLPT.wsdl", + "/idl/expected_LogicalLPT.wsdl", + "/idl/expected_PhysicalLPT.wsdl", + "/idl/expected_SchemaLPT.wsdl"); + + } + } Added: incubator/yoko/trunk/tools/src/test/resources/idl/OptionL.idl URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/tools/src/test/resources/idl/OptionL.idl?view=auto&rev=534116 ============================================================================== --- incubator/yoko/trunk/tools/src/test/resources/idl/OptionL.idl (added) +++ incubator/yoko/trunk/tools/src/test/resources/idl/OptionL.idl Tue May 1 08:20:59 2007 @@ -0,0 +1,34 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +*/ +module foo { + + interface bar { + + struct Employee { + string name; + long number; + }; + + Employee getEmployee(in Employee inEmp, + out Employee outEmp, + inout Employee inoutEmp); + + }; + +}; \ No newline at end of file Added: incubator/yoko/trunk/tools/src/test/resources/idl/OptionP.idl URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/tools/src/test/resources/idl/OptionP.idl?view=auto&rev=534116 ============================================================================== --- incubator/yoko/trunk/tools/src/test/resources/idl/OptionP.idl (added) +++ incubator/yoko/trunk/tools/src/test/resources/idl/OptionP.idl Tue May 1 08:20:59 2007 @@ -0,0 +1,34 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +*/ +module foo { + + interface bar { + + struct Employee { + string name; + long number; + }; + + Employee getEmployee(in Employee inEmp, + out Employee outEmp, + inout Employee inoutEmp); + + }; + +}; \ No newline at end of file Added: incubator/yoko/trunk/tools/src/test/resources/idl/OptionsLP.idl URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/tools/src/test/resources/idl/OptionsLP.idl?view=auto&rev=534116 ============================================================================== --- incubator/yoko/trunk/tools/src/test/resources/idl/OptionsLP.idl (added) +++ incubator/yoko/trunk/tools/src/test/resources/idl/OptionsLP.idl Tue May 1 08:20:59 2007 @@ -0,0 +1,34 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +*/ +module foo { + + interface bar { + + struct Employee { + string name; + long number; + }; + + Employee getEmployee(in Employee inEmp, + out Employee outEmp, + inout Employee inoutEmp); + + }; + +}; \ No newline at end of file Added: incubator/yoko/trunk/tools/src/test/resources/idl/OptionsLPT.idl URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/tools/src/test/resources/idl/OptionsLPT.idl?view=auto&rev=534116 ============================================================================== --- incubator/yoko/trunk/tools/src/test/resources/idl/OptionsLPT.idl (added) +++ incubator/yoko/trunk/tools/src/test/resources/idl/OptionsLPT.idl Tue May 1 08:20:59 2007 @@ -0,0 +1,34 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +*/ +module foo { + + interface bar { + + struct Employee { + string name; + long number; + }; + + Employee getEmployee(in Employee inEmp, + out Employee outEmp, + inout Employee inoutEmp); + + }; + +}; \ No newline at end of file Added: incubator/yoko/trunk/tools/src/test/resources/idl/OptionsLT.idl URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/tools/src/test/resources/idl/OptionsLT.idl?view=auto&rev=534116 ============================================================================== --- incubator/yoko/trunk/tools/src/test/resources/idl/OptionsLT.idl (added) +++ incubator/yoko/trunk/tools/src/test/resources/idl/OptionsLT.idl Tue May 1 08:20:59 2007 @@ -0,0 +1,34 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +*/ +module foo { + + interface bar { + + struct Employee { + string name; + long number; + }; + + Employee getEmployee(in Employee inEmp, + out Employee outEmp, + inout Employee inoutEmp); + + }; + +}; \ No newline at end of file Added: incubator/yoko/trunk/tools/src/test/resources/idl/OptionsPT.idl URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/tools/src/test/resources/idl/OptionsPT.idl?view=auto&rev=534116 ============================================================================== --- incubator/yoko/trunk/tools/src/test/resources/idl/OptionsPT.idl (added) +++ incubator/yoko/trunk/tools/src/test/resources/idl/OptionsPT.idl Tue May 1 08:20:59 2007 @@ -0,0 +1,34 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +*/ +module foo { + + interface bar { + + struct Employee { + string name; + long number; + }; + + Employee getEmployee(in Employee inEmp, + out Employee outEmp, + inout Employee inoutEmp); + + }; + +}; \ No newline at end of file Added: incubator/yoko/trunk/tools/src/test/resources/idl/OptionsSchema.idl URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/tools/src/test/resources/idl/OptionsSchema.idl?view=auto&rev=534116 ============================================================================== --- incubator/yoko/trunk/tools/src/test/resources/idl/OptionsSchema.idl (added) +++ incubator/yoko/trunk/tools/src/test/resources/idl/OptionsSchema.idl Tue May 1 08:20:59 2007 @@ -0,0 +1,35 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +*/ +module foo { + + interface bar { + + struct Employee { + string name; + long number; + }; + + Employee getEmployee(in Employee inEmp, + out Employee outEmp, + inout Employee inoutEmp); + + }; + +}; + \ No newline at end of file Added: incubator/yoko/trunk/tools/src/test/resources/idl/expected_Logical.wsdl URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/tools/src/test/resources/idl/expected_Logical.wsdl?view=auto&rev=534116 ============================================================================== --- incubator/yoko/trunk/tools/src/test/resources/idl/expected_Logical.wsdl (added) +++ incubator/yoko/trunk/tools/src/test/resources/idl/expected_Logical.wsdl Tue May 1 08:20:59 2007 @@ -0,0 +1,71 @@ +<?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://schemas.apache.org/yoko/idl/OptionL" xmlns:tns="http://schemas.apache.org/yoko/idl/OptionL" xmlns:xsd="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="unqualified" elementFormDefault="unqualified" targetNamespace="http://schemas.apache.org/yoko/idl/OptionL" xmlns="http://schemas.apache.org/yoko/idl/OptionL" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <xs:complexType name="foo.bar.Employee"> + <xs:sequence> + <xs:element name="name" type="xs:string"> + </xs:element> + <xs:element name="number" type="xs:int"> + </xs:element> + </xs:sequence> + </xs:complexType> + <xs:element name="getEmployee"> + <xs:complexType> + <xs:sequence> + <xs:element name="inEmp" type="foo.bar.Employee"> + </xs:element> + <xs:element name="inoutEmp" type="foo.bar.Employee"> + </xs:element> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="getEmployeeResponse"> + <xs:complexType> + <xs:sequence> + <xs:element name="return" type="foo.bar.Employee"> + </xs:element> + <xs:element name="outEmp" type="foo.bar.Employee"> + </xs:element> + <xs:element name="inoutEmp" type="foo.bar.Employee"> + </xs:element> + </xs:sequence> + </xs:complexType> + </xs:element> + </xs:schema> + </wsdl:types> + <wsdl:message name="getEmployee"> + <wsdl:part name="inparameter" element="tns:getEmployee"> + </wsdl:part> + </wsdl:message> + <wsdl:message name="getEmployeeResponse"> + <wsdl:part name="outparameter" element="tns:getEmployeeResponse"> + </wsdl:part> + </wsdl:message> + <wsdl:portType name="foo.bar"> + <wsdl:operation name="getEmployee"> + <wsdl:input name="getEmployeeRequest" message="tns:getEmployee"> + </wsdl:input> + <wsdl:output name="getEmployeeResponse" message="tns:getEmployeeResponse"> + </wsdl:output> + </wsdl:operation> + </wsdl:portType> +</wsdl:definitions> Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_Logical.wsdl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_Logical.wsdl ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_Logical.wsdl ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: incubator/yoko/trunk/tools/src/test/resources/idl/expected_LogicalLP.wsdl URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/tools/src/test/resources/idl/expected_LogicalLP.wsdl?view=auto&rev=534116 ============================================================================== --- incubator/yoko/trunk/tools/src/test/resources/idl/expected_LogicalLP.wsdl (added) +++ incubator/yoko/trunk/tools/src/test/resources/idl/expected_LogicalLP.wsdl Tue May 1 08:20:59 2007 @@ -0,0 +1,71 @@ +<?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://schemas.apache.org/yoko/idl/OptionsLP" xmlns:tns="http://schemas.apache.org/yoko/idl/OptionsLP" xmlns:xsd="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="unqualified" elementFormDefault="unqualified" targetNamespace="http://schemas.apache.org/yoko/idl/OptionsLP" xmlns="http://schemas.apache.org/yoko/idl/OptionsLP" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <xs:complexType name="foo.bar.Employee"> + <xs:sequence> + <xs:element name="name" type="xs:string"> + </xs:element> + <xs:element name="number" type="xs:int"> + </xs:element> + </xs:sequence> + </xs:complexType> + <xs:element name="getEmployee"> + <xs:complexType> + <xs:sequence> + <xs:element name="inEmp" type="foo.bar.Employee"> + </xs:element> + <xs:element name="inoutEmp" type="foo.bar.Employee"> + </xs:element> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="getEmployeeResponse"> + <xs:complexType> + <xs:sequence> + <xs:element name="return" type="foo.bar.Employee"> + </xs:element> + <xs:element name="outEmp" type="foo.bar.Employee"> + </xs:element> + <xs:element name="inoutEmp" type="foo.bar.Employee"> + </xs:element> + </xs:sequence> + </xs:complexType> + </xs:element> + </xs:schema> + </wsdl:types> + <wsdl:message name="getEmployeeResponse"> + <wsdl:part name="outparameter" element="tns:getEmployeeResponse"> + </wsdl:part> + </wsdl:message> + <wsdl:message name="getEmployee"> + <wsdl:part name="inparameter" element="tns:getEmployee"> + </wsdl:part> + </wsdl:message> + <wsdl:portType name="foo.bar"> + <wsdl:operation name="getEmployee"> + <wsdl:input name="getEmployeeRequest" message="tns:getEmployee"> + </wsdl:input> + <wsdl:output name="getEmployeeResponse" message="tns:getEmployeeResponse"> + </wsdl:output> + </wsdl:operation> + </wsdl:portType> +</wsdl:definitions> Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_LogicalLP.wsdl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_LogicalLP.wsdl ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_LogicalLP.wsdl ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: incubator/yoko/trunk/tools/src/test/resources/idl/expected_LogicalLPT.wsdl URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/tools/src/test/resources/idl/expected_LogicalLPT.wsdl?view=auto&rev=534116 ============================================================================== --- incubator/yoko/trunk/tools/src/test/resources/idl/expected_LogicalLPT.wsdl (added) +++ incubator/yoko/trunk/tools/src/test/resources/idl/expected_LogicalLPT.wsdl Tue May 1 08:20:59 2007 @@ -0,0 +1,39 @@ +<?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://schemas.apache.org/yoko/idl/OptionsLPT" xmlns:tns="http://schemas.apache.org/yoko/idl/OptionsLPT" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> + <wsdl:import namespace="http://schemas.apache.org/yoko/idl/OptionsLPT" location="expected_SchemaLPT.wsdl"> + </wsdl:import> + <wsdl:message name="getEmployee"> + <wsdl:part name="inparameter" element="tns:getEmployee"> + </wsdl:part> + </wsdl:message> + <wsdl:message name="getEmployeeResponse"> + <wsdl:part name="outparameter" element="tns:getEmployeeResponse"> + </wsdl:part> + </wsdl:message> + <wsdl:portType name="foo.bar"> + <wsdl:operation name="getEmployee"> + <wsdl:input name="getEmployeeRequest" message="tns:getEmployee"> + </wsdl:input> + <wsdl:output name="getEmployeeResponse" message="tns:getEmployeeResponse"> + </wsdl:output> + </wsdl:operation> + </wsdl:portType> +</wsdl:definitions> Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_LogicalLPT.wsdl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_LogicalLPT.wsdl ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_LogicalLPT.wsdl ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: incubator/yoko/trunk/tools/src/test/resources/idl/expected_LogicalLT.wsdl URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/tools/src/test/resources/idl/expected_LogicalLT.wsdl?view=auto&rev=534116 ============================================================================== --- incubator/yoko/trunk/tools/src/test/resources/idl/expected_LogicalLT.wsdl (added) +++ incubator/yoko/trunk/tools/src/test/resources/idl/expected_LogicalLT.wsdl Tue May 1 08:20:59 2007 @@ -0,0 +1,39 @@ +<?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://schemas.apache.org/yoko/idl/OptionsLT" xmlns:tns="http://schemas.apache.org/yoko/idl/OptionsLT" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> + <wsdl:import namespace="http://schemas.apache.org/yoko/idl/OptionsLT" location="expected_SchemaLT.wsdl"> + </wsdl:import> + <wsdl:message name="getEmployeeResponse"> + <wsdl:part name="outparameter" element="tns:getEmployeeResponse"> + </wsdl:part> + </wsdl:message> + <wsdl:message name="getEmployee"> + <wsdl:part name="inparameter" element="tns:getEmployee"> + </wsdl:part> + </wsdl:message> + <wsdl:portType name="foo.bar"> + <wsdl:operation name="getEmployee"> + <wsdl:input name="getEmployeeRequest" message="tns:getEmployee"> + </wsdl:input> + <wsdl:output name="getEmployeeResponse" message="tns:getEmployeeResponse"> + </wsdl:output> + </wsdl:operation> + </wsdl:portType> +</wsdl:definitions> \ No newline at end of file Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_LogicalLT.wsdl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_LogicalLT.wsdl ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_LogicalLT.wsdl ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: incubator/yoko/trunk/tools/src/test/resources/idl/expected_OptionsSchema.wsdl URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/tools/src/test/resources/idl/expected_OptionsSchema.wsdl?view=auto&rev=534116 ============================================================================== --- incubator/yoko/trunk/tools/src/test/resources/idl/expected_OptionsSchema.wsdl (added) +++ incubator/yoko/trunk/tools/src/test/resources/idl/expected_OptionsSchema.wsdl Tue May 1 08:20:59 2007 @@ -0,0 +1,65 @@ +<?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://schemas.apache.org/yoko/idl/OptionsSchema" xmlns:tns="http://schemas.apache.org/yoko/idl/OptionsSchema" xmlns:corba="http://schemas.apache.org/yoko/bindings/corba" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> + <corba:typeMapping targetNamespace="http://schemas.apache.org/yoko/idl/OptionsSchema/typemap"> + <corba:struct xmlns:ns4="http://schemas.apache.org/yoko/idl/OptionsSchema" xmlns="http://schemas.apache.org/yoko/idl/OptionsSchema/typemap" repositoryID="IDL:foo/bar/Employee:1.0" name="foo.bar.Employee" type="ns4:foo.bar.Employee"> + <corba:member name="name" idltype="corba:string" /> + <corba:member name="number" idltype="corba:long" /> + </corba:struct> + </corba:typeMapping> + <wsdl:import namespace="http://schemas.apache.org/yoko/idl/OptionsSchema" location="expected_Schema.wsdl"> + </wsdl:import> + <wsdl:message name="getEmployee"> + <wsdl:part name="inparameter" element="tns:getEmployee"> + </wsdl:part> + </wsdl:message> + <wsdl:message name="getEmployeeResponse"> + <wsdl:part name="outparameter" element="tns:getEmployeeResponse"> + </wsdl:part> + </wsdl:message> + <wsdl:portType name="foo.bar"> + <wsdl:operation name="getEmployee"> + <wsdl:input name="getEmployeeRequest" message="tns:getEmployee"> + </wsdl:input> + <wsdl:output name="getEmployeeResponse" message="tns:getEmployeeResponse"> + </wsdl:output> + </wsdl:operation> + </wsdl:portType> + <wsdl:binding name="foo.barCORBABinding" type="tns:foo.bar"> + <corba:binding repositoryID="IDL:foo/bar:1.0" /> + <wsdl:operation name="getEmployee"> + <corba:operation name="getEmployee"> + <corba:param xmlns="http://schemas.apache.org/yoko/idl/OptionsSchema/typemap" mode="in" name="inEmp" idltype="foo.bar.Employee" /> + <corba:param xmlns="http://schemas.apache.org/yoko/idl/OptionsSchema/typemap" mode="out" name="outEmp" idltype="foo.bar.Employee" /> + <corba:param xmlns="http://schemas.apache.org/yoko/idl/OptionsSchema/typemap" mode="inout" name="inoutEmp" idltype="foo.bar.Employee" /> + <corba:return xmlns="http://schemas.apache.org/yoko/idl/OptionsSchema/typemap" name="return" idltype="foo.bar.Employee" /> + </corba:operation> + <wsdl:input name="getEmployeeRequest"> + </wsdl:input> + <wsdl:output name="getEmployeeResponse"> + </wsdl:output> + </wsdl:operation> + </wsdl:binding> + <wsdl:service name="foo.barCORBAService"> + <wsdl:port name="foo.barCORBAPort" binding="tns:foo.barCORBABinding"> + <corba:address location="IOR:" /> + </wsdl:port> + </wsdl:service> +</wsdl:definitions> Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_OptionsSchema.wsdl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_OptionsSchema.wsdl ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_OptionsSchema.wsdl ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: incubator/yoko/trunk/tools/src/test/resources/idl/expected_Physical.wsdl URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/tools/src/test/resources/idl/expected_Physical.wsdl?view=auto&rev=534116 ============================================================================== --- incubator/yoko/trunk/tools/src/test/resources/idl/expected_Physical.wsdl (added) +++ incubator/yoko/trunk/tools/src/test/resources/idl/expected_Physical.wsdl Tue May 1 08:20:59 2007 @@ -0,0 +1,49 @@ +<?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://schemas.apache.org/yoko/idl/OptionP" xmlns:tns="http://schemas.apache.org/yoko/idl/OptionP" xmlns:corba="http://schemas.apache.org/yoko/bindings/corba" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> + <corba:typeMapping targetNamespace="http://schemas.apache.org/yoko/idl/OptionP/typemap"> + <corba:struct xmlns:ns4="http://schemas.apache.org/yoko/idl/OptionP" xmlns="http://schemas.apache.org/yoko/idl/OptionP/typemap" repositoryID="IDL:foo/bar/Employee:1.0" name="foo.bar.Employee" type="ns4:foo.bar.Employee"> + <corba:member name="name" idltype="corba:string" /> + <corba:member name="number" idltype="corba:long" /> + </corba:struct> + </corba:typeMapping> + <wsdl:import namespace="http://schemas.apache.org/yoko/idl/OptionP" location="OptionP.wsdl"> + </wsdl:import> + <wsdl:binding name="foo.barCORBABinding" type="tns:foo.bar"> + <corba:binding repositoryID="IDL:foo/bar:1.0" /> + <wsdl:operation name="getEmployee"> + <corba:operation name="getEmployee"> + <corba:param xmlns="http://schemas.apache.org/yoko/idl/OptionP/typemap" mode="in" name="inEmp" idltype="foo.bar.Employee" /> + <corba:param xmlns="http://schemas.apache.org/yoko/idl/OptionP/typemap" mode="out" name="outEmp" idltype="foo.bar.Employee" /> + <corba:param xmlns="http://schemas.apache.org/yoko/idl/OptionP/typemap" mode="inout" name="inoutEmp" idltype="foo.bar.Employee" /> + <corba:return xmlns="http://schemas.apache.org/yoko/idl/OptionP/typemap" name="return" idltype="foo.bar.Employee" /> + </corba:operation> + <wsdl:input name="getEmployeeRequest"> + </wsdl:input> + <wsdl:output name="getEmployeeResponse"> + </wsdl:output> + </wsdl:operation> + </wsdl:binding> + <wsdl:service name="foo.barCORBAService"> + <wsdl:port name="foo.barCORBAPort" binding="tns:foo.barCORBABinding"> + <corba:address location="IOR:" /> + </wsdl:port> + </wsdl:service> +</wsdl:definitions> Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_Physical.wsdl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_Physical.wsdl ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_Physical.wsdl ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: incubator/yoko/trunk/tools/src/test/resources/idl/expected_PhysicalLP.wsdl URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/tools/src/test/resources/idl/expected_PhysicalLP.wsdl?view=auto&rev=534116 ============================================================================== --- incubator/yoko/trunk/tools/src/test/resources/idl/expected_PhysicalLP.wsdl (added) +++ incubator/yoko/trunk/tools/src/test/resources/idl/expected_PhysicalLP.wsdl Tue May 1 08:20:59 2007 @@ -0,0 +1,49 @@ +<?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://schemas.apache.org/yoko/idl/OptionsLP" xmlns:tns="http://schemas.apache.org/yoko/idl/OptionsLP" xmlns:corba="http://schemas.apache.org/yoko/bindings/corba" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> + <corba:typeMapping targetNamespace="http://schemas.apache.org/yoko/idl/OptionsLP/typemap"> + <corba:struct xmlns:ns4="http://schemas.apache.org/yoko/idl/OptionsLP" xmlns="http://schemas.apache.org/yoko/idl/OptionsLP/typemap" repositoryID="IDL:foo/bar/Employee:1.0" name="foo.bar.Employee" type="ns4:foo.bar.Employee"> + <corba:member name="name" idltype="corba:string" /> + <corba:member name="number" idltype="corba:long" /> + </corba:struct> + </corba:typeMapping> + <wsdl:import namespace="http://schemas.apache.org/yoko/idl/OptionsLP" location="expected_LogicalLP.wsdl"> + </wsdl:import> + <wsdl:binding name="foo.barCORBABinding" type="tns:foo.bar"> + <corba:binding repositoryID="IDL:foo/bar:1.0" /> + <wsdl:operation name="getEmployee"> + <corba:operation name="getEmployee"> + <corba:param xmlns="http://schemas.apache.org/yoko/idl/OptionsLP/typemap" mode="in" name="inEmp" idltype="foo.bar.Employee" /> + <corba:param xmlns="http://schemas.apache.org/yoko/idl/OptionsLP/typemap" mode="out" name="outEmp" idltype="foo.bar.Employee" /> + <corba:param xmlns="http://schemas.apache.org/yoko/idl/OptionsLP/typemap" mode="inout" name="inoutEmp" idltype="foo.bar.Employee" /> + <corba:return xmlns="http://schemas.apache.org/yoko/idl/OptionsLP/typemap" name="return" idltype="foo.bar.Employee" /> + </corba:operation> + <wsdl:input name="getEmployeeRequest"> + </wsdl:input> + <wsdl:output name="getEmployeeResponse"> + </wsdl:output> + </wsdl:operation> + </wsdl:binding> + <wsdl:service name="foo.barCORBAService"> + <wsdl:port name="foo.barCORBAPort" binding="tns:foo.barCORBABinding"> + <corba:address location="IOR:" /> + </wsdl:port> + </wsdl:service> +</wsdl:definitions> Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_PhysicalLP.wsdl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_PhysicalLP.wsdl ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_PhysicalLP.wsdl ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: incubator/yoko/trunk/tools/src/test/resources/idl/expected_PhysicalLPT.wsdl URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/tools/src/test/resources/idl/expected_PhysicalLPT.wsdl?view=auto&rev=534116 ============================================================================== --- incubator/yoko/trunk/tools/src/test/resources/idl/expected_PhysicalLPT.wsdl (added) +++ incubator/yoko/trunk/tools/src/test/resources/idl/expected_PhysicalLPT.wsdl Tue May 1 08:20:59 2007 @@ -0,0 +1,49 @@ +<?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://schemas.apache.org/yoko/idl/OptionsLPT" xmlns:tns="http://schemas.apache.org/yoko/idl/OptionsLPT" xmlns:corba="http://schemas.apache.org/yoko/bindings/corba" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> + <corba:typeMapping targetNamespace="http://schemas.apache.org/yoko/idl/OptionsLPT/typemap"> + <corba:struct xmlns:ns4="http://schemas.apache.org/yoko/idl/OptionsLPT" xmlns="http://schemas.apache.org/yoko/idl/OptionsLPT/typemap" repositoryID="IDL:foo/bar/Employee:1.0" name="foo.bar.Employee" type="ns4:foo.bar.Employee"> + <corba:member name="name" idltype="corba:string" /> + <corba:member name="number" idltype="corba:long" /> + </corba:struct> + </corba:typeMapping> + <wsdl:import namespace="http://schemas.apache.org/yoko/idl/OptionsLPT" location="expected_LogicalLPT.wsdl"> + </wsdl:import> + <wsdl:binding name="foo.barCORBABinding" type="tns:foo.bar"> + <corba:binding repositoryID="IDL:foo/bar:1.0" /> + <wsdl:operation name="getEmployee"> + <corba:operation name="getEmployee"> + <corba:param xmlns="http://schemas.apache.org/yoko/idl/OptionsLPT/typemap" mode="in" name="inEmp" idltype="foo.bar.Employee" /> + <corba:param xmlns="http://schemas.apache.org/yoko/idl/OptionsLPT/typemap" mode="out" name="outEmp" idltype="foo.bar.Employee" /> + <corba:param xmlns="http://schemas.apache.org/yoko/idl/OptionsLPT/typemap" mode="inout" name="inoutEmp" idltype="foo.bar.Employee" /> + <corba:return xmlns="http://schemas.apache.org/yoko/idl/OptionsLPT/typemap" name="return" idltype="foo.bar.Employee" /> + </corba:operation> + <wsdl:input name="getEmployeeRequest"> + </wsdl:input> + <wsdl:output name="getEmployeeResponse"> + </wsdl:output> + </wsdl:operation> + </wsdl:binding> + <wsdl:service name="foo.barCORBAService"> + <wsdl:port name="foo.barCORBAPort" binding="tns:foo.barCORBABinding"> + <corba:address location="IOR:" /> + </wsdl:port> + </wsdl:service> +</wsdl:definitions> Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_PhysicalLPT.wsdl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_PhysicalLPT.wsdl ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_PhysicalLPT.wsdl ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: incubator/yoko/trunk/tools/src/test/resources/idl/expected_PhysicalPT.wsdl URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/tools/src/test/resources/idl/expected_PhysicalPT.wsdl?view=auto&rev=534116 ============================================================================== --- incubator/yoko/trunk/tools/src/test/resources/idl/expected_PhysicalPT.wsdl (added) +++ incubator/yoko/trunk/tools/src/test/resources/idl/expected_PhysicalPT.wsdl Tue May 1 08:20:59 2007 @@ -0,0 +1,49 @@ +<?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://schemas.apache.org/yoko/idl/OptionsPT" xmlns:tns="http://schemas.apache.org/yoko/idl/OptionsPT" xmlns:corba="http://schemas.apache.org/yoko/bindings/corba" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> + <corba:typeMapping targetNamespace="http://schemas.apache.org/yoko/idl/OptionsPT/typemap"> + <corba:struct xmlns:ns4="http://schemas.apache.org/yoko/idl/OptionsPT" xmlns="http://schemas.apache.org/yoko/idl/OptionsPT/typemap" repositoryID="IDL:foo/bar/Employee:1.0" name="foo.bar.Employee" type="ns4:foo.bar.Employee"> + <corba:member name="name" idltype="corba:string" /> + <corba:member name="number" idltype="corba:long" /> + </corba:struct> + </corba:typeMapping> + <wsdl:import namespace="http://schemas.apache.org/yoko/idl/OptionsPT" location="OptionsPT.wsdl"> + </wsdl:import> + <wsdl:binding name="foo.barCORBABinding" type="tns:foo.bar"> + <corba:binding repositoryID="IDL:foo/bar:1.0" /> + <wsdl:operation name="getEmployee"> + <corba:operation name="getEmployee"> + <corba:param xmlns="http://schemas.apache.org/yoko/idl/OptionsPT/typemap" mode="in" name="inEmp" idltype="foo.bar.Employee" /> + <corba:param xmlns="http://schemas.apache.org/yoko/idl/OptionsPT/typemap" mode="out" name="outEmp" idltype="foo.bar.Employee" /> + <corba:param xmlns="http://schemas.apache.org/yoko/idl/OptionsPT/typemap" mode="inout" name="inoutEmp" idltype="foo.bar.Employee" /> + <corba:return xmlns="http://schemas.apache.org/yoko/idl/OptionsPT/typemap" name="return" idltype="foo.bar.Employee" /> + </corba:operation> + <wsdl:input name="getEmployeeRequest"> + </wsdl:input> + <wsdl:output name="getEmployeeResponse"> + </wsdl:output> + </wsdl:operation> + </wsdl:binding> + <wsdl:service name="foo.barCORBAService"> + <wsdl:port name="foo.barCORBAPort" binding="tns:foo.barCORBABinding"> + <corba:address location="IOR:" /> + </wsdl:port> + </wsdl:service> +</wsdl:definitions> \ No newline at end of file Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_PhysicalPT.wsdl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_PhysicalPT.wsdl ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_PhysicalPT.wsdl ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: incubator/yoko/trunk/tools/src/test/resources/idl/expected_Schema.wsdl URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/tools/src/test/resources/idl/expected_Schema.wsdl?view=auto&rev=534116 ============================================================================== --- incubator/yoko/trunk/tools/src/test/resources/idl/expected_Schema.wsdl (added) +++ incubator/yoko/trunk/tools/src/test/resources/idl/expected_Schema.wsdl Tue May 1 08:20:59 2007 @@ -0,0 +1,55 @@ +<?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://schemas.apache.org/yoko/idl/OptionsSchema" xmlns:tns="http://schemas.apache.org/yoko/idl/OptionsSchema" xmlns:xsd="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="unqualified" elementFormDefault="unqualified" targetNamespace="http://schemas.apache.org/yoko/idl/OptionsSchema" xmlns="http://schemas.apache.org/yoko/idl/OptionsSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <xs:complexType name="foo.bar.Employee"> + <xs:sequence> + <xs:element name="name" type="xs:string"> + </xs:element> + <xs:element name="number" type="xs:int"> + </xs:element> + </xs:sequence> + </xs:complexType> + <xs:element name="getEmployee"> + <xs:complexType> + <xs:sequence> + <xs:element name="inEmp" type="foo.bar.Employee"> + </xs:element> + <xs:element name="inoutEmp" type="foo.bar.Employee"> + </xs:element> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="getEmployeeResponse"> + <xs:complexType> + <xs:sequence> + <xs:element name="return" type="foo.bar.Employee"> + </xs:element> + <xs:element name="outEmp" type="foo.bar.Employee"> + </xs:element> + <xs:element name="inoutEmp" type="foo.bar.Employee"> + </xs:element> + </xs:sequence> + </xs:complexType> + </xs:element> + </xs:schema> + </wsdl:types> +</wsdl:definitions> Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_Schema.wsdl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_Schema.wsdl ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: incubator/yoko/trunk/tools/src/test/resources/idl/expected_Schema.wsdl ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: incubator/yoko/trunk/tools/src/test/resources/idl/expected_SchemaLPT.wsdl URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/tools/src/test/resources/idl/expected_SchemaLPT.wsdl?view=auto&rev=534116 ============================================================================== --- incubator/yoko/trunk/tools/src/test/resources/idl/expected_SchemaLPT.wsdl (added) +++ incubator/yoko/trunk/tools/src/test/resources/idl/expected_SchemaLPT.wsdl Tue May 1 08:20:59 2007 @@ -0,0 +1,55 @@ +<?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://schemas.apache.org/yoko/idl/OptionsLPT" xmlns:tns="http://schemas.apache.org/yoko/idl/OptionsLPT" xmlns:xsd="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="unqualified" elementFormDefault="unqualified" targetNamespace="http://schemas.apache.org/yoko/idl/OptionsLPT" xmlns="http://schemas.apache.org/yoko/idl/OptionsLPT" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <xs:complexType name="foo.bar.Employee"> + <xs:sequence> + <xs:element name="name" type="xs:string"> + </xs:element> + <xs:element name="number" type="xs:int"> + </xs:element> + </xs:sequence> + </xs:complexType> + <xs:element name="getEmployee"> + <xs:complexType> + <xs:sequence> + <xs:element name="inEmp" type="foo.bar.Employee"> + </xs:element> + <xs:element name="inoutEmp" type="foo.bar.Employee"> + </xs:element> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="getEmployeeResponse"> + <xs:complexType> + <xs:sequence> + <xs:element name="return" type="foo.bar.Employee"> + </xs:element> + <xs:element name="outEmp" type="foo.bar.Employee"> +
{'source': 'Apache Software Foundation Public Mail Archives'}