You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by em...@apache.org on 2007/06/18 14:51:56 UTC

svn commit: r548344 - in /incubator/cxf/trunk: rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/ rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ tools/javato/test/ tools/javato/test/src/test/java/org/apache/cxf/tools/java2wsdl/proc...

Author: ema
Date: Mon Jun 18 05:51:55 2007
New Revision: 548344

URL: http://svn.apache.org/viewvc?view=rev&rev=548344
Log:
Fixed issue CXF-738

Added:
    incubator/cxf/trunk/tools/javato/test/src/test/java/org/apache/cxf/tools/java2wsdl/processor/expected/rpc-hello-expected.wsdl
    incubator/cxf/trunk/tools/javato/test/src/test/java/org/apache/cxf/tools/java2wsdl/processor/expected/xml-bare-expected.wsdl
    incubator/cxf/trunk/tools/javato/test/src/test/resources/java2wsdl_wsdl/hello_world_bare.wsdl
Modified:
    incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/CodeFirstTest.java
    incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
    incubator/cxf/trunk/tools/javato/test/pom.xml
    incubator/cxf/trunk/tools/javato/test/src/test/java/org/apache/cxf/tools/java2wsdl/processor/JavaToProcessorTest.java
    incubator/cxf/trunk/tools/javato/test/src/test/java/org/apache/cxf/tools/java2wsdl/processor/internal/jaxws/JaxwsServiceBuilderTest.java
    incubator/cxf/trunk/tools/javato/test/src/test/java/org/apache/cxf/tools/java2wsdl/processor/internal/jaxws/expected/expected_holder.wsdl

Modified: incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/CodeFirstTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/CodeFirstTest.java?view=diff&rev=548344&r1=548343&r2=548344
==============================================================================
--- incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/CodeFirstTest.java (original)
+++ incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/CodeFirstTest.java Mon Jun 18 05:51:55 2007
@@ -84,7 +84,9 @@
 
         assertValid("/wsdl:definitions/wsdl:binding/wsdl:operation[@name='getGreetings']"
                     + "/wsdlsoap:operation[@soapAction='myaction']",
-                    wsdl);        
+                    wsdl);
+        
+        
     }
 
     @Test
@@ -280,6 +282,9 @@
         
         assertValid("//xsd:schema[@targetNamespace='http://namespace3']", doc);
         assertValid("//xsd:schema[@targetNamespace='http://namespace5']", doc);
+        
+        assertValid("//xsd:element[@name='FooEcho2HeaderRequest'][1]", doc);
+        assertInvalid("//xsd:element[@name='FooEcho2HeaderRequest'][2]", doc);
     }
 
     @Test
@@ -297,5 +302,5 @@
         assertValid("//xsd:schema[@targetNamespace='http://namespace3']", doc);
         assertValid("//xsd:schema[@targetNamespace='http://namespace5']", doc);
     }
-
+    
 }

Modified: incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java?view=diff&rev=548344&r1=548343&r2=548344
==============================================================================
--- incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java (original)
+++ incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java Mon Jun 18 05:51:55 2007
@@ -468,8 +468,9 @@
         XmlSchemaElement el = new XmlSchemaElement();
         el.setQName(mpi.getElementQName());
         el.setName(mpi.getElementQName().getLocalPart());
-        schema.getItems().add(el);
-
+        if (!isExistSchemaElement(schema, mpi.getElementQName())) {
+            schema.getItems().add(el);
+        }
         el.setMinOccurs(1);
         el.setMaxOccurs(0);
         el.setNillable(true);
@@ -557,7 +558,10 @@
             XmlSchemaElement el = new XmlSchemaElement();
             el.setQName(qname);
             el.setName(qname.getLocalPart());
-            schema.getItems().add(el);
+            
+            if (!isExistSchemaElement(schema, qname)) {
+                schema.getItems().add(el);
+            }
 
             el.setMinOccurs(1);
             el.setMaxOccurs(0);

