[jbossws-commits] JBossWS SVN: r9821 - in stack/native/branches/dlofthouse/JBPAPP-1844: ant-import-tests and 6 other directories.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Tue Apr 14 08:28:10 EDT 2009


Author: darran.lofthouse at jboss.com
Date: 2009-04-14 08:28:10 -0400 (Tue, 14 Apr 2009)
New Revision: 9821

Added:
   stack/native/branches/dlofthouse/JBPAPP-1844/src/test/java/org/jboss/test/ws/jaxws/jbpapp1844/
   stack/native/branches/dlofthouse/JBPAPP-1844/src/test/java/org/jboss/test/ws/jaxws/jbpapp1844/CustomHandler.java
   stack/native/branches/dlofthouse/JBPAPP-1844/src/test/java/org/jboss/test/ws/jaxws/jbpapp1844/Endpoint.java
   stack/native/branches/dlofthouse/JBPAPP-1844/src/test/java/org/jboss/test/ws/jaxws/jbpapp1844/EndpointImpl.java
   stack/native/branches/dlofthouse/JBPAPP-1844/src/test/java/org/jboss/test/ws/jaxws/jbpapp1844/JBPAPP1844TestCase.java
   stack/native/branches/dlofthouse/JBPAPP-1844/src/test/resources/jaxws/jbpapp1844/
   stack/native/branches/dlofthouse/JBPAPP-1844/src/test/resources/jaxws/jbpapp1844/META-INF/
   stack/native/branches/dlofthouse/JBPAPP-1844/src/test/resources/jaxws/jbpapp1844/META-INF/jaxws-endpoint-config.xml
   stack/native/branches/dlofthouse/JBPAPP-1844/src/test/resources/jaxws/jbpapp1844/META-INF/jboss.xml
Modified:
   stack/native/branches/dlofthouse/JBPAPP-1844/.classpath
   stack/native/branches/dlofthouse/JBPAPP-1844/ant-import-tests/build-jars-jaxws.xml
   stack/native/branches/dlofthouse/JBPAPP-1844/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSProviderMetaDataBuilder.java
   stack/native/branches/dlofthouse/JBPAPP-1844/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSServerMetaDataBuilder.java
   stack/native/branches/dlofthouse/JBPAPP-1844/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSWebServiceMetaDataBuilder.java
Log:
Test case and partial backport.

Modified: stack/native/branches/dlofthouse/JBPAPP-1844/.classpath
===================================================================
--- stack/native/branches/dlofthouse/JBPAPP-1844/.classpath	2009-04-14 12:26:30 UTC (rev 9820)
+++ stack/native/branches/dlofthouse/JBPAPP-1844/.classpath	2009-04-14 12:28:10 UTC (rev 9821)
@@ -38,7 +38,7 @@
 	<classpathentry kind="lib" path="thirdparty/concurrent.jar"/>
 	<classpathentry kind="lib" path="thirdparty/junit.jar"/>
 	<classpathentry kind="lib" path="thirdparty/jbossws-common.jar" sourcepath="thirdparty/jbossws-common-src.zip"/>
-	<classpathentry kind="lib" path="thirdparty/ejb3.deployer/jboss-ejb3.jar"/>
+	<classpathentry kind="lib" path="thirdparty/ejb3.deployer/jboss-ejb3.jar" sourcepath="/ejb3/src/resources/43specific"/>
 	<classpathentry kind="lib" path="thirdparty/jbossws-spi.jar"/>
 	<classpathentry kind="lib" path="thirdparty/jboss-jaxb-intros.jar"/>
 	<classpathentry kind="output" path="output/eclipse"/>

Modified: stack/native/branches/dlofthouse/JBPAPP-1844/ant-import-tests/build-jars-jaxws.xml
===================================================================
--- stack/native/branches/dlofthouse/JBPAPP-1844/ant-import-tests/build-jars-jaxws.xml	2009-04-14 12:26:30 UTC (rev 9820)
+++ stack/native/branches/dlofthouse/JBPAPP-1844/ant-import-tests/build-jars-jaxws.xml	2009-04-14 12:28:10 UTC (rev 9821)
@@ -130,7 +130,20 @@
         <include name="**/*.wsdl"/>
       </webinf>
     </war>
