You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by pr...@apache.org on 2005/10/12 13:42:12 UTC

svn commit: r314852 - in /webservices/axis/trunk/c/tests/auto_build/testcases/wsdls: SameComplexTypeAndElementName.wsdl SameComplexTypeAndElementName.xsd

Author: prestonf
Date: Wed Oct 12 04:42:09 2005
New Revision: 314852

URL: http://svn.apache.org/viewcvs?rev=314852&view=rev
Log:
New Unit Test: SameComplexTypeAndElementNameClient
Checks that if a ComplexType and Element name are the same, then the element name will have a '_' suffix added to the name.

Added:
    webservices/axis/trunk/c/tests/auto_build/testcases/wsdls/SameComplexTypeAndElementName.wsdl
    webservices/axis/trunk/c/tests/auto_build/testcases/wsdls/SameComplexTypeAndElementName.xsd

Added: webservices/axis/trunk/c/tests/auto_build/testcases/wsdls/SameComplexTypeAndElementName.wsdl
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/wsdls/SameComplexTypeAndElementName.wsdl?rev=314852&view=auto
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/wsdls/SameComplexTypeAndElementName.wsdl (added)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/wsdls/SameComplexTypeAndElementName.wsdl Wed Oct 12 04:42:09 2005
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2003-2004 The Apache Software Foundation.                      -->
+<!-- (c) Copyright IBM Corp. 2004, 2005 All Rights Reserved                   -->
+<!--                                                                          -->
+<!-- Licensed under the Apache License, Version 2.0 (the "License");          -->
+<!-- you may not use this file except in compliance with the License.         -->
+<!-- You may obtain a copy of the License at                                  -->
+<!--                                                                          -->
+<!--        http://www.apache.org/licenses/LICENSE-2.0                        -->
+<!--                                                                          -->
+<!-- Unless required by applicable law or agreed to in writing, software      -->
+<!-- distributed under the License is distributed on an "AS IS" BASIS,        -->
+<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -->
+<!-- See the License for the specific language governing permissions and      -->
+<!-- limitations under the License.                                           -->
+
+<definitions targetNamespace="SameComplexTypeAndElementName"
+                       xmlns="http://schemas.xmlsoap.org/wsdl/"
+                  xmlns:ns99="SameComplexTypeAsElement"
+                  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+                   xmlns:tns="SameComplexTypeAndElementName"
+                   xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="XMLSchema">
+
+ <types>
+  <xsd:schema   xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+  	<xsd:import namespace="SameComplexTypeAsElement"
+  	       schemaLocation="SameComplexTypeAndElementName.xsd"/>
+
+   <xsd:element name="anElementComplex">
+    <xsd:complexType>
+     <xsd:sequence>
+      <xsd:element maxOccurs="1" minOccurs="1" name="Element" nillable="true" type="ns99:SampleBeanComplex"/>
+     </xsd:sequence>
+    </xsd:complexType>
+   </xsd:element>
+
+   <xsd:element name="anElementBase">
+    <xsd:complexType>
+     <xsd:sequence>
+      <xsd:element maxOccurs="1" minOccurs="1" name="Element" nillable="true" type="ns99:SampleBeanBoolean"/>
+     </xsd:sequence>
+    </xsd:complexType>
+   </xsd:element>
+  </xsd:schema>
+ </types>
+
+ <message name="aBeanMessageComplex">
+ 	<part name="aBeanMesage" element="tns:anElementComplex"></part>
+ </message>
+
+ <message name="aBeanMessageBase">
+ 	<part name="aBeanMesage" element="tns:anElementBase"></part>
+ </message>
+
+ <portType name="TestServicePortType">
+  <operation name="aBeanPortTypeComplex">
+   <input message="tns:aBeanMessageComplex"/>
+  </operation>
+
+  <operation name="aBeanPortTypeBase">
+   <input message="tns:aBeanMessageBase"/>
+  </operation>
+ </portType>
+
+ <binding name="ServiceBinding" type="tns:TestServicePortType">
+  <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+  <operation name="aBeanPortTypeComplex">
+   <soap:operation soapAction="" style="document"/>
+   <input>
+    <soap:body use="literal"/>
+   </input>
+  </operation>
+
+  <operation name="aBeanPortTypeBase">
+   <soap:operation soapAction="" style="document"/>
+   <input>
+    <soap:body use="literal"/>
+   </input>
+  </operation>
+ </binding>
+
+  <service name="SimpleService">
+    <port binding="tns:ServiceBinding" name="ServiceBinding">
+      <soap:address location="http://tempuri.org" /> 
+    </port>
+  </service>
+</definitions>
\ No newline at end of file

Added: webservices/axis/trunk/c/tests/auto_build/testcases/wsdls/SameComplexTypeAndElementName.xsd
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/wsdls/SameComplexTypeAndElementName.xsd?rev=314852&view=auto
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/wsdls/SameComplexTypeAndElementName.xsd (added)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/wsdls/SameComplexTypeAndElementName.xsd Wed Oct 12 04:42:09 2005
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<xsd:schema targetNamespace="SameComplexTypeAsElement"
+            xmlns:tns="SameComplexTypeAsElement"
+            xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ 
+ <xsd:complexType name="SampleBeanComplex">
+  <xsd:sequence>
+   <xsd:element form="qualified" maxOccurs="unbounded" minOccurs="0" name="SampleBeanComplex" nillable="true"  type="tns:SampleBeanComplex"/>
+   <xsd:element form="qualified" maxOccurs="1"         minOccurs="1" name="Boolean"           nillable="false" type="xsd:boolean"/>
+  </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:complexType name="SampleBeanBoolean">
+  <xsd:sequence>
+   <xsd:element form="qualified" minOccurs="0" maxOccurs="unbounded"       name="SampleBean"        nillable="true"  type="tns:SampleBeanComplex"/>
+   <xsd:element form="qualified" maxOccurs="1" minOccurs="1" name="SampleBeanBoolean" nillable="false" type="xsd:boolean"/>
+  </xsd:sequence>
+ </xsd:complexType>
+</xsd:schema>