cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ajaypai...@apache.org
Subject svn commit: r528035 [2/3] - in /incubator/cxf/trunk: rt/bindings/coloc/ rt/bindings/coloc/src/ rt/bindings/coloc/src/main/ rt/bindings/coloc/src/main/java/ rt/bindings/coloc/src/main/java/org/ rt/bindings/coloc/src/main/java/org/apache/ rt/bindings/col...
Date Thu, 12 Apr 2007 17:00:14 GMT
Added: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/AbstractHeaderServiceDocLitTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/AbstractHeaderServiceDocLitTest.java?view=auto&rev=528035
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/AbstractHeaderServiceDocLitTest.java (added)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/AbstractHeaderServiceDocLitTest.java Thu Apr 12 10:00:11 2007
@@ -0,0 +1,172 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT 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.coloc;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Holder;
+
+import static junit.framework.Assert.assertEquals;
+
+import org.apache.headers.coloc.types.HeaderInfo;
+import org.apache.headers.coloc.types.InHeaderResponseT;
+import org.apache.headers.coloc.types.InHeaderT;
+import org.apache.headers.coloc.types.InoutHeaderResponseT;
+import org.apache.headers.coloc.types.InoutHeaderT;
+import org.apache.headers.coloc.types.OutHeaderResponseT;
+import org.apache.headers.coloc.types.OutHeaderT;
+import org.apache.headers.doc_lit.HeaderTester;
+
+import org.junit.Before;
+//import org.junit.Ignore;
+import org.junit.Test;
+
+/**
+ * This class invokes the service described in /wsdl/header_doc_lit.wsdl.
+ * This WSDL contains operations with in-out parameters.
+ * It sets up the a client in "testColoc()" to send requests to the
+ * colco server which is listening on port 9001 (SOAP/HTTP).
+ * The subclass defines where CXF configuration and the
+ * target server (transport, etc).
+ *
+ */
+public abstract class AbstractHeaderServiceDocLitTest extends AbstractColocTest {
+    static final QName SERVICE_NAME = new QName("http://apache.org/headers/doc_lit", "SOAPHeaderService");
+    static final QName PORT_NAME = new QName("http://apache.org/headers/doc_lit", "SoapPort9000");
+    static final String WSDL_LOCATION = "/wsdl/header_doc_lit.wsdl";
+
+    private HeaderTester service;
+
+    @Before
+    public void setUp() throws Exception {
+        super.setUp();
+        service = getPort(
+                         getServiceQname(),
+                         getPortQName(),
+                         getWsdlLocation(),
+                         HeaderTester.class);
+    }
+
+    /**
+     * The client exercise the service's method here.
+     *
+     */
+    @Test
+    public void testInHeaderParts() {
+        for (int idx = 0; idx < 2; idx++) {
+            verifyInHeaderParts(service);
+        }
+    }
+
+    @Test
+    public void testInOutHeaderParts() {
+        for (int idx = 0; idx < 2; idx++) {
+            verifyInOutHeaderParts(service);
+        }
+    }
+
+    @Test
+    public void testOutHeaderParts() {
+        for (int idx = 0; idx < 2; idx++) {
+            verifyOutHeaderParts(service);
+        }
+    }
+
+    @Test
+    public void testAll() {
+        for (int idx = 0; idx < 2; idx++) {
+            verifyInHeaderParts(service);
+            verifyInOutHeaderParts(service);
+            verifyOutHeaderParts(service);
+        }
+    }
+
+    protected void verifyInHeaderParts(HeaderTester ht) {
+        getLogger().debug("Client: calling inHeader");
+        InHeaderT inHeader = new InHeaderT();
+        inHeader.setRequestType(HeaderTesterUtil.IN_REQUEST_TYPE);
+
+        HeaderInfo headerInfo = new HeaderInfo();
+        headerInfo.setMessage(HeaderTesterUtil.IN_MESSAGE);
+        headerInfo.setOriginator(HeaderTesterUtil.IN_ORIGINATOR);
+
+        InHeaderResponseT inHeaderResponse = ht.inHeader(inHeader, headerInfo);
+        assertEquals(HeaderTesterUtil.OUT_RESPONSE_TYPE, inHeaderResponse.getResponseType());
+    }
+
+    protected void verifyInOutHeaderParts(HeaderTester ht) {
+        getLogger().debug("Client: calling inoutHeader");
+        InoutHeaderT inoutHeader = new InoutHeaderT();
+        inoutHeader.setRequestType(HeaderTesterUtil.INOUT_REQUEST_TYPE_IN);
+
+        HeaderInfo headerInfo = new HeaderInfo();
+        headerInfo.setMessage(HeaderTesterUtil.INOUT_MESSAGE_IN);
+        headerInfo.setOriginator(HeaderTesterUtil.INOUT_ORIGINATOR_IN);
+
+        Holder<HeaderInfo> holder  = new Holder<HeaderInfo>();
+        holder.value = headerInfo;
+        InoutHeaderResponseT inoutHeaderResponse = ht.inoutHeader(inoutHeader, holder);
+
+        assertEquals(HeaderTesterUtil.INOUT_REQUEST_TYPE_OUT,
+                     inoutHeaderResponse.getResponseType());
+        assertNotSame(HeaderTesterUtil.INOUT_REQUEST_TYPE_OUT, inoutHeader.getRequestType());
+        assertEquals(HeaderTesterUtil.INOUT_MESSAGE_OUT, holder.value.getMessage());
+        assertEquals(HeaderTesterUtil.INOUT_ORIGINATOR_OUT, holder.value.getOriginator());
+
+    }
+
+    protected void verifyOutHeaderParts(HeaderTester ht) {
+        getLogger().debug("Client: calling outHeader");
+        OutHeaderT outHeader = new OutHeaderT();
+        outHeader.setRequestType(HeaderTesterUtil.OUT_REQUEST_TYPE);
+
+        OutHeaderResponseT theResponse = new OutHeaderResponseT();
+        theResponse.setResponseType("bogus");
+        Holder<OutHeaderResponseT> respHolder = new Holder<OutHeaderResponseT>();
+        respHolder.value = theResponse;
+
+        Holder<HeaderInfo> holder  = new Holder<HeaderInfo>();
+        HeaderInfo headerInfo = new HeaderInfo();
+        headerInfo.setMessage(HeaderTesterUtil.OUT_MESSAGE_IN);
+        headerInfo.setOriginator(HeaderTesterUtil.OUT_ORIGINATOR_IN);
+        holder.value = headerInfo;
+
+        ht.outHeader(outHeader, respHolder, holder);
+        assertEquals(HeaderTesterUtil.OUT_MESSAGE_OUT, holder.value.getMessage());
+        assertEquals(HeaderTesterUtil.OUT_ORIGINATOR_OUT, holder.value.getOriginator());
+        assertEquals(HeaderTesterUtil.OUT_RESPONSE_TYPE, respHolder.value.getResponseType());
+    }
+
+    protected String getWsdlLocation() {
+        return WSDL_LOCATION;
+    }
+
+    protected QName getServiceQname() {
+        return SERVICE_NAME;
+    }
+
+    protected QName getPortQName() {
+        return PORT_NAME;
+    }
+
+    protected HeaderTester getService() {
+        return service;
+    }
+
+}

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/AbstractHeaderServiceDocLitTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/AbstractHeaderServiceDocLitTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/AbstractHeaderServiceRpcLitTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/AbstractHeaderServiceRpcLitTest.java?view=auto&rev=528035
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/AbstractHeaderServiceRpcLitTest.java (added)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/AbstractHeaderServiceRpcLitTest.java Thu Apr 12 10:00:11 2007
@@ -0,0 +1,261 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT 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.coloc;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Holder;
+
+import static junit.framework.Assert.assertEquals;
+
+import org.apache.cxf.interceptor.Fault;
+import org.apache.cxf.message.Message;
+import org.apache.headers.coloc.types.FaultDetailT;
+import org.apache.headers.coloc.types.HeaderInfo;
+import org.apache.headers.coloc.types.InHeaderResponseT;
+import org.apache.headers.coloc.types.InHeaderT;
+import org.apache.headers.coloc.types.InoutHeaderResponseT;
+import org.apache.headers.coloc.types.InoutHeaderT;
+import org.apache.headers.coloc.types.OutHeaderResponseT;
+import org.apache.headers.coloc.types.OutHeaderT;
+import org.apache.headers.coloc.types.PingMeResponseT;
+import org.apache.headers.coloc.types.PingMeT;
+import org.apache.headers.rpc_lit.HeaderTester;
+import org.apache.headers.rpc_lit.PingMeFault;
+
+import org.junit.Before;
+//import org.junit.Ignore;
+import org.junit.Test;
+
+/**
+ * This class invokes the service described in /wsdl/header_rpc_lit.wsdl.
+ * This WSDL contains operations with in-out parameters.
+ * It sets up the a client in "testRouter()" to send requests to the
+ * router which is listening on port 9001 (SOAP/HTTP).
+ * The subclass defines where CXF configuration and the
+ * target server (transport, etc).
+ *
+ */
+public abstract class AbstractHeaderServiceRpcLitTest extends AbstractColocTest {
+    static final QName SERVICE_NAME = new QName("http://apache.org/headers/rpc_lit",
+                                                "SOAPHeaderService");
+    static final QName PORT_NAME = new QName("http://apache.org/headers/rpc_lit", 
+                                             "SoapPort");    
+    static final String WSDL_LOCATION = "/wsdl/header_rpc_lit.wsdl";
+
+    private HeaderTester port;
+    
+    @Before
+    public void setUp() throws Exception {
+        super.setUp();
+        port = getPort(
+                         getServiceQname(),
+                         getPortQName(),
+                         getWsdlLocation(),
+                         HeaderTester.class);
+    }
+
+    @Test
+    public void testTwoWayOperation() {
+        for (int idx = 0; idx < 2; idx++) {
+            verifyTwoWay(port);
+        }
+    }
+    
+    @Test
+    public void testInHeaderParts() {
+        for (int idx = 0; idx < 2; idx++) {
+            verifyInHeaderParts(port);
+        }
+    }
+
+    @Test
+    public void testInOutHeaderParts() {
+        for (int idx = 0; idx < 2; idx++) {
+            verifyInOutHeaderParts(port);
+        }
+    }
+
+    @Test
+    public void testOutHeaderParts() {
+        for (int idx = 0; idx < 2; idx++) {
+            verifyOutHeaderParts(port);
+        }
+    }
+
+    @Test
+    public void testFault() {
+        for (int idx = 0; idx < 2; idx++) {
+            verifyFaults(port);
+        }
+    }
+    
+    @Test
+    public void testAll() {
+        for (int idx = 0; idx < 2; idx++) {
+            verifyTwoWay(port);
+            verifyInHeaderParts(port);
+            verifyInOutHeaderParts(port);
+            verifyOutHeaderParts(port);
+            verifyFaults(port);
+        }
+    }
+
+    public void verifyTwoWay(HeaderTester ht) {
+        getLogger().debug("Client: calling pingMe");
+        PingMeT in = new PingMeT();
+        try {
+            in.setFaultType("ABCD");
+            PingMeResponseT ret = ht.pingMe(in);
+            assertNotNull(ret);
+        } catch (Exception ex) {
+            fail("Should not throw any exception");
+        }
+    }
+
+    protected void verifyInHeaderParts(HeaderTester ht) {
+        getLogger().debug("Client: calling inHeader");
+        InHeaderT inHeader = new InHeaderT();
+        inHeader.setRequestType(HeaderTesterUtil.IN_REQUEST_TYPE);
+
+        HeaderInfo headerInfo = new HeaderInfo();
+        headerInfo.setMessage(HeaderTesterUtil.IN_MESSAGE);
+        headerInfo.setOriginator(HeaderTesterUtil.IN_ORIGINATOR);
+
+        InHeaderResponseT inHeaderResponse = ht.inHeader(inHeader, headerInfo);
+        assertEquals(HeaderTesterUtil.OUT_RESPONSE_TYPE, inHeaderResponse.getResponseType());
+    }
+
+    protected void verifyInOutHeaderParts(HeaderTester ht) {
+        getLogger().debug("Client: calling inoutHeader");
+        InoutHeaderT inoutHeader = new InoutHeaderT();
+        inoutHeader.setRequestType(HeaderTesterUtil.INOUT_REQUEST_TYPE_IN);
+
+        HeaderInfo headerInfo = new HeaderInfo();
+        headerInfo.setMessage(HeaderTesterUtil.INOUT_MESSAGE_IN);
+        headerInfo.setOriginator(HeaderTesterUtil.INOUT_ORIGINATOR_IN);
+
+        Holder<HeaderInfo> holder  = new Holder<HeaderInfo>();
+        holder.value = headerInfo;
+        InoutHeaderResponseT inoutHeaderResponse = ht.inoutHeader(inoutHeader, holder);
+
+        assertEquals(HeaderTesterUtil.INOUT_REQUEST_TYPE_OUT,
+                     inoutHeaderResponse.getResponseType());
+        assertNotSame(HeaderTesterUtil.INOUT_REQUEST_TYPE_OUT,
+                      inoutHeader.getRequestType());
+        assertEquals(HeaderTesterUtil.INOUT_MESSAGE_OUT, holder.value.getMessage());
+        assertEquals(HeaderTesterUtil.INOUT_ORIGINATOR_OUT, holder.value.getOriginator());
+
+    }
+
+    protected void verifyOutHeaderParts(HeaderTester ht) {
+        getLogger().debug("Client: calling outHeader");
+        OutHeaderT outHeader = new OutHeaderT();
+        outHeader.setRequestType(HeaderTesterUtil.OUT_REQUEST_TYPE);
+
+        OutHeaderResponseT theResponse = new OutHeaderResponseT();
+        theResponse.setResponseType("bogus");
+        Holder<OutHeaderResponseT> respHolder = new Holder<OutHeaderResponseT>();
+        respHolder.value = theResponse;
+
+        Holder<HeaderInfo> holder  = new Holder<HeaderInfo>();
+        HeaderInfo headerInfo = new HeaderInfo();
+        headerInfo.setMessage(HeaderTesterUtil.OUT_MESSAGE_IN);
+        headerInfo.setOriginator(HeaderTesterUtil.OUT_ORIGINATOR_IN);
+        holder.value = headerInfo;
+
+        ht.outHeader(outHeader, respHolder, holder);
+        assertEquals(HeaderTesterUtil.OUT_MESSAGE_OUT, holder.value.getMessage());
+        assertEquals(HeaderTesterUtil.OUT_ORIGINATOR_OUT, holder.value.getOriginator());
+        assertEquals(HeaderTesterUtil.OUT_RESPONSE_TYPE, respHolder.value.getResponseType());
+    }
+
+    public void verifyFaults(HeaderTester ht) {
+        getLogger().debug("Client: calling pingMe user fault");
+        PingMeT in = new PingMeT();
+        
+        try {
+            in.setFaultType("USER");
+            ht.pingMe(in);
+            fail("Should throw a PingeMeFault exception");
+        } catch (PingMeFault pmf) {
+            FaultDetailT detail = pmf.getFaultInfo();
+            assertNotNull(detail);
+            assertEquals("Major Version should be 1", (short)1, detail.getMajor());
+            assertEquals("Minor Version should be 2", (short)2, detail.getMinor());
+            if (isFaultCodeCheckEnabled()) {
+                verifyFaultCode(port);
+            }
+        }
+
+        getLogger().debug("Client: calling pingMe Cxf System Fault");
+        try {
+            in.setFaultType("SYSTEM");
+            ht.pingMe(in);
+            fail("Should throw a CXF Fault exception");
+        } catch (Fault fault) {
+            assertFalse(-1 == fault.getMessage().lastIndexOf(HeaderTesterUtil.EX_STRING));
+            if (isFaultCodeCheckEnabled()) {
+                verifyFaultCode(port);
+            }
+        } catch (PingMeFault pmf) {
+            fail("Should not receive PingMefault");
+        }
+
+        getLogger().debug("Client: calling pingMe java runtime exception");
+        try {
+            in.setFaultType("RUNTIME");
+            ht.pingMe(in);
+            fail("Should throw a CXF Fault exception");
+        } catch (Fault fault) {
+            assertFalse(-1 == fault.getMessage().lastIndexOf(HeaderTesterUtil.EX_STRING));
+            if (isFaultCodeCheckEnabled()) {
+                verifyFaultCode(port);
+            }
+        } catch (PingMeFault pmf) {
+            fail("Should not receive PingMefault");
+        }
+    }
+
+    protected void verifyFaultCode(HeaderTester proxy) {
+        BindingProvider bp = (BindingProvider)proxy;
+        java.util.Map<String, Object> respCtx = bp.getResponseContext();
+        assertNotNull(respCtx);
+        Integer val = (Integer)respCtx.get(Message.RESPONSE_CODE);
+        assertNotNull(val);
+        assertEquals("Message.RESPONSE_CODE should be 500", 500,  val.intValue());
+    }
+
+    protected String getWsdlLocation() {
+        return WSDL_LOCATION;
+    }
+
+    protected QName getServiceQname() {
+        return SERVICE_NAME;
+    }
+    
+    protected QName getPortQName() {
+        return PORT_NAME;
+    }
+    
+    protected boolean isFaultCodeCheckEnabled() {
+        return false;
+    }
+}

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/AbstractHeaderServiceRpcLitTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/AbstractHeaderServiceRpcLitTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/BaseHeaderTesterDocLitImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/BaseHeaderTesterDocLitImpl.java?view=auto&rev=528035
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/BaseHeaderTesterDocLitImpl.java (added)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/BaseHeaderTesterDocLitImpl.java Thu Apr 12 10:00:11 2007
@@ -0,0 +1,110 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT 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.coloc;
+
+import java.util.ResourceBundle;
+import javax.xml.ws.Holder;
+
+import static junit.framework.Assert.assertEquals;
+
+import org.apache.commons.logging.Log;
+import org.apache.cxf.common.i18n.Message;
+import org.apache.cxf.interceptor.Fault;
+import org.apache.headers.coloc.types.FaultDetailT;
+import org.apache.headers.coloc.types.HeaderInfo;
+import org.apache.headers.coloc.types.InHeaderResponseT;
+import org.apache.headers.coloc.types.InHeaderT;
+import org.apache.headers.coloc.types.InoutHeaderResponseT;
+import org.apache.headers.coloc.types.InoutHeaderT;
+import org.apache.headers.coloc.types.OutHeaderResponseT;
+import org.apache.headers.coloc.types.OutHeaderT;
+import org.apache.headers.doc_lit.HeaderTester;
+import org.apache.headers.doc_lit.PingMeFault;
+
+public class BaseHeaderTesterDocLitImpl implements HeaderTester {
+    private Log logger;
+
+    public InHeaderResponseT inHeader(InHeaderT me, HeaderInfo headerInfo) {
+        getLogger().debug("Server: inHeader called");
+        assertEquals(HeaderTesterUtil.IN_REQUEST_TYPE, me.getRequestType());
+        assertEquals(HeaderTesterUtil.IN_MESSAGE, headerInfo.getMessage());
+        assertEquals(HeaderTesterUtil.IN_ORIGINATOR, headerInfo.getOriginator());
+
+        InHeaderResponseT inHeaderResponse = new InHeaderResponseT();
+        inHeaderResponse.setResponseType(HeaderTesterUtil.OUT_RESPONSE_TYPE);
+        return inHeaderResponse;
+    }
+
+    public InoutHeaderResponseT inoutHeader(InoutHeaderT me, Holder<HeaderInfo> headerInfo) {
+        getLogger().debug("Server: inoutHeader called");
+        assertEquals(HeaderTesterUtil.INOUT_REQUEST_TYPE_IN, me.getRequestType());
+        assertEquals(HeaderTesterUtil.INOUT_MESSAGE_IN, headerInfo.value.getMessage());
+        assertEquals(HeaderTesterUtil.INOUT_ORIGINATOR_IN, headerInfo.value.getOriginator());
+
+        HeaderInfo out = new HeaderInfo();
+        out.setMessage(HeaderTesterUtil.INOUT_MESSAGE_OUT);
+        out.setOriginator(HeaderTesterUtil.INOUT_ORIGINATOR_OUT);
+        headerInfo.value = out;
+
+        InoutHeaderResponseT inoutHeaderResponse = new InoutHeaderResponseT();
+        inoutHeaderResponse.setResponseType(HeaderTesterUtil.INOUT_REQUEST_TYPE_OUT);
+        return inoutHeaderResponse;
+    }
+
+    public void outHeader(OutHeaderT me, Holder<OutHeaderResponseT> theResponse,
+            Holder<HeaderInfo> headerInfo) {
+        getLogger().debug("Server: outHeader called");
+        assertEquals(HeaderTesterUtil.OUT_REQUEST_TYPE, me.getRequestType());
+
+        HeaderInfo out = new HeaderInfo();
+        out.setMessage(HeaderTesterUtil.OUT_MESSAGE_OUT);
+        out.setOriginator(HeaderTesterUtil.OUT_ORIGINATOR_OUT);
+        headerInfo.value = out;
+
+        OutHeaderResponseT resp = new OutHeaderResponseT();
+        resp.setResponseType(HeaderTesterUtil.OUT_RESPONSE_TYPE);
+        theResponse.value = resp;
+    }
+
+    public void pingMe(String msgType) throws PingMeFault {
+        getLogger().debug("Server: in pingMe:" + msgType);
+        if ("USER".equals(msgType)) {
+
+            FaultDetailT detail = new FaultDetailT();
+            detail.setMajor((short)1);
+            detail.setMinor((short)2);
+            throw new PingMeFault("USER FAULT TEST", detail);
+        } else if ("SYSTEM".equals(msgType)) {
+            throw new Fault(new Message(HeaderTesterUtil.EX_STRING,
+                                        (ResourceBundle)null,
+                                        new Object[]{"FAULT TEST"}));
+        } else if ("RUNTIME".equals(msgType)) {
+            throw new IllegalArgumentException(HeaderTesterUtil.EX_STRING);
+        } 
+    }
+
+    public void init(Log log) {
+        logger = log;
+    }
+
+    protected Log getLogger() {
+        return logger;
+    }
+}
\ No newline at end of file

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/BaseHeaderTesterDocLitImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/BaseHeaderTesterDocLitImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/BaseHeaderTesterRpcLitImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/BaseHeaderTesterRpcLitImpl.java?view=auto&rev=528035
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/BaseHeaderTesterRpcLitImpl.java (added)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/BaseHeaderTesterRpcLitImpl.java Thu Apr 12 10:00:11 2007
@@ -0,0 +1,115 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT 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.coloc;
+
+import java.util.ResourceBundle;
+
+import javax.xml.ws.Holder;
+
+import static junit.framework.Assert.assertEquals;
+
+import org.apache.commons.logging.Log;
+import org.apache.cxf.common.i18n.Message;
+import org.apache.cxf.interceptor.Fault;
+import org.apache.headers.coloc.types.FaultDetailT;
+import org.apache.headers.coloc.types.HeaderInfo;
+import org.apache.headers.coloc.types.InHeaderResponseT;
+import org.apache.headers.coloc.types.InHeaderT;
+import org.apache.headers.coloc.types.InoutHeaderResponseT;
+import org.apache.headers.coloc.types.InoutHeaderT;
+import org.apache.headers.coloc.types.OutHeaderResponseT;
+import org.apache.headers.coloc.types.OutHeaderT;
+import org.apache.headers.coloc.types.PingMeResponseT;
+import org.apache.headers.coloc.types.PingMeT;
+import org.apache.headers.rpc_lit.HeaderTester;
+import org.apache.headers.rpc_lit.PingMeFault;
+
+public class BaseHeaderTesterRpcLitImpl implements HeaderTester {
+    private Log logger;
+    
+    public InHeaderResponseT inHeader(InHeaderT in, HeaderInfo header) {
+        getLogger().debug("Server: inHeader called");
+        assertEquals(HeaderTesterUtil.IN_REQUEST_TYPE, in.getRequestType());
+        assertEquals(HeaderTesterUtil.IN_MESSAGE, header.getMessage());
+        assertEquals(HeaderTesterUtil.IN_ORIGINATOR, header.getOriginator());
+
+        InHeaderResponseT inHeaderResponse = new InHeaderResponseT();
+        inHeaderResponse.setResponseType(HeaderTesterUtil.OUT_RESPONSE_TYPE);
+        return inHeaderResponse;
+    }
+    
+    public InoutHeaderResponseT inoutHeader(InoutHeaderT in, Holder<HeaderInfo> header) {
+        getLogger().debug("Server: inoutHeader called");
+        assertEquals(HeaderTesterUtil.INOUT_REQUEST_TYPE_IN, in.getRequestType());
+        assertEquals(HeaderTesterUtil.INOUT_MESSAGE_IN, header.value.getMessage());
+        assertEquals(HeaderTesterUtil.INOUT_ORIGINATOR_IN, header.value.getOriginator());
+        
+        HeaderInfo out = new HeaderInfo();
+        out.setMessage(HeaderTesterUtil.INOUT_MESSAGE_OUT);
+        out.setOriginator(HeaderTesterUtil.INOUT_ORIGINATOR_OUT);
+        header.value = out;
+        
+        InoutHeaderResponseT inoutHeaderResponse = new InoutHeaderResponseT();
+        inoutHeaderResponse.setResponseType(HeaderTesterUtil.INOUT_REQUEST_TYPE_OUT);
+        return inoutHeaderResponse;
+    }
+    
+    public void outHeader(OutHeaderT in, Holder<OutHeaderResponseT> out, Holder<HeaderInfo> header) {
+        getLogger().debug("Server: outHeader called");
+        assertEquals(HeaderTesterUtil.OUT_REQUEST_TYPE, in.getRequestType());
+        
+        HeaderInfo outHeader = new HeaderInfo();
+        outHeader.setMessage(HeaderTesterUtil.OUT_MESSAGE_OUT);
+        outHeader.setOriginator(HeaderTesterUtil.OUT_ORIGINATOR_OUT);
+        header.value = outHeader;
+        
+        OutHeaderResponseT resp = new OutHeaderResponseT();
+        resp.setResponseType(HeaderTesterUtil.OUT_RESPONSE_TYPE);
+        out.value = resp;
+    }
+    
+    public PingMeResponseT pingMe(PingMeT in) throws PingMeFault {
+        String msgType = in.getFaultType();
+        getLogger().debug("Server: in pingMe:" + msgType);
+        if ("USER".equals(msgType)) {
+
+            FaultDetailT detail = new FaultDetailT();
+            detail.setMajor((short)1);
+            detail.setMinor((short)2);
+            throw new PingMeFault("USER FAULT TEST", detail);
+        } else if ("SYSTEM".equals(msgType)) {
+            throw new Fault(new Message(HeaderTesterUtil.EX_STRING,
+                                        (ResourceBundle)null,
+                                        new Object[]{"FAULT TEST"}));
+        } else if ("RUNTIME".equals(msgType)) {
+            throw new IllegalArgumentException(HeaderTesterUtil.EX_STRING);
+        } 
+        
+        return new PingMeResponseT();
+    }
+    
+    public void init(Log log) {
+        logger = log;
+    }
+    
+    protected Log getLogger() {
+        return logger;
+    }    
+}
\ No newline at end of file

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/BaseHeaderTesterRpcLitImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/BaseHeaderTesterRpcLitImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/ColocHeaderDocLitTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/ColocHeaderDocLitTest.java?view=auto&rev=528035
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/ColocHeaderDocLitTest.java (added)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/ColocHeaderDocLitTest.java Thu Apr 12 10:00:11 2007
@@ -0,0 +1,56 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT 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.coloc;
+
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.junit.Test;
+
+
+public class ColocHeaderDocLitTest extends AbstractHeaderServiceDocLitTest {
+    static final String TRANSPORT_URI = "http://localhost:9111/headers";
+
+    private Log logger = LogFactory.getLog(ColocHeaderDocLitTest.class);
+
+    protected Log getLogger() {
+        return logger;
+    }
+
+    protected Object getServiceImpl() {
+        HttpServiceImpl impl =  new HttpServiceImpl();
+        impl.init(getLogger());
+        return impl;
+    }
+
+    protected String getTransportURI() {
+        return TRANSPORT_URI;
+    }
+
+    @javax.jws.WebService(portName = "SoapPort9000", serviceName = "SOAPHeaderService",
+            targetNamespace = "http://apache.org/headers/doc_lit",
+            endpointInterface = "org.apache.headers.doc_lit.HeaderTester")
+    class HttpServiceImpl extends BaseHeaderTesterDocLitImpl { }
+
+    @Test
+    public void dummy() {
+    }
+
+}

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/ColocHeaderDocLitTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/ColocHeaderDocLitTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/ColocHeaderRpcLitTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/ColocHeaderRpcLitTest.java?view=auto&rev=528035
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/ColocHeaderRpcLitTest.java (added)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/ColocHeaderRpcLitTest.java Thu Apr 12 10:00:11 2007
@@ -0,0 +1,55 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT 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.coloc;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.junit.Test;
+
+
+public class ColocHeaderRpcLitTest extends AbstractHeaderServiceRpcLitTest {
+    static final String TRANSPORT_URI = "http://localhost:9222/headers";
+
+    private Log logger = LogFactory.getLog(ColocHeaderRpcLitTest.class);
+
+    protected Log getLogger() {
+        return logger;
+    }
+
+    protected Object getServiceImpl() {
+        HttpServiceImpl impl =  new HttpServiceImpl();
+        impl.init(getLogger());
+        return impl;
+    }
+
+    protected String getTransportURI() {
+        return TRANSPORT_URI;
+    }
+
+    @javax.jws.WebService(portName = "SoapPort", serviceName = "SOAPHeaderService",
+            targetNamespace = "http://apache.org/headers/rpc_lit",
+            endpointInterface = "org.apache.headers.rpc_lit.HeaderTester")
+    class HttpServiceImpl extends BaseHeaderTesterRpcLitImpl { }
+
+    @Test
+    public void dummy() {
+    }
+
+}

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/ColocHeaderRpcLitTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/ColocHeaderRpcLitTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/HeaderTesterUtil.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/HeaderTesterUtil.java?view=auto&rev=528035
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/HeaderTesterUtil.java (added)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/HeaderTesterUtil.java Thu Apr 12 10:00:11 2007
@@ -0,0 +1,41 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT 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.coloc;
+
+public final class HeaderTesterUtil {
+    public static final String IN_MESSAGE = "in message";
+    public static final String IN_ORIGINATOR = "in originator";
+    public static final String IN_REQUEST_TYPE = "in request type";
+
+    public static final String OUT_MESSAGE_IN = "out message in";
+    public static final String OUT_MESSAGE_OUT = "out message out";
+    public static final String OUT_ORIGINATOR_IN = "out orginator in";
+    public static final String OUT_ORIGINATOR_OUT = "out orginator out";
+    public static final String OUT_REQUEST_TYPE = "out request test";
+    public static final String OUT_RESPONSE_TYPE = "out Header type";
+
+    public static final String INOUT_MESSAGE_IN = "inout message in";
+    public static final String INOUT_MESSAGE_OUT = "inout message out";
+    public static final String INOUT_ORIGINATOR_IN = "inout originator in";
+    public static final String INOUT_ORIGINATOR_OUT = "inout orginator out";
+    public static final String INOUT_REQUEST_TYPE_IN = "inout request type in";
+    public static final String INOUT_REQUEST_TYPE_OUT = "inout request type out";
+    static final String EX_STRING = "CXF RUNTIME EXCEPTION";
+}
\ No newline at end of file

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/HeaderTesterUtil.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/HeaderTesterUtil.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/ThrowFaultInterceptor.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/ThrowFaultInterceptor.java?view=auto&rev=528035
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/ThrowFaultInterceptor.java (added)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/ThrowFaultInterceptor.java Thu Apr 12 10:00:11 2007
@@ -0,0 +1,39 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT 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.coloc;
+
+import javax.xml.ws.ProtocolException;
+
+import org.apache.cxf.interceptor.Fault;
+import org.apache.cxf.message.Message;
+import org.apache.cxf.phase.AbstractPhaseInterceptor;
+import org.apache.cxf.phase.Phase;
+
+public class ThrowFaultInterceptor extends AbstractPhaseInterceptor<Message> {
+    public ThrowFaultInterceptor() {
+        super();
+        setPhase(Phase.PREPARE_SEND);
+    }
+
+    public void handleMessage(Message message) throws Fault {
+        String str = new String("Collocated Invocation should have been detected.");
+        throw new ProtocolException(str);        
+    }
+}

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/ThrowFaultInterceptor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/ThrowFaultInterceptor.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/cxf.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/cxf.xml?view=auto&rev=528035
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/cxf.xml (added)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/cxf.xml Thu Apr 12 10:00:11 2007
@@ -0,0 +1,101 @@
+<?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:http="http://cxf.apache.org/transports/http/configuration"
+       xmlns:jms="http://cxf.apache.org/transports/jms"
+       xsi:schemaLocation="
+http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schema/transports/http.xsd
+http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
+
+    <!--JMS Client Receive Timeout-->
+    <!--hello_world.wsdl-->
+    <jms:conduit id="{http://apache.org/hello_world_soap_http}SoapPortJms.jms-conduit" abstract="true">
+        <jms:clientConfig clientReceiveTimeout="90000"/>
+    </jms:conduit>
+
+    <jms:conduit id="{http://apache.org/hello_world_soap_http}XMLPortJms.jms-conduit" abstract="true">
+        <jms:clientConfig clientReceiveTimeout="90000"/>
+    </jms:conduit>
+
+    <!--header_rpc_lit.wsdl-->
+    <jms:conduit id="{http://apache.org/headers/rpc_lit}SoapPortJms.jms-conduit" abstract="true">
+        <jms:clientConfig clientReceiveTimeout="90000"/>
+    </jms:conduit>
+
+    <jms:conduit id="{http://apache.org/headers/rpc_lit}XMLPortJms.jms-conduit" abstract="true">
+        <jms:clientConfig clientReceiveTimeout="90000"/>
+    </jms:conduit>
+
+    <!--soap_header.wsdl-->
+    <jms:conduit id="{http://apache.org/headers}SoapPortJms.jms-conduit" abstract="true">
+        <jms:clientConfig clientReceiveTimeout="90000"/>
+    </jms:conduit>
+
+    <jms:conduit id="{http://apache.org/headers}XMLPortJms.jms-conduit" abstract="true">
+        <jms:clientConfig clientReceiveTimeout="90000"/>
+    </jms:conduit>
+
+    <!--HTTP Connection Receive Timeout -->
+    <!--Enable to avoid Connection Timeout during debugging-->
+    <!--
+    <http:conduit id="{http://apache.org/hello_world_soap_http}SoapPort9001.http-conduit">
+        <http:client ConnectionTimeout="300000" ReceiveTimeout="300000"/>
+    </http:conduit>
+    -->
+
+    <!-- Logging Interceptor-->
+    <bean id="logInbound" class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
+    <bean id="logOutbound" class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
+
+    <!-- Coloc Interceptor-->
+    <bean id="colocInbound" class="org.apache.cxf.binding.coloc.ColocInInterceptor"/>
+    <bean id="colocOutbound" class="org.apache.cxf.binding.coloc.ColocOutInterceptor"/>
+    <bean id="faultOutbound" class="org.apache.cxf.systest.coloc.ThrowFaultInterceptor"/>
+
+    <!-- Adding interceptors to the bus will add it to all services/endpoints-->
+    <bean id="cxf" class="org.apache.cxf.bus.CXFBusImpl">
+        <property name="inInterceptors">
+            <list>
+                <ref bean="logInbound"/>
+                <ref bean="colocInbound"/>
+            </list>
+        </property>
+        <property name="inFaultInterceptors">
+            <list>
+                <ref bean="logInbound"/>
+            </list>
+        </property>
+        <property name="outInterceptors">
+            <list>
+                <ref bean="logOutbound"/>
+                <ref bean="colocOutbound"/>
+                <ref bean="faultOutbound"/>
+            </list>
+        </property>
+        <property name="outFaultInterceptors">
+            <list>
+                <ref bean="logOutbound"/>
+            </list>
+        </property>
+    </bean>
+
+
+</beans>

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

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

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