-    
+
+    <!-- jaxws-jbpapp1844 -->
+    <jar destfile="${tests.output.dir}/libs/jaxws-jbpapp1844.jar">
+      <fileset dir="${tests.output.dir}/classes">
+        <include name="org/jboss/test/ws/jaxws/jbpapp1844/*.class"/>
+        <exclude name="org/jboss/test/ws/jaxws/jbpapp1844/*TestCase.class"/>
+      </fileset>
+      
+      <metainf dir="${tests.output.dir}/resources/jaxws/jbpapp1844/META-INF">
+        <include name="jboss.xml"/>
+        <include name="jaxws-endpoint-config.xml"/>
+      </metainf>
+    </jar>
+      
     <!-- jaxws-jbws771 -->
     <jar destfile="${tests.output.dir}/libs/jaxws-jbws771.jar">
       <fileset dir="${tests.output.dir}/classes">

Modified: stack/native/branches/dlofthouse/JBPAPP-1844/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSProviderMetaDataBuilder.java
===================================================================
--- stack/native/branches/dlofthouse/JBPAPP-1844/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSProviderMetaDataBuilder.java	2009-04-14 12:26:30 UTC (rev 9820)
+++ stack/native/branches/dlofthouse/JBPAPP-1844/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSProviderMetaDataBuilder.java	2009-04-14 12:28:10 UTC (rev 9821)
@@ -134,7 +134,7 @@
       processHandlerChain(sepMetaData, sepClass);
 
       // process config
-      processEndpointConfig(sepClass, linkName, sepMetaData);
+      processEndpointConfig(dep, sepMetaData, sepClass, linkName);
 
       // Set the endpoint address
       processWebContext(dep, sepClass, linkName, sepMetaData);

