You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2011/10/27 16:40:18 UTC

svn commit: r1189786 - in /cxf/trunk/systests/databinding: ./ src/test/java/org/apache/cxf/systest/source/ src/test/resources/wsdl_systest_databinding/source/

Author: dkulp
Date: Thu Oct 27 14:40:17 2011
New Revision: 1189786

URL: http://svn.apache.org/viewvc?rev=1189786&view=rev
Log:
[CXF-3885] Add system test for source databinding

Added:
    cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/
    cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/ClientServerSourceTest.java   (with props)
    cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/GreeterImpl.java   (with props)
    cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/PutLastTradePriceImpl.java   (with props)
    cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/Server.java   (with props)
    cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/cxf.xml   (with props)
    cxf/trunk/systests/databinding/src/test/resources/wsdl_systest_databinding/source/
    cxf/trunk/systests/databinding/src/test/resources/wsdl_systest_databinding/source/doc_lit_bare.wsdl   (with props)
    cxf/trunk/systests/databinding/src/test/resources/wsdl_systest_databinding/source/hello_world.wsdl   (with props)
Modified:
    cxf/trunk/systests/databinding/pom.xml

Modified: cxf/trunk/systests/databinding/pom.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/databinding/pom.xml?rev=1189786&r1=1189785&r2=1189786&view=diff
==============================================================================
--- cxf/trunk/systests/databinding/pom.xml (original)
+++ cxf/trunk/systests/databinding/pom.xml Thu Oct 27 14:40:17 2011
@@ -136,6 +136,20 @@
                                         <extraarg>jibx</extraarg>
                                     </extraargs>
                                 </wsdlOption>
+                                <wsdlOption>
+                                    <wsdl>${basedir}/src/test/resources/wsdl_systest_databinding/source/hello_world.wsdl</wsdl>
+                                    <extraargs>
+                                        <extraarg>-db</extraarg>
+                                        <extraarg>domsource</extraarg>
+                                    </extraargs>
+                                </wsdlOption>
+                                <wsdlOption>
+                                    <wsdl>${basedir}/src/test/resources/wsdl_systest_databinding/source/doc_lit_bare.wsdl</wsdl>
+                                    <extraargs>
+                                        <extraarg>-db</extraarg>
+                                        <extraarg>domsource</extraarg>
+                                    </extraargs>
+                                </wsdlOption>
                             </wsdlOptions>
                         </configuration>
                         <goals>