Modified: incubator/cxf/trunk/testutils/pom.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/testutils/pom.xml?view=diff&rev=528035&r1=528034&r2=528035
==============================================================================
--- incubator/cxf/trunk/testutils/pom.xml (original)
+++ incubator/cxf/trunk/testutils/pom.xml Thu Apr 12 10:00:11 2007
@@ -6,9 +6,9 @@
     to you under the Apache License, Version 2.0 (the
     "License"); you may not use this file except in compliance
     with the License. You may obtain a copy of the License at
-    
+
     http://www.apache.org/licenses/LICENSE-2.0
-    
+
     Unless required by applicable law or agreed to in writing,
     software distributed under the License is distributed on an
     "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -26,343 +26,350 @@
     <url>http://cwiki.apache.org/CXF</url>
 
     <parent>
-	<groupId>org.apache.cxf</groupId>
-	<artifactId>cxf-parent</artifactId>
-	<version>2.0-incubator-RC-SNAPSHOT</version>
-	<relativePath>../parent/pom.xml</relativePath>
+    <groupId>org.apache.cxf</groupId>
+    <artifactId>cxf-parent</artifactId>
+    <version>2.0-incubator-RC-SNAPSHOT</version>
+    <relativePath>../parent/pom.xml</relativePath>
     </parent>
 
     <dependencies>