Modified: stack/native/branches/dlofthouse/JBPAPP-1844/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSServerMetaDataBuilder.java
===================================================================
--- stack/native/branches/dlofthouse/JBPAPP-1844/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSServerMetaDataBuilder.java	2009-04-14 12:26:30 UTC (rev 9820)
+++ stack/native/branches/dlofthouse/JBPAPP-1844/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSServerMetaDataBuilder.java	2009-04-14 12:28:10 UTC (rev 9821)
@@ -1,24 +1,24 @@
 /*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
 package org.jboss.ws.metadata.builder.jaxws;
 
 // $Id$
@@ -33,6 +33,8 @@
 import org.jboss.wsf.spi.deployment.ArchiveDeployment;
 import org.jboss.wsf.spi.deployment.Deployment;
 import org.jboss.wsf.spi.deployment.Deployment.DeploymentType;
+import org.jboss.wsf.spi.metadata.j2ee.EJBArchiveMetaData;
+import org.jboss.wsf.spi.metadata.j2ee.JSEArchiveMetaData;
 
 /**
  * Builds ServiceEndpointMetaData for a JAX-WS endpoint.
@@ -56,22 +58,39 @@
       }
    }
 
-   protected void processEndpointConfig(Class<?> wsClass, String linkName, ServerEndpointMetaData sepMetaData)
+   protected void processEndpointConfig(Deployment dep, ServerEndpointMetaData sepMetaData, Class<?> wsClass, String linkName)
    {
-      EndpointConfig anEndpointConfig = wsClass.getAnnotation(EndpointConfig.class);
-
-      if (anEndpointConfig== null)
-         return;
-
       String configName = null;
       String configFile = null;
       
-      if (anEndpointConfig.configName().length() > 0)
-         configName = anEndpointConfig.configName();
+      EndpointConfig anEndpointConfig = wsClass.getAnnotation(EndpointConfig.class);
+      if (anEndpointConfig != null)
+      {
+         if (anEndpointConfig.configName().length() > 0)
+            configName = anEndpointConfig.configName();
 
-      if (anEndpointConfig.configFile().length() > 0)
-         configFile = anEndpointConfig.configFile();
-
+         if (anEndpointConfig.configFile().length() > 0)
+            configFile = anEndpointConfig.configFile();
+      }
+      
+      JSEArchiveMetaData jseMetaData = dep.getAttachment(JSEArchiveMetaData.class);
+      if (jseMetaData != null)
+      {
+         if (jseMetaData.getConfigName() != null)
+            configName = jseMetaData.getConfigName();
+         if (jseMetaData.getConfigFile() != null)
+            configFile = jseMetaData.getConfigFile();
+      }
+      
+      EJBArchiveMetaData ejbMetaData = dep.getAttachment(EJBArchiveMetaData.class);
+      if (ejbMetaData != null)
+      {
+         if (ejbMetaData.getConfigName() != null)
+            configName = ejbMetaData.getConfigName();
+         if (ejbMetaData.getConfigFile() != null)
+            configFile = ejbMetaData.getConfigFile();
+      }
+      
       if (configName != null || configFile != null)
          sepMetaData.setConfigName(configName, configFile);
    }
@@ -82,7 +101,7 @@
 
       if (anWebContext == null)
          return;
-      
+
       boolean isJSEEndpoint = (dep.getType() == DeploymentType.JAXWS_JSE);
 
       // context-root
@@ -143,7 +162,7 @@
             sepMetaData.setTransportGuarantee(transportGuarantee);
          }
       }
-      
+
       // secure wsdl access
       sepMetaData.setSecureWSDLAccess(anWebContext.secureWSDLAccess());
    }

Modified: stack/native/branches/dlofthouse/JBPAPP-1844/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSWebServiceMetaDataBuilder.java
===================================================================
--- stack/native/branches/dlofthouse/JBPAPP-1844/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSWebServiceMetaDataBuilder.java	2009-04-14 12:26:30 UTC (rev 9820)
+++ stack/native/branches/dlofthouse/JBPAPP-1844/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSWebServiceMetaDataBuilder.java	2009-04-14 12:28:10 UTC (rev 9821)
@@ -134,7 +134,7 @@
          processBindingType(sepMetaData, seiClass);
 
          // process config
-         processEndpointConfig(sepClass, linkName, sepMetaData);
+         processEndpointConfig(dep, sepMetaData, sepClass, linkName);
 
          // Process web methods
          processWebMethods(sepMetaData, seiClass);

Added: stack/native/branches/dlofthouse/JBPAPP-1844/src/test/java/org/jboss/test/ws/jaxws/jbpapp1844/CustomHandler.java
===================================================================
--- stack/native/branches/dlofthouse/JBPAPP-1844/src/test/java/org/jboss/test/ws/jaxws/jbpapp1844/CustomHandler.java	                        (rev 0)
+++ stack/native/branches/dlofthouse/JBPAPP-1844/src/test/java/org/jboss/test/ws/jaxws/jbpapp1844/CustomHandler.java	2009-04-14 12:28:10 UTC (rev 9821)
@@ -0,0 +1,81 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbpapp1844;
+
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.ws.LogicalMessage;
+import javax.xml.ws.handler.LogicalMessageContext;
+import javax.xml.ws.handler.MessageContext;
+
+import org.jboss.logging.Logger;
+import org.jboss.test.ws.jaxws.jbws2285.LogicalHandler;
+import org.jboss.ws.WSException;
+import org.jboss.wsf.common.DOMWriter;
+import org.jboss.wsf.test.GenericLogicalHandler;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
+/**
+ * Test handler to test jboss.xml configuration.
+ * 
+ * @author darran.lofthouse at jboss.com
+ * @since 31st March 2009
+ * @see https://jira.jboss.org/jira/browse/JBPAPP-1844
+ */
+public class CustomHandler extends GenericLogicalHandler
+{
+   private static final Logger log = Logger.getLogger(LogicalHandler.class);
+
+   @Override
+   protected boolean handleInbound(final MessageContext msgContext)
+   {
+      log.info("handleInbound()");
+
+      LogicalMessageContext lmc = (LogicalMessageContext)msgContext;
+      LogicalMessage message = lmc.getMessage();
+
+      Object payload = message.getPayload();
+
+      if (payload instanceof DOMSource == false)
+      {
+         throw new WSException("Test requires DOMSource payload");
+      }
+
+      DOMSource domPayload = (DOMSource)payload;
+      Node node = domPayload.getNode();
+
+      NodeList nodes = node.getChildNodes();
+      for (int i = 0; i < nodes.getLength(); i++)
+      {
+         Node current = nodes.item(i);
+         if ("arg0".equals(current.getLocalName()))
+         {
+            current.setTextContent("XXX");
+         }
+      }
+
+      log.info(DOMWriter.printNode(node, false));
+
+      return true;
+   }
+   
+}