Modified: incubator/cxf/trunk/tools/javato/test/pom.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/javato/test/pom.xml?view=diff&rev=548344&r1=548343&r2=548344
==============================================================================
--- incubator/cxf/trunk/tools/javato/test/pom.xml (original)
+++ incubator/cxf/trunk/tools/javato/test/pom.xml Mon Jun 18 05:51:55 2007
@@ -165,7 +165,9 @@
                                 <wsdlOption>
                                     <wsdl>${basedir}/src/test/resources/java2wsdl_wsdl/hello_world_soap12.wsdl</wsdl>
                                 </wsdlOption>
-
+                                <wsdlOption>
+				    <wsdl>${basedir}/src/test/resources/java2wsdl_wsdl/hello_world_bare.wsdl</wsdl>
+                                </wsdlOption>
                             </wsdlOptions>
                         </configuration>
                         <goals>

Modified: incubator/cxf/trunk/tools/javato/test/src/test/java/org/apache/cxf/tools/java2wsdl/processor/JavaToProcessorTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/javato/test/src/test/java/org/apache/cxf/tools/java2wsdl/processor/JavaToProcessorTest.java?view=diff&rev=548344&r1=548343&r2=548344
==============================================================================
--- incubator/cxf/trunk/tools/javato/test/src/test/java/org/apache/cxf/tools/java2wsdl/processor/JavaToProcessorTest.java (original)
+++ incubator/cxf/trunk/tools/javato/test/src/test/java/org/apache/cxf/tools/java2wsdl/processor/JavaToProcessorTest.java Mon Jun 18 05:51:55 2007
@@ -287,6 +287,37 @@
         assertTrue(requestWrapperClass.exists());
         assertTrue(responseWrapperClass.exists());
     }
+    
+    @Test
+    public void testRPCHello() throws Exception {
+        env.put(ToolConstants.CFG_OUTPUTFILE, output.getPath() + "/rpc-hello.wsdl");
+        env.put(ToolConstants.CFG_CLASSNAME, "org.apache.cxf.tools.fortest.RPCHello");
+        processor.setEnvironment(env);
+        processor.process();
+        
+        File wsdlFile = new File(output, "rpc-hello.wsdl");
+        assertTrue("Generate Wsdl Fail", wsdlFile.exists());
+        String expectedFile = getClass().getResource("expected/rpc-hello-expected.wsdl").getFile();
+        assertFileEquals(new File(expectedFile), new File(output, "rpc-hello.wsdl"));
+
+    }
+    
+    
+    @Test
+    public void testXMlBare() {
+        env.put(ToolConstants.CFG_OUTPUTFILE, output.getPath() + "/xml-bare.wsdl");
+        env.put(ToolConstants.CFG_CLASSNAME, "org.apache.xml_bare.Greeter");
+        processor.setEnvironment(env);
+        processor.process();
+        
+        File wsdlFile = new File(output, "xml-bare.wsdl");
+        assertTrue("Generate Wsdl Fail", wsdlFile.exists());
+        String expectedFile = getClass().getResource("expected/xml-bare-expected.wsdl").getFile();
+        assertFileEquals(new File(expectedFile), new File(output, "/xml-bare.wsdl"));
+               
+    }
+    
+    
 
     @Test
     public void testResumeClasspath() throws Exception {
@@ -305,20 +336,6 @@
     }
     
     
-    public void testRPCHello() throws Exception {
-        env.put(ToolConstants.CFG_OUTPUTFILE, output.getPath() + "/rpc-hello.wsdl");
-        env.put(ToolConstants.CFG_CLASSNAME, "org.apache.cxf.tools.fortest.RPCHello");
-        processor.setEnvironment(env);
-        processor.process();
-        
-        File wsdlFile = new File(output, "rpc-hello.wsdl");
-        assertTrue("Generate Wsdl Fail", wsdlFile.exists());
-        
-        
-        String expectedFile = getClass().getResource("expected/rpc_hello.wsdl").getFile();
-        assertFileEquals(new File(expectedFile), new File(output, "rpc-hello.wsdl"));
-
-    }
     
     
     

