geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r725899 [2/3] - in /geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests: ./ provider-common/ provider-common/src/ provider-common/src/main/ provider-common/src/main/java/ provider-common/src/main/java/org/ provider-co...
Date Fri, 12 Dec 2008 04:48:53 GMT
Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP11SourceMessageModeProvider.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP11SourceMessageModeProvider.java?rev=725899&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP11SourceMessageModeProvider.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP11SourceMessageModeProvider.java Thu Dec 11 20:48:50 2008
@@ -0,0 +1,74 @@
+/*
+ * 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.geronimo.jaxws.greeter_provider.ejb;
+
+import javax.annotation.PostConstruct;
+import javax.annotation.PreDestroy;
+import javax.annotation.Resource;
+import javax.ejb.Local;
+import javax.ejb.Remote;
+import javax.ejb.Stateless;
+import javax.xml.soap.SOAPConstants;
+import javax.xml.soap.SOAPException;
+import javax.xml.transform.Source;
+import javax.xml.ws.BindingType;
+import javax.xml.ws.Provider;
+import javax.xml.ws.Service;
+import javax.xml.ws.ServiceMode;
+import javax.xml.ws.WebServiceContext;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.WebServiceProvider;
+import javax.xml.ws.soap.SOAPBinding;
+
+import org.apache.geronimo.jaxws.greeter_provider.common.MessageUtils;
+
+@BindingType(value = SOAPBinding.SOAP11HTTP_BINDING)
+@ServiceMode(value = Service.Mode.MESSAGE)
+@WebServiceProvider(serviceName = "GreeterService", portName = "GreeterSOAP11SourceMessageModePort", wsdlLocation = "wsdl/greeter_provider.wsdl", targetNamespace = "http://geronimo.apache.org/greeter_provider")
+@Stateless(name = "GreeterSOAP11SourceMessageModeProvider", mappedName = "ejb/provider/GreeterSOAP11SourceMessageModeProvider")
+@Local(value = { EchoLocal.class, Provider.class })
+@Remote(value = { EchoRemote.class })
+public class GreeterSOAP11SourceMessageModeProvider implements Provider<Source>, EchoLocal, EchoRemote {
+
+    @Resource(type = WebServiceContext.class)
+    private WebServiceContext webServiceContext;
+
+    @PreDestroy()
+    public void destroy() {
+        System.out.println(this + " PreDestroy");
+    }
+
+    public String echo(String words) {
+        return words;
+    }
+
+    @PostConstruct
+    public void init() {
+        System.out.println(this + " PostConstruct");
+    }
+
+    public Source invoke(Source source) throws WebServiceException {
+        try {
+            return MessageUtils.createResponseSOAPSource(SOAPConstants.SOAP_1_1_PROTOCOL, Service.Mode.MESSAGE);
+        } catch (SOAPException e) {
+            throw new WebServiceException(e);
+        }
+    }
+}

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP11SourceMessageModeProvider.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP11SourceMessageModeProvider.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP11SourceMessageModeProvider.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP11SourcePayloadModeProvider.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP11SourcePayloadModeProvider.java?rev=725899&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP11SourcePayloadModeProvider.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP11SourcePayloadModeProvider.java Thu Dec 11 20:48:50 2008
@@ -0,0 +1,74 @@
+/*
+ * 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.geronimo.jaxws.greeter_provider.ejb;
+
+import javax.annotation.PostConstruct;
+import javax.annotation.PreDestroy;
+import javax.annotation.Resource;
+import javax.ejb.Local;
+import javax.ejb.Remote;
+import javax.ejb.Stateless;
+import javax.xml.soap.SOAPConstants;
+import javax.xml.soap.SOAPException;
+import javax.xml.transform.Source;
+import javax.xml.ws.BindingType;
+import javax.xml.ws.Provider;
+import javax.xml.ws.Service;
+import javax.xml.ws.ServiceMode;
+import javax.xml.ws.WebServiceContext;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.WebServiceProvider;
+import javax.xml.ws.soap.SOAPBinding;
+
+import org.apache.geronimo.jaxws.greeter_provider.common.MessageUtils;
+
+@BindingType(value = SOAPBinding.SOAP11HTTP_BINDING)
+@ServiceMode(value = Service.Mode.PAYLOAD)
+@WebServiceProvider(serviceName = "GreeterService", portName = "GreeterSOAP11SourcePayloadModePort", wsdlLocation = "wsdl/greeter_provider.wsdl", targetNamespace = "http://geronimo.apache.org/greeter_provider")
+@Stateless(name = "GreeterSOAP11SourcePayloadModeProvider", mappedName = "ejb/provider/GreeterSOAP11SourcePayloadModeProvider")
+@Local(value = { EchoLocal.class, Provider.class })
+@Remote(value = { EchoRemote.class })
+public class GreeterSOAP11SourcePayloadModeProvider implements Provider<Source>, EchoLocal, EchoRemote {
+
+    @Resource(type = WebServiceContext.class)
+    private WebServiceContext webServiceContext;
+
+    @PreDestroy()
+    public void destroy() {
+        System.out.println(this + " PreDestroy");
+    }
+
+    public String echo(String words) {
+        return words;
+    }
+
+    @PostConstruct
+    public void init() {
+        System.out.println(this + " PostConstruct");
+    }
+
+    public Source invoke(Source source) throws WebServiceException {
+        try {
+            return MessageUtils.createResponseSOAPSource(SOAPConstants.SOAP_1_1_PROTOCOL, Service.Mode.PAYLOAD);
+        } catch (SOAPException e) {
+            throw new WebServiceException(e);
+        }
+    }
+}

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP11SourcePayloadModeProvider.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP11SourcePayloadModeProvider.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP11SourcePayloadModeProvider.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP12SOAPMessageProvider.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP12SOAPMessageProvider.java?rev=725899&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP12SOAPMessageProvider.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP12SOAPMessageProvider.java Thu Dec 11 20:48:50 2008
@@ -0,0 +1,74 @@
+/*
+ * 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.geronimo.jaxws.greeter_provider.ejb;
+
+import javax.annotation.PostConstruct;
+import javax.annotation.PreDestroy;
+import javax.annotation.Resource;
+import javax.ejb.Local;
+import javax.ejb.Remote;
+import javax.ejb.Stateless;
+import javax.xml.soap.SOAPConstants;
+import javax.xml.soap.SOAPException;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.ws.BindingType;
+import javax.xml.ws.Provider;
+import javax.xml.ws.Service;
+import javax.xml.ws.ServiceMode;
+import javax.xml.ws.WebServiceContext;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.WebServiceProvider;
+import javax.xml.ws.soap.SOAPBinding;
+
+import org.apache.geronimo.jaxws.greeter_provider.common.MessageUtils;
+
+@BindingType(value = SOAPBinding.SOAP12HTTP_BINDING)
+@ServiceMode(value = Service.Mode.MESSAGE)
+@WebServiceProvider(serviceName = "GreeterService", portName = "GreeterSOAP12SOAPMessagePort", wsdlLocation = "wsdl/greeter_provider.wsdl", targetNamespace = "http://geronimo.apache.org/greeter_provider")
+@Stateless(name = "GreeterSOAP12SOAPMessageProvider", mappedName = "ejb/provider/GreeterSOAP12SOAPMessageProvider")
+@Local(value = { EchoLocal.class, Provider.class })
+@Remote(value = { EchoRemote.class })
+public class GreeterSOAP12SOAPMessageProvider implements Provider<SOAPMessage>, EchoLocal, EchoRemote {
+
+    @Resource(type = WebServiceContext.class)
+    private WebServiceContext webServiceContext;
+
+    @PreDestroy()
+    public void destroy() {
+        System.out.println(this + " PreDestroy");
+    }
+
+    public String echo(String words) {
+        return words;
+    }
+
+    @PostConstruct
+    public void init() {
+        System.out.println(this + " PostConstruct");
+    }
+
+    public SOAPMessage invoke(SOAPMessage soapMessage) {
+        try {
+            return MessageUtils.createResponseSOAPMessage(SOAPConstants.SOAP_1_2_PROTOCOL);
+        } catch (SOAPException e) {
+            throw new WebServiceException(e);
+        }
+    }
+}

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP12SOAPMessageProvider.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP12SOAPMessageProvider.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP12SOAPMessageProvider.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP12SourceMessageModeProvider.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP12SourceMessageModeProvider.java?rev=725899&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP12SourceMessageModeProvider.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP12SourceMessageModeProvider.java Thu Dec 11 20:48:50 2008
@@ -0,0 +1,74 @@
+/*
+ * 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.geronimo.jaxws.greeter_provider.ejb;
+
+import javax.annotation.PostConstruct;
+import javax.annotation.PreDestroy;
+import javax.annotation.Resource;
+import javax.ejb.Local;
+import javax.ejb.Remote;
+import javax.ejb.Stateless;
+import javax.xml.soap.SOAPConstants;
+import javax.xml.soap.SOAPException;
+import javax.xml.transform.Source;
+import javax.xml.ws.BindingType;
+import javax.xml.ws.Provider;
+import javax.xml.ws.Service;
+import javax.xml.ws.ServiceMode;
+import javax.xml.ws.WebServiceContext;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.WebServiceProvider;
+import javax.xml.ws.soap.SOAPBinding;
+
+import org.apache.geronimo.jaxws.greeter_provider.common.MessageUtils;
+
+@BindingType(value = SOAPBinding.SOAP12HTTP_BINDING)
+@ServiceMode(value = Service.Mode.MESSAGE)
+@WebServiceProvider(serviceName = "GreeterService", portName = "GreeterSOAP12SourceMessageModePort", wsdlLocation = "wsdl/greeter_provider.wsdl", targetNamespace = "http://geronimo.apache.org/greeter_provider")
+@Stateless(name = "GreeterSOAP12SourceMessageModeProvider", mappedName = "ejb/provider/GreeterSOAP12SourceMessageModeProvider")
+@Local(value = { EchoLocal.class, Provider.class })
+@Remote(value = { EchoRemote.class })
+public class GreeterSOAP12SourceMessageModeProvider implements Provider<Source>, EchoLocal, EchoRemote {
+
+    @Resource(type = WebServiceContext.class)
+    private WebServiceContext webServiceContext;
+
+    @PreDestroy()
+    public void destroy() {
+        System.out.println(this + " PreDestroy");
+    }
+
+    public String echo(String words) {
+        return words;
+    }
+
+    @PostConstruct
+    public void init() {
+        System.out.println(this + " PostConstruct");
+    }
+
+    public Source invoke(Source source) {
+        try {
+            return MessageUtils.createResponseSOAPSource(SOAPConstants.SOAP_1_2_PROTOCOL, Service.Mode.MESSAGE);
+        } catch (SOAPException e) {
+            throw new WebServiceException(e);
+        }
+    }
+}
\ No newline at end of file

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP12SourceMessageModeProvider.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP12SourceMessageModeProvider.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP12SourceMessageModeProvider.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP12SourcePayloadModeProvider.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP12SourcePayloadModeProvider.java?rev=725899&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP12SourcePayloadModeProvider.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP12SourcePayloadModeProvider.java Thu Dec 11 20:48:50 2008
@@ -0,0 +1,74 @@
+/*
+ * 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.geronimo.jaxws.greeter_provider.ejb;
+
+import javax.annotation.PostConstruct;
+import javax.annotation.PreDestroy;
+import javax.annotation.Resource;
+import javax.ejb.Local;
+import javax.ejb.Remote;
+import javax.ejb.Stateless;
+import javax.xml.soap.SOAPConstants;
+import javax.xml.soap.SOAPException;
+import javax.xml.transform.Source;
+import javax.xml.ws.BindingType;
+import javax.xml.ws.Provider;
+import javax.xml.ws.Service;
+import javax.xml.ws.ServiceMode;
+import javax.xml.ws.WebServiceContext;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.WebServiceProvider;
+import javax.xml.ws.soap.SOAPBinding;
+
+import org.apache.geronimo.jaxws.greeter_provider.common.MessageUtils;
+
+@BindingType(value = SOAPBinding.SOAP12HTTP_BINDING)
+@ServiceMode(value = Service.Mode.PAYLOAD)
+@WebServiceProvider(serviceName = "GreeterService", portName = "GreeterSOAP12SourcePayloadModePort", wsdlLocation = "wsdl/greeter_provider.wsdl", targetNamespace = "http://geronimo.apache.org/greeter_provider")
+@Stateless(name = "GreeterSOAP12SourcePayloadModeProvider", mappedName = "ejb/provider/GreeterSOAP12SourcePayloadModeProvider")
+@Local(value = { EchoLocal.class, Provider.class })
+@Remote(value = { EchoRemote.class })
+public class GreeterSOAP12SourcePayloadModeProvider implements Provider<Source>, EchoLocal, EchoRemote {
+
+    @Resource(type = WebServiceContext.class)
+    private WebServiceContext webServiceContext;
+
+    @PreDestroy()
+    public void destroy() {
+        System.out.println(this + " PreDestroy");
+    }
+
+    public String echo(String words) {
+        return words;
+    }
+
+    @PostConstruct
+    public void init() {
+        System.out.println(this + " PostConstruct");
+    }
+
+    public Source invoke(Source source) {
+        try {
+            return MessageUtils.createResponseSOAPSource(SOAPConstants.SOAP_1_2_PROTOCOL, Service.Mode.PAYLOAD);
+        } catch (SOAPException e) {
+            throw new WebServiceException(e);
+        }
+    }
+}
\ No newline at end of file

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP12SourcePayloadModeProvider.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP12SourcePayloadModeProvider.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/java/org/apache/geronimo/jaxws/greeter_provider/ejb/GreeterSOAP12SourcePayloadModeProvider.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/resources/META-INF/ejb-jar.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/resources/META-INF/ejb-jar.xml?rev=725899&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/resources/META-INF/ejb-jar.xml (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/resources/META-INF/ejb-jar.xml Thu Dec 11 20:48:50 2008
@@ -0,0 +1,21 @@
+<?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.
+-->
+
+<ejb-jar version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
+    <display-name>JAX-WS Provider Test</display-name>    
+</ejb-jar>

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/resources/META-INF/ejb-jar.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/resources/META-INF/ejb-jar.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/resources/META-INF/ejb-jar.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/resources/META-INF/openejb-jar.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/resources/META-INF/openejb-jar.xml?rev=725899&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/resources/META-INF/openejb-jar.xml (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/resources/META-INF/openejb-jar.xml Thu Dec 11 20:48:50 2008
@@ -0,0 +1,34 @@
+<?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.
+-->
+<openejb-jar xmlns="http://openejb.apache.org/xml/ns/openejb-jar-2.2"
+  xmlns:pkgen="http://openejb.apache.org/xml/ns/pkgen-2.1"
+  xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.2"
+  xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
+
+    <environment>
+        <moduleId>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>${pom.artifactId}</artifactId>
+            <version>${version}</version>
+            <type>jar</type>
+        </moduleId>
+   </environment>
+
+</openejb-jar>

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/resources/META-INF/openejb-jar.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/resources/META-INF/openejb-jar.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/resources/META-INF/openejb-jar.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/resources/wsdl/greeter_provider.wsdl
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/resources/wsdl/greeter_provider.wsdl?rev=725899&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/resources/wsdl/greeter_provider.wsdl (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/resources/wsdl/greeter_provider.wsdl Thu Dec 11 20:48:50 2008
@@ -0,0 +1,114 @@
+<?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:soap11="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+    xmlns:tns="http://geronimo.apache.org/greeter_provider" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
+    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://geronimo.apache.org/greeter_provider" name="Greeter">
+    <wsdl:types>
+        <schema targetNamespace="http://geronimo.apache.org/greeter_provider" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
+            <element name="sayHi">
+                <complexType>
+                    <sequence>
+                        <element name="requestarg" type="xsd:string"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="sayHiResponse">
+                <complexType>
+                    <sequence>
+                        <element name="responsearg" type="xsd:string"/>
+                    </sequence>
+                </complexType>
+            </element>
+        </schema>
+    </wsdl:types>
+    <wsdl:message name="sayHiRequest">
+        <wsdl:part element="tns:sayHi" name="sayHiRequestPart"/>
+    </wsdl:message>
+    <wsdl:message name="sayHiResponse">
+        <wsdl:part element="tns:sayHiResponse" name="sayHiResponsePart"/>
+    </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:portType>
+    <wsdl:binding name="GreeterSOAP11Binding" type="tns:Greeter">
+        <soap11:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+        <wsdl:operation name="sayHi">
+            <soap11:operation soapAction="" style="document"/>
+            <wsdl:input name="sayHiRequest">
+                <soap11:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output name="sayHiResponse">
+                <soap11:body use="literal"/>
+            </wsdl:output>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:binding name="GreeterSOAP12Binding" type="tns:Greeter">
+        <soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+        <wsdl:operation name="sayHi">
+            <soap12:operation soapAction="" style="document"/>
+            <wsdl:input name="sayHiRequest">
+                <soap12:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output name="sayHiResponse">
+                <soap12:body use="literal"/>
+            </wsdl:output>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:binding name="GreeterHTTPBinding" type="tns:Greeter">
+        <http:binding verb="POST"/>
+        <wsdl:operation name="sayHi">
+            <http:operation location="sayHi"/>
+            <wsdl:input name="sayHiRequest">
+                <mime:content type="text/xml"/>
+            </wsdl:input>
+            <wsdl:output name="sayHiResponse">
+                <mime:content type="text/xml"/>
+            </wsdl:output>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:service name="GreeterService">        
+        <wsdl:port binding="tns:GreeterHTTPBinding" name="GreeterHTTPSourceMessageModePort">
+            <http:address location="http://localhost:8080/jaxws-provider/provider/http/source/message"/>
+        </wsdl:port>
+        <wsdl:port binding="tns:GreeterHTTPBinding" name="GreeterHTTPSourcePayloadModePort">
+            <http:address location="http://localhost:8080/jaxws-provider/provider/http/source/payload"/>
+        </wsdl:port>
+        <wsdl:port binding="tns:GreeterSOAP11Binding" name="GreeterSOAP11SOAPMessagePort">
+            <soap11:address location="http://localhost:8080/jaxws-provider/provider/soap11/soapmessage"/>
+        </wsdl:port>
+        <wsdl:port binding="tns:GreeterSOAP11Binding" name="GreeterSOAP11SourceMessageModePort">
+            <soap11:address location="http://localhost:8080/jaxws-provider/provider/soap11/source/message"/>
+        </wsdl:port>
+        <wsdl:port binding="tns:GreeterSOAP11Binding" name="GreeterSOAP11SourcePayloadModePort">
+            <soap11:address location="http://localhost:8080/jaxws-provider/provider/soap11/source/payload"/>
+        </wsdl:port>
+        <wsdl:port binding="tns:GreeterSOAP12Binding" name="GreeterSOAP12SOAPMessagePort">
+            <soap12:address location="http://localhost:8080/jaxws-provider/provider/soap12/soapmessage"/>
+        </wsdl:port>
+        <wsdl:port binding="tns:GreeterSOAP12Binding" name="GreeterSOAP12SourceMessageModePort">
+            <soap12:address location="http://localhost:8080/jaxws-provider/provider/soap12/source/message"/>
+        </wsdl:port>
+        <wsdl:port binding="tns:GreeterSOAP12Binding" name="GreeterSOAP12SourcePayloadModePort">
+            <soap12:address location="http://localhost:8080/jaxws-provider/provider/soap12/source/payload"/>
+        </wsdl:port>
+    </wsdl:service>
+</wsdl:definitions>
\ No newline at end of file

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/resources/wsdl/greeter_provider.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/resources/wsdl/greeter_provider.wsdl
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-ejb/src/main/resources/wsdl/greeter_provider.wsdl
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/pom.xml?rev=725899&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/pom.xml (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/pom.xml Thu Dec 11 20:48:50 2008
@@ -0,0 +1,98 @@
+<?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.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.geronimo.testsuite</groupId>
+        <artifactId>jaxws-provider-tests</artifactId>
+        <version>2.2-SNAPSHOT</version>
+    </parent>
+    <artifactId>provider-test-war</artifactId>
+    <name>Geronimo TestSuite :: WebServices TestSuite :: JAX-WS Provider WAR Test Client</name>
+    <packaging>war</packaging>
+    <dependencies>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <optional>true</optional>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.testsuite</groupId>
+            <artifactId>provider-common</artifactId>
+            <version>${version}</version>
+            <optional>true</optional>            
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.testsuite</groupId>
+            <artifactId>provider-ejb</artifactId>
+            <scope>provided</scope>
+            <version>${version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-servlet_2.5_spec</artifactId>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.javamail</groupId>
+            <artifactId>geronimo-javamail_1.4_mail</artifactId>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-ejb_3.0_spec</artifactId>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-jaxws_2.1_spec</artifactId>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-annotation_1.0_spec</artifactId>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-saaj_1.3_spec</artifactId>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>javax.xml.bind</groupId>
+            <artifactId>jaxb-api</artifactId>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-war-plugin</artifactId>
+                <configuration>
+                    <archive>
+                        <manifest>
+                            <addClasspath>true</addClasspath>
+                        </manifest>
+                    </archive>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+</project>
\ No newline at end of file

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/java/org/apache/geronimo/jaxws/greeter_provider/AssertUtils.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/java/org/apache/geronimo/jaxws/greeter_provider/AssertUtils.java?rev=725899&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/java/org/apache/geronimo/jaxws/greeter_provider/AssertUtils.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/java/org/apache/geronimo/jaxws/greeter_provider/AssertUtils.java Thu Dec 11 20:48:50 2008
@@ -0,0 +1,111 @@
+/*
+ * 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.geronimo.jaxws.greeter_provider;
+
+import java.io.ByteArrayOutputStream;
+import java.io.InputStream;
+
+import javax.activation.DataSource;
+import javax.xml.soap.SOAPConstants;
+import javax.xml.soap.SOAPException;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.transform.Source;
+import javax.xml.transform.Transformer;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMResult;
+import javax.xml.ws.Service;
+
+import junit.framework.Assert;
+
+import org.apache.geronimo.jaxws.greeter_provider.common.MessageUtils;
+import org.w3c.dom.Document;
+import org.w3c.dom.Node;
+
+public class AssertUtils {
+
+    public static void assertResponseSOAPMessage(SOAPMessage soapMessage, String soapVersion) throws SOAPException {
+        Assert.assertNotNull(soapMessage);
+        assertResponseNode(soapMessage.getSOAPBody());
+        assertSOAPVersion(soapMessage.getSOAPBody(), soapVersion);
+    }
+
+    public static void assertResponseSOAPSource(Source source, String soapVersion, Service.Mode mode) throws Exception {
+        Transformer transformer = TransformerFactory.newInstance().newTransformer();
+        DOMResult result = new DOMResult();
+        transformer.transform(source, result);
+        Node node = ((Document) result.getNode()).getDocumentElement();
+        assertResponseNode(node);
+        if (mode.equals(Service.Mode.MESSAGE))
+            assertSOAPVersion(node, soapVersion);
+    }
+
+    public static void assertResponseHTTPSource(Source source) throws Exception {
+        Transformer transformer = TransformerFactory.newInstance().newTransformer();
+        DOMResult result = new DOMResult();
+        transformer.transform(source, result);
+        Node node = ((Document) result.getNode()).getDocumentElement();
+        assertResponseNode(node);
+    }
+
+    public static void assertResponseNode(Node node) {
+        Node requestArg = MessageUtils.findNode(node, "responsearg");
+        Assert.assertNotNull(requestArg);
+        String sResponseText = MessageUtils.getSubTextChildValue(requestArg);
+        Assert.assertEquals(MessageUtils.GERONIMO, sResponseText);
+    }
+
+    public static void assertSOAPVersion(Node node, String soapVersion) {
+        String sNameSpaceURI = node.getNamespaceURI();
+        if (soapVersion.equals(SOAPConstants.SOAP_1_1_PROTOCOL))
+            Assert.assertEquals(sNameSpaceURI, "http://schemas.xmlsoap.org/soap/envelope/");
+        else if (soapVersion.equals(SOAPConstants.SOAP_1_2_PROTOCOL))
+            Assert.assertEquals(sNameSpaceURI, "http://www.w3.org/2003/05/soap-envelope");
+    }
+
+    public static void assertResponseHTTPDataSource(DataSource dataSource) throws Exception {
+        DataSource requestDataSource = MessageUtils.createRequestHTTPDataSource();
+        Assert.assertEquals(requestDataSource.getContentType(), dataSource.getContentType());
+        byte[] expectedBytes = loadBytesFromDataSource(requestDataSource);
+        byte[] actualBytes = loadBytesFromDataSource(dataSource);
+        Assert.assertEquals(expectedBytes.length, actualBytes.length);
+        for (int i = 0; i < expectedBytes.length; i++)
+            Assert.assertEquals("Check byte array [" + i + "]", expectedBytes[i], actualBytes[i]);
+    }
+
+    public static byte[] loadBytesFromDataSource(DataSource dataSource) throws Exception {
+        ByteArrayOutputStream out = null;
+        InputStream in = null;
+        try {
+            in = dataSource.getInputStream();
+            out = new ByteArrayOutputStream();
+            byte[] bytesBuffer = new byte[512];
+            int iCurrentReadBytes = 0;
+            while ((iCurrentReadBytes = in.read(bytesBuffer)) != -1)
+                out.write(bytesBuffer, 0, iCurrentReadBytes);
+            return out.toByteArray();
+        } finally {
+            if (in != null)
+                try {
+                    in.close();
+                } catch (Exception e) {
+                }
+        }
+    }
+}

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/java/org/apache/geronimo/jaxws/greeter_provider/AssertUtils.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/java/org/apache/geronimo/jaxws/greeter_provider/AssertUtils.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/java/org/apache/geronimo/jaxws/greeter_provider/AssertUtils.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/java/org/apache/geronimo/jaxws/greeter_provider/TestServlet.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/java/org/apache/geronimo/jaxws/greeter_provider/TestServlet.java?rev=725899&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/java/org/apache/geronimo/jaxws/greeter_provider/TestServlet.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/java/org/apache/geronimo/jaxws/greeter_provider/TestServlet.java Thu Dec 11 20:48:50 2008
@@ -0,0 +1,184 @@
+/**
+ * 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.geronimo.jaxws.greeter_provider;
+
+import java.io.IOException;
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
+
+import javax.activation.DataSource;
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import javax.xml.namespace.QName;
+import javax.xml.soap.SOAPConstants;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.transform.Source;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Dispatch;
+import javax.xml.ws.Service;
+import javax.xml.ws.http.HTTPBinding;
+
+import org.apache.geronimo.jaxws.greeter_provider.common.MessageUtils;
+
+public abstract class TestServlet extends HttpServlet {
+
+    protected Service service;
+
+    public static final QName GREETER_SERVICE = new QName("http://geronimo.apache.org/greeter_provider",
+            "GreeterService");
+
+    public static final QName GreeterHTTPDataSourcePort = new QName("http://geronimo.apache.org/greeter_provider",
+            "GreeterHTTPDataSourcePort");
+
+    public static final QName GreeterHTTPSourceMessageModePort = new QName(
+            "http://geronimo.apache.org/greeter_provider", "GreeterHTTPSourceMessageModePort");
+
+    public static final QName GreeterHTTPSourcePayloadModePort = new QName(
+            "http://geronimo.apache.org/greeter_provider", "GreeterHTTPSourcePayloadModePort");
+
+    public static final QName GreeterSOAP11SOAPMessagePort = new QName("http://geronimo.apache.org/greeter_provider",
+            "GreeterSOAP11SOAPMessagePort");
+
+    public static final QName GreeterSOAP11SourceMessageModePort = new QName(
+            "http://geronimo.apache.org/greeter_provider", "GreeterSOAP11SourceMessageModePort");
+
+    public static final QName GreeterSOAP11SourcePayloadModePort = new QName(
+            "http://geronimo.apache.org/greeter_provider", "GreeterSOAP11SourcePayloadModePort");
+
+    public static final QName GreeterSOAP12SOAPMessagePort = new QName("http://geronimo.apache.org/greeter_provider",
+            "GreeterSOAP12SOAPMessagePort");
+
+    public static final QName GreeterSOAP12SourceMessageModePort = new QName(
+            "http://geronimo.apache.org/greeter_provider", "GreeterSOAP12SourceMessageModePort");
+
+    public static final QName GreeterSOAP12SourcePayloadModePort = new QName(
+            "http://geronimo.apache.org/greeter_provider", "GreeterSOAP12SourcePayloadModePort");
+
+    @Override
+    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+        String testName = request.getParameter("test");
+        if (testName == null || !testName.startsWith("test")) {
+            throw new ServletException("Invalid test name");
+        }
+        Method testMethod = null;
+        try {
+            testMethod = getClass().getMethod(testName, new Class[] {});
+        } catch (Exception e1) {
+            throw new ServletException("No such test: " + testName);
+        }
+        try {
+            testMethod.invoke(this, (Object[]) null);
+        } catch (IllegalArgumentException e) {
+            throw new ServletException("Error invoking test: " + e.getMessage());
+        } catch (IllegalAccessException e) {
+            throw new ServletException("Error invoking test: " + e.getMessage());
+        } catch (InvocationTargetException e) {
+            Throwable root = e.getTargetException();
+            ServletException ex = new ServletException("Test '" + testName + "' failed");
+            ex.initCause(root);
+            throw ex;
+        }
+        response.setContentType("text/plain");
+        response.getWriter().println("Test '" + testName + "' passed");
+    }
+
+    
+    /**
+     * TODO With Axis2, it seems that there is an issue about finding the operation for client request.
+     * So we create Service dynamically without WSDL, so that the GenericProviderDispatcher could take effect. 
+     * @throws Exception
+     */
+    public void testHTTPDataSource() throws Exception {
+        Service service = Service.create(GREETER_SERVICE);
+        service.addPort(GreeterHTTPDataSourcePort, HTTPBinding.HTTP_BINDING, getHTTPDataSourceAddress());
+        Dispatch<DataSource> dispatch = service.createDispatch(GreeterHTTPDataSourcePort, 
+                                                               DataSource.class,
+                                                               Service.Mode.MESSAGE);
+        DataSource responseDataSource = dispatch.invoke(MessageUtils.createRequestHTTPDataSource());
+        AssertUtils.assertResponseHTTPDataSource(responseDataSource);
+    }
+
+    public abstract String getHTTPDataSourceAddress();
+
+    public void testHTTPSourceMessageMode() throws Exception {
+        Dispatch<Source> dispatch = service.createDispatch(GreeterHTTPSourceMessageModePort, Source.class,
+                Service.Mode.MESSAGE);
+        Source source = dispatch.invoke(MessageUtils.createRequestHTTPSource());
+        AssertUtils.assertResponseHTTPSource(source);
+    }
+
+    public void testHTTPSourcePayloadMode() throws Exception {
+        Dispatch<Source> dispatch = service.createDispatch(GreeterHTTPSourcePayloadModePort, Source.class,
+                Service.Mode.PAYLOAD);
+        Source source = dispatch.invoke(MessageUtils.createRequestHTTPSource());
+        AssertUtils.assertResponseHTTPSource(source);
+    }
+
+    public void testSOAP11SOAPMessage() throws Exception {
+        Dispatch<SOAPMessage> dispatch = service.createDispatch(GreeterSOAP11SOAPMessagePort, SOAPMessage.class,
+                Service.Mode.MESSAGE);
+        SOAPMessage soapMessage = dispatch.invoke(MessageUtils
+                .createRequestSOAPMessage(SOAPConstants.SOAP_1_1_PROTOCOL));
+        AssertUtils.assertResponseSOAPMessage(soapMessage, SOAPConstants.SOAP_1_1_PROTOCOL);
+    }
+
+    public void testSOAP11SourceMessageMode() throws Exception {
+        Dispatch<Source> dispatch = service.createDispatch(GreeterSOAP11SourceMessageModePort, Source.class,
+                Service.Mode.MESSAGE);
+        Source source = dispatch.invoke(MessageUtils.createRequestSOAPSource(SOAPConstants.SOAP_1_1_PROTOCOL,
+                Service.Mode.MESSAGE));
+        AssertUtils.assertResponseSOAPSource(source, SOAPConstants.SOAP_1_1_PROTOCOL, Service.Mode.MESSAGE);
+    }
+
+    public void testSOAP11SourcePayloadMode() throws Exception {
+        Dispatch<Source> dispatch = service.createDispatch(GreeterSOAP11SourcePayloadModePort, Source.class,
+                Service.Mode.PAYLOAD);
+        Source source = dispatch.invoke(MessageUtils.createRequestSOAPSource(SOAPConstants.SOAP_1_1_PROTOCOL,
+                Service.Mode.PAYLOAD));
+        AssertUtils.assertResponseSOAPSource(source, SOAPConstants.SOAP_1_1_PROTOCOL, Service.Mode.PAYLOAD);
+    }
+
+    public void testSOAP12SOAPMessage() throws Exception {
+        Dispatch<SOAPMessage> dispatch = service.createDispatch(GreeterSOAP12SOAPMessagePort, SOAPMessage.class,
+                Service.Mode.MESSAGE);
+        SOAPMessage soapMessage = dispatch.invoke(MessageUtils
+                .createRequestSOAPMessage(SOAPConstants.SOAP_1_2_PROTOCOL));
+        AssertUtils.assertResponseSOAPMessage(soapMessage, SOAPConstants.SOAP_1_2_PROTOCOL);
+    }
+
+    public void testSOAP12SourceMessageMode() throws Exception {
+        Dispatch<Source> dispatch = service.createDispatch(GreeterSOAP12SourceMessageModePort, Source.class,
+                Service.Mode.MESSAGE);
+        Source source = dispatch.invoke(MessageUtils.createRequestSOAPSource(SOAPConstants.SOAP_1_2_PROTOCOL,
+                Service.Mode.MESSAGE));
+        AssertUtils.assertResponseSOAPSource(source, SOAPConstants.SOAP_1_2_PROTOCOL, Service.Mode.MESSAGE);
+    }
+
+    public void testSOAP12SourcePayloadMode() throws Exception {
+        Dispatch<Source> dispatch = service.createDispatch(GreeterSOAP12SourcePayloadModePort, Source.class,
+                Service.Mode.PAYLOAD);
+        Source source = dispatch.invoke(MessageUtils.createRequestSOAPSource(SOAPConstants.SOAP_1_2_PROTOCOL,
+                Service.Mode.PAYLOAD));
+        AssertUtils.assertResponseSOAPSource(source, SOAPConstants.SOAP_1_2_PROTOCOL, Service.Mode.PAYLOAD);
+    }
+
+}

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/java/org/apache/geronimo/jaxws/greeter_provider/TestServlet.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/java/org/apache/geronimo/jaxws/greeter_provider/TestServlet.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/java/org/apache/geronimo/jaxws/greeter_provider/TestServlet.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/java/org/apache/geronimo/jaxws/greeter_provider/TestServletEJB.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/java/org/apache/geronimo/jaxws/greeter_provider/TestServletEJB.java?rev=725899&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/java/org/apache/geronimo/jaxws/greeter_provider/TestServletEJB.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/java/org/apache/geronimo/jaxws/greeter_provider/TestServletEJB.java Thu Dec 11 20:48:50 2008
@@ -0,0 +1,183 @@
+/**
+ * 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.geronimo.jaxws.greeter_provider;
+
+import java.util.Properties;
+
+import javax.activation.DataSource;
+import javax.annotation.PostConstruct;
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.xml.soap.SOAPConstants;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.transform.Source;
+import javax.xml.ws.Dispatch;
+import javax.xml.ws.Provider;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebServiceRef;
+import javax.xml.ws.http.HTTPBinding;
+
+import junit.framework.Assert;
+
+import org.apache.geronimo.jaxws.greeter_provider.common.MessageUtils;
+import org.apache.geronimo.jaxws.greeter_provider.ejb.EchoLocal;
+import org.apache.geronimo.jaxws.greeter_provider.ejb.EchoRemote;
+
+/**
+ * For each type provider, the test items include :
+ * a. Invoke the extra method via local interface
+ * b. Invoke the extra method via remote interface
+ * c. Invoke the invoke method of the Provider interface via local interface
+ */
+public class TestServletEJB extends TestServlet {
+
+    public static final String ECHO_WORDS = "Geronimo";
+
+    private InitialContext localContext;
+
+    private InitialContext remoteContext;
+
+    @WebServiceRef(name = "services/ejb/Provider")
+    private Service myService;
+
+    private void assertEchoInvocation(String beanName) throws Exception {
+        EchoLocal echoLocal = lookupEchoLocal(beanName);
+        Assert.assertEquals(echoLocal.echo(ECHO_WORDS), ECHO_WORDS);
+        EchoRemote echoRemote = null;
+        echoRemote = lookupEchoRemote(beanName);
+        Assert.assertEquals(echoRemote.echo(ECHO_WORDS), ECHO_WORDS);
+    }
+
+    private EchoLocal lookupEchoLocal(String beanName) throws Exception {
+        return (EchoLocal) localContext.lookup(beanName + "Local");
+    }
+
+    private EchoRemote lookupEchoRemote(String beanName) throws Exception {
+        return (EchoRemote) remoteContext.lookup(beanName + "Remote");
+    }
+
+    private Provider<?> lookupProvider(String beanName) throws Exception {
+        return (Provider<?>) localContext.lookup(beanName + "Local");
+    }
+
+    @PostConstruct
+    private void myInit() throws Exception {
+        this.service = myService;
+        Properties localProps = new Properties();
+        localProps.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.client.LocalInitialContextFactory");
+        localContext = new InitialContext(localProps);
+        Properties remoteProps = new Properties();
+        remoteProps.setProperty(Context.INITIAL_CONTEXT_FACTORY,
+                "org.apache.openejb.client.RemoteInitialContextFactory");
+        remoteProps.setProperty(Context.PROVIDER_URL, "ejbd://localhost:4201");
+        remoteContext = new InitialContext(remoteProps);
+    }
+
+    public String getHTTPDataSourceAddress() {
+        return "http://localhost:8080/GreeterService/GreeterHTTPDataSourceProvider";
+    }
+
+    @Override
+    public void testHTTPDataSource() throws Exception {
+        super.testHTTPDataSource();
+        assertEchoInvocation("GreeterHTTPDataSourceProvider");
+        Provider<DataSource> provider = (Provider<DataSource>) lookupProvider("GreeterHTTPDataSourceProvider");
+        DataSource ejbResponseDataSource = provider.invoke(MessageUtils.createRequestHTTPDataSource());
+        AssertUtils.assertResponseHTTPDataSource(ejbResponseDataSource);
+    }
+
+    @Override
+    public void testHTTPSourceMessageMode() throws Exception {
+        super.testHTTPSourceMessageMode();
+        assertEchoInvocation("GreeterHTTPSourceMessageModeProvider");
+        Provider<Source> provider = (Provider<Source>) lookupProvider("GreeterHTTPSourceMessageModeProvider");
+        Source source = provider.invoke(MessageUtils.createRequestHTTPSource());
+        AssertUtils.assertResponseHTTPSource(source);
+    }
+
+    @Override
+    public void testHTTPSourcePayloadMode() throws Exception {
+        super.testHTTPSourcePayloadMode();
+        assertEchoInvocation("GreeterHTTPSourcePayloadModeProvider");
+        Provider<Source> provider = (Provider<Source>) lookupProvider("GreeterHTTPSourcePayloadModeProvider");
+        Source source = provider.invoke(MessageUtils.createRequestHTTPSource());
+        AssertUtils.assertResponseHTTPSource(source);
+    }
+
+    @Override
+    public void testSOAP11SOAPMessage() throws Exception {
+        super.testSOAP11SOAPMessage();
+        assertEchoInvocation("GreeterSOAP11SOAPMessageProvider");
+        Provider<SOAPMessage> provider = (Provider<SOAPMessage>) lookupProvider("GreeterSOAP11SOAPMessageProvider");
+        SOAPMessage soapMessage = provider.invoke(MessageUtils
+                .createRequestSOAPMessage(SOAPConstants.SOAP_1_1_PROTOCOL));
+        AssertUtils.assertResponseSOAPMessage(soapMessage, SOAPConstants.SOAP_1_1_PROTOCOL);
+    }
+
+    @Override
+    public void testSOAP11SourceMessageMode() throws Exception {
+        super.testSOAP11SourceMessageMode();
+        assertEchoInvocation("GreeterSOAP11SourceMessageModeProvider");
+        Provider<Source> provider = (Provider<Source>) lookupProvider("GreeterSOAP11SourceMessageModeProvider");
+        Source source = provider.invoke(MessageUtils.createRequestSOAPSource(SOAPConstants.SOAP_1_1_PROTOCOL,
+                Service.Mode.MESSAGE));
+        AssertUtils.assertResponseSOAPSource(source, SOAPConstants.SOAP_1_1_PROTOCOL, Service.Mode.MESSAGE);
+    }
+
+    @Override
+    public void testSOAP11SourcePayloadMode() throws Exception {
+        super.testSOAP11SourcePayloadMode();
+        assertEchoInvocation("GreeterSOAP11SourcePayloadModeProvider");
+        Provider<Source> provider = (Provider<Source>) lookupProvider("GreeterSOAP11SourcePayloadModeProvider");
+        Source source = provider.invoke(MessageUtils.createRequestSOAPSource(SOAPConstants.SOAP_1_1_PROTOCOL,
+                Service.Mode.PAYLOAD));
+        AssertUtils.assertResponseSOAPSource(source, SOAPConstants.SOAP_1_1_PROTOCOL, Service.Mode.PAYLOAD);
+    }
+
+    @Override
+    public void testSOAP12SOAPMessage() throws Exception {
+        super.testSOAP12SOAPMessage();
+        assertEchoInvocation("GreeterSOAP12SOAPMessageProvider");
+        Provider<SOAPMessage> provider = (Provider<SOAPMessage>) lookupProvider("GreeterSOAP12SOAPMessageProvider");
+        SOAPMessage soapMessage = provider.invoke(MessageUtils
+                .createRequestSOAPMessage(SOAPConstants.SOAP_1_2_PROTOCOL));
+        AssertUtils.assertResponseSOAPMessage(soapMessage, SOAPConstants.SOAP_1_2_PROTOCOL);
+    }
+
+    @Override
+    public void testSOAP12SourceMessageMode() throws Exception {
+        super.testSOAP12SourceMessageMode();
+        assertEchoInvocation("GreeterSOAP12SourceMessageModeProvider");
+        Provider<Source> provider = (Provider<Source>) lookupProvider("GreeterSOAP12SourceMessageModeProvider");
+        Source source = provider.invoke(MessageUtils.createRequestSOAPSource(SOAPConstants.SOAP_1_2_PROTOCOL,
+                Service.Mode.MESSAGE));
+        AssertUtils.assertResponseSOAPSource(source, SOAPConstants.SOAP_1_2_PROTOCOL, Service.Mode.MESSAGE);
+    }
+
+    @Override
+    public void testSOAP12SourcePayloadMode() throws Exception {
+        super.testSOAP12SourcePayloadMode();
+        assertEchoInvocation("GreeterSOAP12SourcePayloadModeProvider");
+        Provider<Source> provider = (Provider<Source>) lookupProvider("GreeterSOAP12SourcePayloadModeProvider");
+        Source source = provider.invoke(MessageUtils.createRequestSOAPSource(SOAPConstants.SOAP_1_2_PROTOCOL,
+                Service.Mode.PAYLOAD));
+        AssertUtils.assertResponseSOAPSource(source, SOAPConstants.SOAP_1_2_PROTOCOL, Service.Mode.PAYLOAD);
+    }
+}

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/java/org/apache/geronimo/jaxws/greeter_provider/TestServletEJB.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/java/org/apache/geronimo/jaxws/greeter_provider/TestServletEJB.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/java/org/apache/geronimo/jaxws/greeter_provider/TestServletEJB.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/java/org/apache/geronimo/jaxws/greeter_provider/TestServletWeb.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/java/org/apache/geronimo/jaxws/greeter_provider/TestServletWeb.java?rev=725899&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/java/org/apache/geronimo/jaxws/greeter_provider/TestServletWeb.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/java/org/apache/geronimo/jaxws/greeter_provider/TestServletWeb.java Thu Dec 11 20:48:50 2008
@@ -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.geronimo.jaxws.greeter_provider;
+
+import javax.annotation.PostConstruct;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebServiceRef;
+
+public class TestServletWeb extends TestServlet {
+
+    @WebServiceRef(name = "services/Provider")
+    private Service myService;
+
+    @PostConstruct
+    private void myInit() {
+        this.service = myService;
+    }
+
+    public String getHTTPDataSourceAddress() {
+        return "http://localhost:8080/provider-war/provider/http/datasource";
+    }
+}

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/java/org/apache/geronimo/jaxws/greeter_provider/TestServletWeb.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/java/org/apache/geronimo/jaxws/greeter_provider/TestServletWeb.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/java/org/apache/geronimo/jaxws/greeter_provider/TestServletWeb.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/webapp/WEB-INF/geronimo-web.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/webapp/WEB-INF/geronimo-web.xml?rev=725899&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/webapp/WEB-INF/geronimo-web.xml (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/webapp/WEB-INF/geronimo-web.xml Thu Dec 11 20:48:50 2008
@@ -0,0 +1,175 @@
+<?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.
+-->
+<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1" xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1" xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.1">
+  <dep:environment>
+    <dep:moduleId>
+      <dep:groupId>${pom.groupId}</dep:groupId>
+      <dep:artifactId>${pom.artifactId}</dep:artifactId>
+      <dep:version>${version}</dep:version>
+      <dep:type>war</dep:type>
+    </dep:moduleId>
+  </dep:environment>
+
+ <context-root>/${pom.artifactId}</context-root> 
+
+ <service-ref>
+   <service-ref-name>services/Provider</service-ref-name>
+   <!--port>
+      <port-name>GreeterHTTPDataSourcePort</port-name>
+      <protocol>http</protocol>
+      <host>localhost</host>
+      <port>8080</port>
+      <uri>/provider-war/provider/http/datasource</uri>
+   </port-->
+   <port>
+      <port-name>GreeterHTTPSourceMessageModePort</port-name>
+      <protocol>http</protocol>
+      <host>localhost</host>
+      <port>8080</port>
+      <uri>/provider-war/provider/http/source/message</uri>
+   </port>
+   <port>
+      <port-name>GreeterHTTPSourcePayloadModePort</port-name>
+      <protocol>http</protocol>
+      <host>localhost</host>
+      <port>8080</port>
+      <uri>/provider-war/provider/http/source/payload</uri>
+   </port>
+   <port>
+      <port-name>GreeterSOAP11SOAPMessagePort</port-name>
+      <protocol>http</protocol>
+      <host>localhost</host>
+      <port>8080</port>
+      <uri>/provider-war/provider/soap11/soapmessage</uri>
+   </port>
+   <port>
+      <port-name>GreeterSOAP11SourceMessageModePort</port-name>
+      <protocol>http</protocol>
+      <host>localhost</host>
+      <port>8080</port>
+      <uri>/provider-war/provider/soap11/source/message</uri>
+   </port>
+   <port>
+      <port-name>GreeterSOAP11SourcePayloadModePort</port-name>
+      <protocol>http</protocol>
+      <host>localhost</host>
+      <port>8080</port>
+      <uri>/provider-war/provider/soap11/source/payload</uri>
+   </port>
+   <port>
+      <port-name>GreeterSOAP12SOAPMessagePort</port-name>
+      <protocol>http</protocol>
+      <host>localhost</host>
+      <port>8080</port>
+      <uri>/provider-war/provider/soap12/soapmessage</uri>
+   </port>
+   <port>
+      <port-name>GreeterSOAP12SourceMessageModePort</port-name>
+      <protocol>http</protocol>
+      <host>localhost</host>
+      <port>8080</port>
+      <uri>/provider-war/provider/soap12/source/message</uri>
+   </port>
+   <port>
+      <port-name>GreeterSOAP12SourcePayloadModePort</port-name>
+      <protocol>http</protocol>
+      <host>localhost</host>
+      <port>8080</port>
+      <uri>/provider-war/provider/soap12/source/payload</uri>
+   </port>
+ </service-ref>
+ 
+  <service-ref>
+   <service-ref-name>services/ejb/Provider</service-ref-name>
+   <!--port>
+      <port-name>GreeterHTTPDataSourcePort</port-name>
+      <protocol>http</protocol>
+      <host>localhost</host>
+      <port>8080</port>
+      <uri>/GreeterService/GreeterHTTPDataSourceProvider</uri>
+   </port-->
+   <port>
+      <port-name>GreeterHTTPSourceMessageModePort</port-name>
+      <protocol>http</protocol>
+      <host>localhost</host>
+      <port>8080</port>
+      <uri>/GreeterService/GreeterHTTPSourceMessageModeProvider</uri>
+   </port>
+   <port>
+      <port-name>GreeterHTTPSourcePayloadModePort</port-name>
+      <protocol>http</protocol>
+      <host>localhost</host>
+      <port>8080</port>
+      <uri>/GreeterService/GreeterHTTPSourcePayloadModeProvider</uri>
+   </port>
+   <port>
+      <port-name>GreeterSOAP11SOAPMessagePort</port-name>
+      <protocol>http</protocol>
+      <host>localhost</host>
+      <port>8080</port>
+      <uri>/GreeterService/GreeterSOAP11SOAPMessageProvider</uri>
+   </port>
+   <port>
+      <port-name>GreeterSOAP11SourceMessageModePort</port-name>
+      <protocol>http</protocol>
+      <host>localhost</host>
+      <port>8080</port>
+      <uri>/GreeterService/GreeterSOAP11SourceMessageModeProvider</uri>
+   </port>
+   <port>
+      <port-name>GreeterSOAP11SourcePayloadModePort</port-name>
+      <protocol>http</protocol>
+      <host>localhost</host>
+      <port>8080</port>
+      <uri>/GreeterService/GreeterSOAP11SourcePayloadModeProvider</uri>
+   </port>
+   <port>
+      <port-name>GreeterSOAP12SOAPMessagePort</port-name>
+      <protocol>http</protocol>
+      <host>localhost</host>
+      <port>8080</port>
+      <uri>/GreeterService/GreeterSOAP12SOAPMessageProvider</uri>
+   </port>
+   <port>
+      <port-name>GreeterSOAP12SourceMessageModePort</port-name>
+      <protocol>http</protocol>
+      <host>localhost</host>
+      <port>8080</port>
+      <uri>/GreeterService/GreeterSOAP12SourceMessageModeProvider</uri>
+   </port>
+   <port>
+      <port-name>GreeterSOAP12SourcePayloadModePort</port-name>
+      <protocol>http</protocol>
+      <host>localhost</host>
+      <port>8080</port>
+      <uri>/GreeterService/GreeterSOAP12SourcePayloadModeProvider</uri>
+   </port>
+ </service-ref>
+
+ <service-ref>
+   <service-ref-name>services/GenericProvider</service-ref-name>
+   <port>
+      <port-name>GreeterHTTPDataSourcePort</port-name>
+      <protocol>http</protocol>
+      <host>localhost</host>
+      <port>8080</port>
+      <uri>/GreeterService/GreeterHTTPDataSourceProvider</uri>
+   </port>
+ </service-ref>
+
+</web-app>

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/webapp/WEB-INF/web.xml?rev=725899&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/webapp/WEB-INF/web.xml (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/webapp/WEB-INF/web.xml Thu Dec 11 20:48:50 2008
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+    Copyright 2006 The Apache Software Foundation
+    Licensed  under the  Apache License,  Version 2.0  (the "License");
+    you may not use  this file  except in  compliance with the License.
+    You may obtain a copy of the License at
+    
+    http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing, software
+    distributed  under the  License is distributed on an "AS IS" BASIS,
+    WITHOUT  WARRANTIES OR CONDITIONS  OF ANY KIND, either  express  or
+    implied.
+    
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd"
+    version="2.5">
+    <display-name>JAX-WS Provider Test</display-name>
+    <servlet>
+        <display-name>TestServletWeb</display-name>
+        <servlet-name>TestServletWeb</servlet-name>
+        <servlet-class>org.apache.geronimo.jaxws.greeter_provider.TestServletWeb</servlet-class>
+        <load-on-startup>0</load-on-startup>
+    </servlet>
+    <servlet-mapping>
+        <servlet-name>TestServletWeb</servlet-name>
+        <url-pattern>/test-provider-web</url-pattern>
+    </servlet-mapping>
+    <servlet>
+        <display-name>TestServletEJB</display-name>
+        <servlet-name>TestServletEJB</servlet-name>
+        <servlet-class>org.apache.geronimo.jaxws.greeter_provider.TestServletEJB</servlet-class>
+        <load-on-startup>0</load-on-startup>
+    </servlet>
+    <servlet-mapping>
+        <servlet-name>TestServletEJB</servlet-name>
+        <url-pattern>/test-provider-ejb</url-pattern>
+    </servlet-mapping>
+    <service-ref>
+        <service-ref-name>services/Provider</service-ref-name>
+        <service-interface>javax.xml.ws.Service</service-interface>
+        <wsdl-file>WEB-INF/wsdl/greeter_provider.wsdl</wsdl-file>
+    </service-ref>
+    <service-ref>
+        <service-ref-name>services/ejb/Provider</service-ref-name>
+        <service-interface>javax.xml.ws.Service</service-interface>
+        <wsdl-file>WEB-INF/wsdl/greeter_provider.wsdl</wsdl-file>        
+    </service-ref>
+    <service-ref>
+        <service-ref-name>services/GenericProvider</service-ref-name>
+        <service-interface>javax.xml.ws.Service</service-interface>
+    </service-ref>
+</web-app>

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-provider-tests/provider-test-war/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml



Mime
View raw message