Property changes on: stack/native/branches/dlofthouse/JBPAPP-1844/src/test/java/org/jboss/test/ws/jaxws/jbpapp1844/CustomHandler.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/branches/dlofthouse/JBPAPP-1844/src/test/java/org/jboss/test/ws/jaxws/jbpapp1844/Endpoint.java
===================================================================
--- stack/native/branches/dlofthouse/JBPAPP-1844/src/test/java/org/jboss/test/ws/jaxws/jbpapp1844/Endpoint.java	                        (rev 0)
+++ stack/native/branches/dlofthouse/JBPAPP-1844/src/test/java/org/jboss/test/ws/jaxws/jbpapp1844/Endpoint.java	2009-04-14 12:28:10 UTC (rev 9821)
@@ -0,0 +1,39 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbpapp1844;
+
+import javax.jws.WebService;
+
+/**
+ * Test Endpoint to configuration using jboss.xml
+ * 
+ * @author darran.lofthouse at jboss.com
+ * @since 31st March 2009
+ * @see https://jira.jboss.org/jira/browse/JBPAPP-1844
+ */
+ at WebService(name = "Endpoint", targetNamespace = "http://ws.jboss.org/jbpapp1844")
+public interface Endpoint
+{
+
+   public String echo(final String message);
+   
+}


Property changes on: stack/native/branches/dlofthouse/JBPAPP-1844/src/test/java/org/jboss/test/ws/jaxws/jbpapp1844/Endpoint.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/branches/dlofthouse/JBPAPP-1844/src/test/java/org/jboss/test/ws/jaxws/jbpapp1844/EndpointImpl.java
===================================================================
--- stack/native/branches/dlofthouse/JBPAPP-1844/src/test/java/org/jboss/test/ws/jaxws/jbpapp1844/EndpointImpl.java	                        (rev 0)
+++ stack/native/branches/dlofthouse/JBPAPP-1844/src/test/java/org/jboss/test/ws/jaxws/jbpapp1844/EndpointImpl.java	2009-04-14 12:28:10 UTC (rev 9821)
@@ -0,0 +1,46 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbpapp1844;
+
+import javax.jws.WebService;
+
+import org.jboss.ws.annotation.EndpointConfig;
+import javax.ejb.Stateless;
+
+/**
+ * Test Endpoint to test jboss.xml configuration
+ * 
+ * @author darran.lofthouse at jboss.com
+ * @since 31st March 2009
+ * @see https://jira.jboss.org/jira/browse/JBWS-2259
+ */
+ at WebService(name = "Endpoint", serviceName = "EndpointService", targetNamespace = "http://ws.jboss.org/jbpapp1844", endpointInterface = "org.jboss.test.ws.jaxws.jbpapp1844.Endpoint")
+ at Stateless
+public class EndpointImpl implements Endpoint
+{
+
+   public String echo(final String message)
+   {
+      return message;
+   }
+
+}