Added: incubator/cxf/trunk/tools/javato/test/src/test/java/org/apache/cxf/tools/java2wsdl/processor/expected/rpc-hello-expected.wsdl
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/javato/test/src/test/java/org/apache/cxf/tools/java2wsdl/processor/expected/rpc-hello-expected.wsdl?view=auto&rev=548344
==============================================================================
--- incubator/cxf/trunk/tools/javato/test/src/test/java/org/apache/cxf/tools/java2wsdl/processor/expected/rpc-hello-expected.wsdl (added)
+++ incubator/cxf/trunk/tools/javato/test/src/test/java/org/apache/cxf/tools/java2wsdl/processor/expected/rpc-hello-expected.wsdl Mon Jun 18 05:51:55 2007
@@ -0,0 +1,54 @@
+<?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 name="RPCHelloService" targetNamespace="http://cxf.apache.org/rpc" xmlns:ns1="http://cxf.apache.org/rpc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+  <wsdl:message name="helloResponse">
+    <wsdl:part name="return" type="xsd:string">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="hello">
+    <wsdl:part name="arg0" type="xsd:string">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:portType name="RPCHello">
+    <wsdl:operation name="hello">
+      <wsdl:input name="hello" message="ns1:hello">
+    </wsdl:input>
+      <wsdl:output name="helloResponse" message="ns1:helloResponse">
+    </wsdl:output>
+    </wsdl:operation>
+  </wsdl:portType>
+  <wsdl:binding name="RPCHelloServiceSoapBinding" type="ns1:RPCHello">
+    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+    <wsdl:operation name="hello">
+      <soap:operation soapAction="" style="rpc"/>
+      <wsdl:input name="hello">
+        <soap:body use="literal" namespace="http://cxf.apache.org/rpc"/>
+      </wsdl:input>
+      <wsdl:output name="helloResponse">
+        <soap:body use="literal" namespace="http://cxf.apache.org/rpc"/>
+      </wsdl:output>
+    </wsdl:operation>
+  </wsdl:binding>
+  <wsdl:service name="RPCHelloService">
+    <wsdl:port name="RPCHelloPort" binding="ns1:RPCHelloServiceSoapBinding">
+      <soap:address location="http://localhost:9090/hello"/>
+    </wsdl:port>
+  </wsdl:service>
+</wsdl:definitions>