Added: cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/ClientServerSourceTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/ClientServerSourceTest.java?rev=1189786&view=auto
==============================================================================
--- cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/ClientServerSourceTest.java (added)
+++ cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/ClientServerSourceTest.java Thu Oct 27 14:40:17 2011
@@ -0,0 +1,124 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.systest.source;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.transform.dom.DOMSource;
+
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+import org.apache.cxf.Bus;
+import org.apache.cxf.BusFactory;
+import org.apache.cxf.bus.spring.SpringBusFactory;
+import org.apache.cxf.frontend.ClientProxy;
+import org.apache.cxf.helpers.DOMUtils;
+import org.apache.cxf.helpers.XMLUtils;
+import org.apache.cxf.interceptor.LoggingInInterceptor;
+import org.apache.cxf.interceptor.LoggingOutInterceptor;
+import org.apache.cxf.testutil.common.AbstractBusClientServerTestBase;
+import org.apache.cxf.testutil.common.TestUtil;
+import org.apache.hello_world_soap_http_source.source.GreetMeFault;
+import org.apache.hello_world_soap_http_source.source.Greeter;
+import org.apache.hello_world_soap_http_source.source.SOAPService;
+
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+/**
+ * 
+ */
+public class ClientServerSourceTest extends AbstractBusClientServerTestBase {
+    static final String WSDL_PORT = TestUtil.getPortNumber(Server.class);
+
+    private static final QName SERVICE_NAME 
+        = new QName("http://apache.org/hello_world_soap_http_source/source", "SOAPService");
+    
+    
+    @BeforeClass
+    public static void startServers() throws Exception {
+        assertTrue("server did not launch correctly", launchServer(Server.class, true));
+    }
+    
+    private Element getElement(Node nd) {
+        if (nd instanceof Document) {
+            return ((Document)nd).getDocumentElement();
+        }
+        return (Element)nd;
+    }
+    
+    @Test
+    public void testCallFromClient() throws Exception {
+        SpringBusFactory factory = new SpringBusFactory();
+        Bus bus = factory.createBus("org/apache/cxf/systest/source/cxf.xml");
+        BusFactory.setDefaultBus(bus);
+        URL wsdl = this.getClass().getResource("/wsdl_systest_databinding/source/hello_world.wsdl");
+        assertNotNull("We should have found the WSDL here. " , wsdl);      
+        
+        SOAPService ss = new SOAPService(wsdl, SERVICE_NAME);
+        Greeter port = ss.getSoapPort();
+        updateAddressPort(port, WSDL_PORT);
+        
+        ClientProxy.getClient(port).getInInterceptors().add(new LoggingInInterceptor());
+        ClientProxy.getClient(port).getOutInterceptors().add(new LoggingOutInterceptor());
+        
+        Document doc = XMLUtils.newDocument();
+        doc.appendChild(doc.createElementNS("http://apache.org/hello_world_soap_http_source/source/types",
+                                            "ns1:sayHi"));
+        DOMSource ds = new DOMSource(doc);
+        DOMSource resp = port.sayHi(ds);
+        assertEquals("We should get the right response", "Bonjour", 
+                     DOMUtils.getContent(getElement(resp.getNode())));
+        
+        doc = XMLUtils.newDocument();
+        Element el = doc.createElementNS("http://apache.org/hello_world_soap_http_source/source/types",
+            "ns1:greetMe");
+        Element el2 = doc.createElementNS("http://apache.org/hello_world_soap_http_source/source/types",
+            "ns1:requestType");
+        el2.appendChild(doc.createTextNode("Willem"));
+        el.appendChild(el2);
+        doc.appendChild(el);
+        ds = new DOMSource(doc);
+        resp = port.greetMe(ds);
+        assertEquals("We should get the right response", "Hello Willem", 
+                     DOMUtils.getContent(DOMUtils.getFirstElement(getElement(resp.getNode()))));
+
+        try {
+            doc = XMLUtils.newDocument();
+            el = doc.createElementNS("http://apache.org/hello_world_soap_http_source/source/types",
+                "ns1:greetMe");
+            el2 = doc.createElementNS("http://apache.org/hello_world_soap_http_source/source/types",
+                "ns1:requestType");
+            el2.appendChild(doc.createTextNode("fault"));
+            el.appendChild(el2);
+            doc.appendChild(el);
+            ds = new DOMSource(doc);
+            port.greetMe(ds);
+            fail("Should have been a fault");
+        } catch (GreetMeFault ex) {
+            assertEquals("Some fault detail", DOMUtils.getContent(getElement(ex.getFaultInfo().getNode())));
+        }
+
+    }
+    
+}