Property changes on: stack/native/branches/dlofthouse/JBPAPP-1844/src/test/java/org/jboss/test/ws/jaxws/jbpapp1844/EndpointImpl.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/branches/dlofthouse/JBPAPP-1844/src/test/java/org/jboss/test/ws/jaxws/jbpapp1844/JBPAPP1844TestCase.java
===================================================================
--- stack/native/branches/dlofthouse/JBPAPP-1844/src/test/java/org/jboss/test/ws/jaxws/jbpapp1844/JBPAPP1844TestCase.java	                        (rev 0)
+++ stack/native/branches/dlofthouse/JBPAPP-1844/src/test/java/org/jboss/test/ws/jaxws/jbpapp1844/JBPAPP1844TestCase.java	2009-04-14 12:28:10 UTC (rev 9821)
@@ -0,0 +1,71 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbpapp1844;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * Test case to test jboss.xml configuration.
+ * 
+ * @author darran.lofthouse at jboss.com
+ * @since 31st March 2009
+ * @see https://jira.jboss.org/jira/browse/JBPAPP-1844
+ */
+public class JBPAPP1844TestCase extends JBossWSTest
+{
+
+   private static Endpoint port;
+
+   public static Test suite()
+   {
+      return new JBossWSTestSetup(JBPAPP1844TestCase.class, "jaxws-jbpapp1844.jar");
+   }
+
+   public void setUp() throws Exception
+   {
+      super.setUp();
+
+      if (port == null)
+      {
+         URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxws-jbpapp1844/EndpointImpl?wsdl");
+         QName serviceName = new QName("http://ws.jboss.org/jbpapp1844", "EndpointService");
+
+         Service service = Service.create(wsdlURL, serviceName);
+         port = service.getPort(Endpoint.class);
+      }
+   }
+
+   public void testCall() throws Exception
+   {
+      String response = port.echo("Hello !!");
+      assertEquals("Response", "XXX", response);
+   }
+
+}


Property changes on: stack/native/branches/dlofthouse/JBPAPP-1844/src/test/java/org/jboss/test/ws/jaxws/jbpapp1844/JBPAPP1844TestCase.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/branches/dlofthouse/JBPAPP-1844/src/test/resources/jaxws/jbpapp1844/META-INF/jaxws-endpoint-config.xml
===================================================================
--- stack/native/branches/dlofthouse/JBPAPP-1844/src/test/resources/jaxws/jbpapp1844/META-INF/jaxws-endpoint-config.xml	                        (rev 0)
+++ stack/native/branches/dlofthouse/JBPAPP-1844/src/test/resources/jaxws/jbpapp1844/META-INF/jaxws-endpoint-config.xml	2009-04-14 12:28:10 UTC (rev 9821)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jaxws-config xmlns="urn:jboss:jaxws-config:2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+              xsi:schemaLocation="urn:jboss:jaxws-config:2.0 jaxws-config_2_0.xsd">
+
+   <client-config>
+      <config-name>Custom Server Config</config-name>
+
+      <post-handler-chains>
+         <javaee:handler-chain>
+            <javaee:handler>
+               <javaee:handler-name> CustomHandler </javaee:handler-name>
+               <javaee:handler-class>org.jboss.test.ws.jaxws.jbpapp1844.CustomHandler</javaee:handler-class>
+            </javaee:handler>           
+         </javaee:handler-chain>
+      </post-handler-chains>
+   </client-config>
+
+</jaxws-config>


Property changes on: stack/native/branches/dlofthouse/JBPAPP-1844/src/test/resources/jaxws/jbpapp1844/META-INF/jaxws-endpoint-config.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/branches/dlofthouse/JBPAPP-1844/src/test/resources/jaxws/jbpapp1844/META-INF/jboss.xml
===================================================================
--- stack/native/branches/dlofthouse/JBPAPP-1844/src/test/resources/jaxws/jbpapp1844/META-INF/jboss.xml	                        (rev 0)
+++ stack/native/branches/dlofthouse/JBPAPP-1844/src/test/resources/jaxws/jbpapp1844/META-INF/jboss.xml	2009-04-14 12:28:10 UTC (rev 9821)
@@ -0,0 +1,17 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+
+<!DOCTYPE jboss PUBLIC
+    "-//JBoss//DTD JBOSS 4.2//EN"
+    "http://www.jboss.org/j2ee/dtd/jboss_4_2.dtd">
+    
+<jboss>
+
+  <webservices>
+    <webservice-description>
+      <webservice-description-name>JBPAPP-1844 - WS</webservice-description-name>    
+      <config-name>Custom Server Config</config-name>
+      <config-file>META-INF/jaxws-endpoint-config.xml</config-file>
+    </webservice-description>
+  </webservices>
+  
+</jboss>
\ No newline at end of file


Property changes on: stack/native/branches/dlofthouse/JBPAPP-1844/src/test/resources/jaxws/jbpapp1844/META-INF/jboss.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF




More information about the jbossws-commits mailing list