Added: incubator/cxf/trunk/tools/javato/test/src/test/java/org/apache/cxf/tools/java2wsdl/processor/expected/xml-bare-expected.wsdl
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/javato/test/src/test/java/org/apache/cxf/tools/java2wsdl/processor/expected/xml-bare-expected.wsdl?view=auto&rev=548344
==============================================================================
--- incubator/cxf/trunk/tools/javato/test/src/test/java/org/apache/cxf/tools/java2wsdl/processor/expected/xml-bare-expected.wsdl (added)
+++ incubator/cxf/trunk/tools/javato/test/src/test/java/org/apache/cxf/tools/java2wsdl/processor/expected/xml-bare-expected.wsdl Mon Jun 18 05:51:55 2007
@@ -0,0 +1,142 @@
+<?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 name="GreeterService" targetNamespace="http://apache.org/xml_bare" xmlns:ns1="http://apache.org/xml_bare" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://apache.org/xml_bare/types" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+  <wsdl:types>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://apache.org/xml_bare/types" attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://apache.org/xml_bare/types">
+<xs:element name="myComplexStruct" nillable="true" type="tns:myComplexStructType"/>
+<xs:element name="requestType" nillable="true" type="xs:string"/>
+<xs:element name="responseType" nillable="true" type="xs:string"/>
+<xs:complexType name="myComplexStructType">
+<xs:sequence>
+<xs:element form="qualified" name="elem1" type="xs:string"/>
+<xs:element form="qualified" name="elem2" type="xs:string"/>
+<xs:element form="qualified" name="elem3" type="xs:int"/>
+</xs:sequence>
+</xs:complexType>
+</xs:schema>
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://apache.org/xml_bare" xmlns:ns0="http://apache.org/xml_bare/types" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://apache.org/xml_bare">
+<xsd:import namespace="http://apache.org/xml_bare/types"/>
+<xsd:element name="out" nillable="true" type="xsd:string"/>
+<xsd:element name="in" nillable="true" type="ns0:myComplexStructType"/>
+</xsd:schema>
+  </wsdl:types>
+  <wsdl:message name="sendReceiveData">
+    <wsdl:part name="in" element="ns1:in">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="testMultiParamPart">
+    <wsdl:part name="in2" element="ns2:myComplexStruct">
+    </wsdl:part>
+    <wsdl:part name="in1" element="ns2:requestType">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="greetMe">
+    <wsdl:part name="me" element="ns2:requestType">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="sayHiResponse">
+    <wsdl:part name="out" element="ns1:out">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="sendReceiveDataResponse">
+    <wsdl:part name="out" element="ns1:out">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="testMultiParamPartResponse">
+    <wsdl:part name="out1" element="ns2:responseType">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="sayHi">
+  </wsdl:message>
+  <wsdl:message name="greetMeResponse">
+    <wsdl:part name="theResponse" element="ns2:responseType">
+    </wsdl:part>
+  </wsdl:message>
+  <wsdl:portType name="Greeter">
+    <wsdl:operation name="sayHi">
+      <wsdl:input name="sayHi" message="ns1:sayHi">
+    </wsdl:input>
+      <wsdl:output name="sayHiResponse" message="ns1:sayHiResponse">
+    </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="testMultiParamPart">
+      <wsdl:input name="testMultiParamPart" message="ns1:testMultiParamPart">
+    </wsdl:input>
+      <wsdl:output name="testMultiParamPartResponse" message="ns1:testMultiParamPartResponse">
+    </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="greetMe">
+      <wsdl:input name="greetMe" message="ns1:greetMe">
+    </wsdl:input>
+      <wsdl:output name="greetMeResponse" message="ns1:greetMeResponse">
+    </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="sendReceiveData">
+      <wsdl:input name="sendReceiveData" message="ns1:sendReceiveData">
+    </wsdl:input>
+      <wsdl:output name="sendReceiveDataResponse" message="ns1:sendReceiveDataResponse">
+    </wsdl:output>
+    </wsdl:operation>
+  </wsdl:portType>
+  <wsdl:binding name="GreeterServiceSoapBinding" type="ns1:Greeter">
+    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+    <wsdl:operation name="sayHi">
+      <soap:operation soapAction="" style="document"/>
+      <wsdl:input name="sayHi">
+        <soap:body use="literal"/>
+      </wsdl:input>
+      <wsdl:output name="sayHiResponse">
+        <soap:body use="literal"/>
+      </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="testMultiParamPart">
+      <soap:operation soapAction="" style="document"/>
+      <wsdl:input name="testMultiParamPart">
+        <soap:body use="literal"/>
+      </wsdl:input>
+      <wsdl:output name="testMultiParamPartResponse">
+        <soap:body use="literal"/>
+      </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="greetMe">
+      <soap:operation soapAction="" style="document"/>
+      <wsdl:input name="greetMe">
+        <soap:body use="literal"/>
+      </wsdl:input>
+      <wsdl:output name="greetMeResponse">
+        <soap:body use="literal"/>
+      </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="sendReceiveData">
+      <soap:operation soapAction="" style="document"/>
+      <wsdl:input name="sendReceiveData">
+        <soap:body use="literal"/>
+      </wsdl:input>
+      <wsdl:output name="sendReceiveDataResponse">
+        <soap:body use="literal"/>
+      </wsdl:output>
+    </wsdl:operation>
+  </wsdl:binding>
+  <wsdl:service name="GreeterService">
+    <wsdl:port name="GreeterPort" binding="ns1:GreeterServiceSoapBinding">
+      <soap:address location="http://localhost:9090/hello"/>
+    </wsdl:port>
+  </wsdl:service>
+</wsdl:definitions>