-	<dependency>
-	    <groupId>junit</groupId>
-	    <artifactId>junit</artifactId>
-	    <scope>provided</scope>
-	</dependency>
+    <dependency>
+        <groupId>junit</groupId>
+        <artifactId>junit</artifactId>
+        <scope>provided</scope>
+    </dependency>
 
     <dependency>
         <groupId>org.apache.geronimo.specs</groupId>
         <artifactId>geronimo-ws-metadata_2.0_spec</artifactId>
     </dependency>
-	<dependency>
-	    <groupId>javax.xml.ws</groupId>
-	    <artifactId>jaxws-api</artifactId>
-	</dependency>
+    <dependency>
+        <groupId>javax.xml.ws</groupId>
+        <artifactId>jaxws-api</artifactId>
+    </dependency>
     <dependency>
         <groupId>javax.xml.soap</groupId>
         <artifactId>saaj-api</artifactId>
     </dependency>
-	<dependency>
-	    <groupId>org.apache.geronimo.specs</groupId>
-	    <artifactId>geronimo-annotation_1.0_spec</artifactId>
-	</dependency>
-	<dependency>
-	    <groupId>org.apache.cxf</groupId>
-	    <artifactId>cxf-api</artifactId>
-	    <version>${project.version}</version>
-	</dependency>
+    <dependency>
+        <groupId>org.apache.geronimo.specs</groupId>
+        <artifactId>geronimo-annotation_1.0_spec</artifactId>
+    </dependency>
+    <dependency>
+        <groupId>org.apache.cxf</groupId>
+        <artifactId>cxf-api</artifactId>
+        <version>${project.version}</version>
+    </dependency>
     </dependencies>
 
     <build>