Propchange: cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/ClientServerSourceTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/ClientServerSourceTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/GreeterImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/GreeterImpl.java?rev=1189786&view=auto
==============================================================================
--- cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/GreeterImpl.java (added)
+++ cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/GreeterImpl.java Thu Oct 27 14:40:17 2011
@@ -0,0 +1,103 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.systest.source;
+
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.transform.dom.DOMSource;
+
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+import org.apache.cxf.helpers.DOMUtils;
+import org.apache.cxf.helpers.XMLUtils;
+import org.apache.hello_world_soap_http_source.source.GreetMeFault;
+import org.apache.hello_world_soap_http_source.source.Greeter;
+import org.apache.hello_world_soap_http_source.source.PingMeFault;
+
+@javax.jws.WebService(portName = "SoapPort", serviceName = "SOAPService", 
+                      targetNamespace = "http://apache.org/hello_world_soap_http_source/source", 
+                      endpointInterface = "org.apache.hello_world_soap_http_source.source.Greeter")
+public class GreeterImpl implements Greeter {
+
+    public void greetMeOneWay(DOMSource in) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public DOMSource sayHi(DOMSource in) {
+        try {
+            Document doc = XMLUtils.newDocument();
+            Element el = doc.createElementNS("http://apache.org/hello_world_soap_http_source/source/types",
+                "ns1:sayHiResponse");
+            el.appendChild(doc.createTextNode("Bonjour"));
+            doc.appendChild(el);
+            
+            return new DOMSource(doc);
+        } catch (ParserConfigurationException e) {
+            throw new RuntimeException(e);
+        }
+    }
+    private Element getElement(Node nd) {
+        if (nd instanceof Document) {
+            return ((Document)nd).getDocumentElement();
+        }
+        return (Element)nd;
+    }
+    
+    public DOMSource greetMe(DOMSource in) throws GreetMeFault {
+        Element eval = getElement(in.getNode());
+        eval = DOMUtils.getFirstElement(eval);
+        String val = DOMUtils.getContent(eval);
+        try {
+            if ("fault".equals(val)) {
+                Document doc = XMLUtils.newDocument();
+                Element el = doc.createElementNS("http://apache.org/hello_world_soap_http_source/"
+                                                 + "source/types",
+                        "ns1:greetMeFaultDetail");
+                el.appendChild(doc.createTextNode("Some fault detail"));
+                doc.appendChild(el);
+                
+                throw new GreetMeFault("Fault String", new DOMSource(doc));
+            }
+            
+            Document doc = XMLUtils.newDocument();
+            Element el = doc.createElementNS("http://apache.org/hello_world_soap_http_source/source/types",
+                "ns1:greetMeResponse");
+            Element el2 = doc.createElementNS("http://apache.org/hello_world_soap_http_source/source/types",
+                "ns1:responseType");
+            el2.appendChild(doc.createTextNode("Hello " + val));
+            el.appendChild(el2);
+            
+            doc.appendChild(el);
+            
+            return new DOMSource(doc);
+        } catch (ParserConfigurationException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    public void pingMe() throws PingMeFault {
+        // TODO Auto-generated method stub
+        
+    }
+
+    
+}

Propchange: cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/GreeterImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/GreeterImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/PutLastTradePriceImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/PutLastTradePriceImpl.java?rev=1189786&view=auto
==============================================================================
--- cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/PutLastTradePriceImpl.java (added)
+++ cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/PutLastTradePriceImpl.java Thu Oct 27 14:40:17 2011
@@ -0,0 +1,58 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.systest.source;
+
+import javax.jws.WebService;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.ws.Holder;
+
+import org.apache.cxf.source.doc_lit_bare.PutLastTradedPricePortType;
+
+/**
+ * 
+ */
+@WebService(targetNamespace = "http://cxf.apache.org/source/doc_lit_bare",
+            portName = "SoapPort", serviceName = "SOAPService",
+            endpointInterface = "org.apache.cxf.source.doc_lit_bare.PutLastTradedPricePortType"
+)
+public class PutLastTradePriceImpl implements PutLastTradedPricePortType {
+    
+    public DOMSource nillableParameter(DOMSource theRequest) {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    public void sayHi(Holder<DOMSource> body) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public void putLastTradedPrice(DOMSource body) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    public DOMSource bareNoParam() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+    
+
+}

Propchange: cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/PutLastTradePriceImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/PutLastTradePriceImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/Server.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/Server.java?rev=1189786&view=auto
==============================================================================
--- cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/Server.java (added)
+++ cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/Server.java Thu Oct 27 14:40:17 2011
@@ -0,0 +1,58 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.systest.source;
+
+import javax.xml.ws.Endpoint;
+
+
+import org.apache.cxf.Bus;
+import org.apache.cxf.BusFactory;
+import org.apache.cxf.bus.spring.SpringBusFactory;
+import org.apache.cxf.testutil.common.AbstractBusTestServerBase;
+import org.apache.cxf.testutil.common.TestUtil;
+
+public class Server extends AbstractBusTestServerBase {
+    static final String PORT = TestUtil.getPortNumber(Server.class);
+
+    protected void run() {
+        // set the configuration file
+        SpringBusFactory factory = new SpringBusFactory();
+        Bus bus = factory.createBus("org/apache/cxf/systest/source/cxf.xml");
+        BusFactory.setDefaultBus(bus);
+        setBus(bus);
+        Endpoint.publish("http://localhost:" + PORT + "/SoapContext/SoapPort",
+                         new GreeterImpl());
+        
+        Endpoint.publish("http://localhost:" + PORT + "/SOAPDocLitBareService/SoapPort", 
+                         new PutLastTradePriceImpl());
+    }
+
+    public static void main(String args[]) {
+        try {
+            Server s = new Server();
+            s.start();
+        } catch (Exception ex) {
+            ex.printStackTrace();
+            System.exit(-1);
+        } finally {
+            System.out.println("done!");
+        }
+    }
+}

Propchange: cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/Server.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/Server.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/cxf.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/cxf.xml?rev=1189786&view=auto
==============================================================================
--- cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/cxf.xml (added)
+++ cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/cxf.xml Thu Oct 27 14:40:17 2011
@@ -0,0 +1,50 @@
+<?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.
+-->
+<beans xmlns="http://www.springframework.org/schema/beans"
+      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+      xmlns:jaxws="http://cxf.apache.org/jaxws"
+      xmlns:cxf="http://cxf.apache.org/core"
+      xsi:schemaLocation="
+http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
+http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
+
+
+    <jaxws:client name="{http://apache.org/hello_world_soap_http_source/source}SoapPort"
+        createdFromAPI="true">
+        <!-- jaxws:properties>
+            <entry key="schema-validation-enabled" value="true" />
+        </jaxws:properties-->
+    </jaxws:client>
+
+    <jaxws:endpoint name="{http://apache.org/hello_world_soap_http_source/source}SoapPort"
+        wsdlLocation="classpath:wsdl_systest_databinding/source/hello_world.wsdl"
+        createdFromAPI="true">
+        <jaxws:properties>
+            <entry key="schema-validation-enabled" value="true" />
+        </jaxws:properties>
+    </jaxws:endpoint>
+    
+    
+    <jaxws:endpoint name="{http://cxf.apache.org/source/doc_lit_bare}SoapPort"
+        wsdlLocation="classpath:wsdl_systest_databinding/source/doc_lit_bare.wsdl"
+        createdFromAPI="true"/>
+</beans>
+

Propchange: cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/cxf.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/cxf.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/source/cxf.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: cxf/trunk/systests/databinding/src/test/resources/wsdl_systest_databinding/source/doc_lit_bare.wsdl
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/databinding/src/test/resources/wsdl_systest_databinding/source/doc_lit_bare.wsdl?rev=1189786&view=auto
==============================================================================
--- cxf/trunk/systests/databinding/src/test/resources/wsdl_systest_databinding/source/doc_lit_bare.wsdl (added)
+++ cxf/trunk/systests/databinding/src/test/resources/wsdl_systest_databinding/source/doc_lit_bare.wsdl Thu Oct 27 14:40:17 2011
@@ -0,0 +1,121 @@
+<?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 xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+    xmlns:tns="http://cxf.apache.org/source/doc_lit_bare"
+     xmlns:x1="http://cxf.apache.org/source/doc_lit_bare/types"
+    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    targetNamespace="http://cxf.apache.org/source/doc_lit_bare" name="DocLitBare">
+    <wsdl:types>
+        <schema targetNamespace="http://cxf.apache.org/source/doc_lit_bare/types" 
+            xmlns:tns="http://cxf.apache.org/source/doc_lit_bare/types" 
+            xmlns="http://www.w3.org/2001/XMLSchema" 
+            elementFormDefault="qualified">
+            <complexType name="TradePriceData">
+                <sequence>
+                    <element name="tickerSymbol" type="xsd:string"/>
+                    <element name="tickerPrice" type="xsd:float"/>
+                </sequence>
+            </complexType>
+            <element name="in" type="tns:TradePriceData"/>
+            <element name="inout" type="tns:TradePriceData"/>
+            <element name="stringRespType" type="xsd:string"/>
+            <element name="inDecimal" nillable="true" type="xsd:decimal" />
+            <element name="outString" nillable="true" type="xsd:string" />
+        </schema>
+    </wsdl:types>
+    <message name="PutLastTradedPriceInput">
+        <part name="body" element="x1:in"/>
+    </message>
+    <message name="PutLastTradedPriceOutput"/>
+    <message name="SayHiInput">
+        <part name="body" element="x1:inout"/>
+    </message>
+    <message name="SayHiOutput">
+        <part name="body" element="x1:inout"/>
+    </message>
+    <message name="bareNoParamRequest"/>
+    <message name="bareNoParamResponse">
+        <part element="x1:stringRespType" name="theResponse"/>
+    </message>
+    <message name="nillableRequest">
+        <part name="theRequest" element="x1:inDecimal" />
+    </message>
+    <message name="nillableResponse">
+        <part name="theResponse" element="x1:outString" />
+    </message>
+    <portType name="PutLastTradedPricePortType">
+        <operation name="SayHi">
+            <input message="tns:SayHiInput"/>
+            <output message="tns:SayHiOutput"/>
+        </operation>
+        <operation name="PutLastTradedPrice">
+            <input message="tns:PutLastTradedPriceInput"/>
+            <output message="tns:PutLastTradedPriceOutput"/>
+        </operation>
+        <operation name="bareNoParam">
+            <input message="tns:bareNoParamRequest"/>
+            <output message="tns:bareNoParamResponse"/>
+        </operation>
+        <operation name="nillableParameter">
+            <input message="tns:nillableRequest" />
+            <output message="tns:nillableResponse" />
+        </operation>
+    </portType>
+    <binding name="PutLastTradedPriceSoapBinding" type="tns:PutLastTradedPricePortType">
+        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+        <operation name="SayHi">
+            <input>
+                <soap:body use="literal"/>
+            </input>
+            <output>
+                <soap:body use="literal"/>
+            </output>
+        </operation>
+        <operation name="PutLastTradedPrice">
+            <input>
+                <soap:body use="literal"/>
+            </input>
+            <output>
+                <soap:body use="literal"/>
+            </output>
+        </operation>
+        <operation name="bareNoParam">
+            <input>
+                <soap:body use="literal"/>
+            </input>
+            <output>
+                <soap:body use="literal"/>
+            </output>
+        </operation>
+        <operation name="nillableParameter">
+            <input>
+                <soap:body use="literal" />
+            </input>
+            <output>
+                <soap:body use="literal" />
+            </output>
+        </operation>
+    </binding>
+    <wsdl:service name="SOAPService">
+        <wsdl:port name="SoapPort" binding="tns:PutLastTradedPriceSoapBinding">
+            <soap:address location="http://localhost:9107/SOAPDocLitBareService/SoapPort"/>
+        </wsdl:port>
+    </wsdl:service>
+</wsdl:definitions>

Propchange: cxf/trunk/systests/databinding/src/test/resources/wsdl_systest_databinding/source/doc_lit_bare.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cxf/trunk/systests/databinding/src/test/resources/wsdl_systest_databinding/source/doc_lit_bare.wsdl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: cxf/trunk/systests/databinding/src/test/resources/wsdl_systest_databinding/source/doc_lit_bare.wsdl
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: cxf/trunk/systests/databinding/src/test/resources/wsdl_systest_databinding/source/hello_world.wsdl
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/databinding/src/test/resources/wsdl_systest_databinding/source/hello_world.wsdl?rev=1189786&view=auto
==============================================================================
--- cxf/trunk/systests/databinding/src/test/resources/wsdl_systest_databinding/source/hello_world.wsdl (added)
+++ cxf/trunk/systests/databinding/src/test/resources/wsdl_systest_databinding/source/hello_world.wsdl Thu Oct 27 14:40:17 2011
@@ -0,0 +1,196 @@
+<?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/hello_world_soap_http_source/source"
+    xmlns="http://schemas.xmlsoap.org/wsdl/"
+    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+    xmlns:tns="http://apache.org/hello_world_soap_http_source/source"
+    xmlns:x1="http://apache.org/hello_world_soap_http_source/source/types"
+    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+    <wsdl:types>
+        <schema targetNamespace="http://apache.org/hello_world_soap_http_source/source/types"
+            xmlns="http://www.w3.org/2001/XMLSchema"
+        xmlns:tns="http://apache.org/hello_world_soap_http_source/source/types"
+            elementFormDefault="qualified">
+            <simpleType name="MyStringType">
+                <restriction base="string">
+                    <maxLength value="30" />
+                </restriction>
+            </simpleType>
+
+            <element name="sayHi">
+                <complexType/>
+            </element>
+            <element name="sayHiResponse">
+                <complexType>
+                    <sequence>
+                        <element name="responseType" type="string"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="greetMe">
+                <complexType>
+                    <sequence>
+                        <element name="requestType" type="tns:MyStringType"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="greetMeResponse">
+                <complexType>
+                    <sequence>
+                        <element name="responseType" type="string"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="greetMeOneWay">
+                <complexType>
+                    <sequence>
+                        <element name="requestType" type="string"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="pingMe">
+                <complexType/>
+            </element>
+            <element name="pingMeResponse">
+                <complexType/>
+            </element>
+            <element name="faultDetail">
+                <complexType>
+                    <sequence>
+                        <element name="minor" type="short"/>
+                        <element name="major" type="short"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="greetMeFaultDetail" type="string"/>
+        </schema>
+    </wsdl:types>
+    <wsdl:message name="sayHiRequest">
+        <wsdl:part element="x1:sayHi" name="in"/>
+    </wsdl:message>
+    <wsdl:message name="sayHiResponse">
+        <wsdl:part element="x1:sayHiResponse" name="out"/>
+    </wsdl:message>
+    <wsdl:message name="greetMeRequest">
+        <wsdl:part element="x1:greetMe" name="in"/>
+    </wsdl:message>
+    <wsdl:message name="greetMeResponse">
+        <wsdl:part element="x1:greetMeResponse" name="out"/>
+    </wsdl:message>
+    <wsdl:message name="greetMeOneWayRequest">
+        <wsdl:part element="x1:greetMeOneWay" name="in"/>
+    </wsdl:message>
+    <wsdl:message name="pingMeRequest">
+        <wsdl:part name="in" element="x1:pingMe"/>
+    </wsdl:message>
+    <wsdl:message name="pingMeResponse">
+        <wsdl:part name="out" element="x1:pingMeResponse"/>
+    </wsdl:message>
+    <wsdl:message name="pingMeFault">
+        <wsdl:part name="faultDetail" element="x1:faultDetail"/>
+    </wsdl:message>
+    <wsdl:message name="greetMeFault">
+        <wsdl:part name="greetMeFault" element="x1:greetMeFaultDetail"/>
+    </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:fault name="greetMeFault" message="tns:greetMeFault"/>
+        </wsdl:operation>
+        
+
+        <wsdl:operation name="greetMeOneWay">
+            <wsdl:input message="tns:greetMeOneWayRequest" name="greetMeOneWayRequest"/>
+        </wsdl:operation>
+
+        <wsdl:operation name="pingMe">
+            <wsdl:input name="pingMeRequest" message="tns:pingMeRequest"/>
+            <wsdl:output name="pingMeResponse" message="tns:pingMeResponse"/>
+            <wsdl:fault name="pingMeFault" message="tns:pingMeFault"/>
+        </wsdl:operation>
+    </wsdl:portType>
+    <wsdl:binding name="Greeter_SOAPBinding" type="tns:Greeter">
+        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+        
+
+        <wsdl:operation name="sayHi">
+            <soap:operation soapAction="" style="document"/>
+            <wsdl:input name="sayHiRequest">
+                <soap:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output name="sayHiResponse">
+                <soap:body use="literal"/>
+            </wsdl:output>
+        </wsdl:operation>
+        
+
+        <wsdl:operation name="greetMe">
+            <soap:operation soapAction="" style="document"/>
+            <wsdl:input name="greetMeRequest">
+                <soap:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output name="greetMeResponse">
+                <soap:body use="literal"/>
+            </wsdl:output>
+            <wsdl:fault name="greetMeFault">
+                <soap:fault name="greetMeFault" use="literal"/>
+            </wsdl:fault>
+        </wsdl:operation>
+        
+
+        <wsdl:operation name="greetMeOneWay">
+            <soap:operation soapAction="" style="document"/>
+            <wsdl:input name="greetMeOneWayRequest">
+                <soap:body use="literal"/>
+            </wsdl:input>
+        </wsdl:operation>
+
+        <wsdl:operation name="pingMe">
+            <soap:operation style="document"/>
+            <wsdl:input>
+                <soap:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal"/>
+            </wsdl:output>
+            <wsdl:fault name="pingMeFault">
+                <soap:fault name="pingMeFault" use="literal"/>
+            </wsdl:fault>
+        </wsdl:operation>
+        
+
+    </wsdl:binding>
+    <wsdl:service name="SOAPService">
+        <wsdl:port binding="tns:Greeter_SOAPBinding" name="SoapPort">
+            <soap:address location="http://localhost:9000/SoapContext/SoapPort"/>
+        </wsdl:port>
+    </wsdl:service>
+</wsdl:definitions>
+

Propchange: cxf/trunk/systests/databinding/src/test/resources/wsdl_systest_databinding/source/hello_world.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cxf/trunk/systests/databinding/src/test/resources/wsdl_systest_databinding/source/hello_world.wsdl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: cxf/trunk/systests/databinding/src/test/resources/wsdl_systest_databinding/source/hello_world.wsdl
------------------------------------------------------------------------------
    svn:mime-type = text/xml