Modified: incubator/cxf/trunk/tools/javato/test/src/test/java/org/apache/cxf/tools/java2wsdl/processor/internal/jaxws/JaxwsServiceBuilderTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/javato/test/src/test/java/org/apache/cxf/tools/java2wsdl/processor/internal/jaxws/JaxwsServiceBuilderTest.java?view=diff&rev=548344&r1=548343&r2=548344
==============================================================================
--- incubator/cxf/trunk/tools/javato/test/src/test/java/org/apache/cxf/tools/java2wsdl/processor/internal/jaxws/JaxwsServiceBuilderTest.java (original)
+++ incubator/cxf/trunk/tools/javato/test/src/test/java/org/apache/cxf/tools/java2wsdl/processor/internal/jaxws/JaxwsServiceBuilderTest.java Mon Jun 18 05:51:55 2007
@@ -148,9 +148,6 @@
     }
     
     @Test
-    @Ignore("Duplicate header elements")
-    //FIXME: CXF-564, generated wsdl is invalid -
-    //"invalid XML schema: "header" must refer to an existing element"
     public void testHolder() throws Exception {
         builder.setServiceClass(org.apache.cxf.tools.fortest.holder.HolderService.class);
         ServiceInfo service = builder.createService();
@@ -161,8 +158,7 @@
         generator.generate(output);
         assertTrue(output.exists());
 
-        String expectedFile = this.getClass()
-            .getResource("expected/expected_holder.wsdl").getFile();
+        String expectedFile = this.getClass().getResource("expected/expected_holder.wsdl").getFile();
         assertFileEquals(expectedFile, output.getAbsolutePath());
     }
     

Modified: incubator/cxf/trunk/tools/javato/test/src/test/java/org/apache/cxf/tools/java2wsdl/processor/internal/jaxws/expected/expected_holder.wsdl
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/javato/test/src/test/java/org/apache/cxf/tools/java2wsdl/processor/internal/jaxws/expected/expected_holder.wsdl?view=diff&rev=548344&r1=548343&r2=548344
==============================================================================
--- incubator/cxf/trunk/tools/javato/test/src/test/java/org/apache/cxf/tools/java2wsdl/processor/internal/jaxws/expected/expected_holder.wsdl (original)
+++ incubator/cxf/trunk/tools/javato/test/src/test/java/org/apache/cxf/tools/java2wsdl/processor/internal/jaxws/expected/expected_holder.wsdl Mon Jun 18 05:51:55 2007
@@ -1,3 +1,4 @@
+<?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
@@ -16,7 +17,6 @@
   specific language governing permissions and limitations
   under the License.
 -->
-<?xml version="1.0" encoding="UTF-8"?>
 <wsdl:definitions name="HolderServiceService" targetNamespace="http://holder.fortest.tools.cxf.apache.org/" xmlns:ns1="http://holder.fortest.tools.cxf.apache.org/" 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>
 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://holder.fortest.tools.cxf.apache.org/" attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://holder.fortest.tools.cxf.apache.org/">