-	<plugins>
-	    <plugin>
-		<groupId>org.apache.maven.plugins</groupId>
-		<artifactId>maven-antrun-plugin</artifactId>
-		<dependencies>
-		    <dependency>
-			<groupId>ant</groupId>
-			<artifactId>ant-trax</artifactId>
-			<version>1.6.5</version>
-		    </dependency>
-		</dependencies>
-
-		<executions>
-		    <execution>
-			<!--
-			    Run in validate phase to ensure wsdls exist
-			    before running wsdl2java in generate-sources
-			    phase.
-			-->
-			<id>validate</id>
-			<phase>validate</phase>
-			<configuration>
-			    <sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot>
-			    <tasks>
-				<property name="generated.target" value="${basedir}/target/generated" />
-				<property name="generated.src.test" value="${generated.target}/src/main/java" />
-				<property name="generated.resources.test" value="${generated.target}/src/main/resources" />
-				<property name="generated.wsdl.test" value="${generated.resources.test}/" />
-				<property name="test.resources.dir" location="${basedir}/src/main/resources" />
-
-				<mkdir dir="${generated.resources.test}/wsdl/type_test" />
-				<xslt style="${test.resources.dir}/wsdl/type_test/type_test_ID_xsd.xsl" 
-				      in="${test.resources.dir}/wsdl/type_test/type_test.xsd" 
-				      out="${generated.resources.test}/wsdl/type_test/type_test_1.xsd">
-				    <param name="groupID" expression="1" />
-				</xslt>
-				<xslt style="${test.resources.dir}/wsdl/type_test/type_test_ID_xsd.xsl" 
-				      in="${test.resources.dir}/wsdl/type_test/type_test.xsd" 
-				      out="${generated.resources.test}/wsdl/type_test/type_test_2.xsd">
-				    <param name="groupID" expression="2" />
-				</xslt>
-				<xslt style="${test.resources.dir}/wsdl/type_test/type_test_ID_xsd.xsl" 
-				      in="${test.resources.dir}/wsdl/type_test/type_test.xsd" 
-				      out="${generated.resources.test}/wsdl/type_test/type_test_3.xsd">
-				    <param name="groupID" expression="3" />
-				</xslt>
-				<xslt style="${test.resources.dir}/wsdl/type_test/type_test_wsdl.xsl" 
-				      in="${test.resources.dir}/wsdl/type_test/type_test.xsd" 
-				      out="${generated.resources.test}/wsdl/type_test/type_test_doclit.wsdl">
-				    <param name="inc_xsd_path" expression="." />
-				    <param name="use_style" expression="document" />
-				    <param name="tns_suffix" expression="doc" />
-				</xslt>
-				<xslt style="${test.resources.dir}/wsdl/type_test/type_test_wsdl.xsl" 
-				      in="${test.resources.dir}/wsdl/type_test/type_test.xsd" 
-				      out="${generated.resources.test}/wsdl/type_test/type_test_rpclit.wsdl">
-				    <param name="inc_xsd_path" expression="." />
-				    <param name="use_style" expression="rpc" />
-				    <param name="tns_suffix" expression="rpc" />
-				</xslt>
-				<xslt style="${test.resources.dir}/wsdl/type_test/type_test_wsdl.xsl" 
-				      in="${test.resources.dir}/wsdl/type_test/type_test.xsd" 
-				      out="${generated.resources.test}/wsdl/type_test/type_test_xml_inc.wsdl">
-				    <param name="inc_xsd_path" expression="." />
-				    <param name="use_style" expression="document" />
-				    <param name="tns_suffix" expression="xml" />
-				</xslt>
-				<xslt style="${test.resources.dir}/wsdl/type_test/type_test_xml_wsdl.xsl" 
-				      in="${test.resources.dir}/wsdl/type_test/type_test.xsd" 
-				      out="${generated.resources.test}/wsdl/type_test/type_test_xml.wsdl">
-				    <param name="inc_wsdl_path" expression="." />
-				    <param name="port" expression="9008" />
-				</xslt>
-				<xslt style="${test.resources.dir}/wsdl/type_test/type_test_soap_wsdl.xsl" 
-				      in="${test.resources.dir}/wsdl/type_test/type_test.xsd" 
-				      out="${generated.resources.test}/wsdl/type_test/type_test_doclit_soap.wsdl">
-				    <param name="inc_wsdl_path" expression="." />
-				    <param name="use_style" expression="document" />
-				    <param name="port" expression="9007" />
-				</xslt>
-				<xslt style="${test.resources.dir}/wsdl/type_test/type_test_soap_wsdl.xsl" 
-				      in="${test.resources.dir}/wsdl/type_test/type_test.xsd" 
-				      out="${generated.resources.test}/wsdl/type_test/type_test_rpclit_soap.wsdl">
-				    <param name="inc_wsdl_path" expression="." />
-				    <param name="use_style" expression="rpc" />
-				    <param name="port" expression="9006" />
-				</xslt>
-
-				<mkdir dir="${generated.src.test}/org/apache/cxf/systest/type_test" />
-
-				<xslt style="${test.resources.dir}/wsdl/type_test/type_test_impl_java.xsl" 
-				      in="${test.resources.dir}/wsdl/type_test/type_test.xsd" 
-				      out="${generated.src.test}/org/apache/cxf/systest/type_test/TypeTestImpl.java" />
-				<xslt style="${test.resources.dir}/wsdl/type_test/type_test_tester_java.xsl" 
-				      in="${test.resources.dir}/wsdl/type_test/type_test.xsd" 
-				      out="${generated.src.test}/org/apache/cxf/systest/type_test/TypeTestTester.java" />
-
-			    </tasks>
-			</configuration>
-			<goals>
-			    <goal>run</goal>
-			</goals>
-		    </execution>
-		</executions>
-	    </plugin>
-	    <plugin>
-		<groupId>org.apache.cxf</groupId>
-		<artifactId>cxf-codegen-plugin</artifactId>
-		<version>${project.version}</version>
-		<executions>
-		    <execution>
-			<id>generate-sources</id>
-			<phase>generate-sources</phase>
-			<configuration>
-			    <sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot>
-			    <wsdlOptions>
-				<wsdlOption>
-				    <wsdl>${basedir}/src/main/resources/wsdl/hello_world.wsdl</wsdl>
-				    <extraargs>
-					<extraarg>-b</extraarg>
-					<extraarg>
-					    ${basedir}/src/main/resources/wsdl/async_binding.xml
-					</extraarg>
-				    </extraargs>
-				</wsdlOption>
-				<wsdlOption>
-				    <wsdl>${basedir}/src/main/resources/wsdl/hello_world_soap12.wsdl</wsdl>
-				</wsdlOption>
-				<wsdlOption>
-				    <wsdl>${basedir}/src/main/resources/wsdl/hello_world_secure.wsdl</wsdl>
-				</wsdlOption>
-				<wsdlOption>
-				    <wsdl>${basedir}/src/main/resources/wsdl/greeter_control.wsdl</wsdl>
-				    <extraargs>
-					<extraarg>-b</extraarg>
-					<extraarg>
-					    ${basedir}/src/main/resources/wsdl/greeter_control.xjb
-					</extraarg>
-				    </extraargs>
-				</wsdlOption>
-				<wsdlOption>
-				    <wsdl>${basedir}/src/main/resources/wsdl/mtom_xop.wsdl</wsdl>
-				</wsdlOption>
-				<wsdlOption>
-				    <wsdl>${basedir}/src/main/resources/wsdl/swa-mime.wsdl</wsdl>
-				</wsdlOption>
-				<wsdlOption>
-				    <wsdl>${basedir}/src/main/resources/wsdl/hello_world_xml_mixed.wsdl</wsdl>
-				</wsdlOption>
-				<wsdlOption>
-				    <wsdl>${basedir}/src/main/resources/wsdl/hello_world_xml_bare.wsdl</wsdl>
-				</wsdlOption>
-				<wsdlOption>
-				    <wsdl>
-					${basedir}/src/main/resources/wsdl/hello_world_xml_wrapped.wsdl
-				    </wsdl>
-				</wsdlOption>
-				<wsdlOption>
-				    <wsdl>${basedir}/src/main/resources/wsdl/hello_world_rpc_lit.wsdl</wsdl>
-				</wsdlOption>
-				<wsdlOption>
-				    <wsdl>${basedir}/src/main/resources/wsdl/hello_world_mixedstyle.wsdl</wsdl>
-				</wsdlOption>
-				<wsdlOption>
-				    <wsdl>${basedir}/src/main/resources/wsdl/hello_world_doc_lit.wsdl</wsdl>
-				</wsdlOption>
-				<wsdlOption>
-				    <wsdl>${basedir}/src/main/resources/wsdl/doc_lit_bare.wsdl</wsdl>
-				</wsdlOption>
-				<wsdlOption>
-				    <wsdl>${basedir}/src/main/resources/wsdl/jms_test.wsdl</wsdl>
-				</wsdlOption>
-				<wsdlOption>
-				    <wsdl>${basedir}/src/main/resources/wsdl/handler_test.wsdl</wsdl>
-				</wsdlOption>
-				<wsdlOption>
-				    <wsdl>${basedir}/src/main/resources/wsdl/soap_header.wsdl</wsdl>
-				</wsdlOption>
-				<wsdlOption>
-				    <wsdl>${basedir}/src/main/resources/wsdl/soapheader.wsdl</wsdl>
-				</wsdlOption>
-				<wsdlOption>
-				    <wsdl>${basedir}/src/main/resources/wsdl/soapheader2.wsdl</wsdl>
-				</wsdlOption>
-				<wsdlOption>
-				    <wsdl>${basedir}/src/main/resources/wsdl/soapheader_rpc.wsdl</wsdl>
-				</wsdlOption>
-				<wsdlOption>
-				    <wsdl>${basedir}/src/main/resources/wsdl/locator.wsdl</wsdl>
-				    <!--extraargs>
-					<extraarg>-p</extraarg>
-					<extraarg>org.apache.cxf.testutils.locator</extraarg>
-					</extraargs-->
-				</wsdlOption>
-				
-				<wsdlOption>
-				    <wsdl>${basedir}/src/main/resources/wsdl/schema_validation.wsdl</wsdl>
-				</wsdlOption>
-				<wsdlOption>
-				    <wsdl>
-					${basedir}/src/main/resources/wsdl/anonymous_complex_type.wsdl
-				    </wsdl>
-				</wsdlOption>
-				<wsdlOption>
-				    <wsdl>${basedir}/src/main/resources/wsdl/basic_callback_test.wsdl</wsdl>
-				</wsdlOption>
-				
-				<wsdlOption>
-				    <wsdl>
-					${basedir}/src/main/resources/wsdl/hello_world_underscore.wsdl
-				    </wsdl>
-				</wsdlOption>
-				
-				<wsdlOption>
-				    <wsdl>
-					${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_xml.wsdl
-				    </wsdl>
-				    <dependencies>
-					<dependency>
-					    ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_xml_inc.wsdl
-					</dependency>
-					<dependency>
-					    ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_1.xsd
-					</dependency>
-					<dependency>
-					    ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_2.xsd
-					</dependency>
-					<dependency>
-					    ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_3.xsd
-					</dependency>
-				    </dependencies>
-				</wsdlOption>
-				<wsdlOption>
-				    <wsdl>
-					${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_doclit_soap.wsdl
-				    </wsdl>
-				    <dependencies>
-					<dependency>
-					    ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_doclit.wsdl
-					</dependency>
-					<dependency>
-					    ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_1.xsd
-					</dependency>
-					<dependency>
-					    ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_2.xsd
-					</dependency>
-					<dependency>
-					    ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_3.xsd
-					</dependency>
-				    </dependencies>
-				</wsdlOption>
-				<wsdlOption>
-				    <wsdl>
-					${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_rpclit_soap.wsdl
-				    </wsdl>
-				    <dependencies>
-					<dependency>
-					    ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_rpclit.wsdl
-					</dependency>
-					<dependency>
-					    ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_1.xsd
-					</dependency>
-					<dependency>
-					    ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_2.xsd
-					</dependency>
-					<dependency>
-					    ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_3.xsd
-					</dependency>
-				    </dependencies>
-				</wsdlOption>
-				<wsdlOption>
-				    <wsdl>${basedir}/src/main/resources/wsdl/addNumbers.wsdl</wsdl>
-				</wsdlOption>
-				<wsdlOption>
-				    <wsdl>${basedir}/src/main/resources/wsdl/calculator.wsdl</wsdl>
-				</wsdlOption>
-				<wsdlOption>
-				    <wsdl>${basedir}/src/main/resources/wsdl/jaxb_element_test.wsdl</wsdl>
-				</wsdlOption>
-				<wsdlOption>
-				    <wsdl>${basedir}/src/main/resources/wsdl/ordered_param_holder.wsdl</wsdl>
-				</wsdlOption>
-				<wsdlOption>
-				    <wsdl>${basedir}/src/main/resources/wsdl/hello_world_services.wsdl</wsdl>
-				</wsdlOption>
-			    </wsdlOptions>
-			</configuration>
-			<goals>
-			    <goal>wsdl2java</goal>
-			</goals>
-		    </execution>
-		</executions>
-	    </plugin>
-	</plugins>
+    <plugins>
+        <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <dependencies>
+            <dependency>
+            <groupId>ant</groupId>
+            <artifactId>ant-trax</artifactId>
+            <version>1.6.5</version>
+            </dependency>
+        </dependencies>
+
+        <executions>
+            <execution>
+            <!--
+                Run in validate phase to ensure wsdls exist
+                before running wsdl2java in generate-sources
+                phase.
+            -->
+            <id>validate</id>
+            <phase>validate</phase>
+            <configuration>
+                <sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot>
+                <tasks>
+                <property name="generated.target" value="${basedir}/target/generated" />
+                <property name="generated.src.test" value="${generated.target}/src/main/java" />
+                <property name="generated.resources.test" value="${generated.target}/src/main/resources" />
+                <property name="generated.wsdl.test" value="${generated.resources.test}/" />
+                <property name="test.resources.dir" location="${basedir}/src/main/resources" />
+
+                <mkdir dir="${generated.resources.test}/wsdl/type_test" />
+                <xslt style="${test.resources.dir}/wsdl/type_test/type_test_ID_xsd.xsl"
+                      in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
+                      out="${generated.resources.test}/wsdl/type_test/type_test_1.xsd">
+                    <param name="groupID" expression="1" />
+                </xslt>
+                <xslt style="${test.resources.dir}/wsdl/type_test/type_test_ID_xsd.xsl"
+                      in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
+                      out="${generated.resources.test}/wsdl/type_test/type_test_2.xsd">
+                    <param name="groupID" expression="2" />
+                </xslt>
+                <xslt style="${test.resources.dir}/wsdl/type_test/type_test_ID_xsd.xsl"
+                      in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
+                      out="${generated.resources.test}/wsdl/type_test/type_test_3.xsd">
+                    <param name="groupID" expression="3" />
+                </xslt>
+                <xslt style="${test.resources.dir}/wsdl/type_test/type_test_wsdl.xsl"
+                      in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
+                      out="${generated.resources.test}/wsdl/type_test/type_test_doclit.wsdl">
+                    <param name="inc_xsd_path" expression="." />
+                    <param name="use_style" expression="document" />
+                    <param name="tns_suffix" expression="doc" />
+                </xslt>
+                <xslt style="${test.resources.dir}/wsdl/type_test/type_test_wsdl.xsl"
+                      in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
+                      out="${generated.resources.test}/wsdl/type_test/type_test_rpclit.wsdl">
+                    <param name="inc_xsd_path" expression="." />
+                    <param name="use_style" expression="rpc" />
+                    <param name="tns_suffix" expression="rpc" />
+                </xslt>
+                <xslt style="${test.resources.dir}/wsdl/type_test/type_test_wsdl.xsl"
+                      in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
+                      out="${generated.resources.test}/wsdl/type_test/type_test_xml_inc.wsdl">
+                    <param name="inc_xsd_path" expression="." />
+                    <param name="use_style" expression="document" />
+                    <param name="tns_suffix" expression="xml" />
+                </xslt>
+                <xslt style="${test.resources.dir}/wsdl/type_test/type_test_xml_wsdl.xsl"
+                      in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
+                      out="${generated.resources.test}/wsdl/type_test/type_test_xml.wsdl">
+                    <param name="inc_wsdl_path" expression="." />
+                    <param name="port" expression="9008" />
+                </xslt>
+                <xslt style="${test.resources.dir}/wsdl/type_test/type_test_soap_wsdl.xsl"
+                      in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
+                      out="${generated.resources.test}/wsdl/type_test/type_test_doclit_soap.wsdl">
+                    <param name="inc_wsdl_path" expression="." />
+                    <param name="use_style" expression="document" />
+                    <param name="port" expression="9007" />
+                </xslt>
+                <xslt style="${test.resources.dir}/wsdl/type_test/type_test_soap_wsdl.xsl"
+                      in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
+                      out="${generated.resources.test}/wsdl/type_test/type_test_rpclit_soap.wsdl">
+                    <param name="inc_wsdl_path" expression="." />
+                    <param name="use_style" expression="rpc" />
+                    <param name="port" expression="9006" />
+                </xslt>
+
+                <mkdir dir="${generated.src.test}/org/apache/cxf/systest/type_test" />
+
+                <xslt style="${test.resources.dir}/wsdl/type_test/type_test_impl_java.xsl"
+                      in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
+                      out="${generated.src.test}/org/apache/cxf/systest/type_test/TypeTestImpl.java" />
+                <xslt style="${test.resources.dir}/wsdl/type_test/type_test_tester_java.xsl"
+                      in="${test.resources.dir}/wsdl/type_test/type_test.xsd"
+                      out="${generated.src.test}/org/apache/cxf/systest/type_test/TypeTestTester.java" />
+
+                </tasks>
+            </configuration>
+            <goals>
+                <goal>run</goal>
+            </goals>
+            </execution>
+        </executions>
+        </plugin>
+        <plugin>
+        <groupId>org.apache.cxf</groupId>
+        <artifactId>cxf-codegen-plugin</artifactId>
+        <version>${project.version}</version>
+        <executions>
+            <execution>
+            <id>generate-sources</id>
+            <phase>generate-sources</phase>
+            <configuration>
+                <sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot>
+                <wsdlOptions>
+                <wsdlOption>
+                    <wsdl>${basedir}/src/main/resources/wsdl/hello_world.wsdl</wsdl>
+                    <extraargs>
+                    <extraarg>-b</extraarg>
+                    <extraarg>
+                        ${basedir}/src/main/resources/wsdl/async_binding.xml
+                    </extraarg>
+                    </extraargs>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>${basedir}/src/main/resources/wsdl/hello_world_soap12.wsdl</wsdl>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>${basedir}/src/main/resources/wsdl/hello_world_secure.wsdl</wsdl>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>${basedir}/src/main/resources/wsdl/greeter_control.wsdl</wsdl>
+                    <extraargs>
+                    <extraarg>-b</extraarg>
+                    <extraarg>
+                        ${basedir}/src/main/resources/wsdl/greeter_control.xjb
+                    </extraarg>
+                    </extraargs>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>${basedir}/src/main/resources/wsdl/mtom_xop.wsdl</wsdl>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>${basedir}/src/main/resources/wsdl/swa-mime.wsdl</wsdl>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>${basedir}/src/main/resources/wsdl/hello_world_xml_mixed.wsdl</wsdl>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>${basedir}/src/main/resources/wsdl/hello_world_xml_bare.wsdl</wsdl>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>
+                    ${basedir}/src/main/resources/wsdl/hello_world_xml_wrapped.wsdl
+                    </wsdl>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>${basedir}/src/main/resources/wsdl/hello_world_rpc_lit.wsdl</wsdl>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>${basedir}/src/main/resources/wsdl/hello_world_mixedstyle.wsdl</wsdl>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>${basedir}/src/main/resources/wsdl/hello_world_doc_lit.wsdl</wsdl>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>${basedir}/src/main/resources/wsdl/doc_lit_bare.wsdl</wsdl>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>${basedir}/src/main/resources/wsdl/jms_test.wsdl</wsdl>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>${basedir}/src/main/resources/wsdl/handler_test.wsdl</wsdl>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>${basedir}/src/main/resources/wsdl/soap_header.wsdl</wsdl>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>${basedir}/src/main/resources/wsdl/soapheader.wsdl</wsdl>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>${basedir}/src/main/resources/wsdl/soapheader2.wsdl</wsdl>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>${basedir}/src/main/resources/wsdl/soapheader_rpc.wsdl</wsdl>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>${basedir}/src/main/resources/wsdl/locator.wsdl</wsdl>
+                    <!--extraargs>
+                    <extraarg>-p</extraarg>
+                    <extraarg>org.apache.cxf.testutils.locator</extraarg>
+                    </extraargs-->
+                </wsdlOption>
+
+                <wsdlOption>
+                    <wsdl>${basedir}/src/main/resources/wsdl/schema_validation.wsdl</wsdl>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>
+                    ${basedir}/src/main/resources/wsdl/anonymous_complex_type.wsdl
+                    </wsdl>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>${basedir}/src/main/resources/wsdl/basic_callback_test.wsdl</wsdl>
+                </wsdlOption>
+
+                <wsdlOption>
+                    <wsdl>
+                    ${basedir}/src/main/resources/wsdl/hello_world_underscore.wsdl
+                    </wsdl>
+                </wsdlOption>
+
+                <wsdlOption>
+                    <wsdl>
+                    ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_xml.wsdl
+                    </wsdl>
+                    <dependencies>
+                    <dependency>
+                        ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_xml_inc.wsdl
+                    </dependency>
+                    <dependency>
+                        ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_1.xsd
+                    </dependency>
+                    <dependency>
+                        ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_2.xsd
+                    </dependency>
+                    <dependency>
+                        ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_3.xsd
+                    </dependency>
+                    </dependencies>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>
+                    ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_doclit_soap.wsdl
+                    </wsdl>
+                    <dependencies>
+                    <dependency>
+                        ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_doclit.wsdl
+                    </dependency>
+                    <dependency>
+                        ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_1.xsd
+                    </dependency>
+                    <dependency>
+                        ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_2.xsd
+                    </dependency>
+                    <dependency>
+                        ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_3.xsd
+                    </dependency>
+                    </dependencies>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>
+                    ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_rpclit_soap.wsdl
+                    </wsdl>
+                    <dependencies>
+                    <dependency>
+                        ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_rpclit.wsdl
+                    </dependency>
+                    <dependency>
+                        ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_1.xsd
+                    </dependency>
+                    <dependency>
+                        ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_2.xsd
+                    </dependency>
+                    <dependency>
+                        ${basedir}/target/generated/src/main/resources/wsdl/type_test/type_test_3.xsd
+                    </dependency>
+                    </dependencies>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>${basedir}/src/main/resources/wsdl/addNumbers.wsdl</wsdl>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>${basedir}/src/main/resources/wsdl/calculator.wsdl</wsdl>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>${basedir}/src/main/resources/wsdl/jaxb_element_test.wsdl</wsdl>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>${basedir}/src/main/resources/wsdl/ordered_param_holder.wsdl</wsdl>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>${basedir}/src/main/resources/wsdl/hello_world_services.wsdl</wsdl>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>${basedir}/src/main/resources/wsdl/header_doc_lit.wsdl</wsdl>
+                </wsdlOption>
+                <wsdlOption>
+                    <wsdl>${basedir}/src/main/resources/wsdl/header_rpc_lit.wsdl</wsdl>
+                </wsdlOption>
+
+                </wsdlOptions>
+            </configuration>
+            <goals>
+                <goal>wsdl2java</goal>
+            </goals>
+            </execution>
+        </executions>
+        </plugin>
+    </plugins>
     </build>
 
 
     <scm>
-	<connection>scm:svn:http://svn.apache.org/repos/asf/incubator/cxf/trunk/testutils</connection>
-	<developerConnection>scm:svn:https://svn.apache.org/repos/asf/incubator/cxf/trunk/testutils</developerConnection>
+    <connection>scm:svn:http://svn.apache.org/repos/asf/incubator/cxf/trunk/testutils</connection>
+    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/incubator/cxf/trunk/testutils</developerConnection>
     </scm>
 
 </project>

Added: incubator/cxf/trunk/testutils/src/main/resources/wsdl/header.xsd
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/testutils/src/main/resources/wsdl/header.xsd?view=auto&rev=528035
==============================================================================
--- incubator/cxf/trunk/testutils/src/main/resources/wsdl/header.xsd (added)
+++ incubator/cxf/trunk/testutils/src/main/resources/wsdl/header.xsd Thu Apr 12 10:00:11 2007
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:x1="http://apache.org/headers/coloc/types" targetNamespace="http://apache.org/headers/coloc/types" elementFormDefault="qualified">
+    <element name="header" type="x1:headerInfo"/>
+    <complexType name="headerInfo">
+        <sequence>
+            <element name="originator" type="xsd:string"/>
+            <element name="message" type="xsd:string"/>
+        </sequence>
+    </complexType>
+    <element name="inHeader" type="x1:inHeaderT"/>
+    <complexType name="inHeaderT">
+        <sequence>
+            <element name="requestType" type="xsd:string"/>
+        </sequence>
+    </complexType>
+    <element name="inHeaderResponse" type="x1:inHeaderResponseT"/>
+    <complexType name="inHeaderResponseT">
+        <sequence>
+            <element name="responseType" type="xsd:string"/>
+        </sequence>
+    </complexType>
+    <element name="outHeader" type="x1:outHeaderT"/>
+    <complexType name="outHeaderT">
+        <sequence>
+            <element name="requestType" type="xsd:string"/>
+        </sequence>
+    </complexType>
+    <element name="outHeaderResponse" type="x1:outHeaderResponseT"/>
+    <complexType name="outHeaderResponseT">
+        <sequence>
+            <element name="responseType" type="xsd:string"/>
+        </sequence>
+    </complexType>
+    <element name="inoutHeader" type="x1:inoutHeaderT"/>
+    <complexType name="inoutHeaderT">
+        <sequence>
+            <element name="requestType" type="xsd:string"/>
+        </sequence>
+    </complexType>
+    <element name="inoutHeaderResponse" type="x1:inoutHeaderResponseT"/>
+    <complexType name="inoutHeaderResponseT">
+        <sequence>
+            <element name="responseType" type="xsd:string"/>
+        </sequence>
+    </complexType>
+    <element name="pingMe" type="x1:pingMeT"/>
+    <complexType name="pingMeT">
+        <sequence>
+            <element name="faultType" type="xsd:string"/>
+        </sequence>
+    </complexType>
+    <element name="pingMeResponse" type="x1:pingMeResponseT"/>
+    <complexType name="pingMeResponseT">
+        <sequence/>
+    </complexType>
+    <element name="faultDetail" type="x1:faultDetailT"/>
+    <complexType name="faultDetailT">
+        <sequence>
+            <element name="minor" type="xsd:short"/>
+            <element name="major" type="xsd:short"/>
+        </sequence>
+    </complexType>
+</schema>

Propchange: incubator/cxf/trunk/testutils/src/main/resources/wsdl/header.xsd
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/testutils/src/main/resources/wsdl/header.xsd
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/testutils/src/main/resources/wsdl/header.xsd
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/cxf/trunk/testutils/src/main/resources/wsdl/header_doc_lit.wsdl
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/testutils/src/main/resources/wsdl/header_doc_lit.wsdl?view=auto&rev=528035
==============================================================================
--- incubator/cxf/trunk/testutils/src/main/resources/wsdl/header_doc_lit.wsdl (added)
+++ incubator/cxf/trunk/testutils/src/main/resources/wsdl/header_doc_lit.wsdl Thu Apr 12 10:00:11 2007
@@ -0,0 +1,157 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions name="soap_header" targetNamespace="http://apache.org/headers/doc_lit" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:jms="http://cxf.apache.org/transports/jms" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xformat="http://cxf.apache.org/bindings/xformat" xmlns:tns="http://apache.org/headers/doc_lit" xmlns:x1="http://apache.org/headers/coloc/types" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+    <types>
+        <schema targetNamespace="http://apache.org/headers/doc_lit" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
+            <xsd:import namespace="http://apache.org/headers/coloc/types" schemaLocation="./header.xsd"/>
+        </schema>
+    </types>
+    <message name="inHeaderRequest">
+        <part element="x1:inHeader" name="in"/>
+        <part element="x1:header" name="header"/>
+    </message>
+    <message name="inHeaderResponse">
+        <part element="x1:inHeaderResponse" name="out"/>
+    </message>
+    <message name="outHeaderRequest">
+        <part element="x1:outHeader" name="in"/>
+    </message>
+    <message name="outHeaderResponse">
+        <part element="x1:outHeaderResponse" name="out"/>
+        <part element="x1:header" name="header"/>
+    </message>
+    <message name="inoutHeaderRequest">
+        <part element="x1:inoutHeader" name="inout"/>
+        <part element="x1:header" name="header"/>
+    </message>
+    <message name="inoutHeaderResponse">
+        <part element="x1:inoutHeaderResponse" name="inout"/>
+        <part element="x1:header" name="header"/>
+    </message>
+    <message name="pingMeRequest">
+        <part element="x1:pingMe" name="in"/>
+    </message>
+    <message name="pingMeResponse">
+        <part element="x1:pingMeResponse" name="out"/>
+    </message>
+    <message name="pingMeFault">
+        <part element="x1:faultDetail" name="faultDetail"/>
+    </message>
+    <portType name="headerTester">
+        <operation name="inHeader">
+            <input message="tns:inHeaderRequest" name="inHeaderRequest"/>
+            <output message="tns:inHeaderResponse" name="inHeaderResponse"/>
+        </operation>
+        <operation name="outHeader">
+            <input message="tns:outHeaderRequest" name="outHeaderRequest"/>
+            <output message="tns:outHeaderResponse" name="outHeaderResponse"/>
+        </operation>
+        <operation name="inoutHeader">
+            <input message="tns:inoutHeaderRequest" name="inoutHeaderRequest"/>
+            <output message="tns:inoutHeaderResponse" name="inoutHeaderResponse"/>
+        </operation>
+        <operation name="pingMe">
+            <input message="tns:pingMeRequest" name="pingMeRequest"/>
+            <output message="tns:pingMeResponse" name="pingMeResponse"/>
+            <fault message="tns:pingMeFault" name="pingMeFault"/>
+        </operation>
+    </portType>
+    <binding name="headerTesterSOAPBinding" type="tns:headerTester">
+        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+        <operation name="inHeader">
+            <soap:operation soapAction="" style="document"/>
+            <input name="inHeaderRequest">
+                <soap:body parts="in" use="literal"/>
+                <soap:header message="tns:inHeaderRequest" part="header" use="literal"/>
+            </input>
+            <output name="inHeaderResponse">
+                <soap:body use="literal"/>
+            </output>
+        </operation>
+        <operation name="outHeader">
+            <soap:operation soapAction="" style="document"/>
+            <input name="outHeaderRequest">
+                <soap:body use="literal"/>
+            </input>
+            <output name="outHeaderResponse">
+                <soap:body parts="out" use="literal"/>
+                <soap:header message="tns:outHeaderResponse" part="header" use="literal"/>
+            </output>
+        </operation>
+        <operation name="inoutHeader">
+            <soap:operation soapAction="" style="document"/>
+            <input name="inoutHeaderRequest">
+                <soap:body parts="in" use="literal"/>
+                <soap:header message="tns:inoutHeaderRequest" part="header" use="literal"/>
+            </input>
+            <output name="inoutHeaderResponse">
+                <soap:body parts="out" use="literal"/>
+                <soap:header message="tns:inoutHeaderResponse" part="header" use="literal"/>
+            </output>
+        </operation>
+        <operation name="pingMe">
+            <soap:operation soapAction="" style="document"/>
+            <input>
+                <soap:body use="literal"/>
+            </input>
+            <output>
+                <soap:body use="literal"/>
+            </output>
+            <fault name="pingMeFault">
+                <soap:fault name="pingMeFault" use="literal"/>
+            </fault>
+        </operation>
+    </binding>
+    <wsdl:binding name="headerTesterXMLBinding" type="tns:headerTester">
+        <xformat:binding/>
+        <wsdl:operation name="inHeader">
+            <wsdl:input>
+                <xformat:body rootNode="tns:inHeaderReqNode"/>
+            </wsdl:input>
+            <wsdl:output/>
+        </wsdl:operation>
+        <wsdl:operation name="outHeader">
+            <wsdl:input/>
+            <wsdl:output>
+                <xformat:body rootNode="tns:outHeaderRespNode"/>
+            </wsdl:output>
+        </wsdl:operation>
+        <wsdl:operation name="inoutHeader">
+            <wsdl:input>
+                <xformat:body rootNode="tns:inoutHeaderNode"/>
+            </wsdl:input>
+            <wsdl:output>
+                <xformat:body rootNode="tns:inoutHeaderNode"/>
+            </wsdl:output>
+        </wsdl:operation>
+        <wsdl:operation name="pingMe">
+            <wsdl:input>
+                <!-- RootNode needed because the part name "in" is used in multiple message -->
+                <xformat:body rootNode="tns:pingMe"/>
+            </wsdl:input>
+            <wsdl:output/>
+            <wsdl:fault name="pingMeFault"/>
+        </wsdl:operation>
+    </wsdl:binding>
+    <service name="XMLHeaderService">
+        <port binding="tns:headerTesterXMLBinding" name="XMLPort9000">
+            <http:address location="http://localhost:9111/XMLContext/XMLPort"/>
+        </port>
+        <port binding="tns:headerTesterXMLBinding" name="XMLPortJms">
+            <jms:address destinationStyle="queue" jndiConnectionFactoryName="ConnectionFactory" jndiDestinationName="dynamicQueues/test.xml.jmstransport.queue">
+                <jms:JMSNamingProperty name="java.naming.factory.initial" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
+                <jms:JMSNamingProperty name="java.naming.provider.url" value="tcp://localhost:61616"/>
+            </jms:address>
+        </port>
+    </service>
+    <service name="SOAPHeaderService">
+        <port binding="tns:headerTesterSOAPBinding" name="SoapPort9000">
+            <soap:address location="http://localhost:9111/headers"/>
+        </port>
+        <port binding="tns:headerTesterSOAPBinding" name="SoapPortJms">
+            <jms:address destinationStyle="queue" jndiConnectionFactoryName="ConnectionFactory" jndiDestinationName="dynamicQueues/test.celtix.jmstransport.queue">
+                <jms:JMSNamingProperty name="java.naming.factory.initial" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
+                <jms:JMSNamingProperty name="java.naming.provider.url" value="tcp://localhost:61616"/>
+            </jms:address>
+        </port>
+    </service>
+</definitions>

Propchange: incubator/cxf/trunk/testutils/src/main/resources/wsdl/header_doc_lit.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/testutils/src/main/resources/wsdl/header_doc_lit.wsdl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/testutils/src/main/resources/wsdl/header_doc_lit.wsdl
------------------------------------------------------------------------------
    svn:mime-type = text/xml



Mime
View raw message