Added: incubator/cxf/trunk/tools/javato/test/src/test/resources/java2wsdl_wsdl/hello_world_bare.wsdl
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/javato/test/src/test/resources/java2wsdl_wsdl/hello_world_bare.wsdl?view=auto&rev=548344
==============================================================================
--- incubator/cxf/trunk/tools/javato/test/src/test/resources/java2wsdl_wsdl/hello_world_bare.wsdl (added)
+++ incubator/cxf/trunk/tools/javato/test/src/test/resources/java2wsdl_wsdl/hello_world_bare.wsdl Mon Jun 18 05:51:55 2007
@@ -0,0 +1,133 @@
+<?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 name="HelloWorld" targetNamespace="http://apache.org/xml_bare" 
+		  xmlns="http://schemas.xmlsoap.org/wsdl/"
+		  xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
+		  xmlns:xformat="http://cxf.apache.org/bindings/xformat" 
+		  xmlns:tns="http://apache.org/xml_bare"
+		  xmlns:x1="http://apache.org/xml_bare/types"
+		  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
+		  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+    
+    <wsdl:types>
+	<schema targetNamespace="http://apache.org/xml_bare/types" 
+		xmlns="http://www.w3.org/2001/XMLSchema" 
+		elementFormDefault="qualified">
+
+	    <element name="responseType" type="xsd:string"/>
+	    <element name="requestType" type="xsd:string"/>      
+	    <element name="myComplexStruct" type="x1:myComplexStructType"/>     
+	    
+	    <complexType name="myComplexStructType">
+		<sequence>
+		    <element name="elem1" type="xsd:string"/>
+		    <element name="elem2" type="xsd:string"/>
+		    <element name="elem3" type="xsd:int"/>
+		</sequence>
+	    </complexType>
+	</schema>
+    </wsdl:types>
+    
+    <wsdl:message name="sayHiRequest"/>
+    
+    <wsdl:message name="sayHiResponse">
+	<wsdl:part type="xsd:string" name="out"/>
+    </wsdl:message>
+    
+    <wsdl:message name="greetMeRequest">
+	<wsdl:part element="x1:requestType" name="me"/>
+    </wsdl:message>
+    
+    <wsdl:message name="greetMeResponse">
+	<wsdl:part element="x1:responseType" name="theResponse"/>
+    </wsdl:message>
+    
+    <wsdl:message name="sendReceiveDataRequest">
+	<wsdl:part type="x1:myComplexStructType" name="in"/>
+    </wsdl:message>
+    
+    <wsdl:message name="sendReceiveDataResponse">
+	<wsdl:part type="x1:myComplexStructType" name="out"/>
+    </wsdl:message>
+
+    <wsdl:message name="multiParamPartRequest">
+	<wsdl:part element="x1:requestType" name="in1"/>
+	<wsdl:part element="x1:myComplexStruct" name="in2"/>
+    </wsdl:message>
+    
+    <wsdl:message name="multiParamPartResponse">
+	<wsdl:part element="x1:responseType" name="out1"/>
+    </wsdl:message>
+
+    <wsdl:portType name="Greeter">
+	<wsdl:operation name="sayHi">
+	    <wsdl:input message="tns:sayHiRequest" name="sayHiRequest"/>
+	    <wsdl:output message="tns:sayHiResponse" name="sayHiResponse"/>
+	</wsdl:operation>
+	<wsdl:operation name="greetMe">
+	    <wsdl:input message="tns:greetMeRequest" name="greetMeRequest"/>
+	    <wsdl:output message="tns:greetMeResponse" name="greetMeResponse"/>
+	</wsdl:operation>
+	<wsdl:operation name="sendReceiveData">
+	    <wsdl:input message="tns:sendReceiveDataRequest" name="SendReceiveDataRequest"/>
+	    <wsdl:output message="tns:sendReceiveDataResponse" name="SendReceiveDataResponse"/>
+	</wsdl:operation>
+	<wsdl:operation name="testMultiParamPart" parameterOrder="in2 in1">
+	    <wsdl:input message="tns:multiParamPartRequest" name="multiParamPartRequest"/>
+	    <wsdl:output message="tns:multiParamPartResponse" name="multiParamPartResponse"/>
+	</wsdl:operation>
+    </wsdl:portType>
+    
+    <wsdl:binding name="Greeter_XMLBinding" type="tns:Greeter">
+
+	<xformat:binding/>
+
+	<wsdl:operation name="sayHi">
+	    <wsdl:input>
+		<xformat:body rootNode="tns:sayHi"/>
+	    </wsdl:input>
+	    <wsdl:output/>
+	</wsdl:operation>
+	
+	<wsdl:operation name="greetMe">
+	    <wsdl:input/>
+	    <wsdl:output/>
+	</wsdl:operation>
+	
+	<wsdl:operation name="sendReceiveData">
+	    <wsdl:input/>
+	    <wsdl:output/>
+	</wsdl:operation>
+
+	<wsdl:operation name="testMultiParamPart">
+	    <wsdl:input>
+		<xformat:body rootNode="tns:multiParamRootReq"/>
+	    </wsdl:input>
+	    <wsdl:output/>
+	</wsdl:operation>
+
+    </wsdl:binding>
+    
+    <wsdl:service name="XMLService">
+	<wsdl:port binding="tns:Greeter_XMLBinding" name="XMLPort">
+	    <http:address location="http://localhost:9000/XMLService/XMLPort"/>
+	</wsdl:port>
+    </wsdl:service>
+</wsdl:definitions>