[jboss-svn-commits] JBossWS SVN: r701 - in branches/jbossws-1.0/src: main/java/org/jboss/ws/metadata/wsdl main/java/org/jboss/ws/utils test/ant test/java/org/jboss/test/ws test/java/org/jboss/test/ws/jbws1124 test/resources test/resources/jbws1124 test/resources/jbws1124/META-INF test/resources/jbws1124/WEB-INF test/resources/jbws1124/WEB-INF/wsdl
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Aug 7 11:17:58 EDT 2006
Author: thomas.diesler at jboss.com
Date: 2006-08-07 11:17:45 -0400 (Mon, 07 Aug 2006)
New Revision: 701
Added:
branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDLLocatorImpl.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/utils/JBossWSEntityResolver.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jbws1124/
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jbws1124/JBWS1124TestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jbws1124/TestEndpoint.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jbws1124/TestEndpointImpl.java
branches/jbossws-1.0/src/test/resources/jbws1124/
branches/jbossws-1.0/src/test/resources/jbws1124/META-INF/
branches/jbossws-1.0/src/test/resources/jbws1124/META-INF/application-client.xml
branches/jbossws-1.0/src/test/resources/jbws1124/META-INF/jboss-client.xml
branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/
branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/jaxrpc-mapping.xml
branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/jboss-web.xml
branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/test-resource.txt
branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/web.xml
branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/webservices.xml
branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/wsdl/
branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/wsdl/TestService.wsdl
branches/jbossws-1.0/src/test/resources/jbws1124/wstools-config.xml
Modified:
branches/jbossws-1.0/src/test/ant/build-jars.xml
Log:
[JBWS-1124] Scoped class loading domains for WS endpoints
Added: branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDLLocatorImpl.java
===================================================================
--- branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDLLocatorImpl.java 2006-08-07 13:50:14 UTC (rev 700)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDLLocatorImpl.java 2006-08-07 15:17:45 UTC (rev 701)
@@ -0,0 +1,159 @@
+/*
+ * 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.wsdl;
+
+// $Id$
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import javax.wsdl.xml.WSDLLocator;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.WSException;
+import org.xml.sax.EntityResolver;
+import org.xml.sax.InputSource;
+
+/* A WSDLLocator that can handle wsdl imports
+ */
+class WSDLLocatorImpl implements WSDLLocator
+{
+ // provide logging
+ private static final Logger log = Logger.getLogger(WSDLDefinitionsFactory.class);
+
+ private EntityResolver entityResolver;
+ private URL wsdlURL;
+ private String latestImportURI;
+
+ public WSDLLocatorImpl(EntityResolver entityResolver, URL wsdlFile)
+ {
+ if (wsdlFile == null)
+ throw new IllegalArgumentException("WSDL file argument cannot be null");
+
+ this.entityResolver = entityResolver;
+ this.wsdlURL = wsdlFile;
+ }
+
+ public InputSource getBaseInputSource()
+ {
+ log.trace("getBaseInputSource [wsdlUrl=" + wsdlURL + "]");
+ try
+ {
+ InputStream is = wsdlURL.openStream();
+ if (is == null)
+ throw new IllegalArgumentException("Cannot obtain wsdl from [" + wsdlURL + "]");
+
+ return new InputSource(is);
+ }
+ catch (IOException e)
+ {
+ throw new RuntimeException("Cannot access wsdl from [" + wsdlURL + "], " + e.getMessage());
+ }
+ }
+
+ public String getBaseURI()
+ {
+ return wsdlURL.toExternalForm();
+ }
+
+ public InputSource getImportInputSource(String parent, String resource)
+ {
+ log.trace("getImportInputSource [parent=" + parent + ",resource=" + resource + "]");
+
+ URL parentURL = null;
+ try
+ {
+ parentURL = new URL(parent);
+ }
+ catch (MalformedURLException e)
+ {
+ log.error("Not a valid URL: " + parent);
+ return null;
+ }
+
+ String wsdlImport = null;
+ String external = parentURL.toExternalForm();
+
+ // An external URL
+ if (resource.startsWith("http://") || resource.startsWith("https://"))
+ {
+ wsdlImport = resource;
+ }
+
+ // Absolute path
+ else if (resource.startsWith("/"))
+ {
+ String beforePath = external.substring(0, external.indexOf(parentURL.getPath()));
+ wsdlImport = beforePath + resource;
+ }
+
+ // A relative path
+ else
+ {
+ String parentDir = external.substring(0, external.lastIndexOf("/"));
+
+ // remove references to current dir
+ while (resource.startsWith("./"))
+ resource = resource.substring(2);
+
+ // remove references to parentdir
+ while (resource.startsWith("../"))
+ {
+ parentDir = parentDir.substring(0, parentDir.lastIndexOf("/"));
+ resource = resource.substring(3);
+ }
+
+ wsdlImport = parentDir + "/" + resource;
+ }
+
+ try
+ {
+ log.trace("Trying to resolve: " + wsdlImport);
+ InputSource inputSource = entityResolver.resolveEntity(wsdlImport, wsdlImport);
+ if (inputSource != null)
+ {
+ latestImportURI = wsdlImport;
+ }
+ else
+ {
+ throw new IllegalArgumentException("Cannot resolve imported resource: " + wsdlImport);
+ }
+
+ return inputSource;
+ }
+ catch (RuntimeException rte)
+ {
+ throw rte;
+ }
+ catch (Exception e)
+ {
+ throw new WSException("Cannot access imported wsdl [" + wsdlImport + "], " + e.getMessage());
+ }
+ }
+
+ public String getLatestImportURI()
+ {
+ return latestImportURI;
+ }
+}
Property changes on: branches/jbossws-1.0/src/main/java/org/jboss/ws/metadata/wsdl/WSDLLocatorImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/jbossws-1.0/src/main/java/org/jboss/ws/utils/JBossWSEntityResolver.java
===================================================================
--- branches/jbossws-1.0/src/main/java/org/jboss/ws/utils/JBossWSEntityResolver.java 2006-08-07 13:50:14 UTC (rev 700)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/utils/JBossWSEntityResolver.java 2006-08-07 15:17:45 UTC (rev 701)
@@ -0,0 +1,82 @@
+/*
+ * 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.utils;
+
+// $Id: $
+
+import java.io.IOException;
+import java.net.URL;
+
+import org.jboss.logging.Logger;
+import org.jboss.util.xml.JBossEntityResolver;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+
+/**
+ * Dynamically register the JBossWS entities.
+ *
+ * @author Thomas.Diesler at jboss.org
+ * @since 02-Aug-2006
+ */
+public class JBossWSEntityResolver extends JBossEntityResolver
+{
+ // provide logging
+ private static final Logger log = Logger.getLogger(JBossWSEntityResolver.class);
+
+ public JBossWSEntityResolver()
+ {
+ registerEntity("urn:jboss:jaxrpc-config:2.0", "schema/jaxrpc-config_2_0.xsd");
+ registerEntity("urn:jboss:jaxws-config:2.0", "schema/jaxws-config_2_0.xsd");
+ registerEntity("http://java.sun.com/xml/ns/javaee", "schema/handler-chain.xsd");
+ registerEntity("http://www.w3.org/2005/08/addressing", "schema/ws-addr.xsd");
+ registerEntity("http://schemas.xmlsoap.org/ws/2004/08/eventing", "eventing.xsd");
+ }
+
+ public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
+ {
+ log.debug("resolveEntity: [pub=" + publicId + ",sysid=" + systemId + "]");
+ InputSource inputSource = super.resolveEntity(publicId, systemId);
+ return inputSource;
+ }
+
+ public URL resolveNamespaceURI(String nsURI)
+ {
+ URL url = null;
+
+ String resource = (String)getEntityMap().get(nsURI);
+ if (resource != null)
+ {
+ ClassLoader loader = Thread.currentThread().getContextClassLoader();
+ url = loader.getResource(resource);
+ if( url == null )
+ {
+ if( resource.endsWith(".dtd") )
+ resource = "dtd/" + resource;
+ else if( resource.endsWith(".xsd") )
+ resource = "schema/" + resource;
+ url = loader.getResource(resource);
+ }
+ }
+
+ return url;
+ }
+}
Property changes on: branches/jbossws-1.0/src/main/java/org/jboss/ws/utils/JBossWSEntityResolver.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: branches/jbossws-1.0/src/test/ant/build-jars.xml
===================================================================
--- branches/jbossws-1.0/src/test/ant/build-jars.xml 2006-08-07 13:50:14 UTC (rev 700)
+++ branches/jbossws-1.0/src/test/ant/build-jars.xml 2006-08-07 15:17:45 UTC (rev 701)
@@ -418,6 +418,55 @@
</metainf>
</ear>
+ <!-- jbossws-jbws1124one -->
+ <copy todir="${build.test.dir}/resources" overwrite="true">
+ <fileset dir="${test.resources.dir}">
+ <include name="jbws1124/META-INF/jboss-client.xml"/>
+ <include name="jbws1124/WEB-INF/test-resource.txt"/>
+ <include name="jbws1124/WEB-INF/jboss-web.xml"/>
+ </fileset>
+ <filterset>
+ <filter token="jbws1124.domain" value="jbws1124one"/>
+ </filterset>
+ </copy>
+ <war warfile="${build.test.dir}/libs/jbossws-jbws1124one.war" webxml="${build.test.dir}/resources/jbws1124/WEB-INF/web.xml">
+ <classes dir="${build.test.dir}/classes">
+ <include name="org/jboss/test/ws/jbws1124/TestEndpoint.class"/>
+ <include name="org/jboss/test/ws/jbws1124/TestEndpointImpl.class"/>
+ </classes>
+ <webinf dir="${build.test.dir}/resources/jbws1124/WEB-INF">
+ <include name="webservices.xml"/>
+ <include name="jaxrpc-mapping.xml"/>
+ <include name="test-resource.txt"/>
+ <include name="jboss-web.xml"/>
+ <include name="wsdl/**"/>
+ </webinf>
+ </war>
+ <!-- jbossws-jbws1124two -->
+ <copy todir="${build.test.dir}/resources" overwrite="true">
+ <fileset dir="${test.resources.dir}">
+ <include name="jbws1124/META-INF/jboss-client.xml"/>
+ <include name="jbws1124/WEB-INF/test-resource.txt"/>
+ <include name="jbws1124/WEB-INF/jboss-web.xml"/>
+ </fileset>
+ <filterset>
+ <filter token="jbws1124.domain" value="jbws1124two"/>
+ </filterset>
+ </copy>
+ <war warfile="${build.test.dir}/libs/jbossws-jbws1124two.war" webxml="${build.test.dir}/resources/jbws1124/WEB-INF/web.xml">
+ <classes dir="${build.test.dir}/classes">
+ <include name="org/jboss/test/ws/jbws1124/TestEndpoint.class"/>
+ <include name="org/jboss/test/ws/jbws1124/TestEndpointImpl.class"/>
+ </classes>
+ <webinf dir="${build.test.dir}/resources/jbws1124/WEB-INF">
+ <include name="webservices.xml"/>
+ <include name="jaxrpc-mapping.xml"/>
+ <include name="test-resource.txt"/>
+ <include name="jboss-web.xml"/>
+ <include name="wsdl/**"/>
+ </webinf>
+ </war>
+
<!-- jbossws-jbws231 -->
<war warfile="${build.test.dir}/libs/jbossws-jbws231.war" webxml="${build.test.dir}/resources/jbws231/WEB-INF/web.xml">
<classes dir="${build.test.dir}/classes">
Added: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jbws1124/JBWS1124TestCase.java
===================================================================
--- branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jbws1124/JBWS1124TestCase.java 2006-08-07 13:50:14 UTC (rev 700)
+++ branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jbws1124/JBWS1124TestCase.java 2006-08-07 15:17:45 UTC (rev 701)
@@ -0,0 +1,74 @@
+/*
+ * 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.test.ws.jbws1124;
+
+import java.io.File;
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.rpc.Service;
+
+import junit.framework.Test;
+
+import org.jboss.test.ws.JBossWSTest;
+import org.jboss.test.ws.JBossWSTestSetup;
+import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
+
+/**
+ * Scoped class loading domains for WS endpoints
+ *
+ * http://jira.jboss.org/jira/browse/JBWS-1124
+ *
+ * @author Thomas.Diesler at jboss.org
+ * @since 07-August-2006
+ */
+public class JBWS1124TestCase extends JBossWSTest
+{
+ public static Test suite() throws Exception
+ {
+ return JBossWSTestSetup.newTestSetup(JBWS1124TestCase.class, "jbossws-jbws1124one.war, jbossws-jbws1124two.war");
+ }
+
+ public void testEnpointOne() throws Exception
+ {
+ ServiceFactoryImpl factory = new ServiceFactoryImpl();
+ URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jbws1124one/TestEndpoint?wsdl");
+ URL mappingURL = new File("resources/jbws1124/WEB-INF/jaxrpc-mapping.xml").toURL();
+ QName qname = new QName("http://org.jboss.test.ws/jbws1124", "TestService");
+ Service service = factory.createService(wsdlURL, qname, mappingURL);
+ TestEndpoint port = (TestEndpoint)service.getPort(TestEndpoint.class);
+ assertEquals("jbws1124one", port.getResourceString());
+ }
+
+
+ public void testEnpointTwo() throws Exception
+ {
+ ServiceFactoryImpl factory = new ServiceFactoryImpl();
+ URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jbws1124two/TestEndpoint?wsdl");
+ URL mappingURL = new File("resources/jbws1124/WEB-INF/jaxrpc-mapping.xml").toURL();
+ QName qname = new QName("http://org.jboss.test.ws/jbws1124", "TestService");
+ Service service = factory.createService(wsdlURL, qname, mappingURL);
+ TestEndpoint port = (TestEndpoint)service.getPort(TestEndpoint.class);
+ assertEquals("jbws1124two", port.getResourceString());
+ }
+
+}
Property changes on: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jbws1124/JBWS1124TestCase.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jbws1124/TestEndpoint.java
===================================================================
--- branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jbws1124/TestEndpoint.java 2006-08-07 13:50:14 UTC (rev 700)
+++ branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jbws1124/TestEndpoint.java 2006-08-07 15:17:45 UTC (rev 701)
@@ -0,0 +1,36 @@
+/*
+ * 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.test.ws.jbws1124;
+
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+
+/**
+ * @author Thomas.Diesler at jboss.org
+ * @since 07-August-2006
+ */
+public interface TestEndpoint extends Remote
+{
+
+ public String getResourceString() throws RemoteException;
+
+}
Property changes on: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jbws1124/TestEndpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jbws1124/TestEndpointImpl.java
===================================================================
--- branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jbws1124/TestEndpointImpl.java 2006-08-07 13:50:14 UTC (rev 700)
+++ branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jbws1124/TestEndpointImpl.java 2006-08-07 15:17:45 UTC (rev 701)
@@ -0,0 +1,59 @@
+/*
+ * 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.test.ws.jbws1124;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.rmi.RemoteException;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.WSException;
+
+/**
+ * @author Thomas.Diesler at jboss.org
+ * @since 07-August-2006
+ */
+public class TestEndpointImpl implements TestEndpoint
+{
+ private Logger log = Logger.getLogger(TestEndpointImpl.class);
+
+
+ public String getResourceString() throws RemoteException
+ {
+ try
+ {
+ InputStream ins = getClass().getClassLoader().getResourceAsStream("WEB-INF/test-resource.txt");
+ String line = new BufferedReader(new InputStreamReader(ins)).readLine();
+
+ log.info(line);
+
+ return line;
+ }
+ catch (IOException ex)
+ {
+ throw new WSException(ex);
+ }
+ }
+
+}
Property changes on: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jbws1124/TestEndpointImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/jbossws-1.0/src/test/resources/jbws1124/META-INF/application-client.xml
===================================================================
--- branches/jbossws-1.0/src/test/resources/jbws1124/META-INF/application-client.xml 2006-08-07 13:50:14 UTC (rev 700)
+++ branches/jbossws-1.0/src/test/resources/jbws1124/META-INF/application-client.xml 2006-08-07 15:17:45 UTC (rev 701)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<application-client xmlns="http://java.sun.com/xml/ns/j2ee"
+ 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/application-client_1_4.xsd"
+ version="1.4">
+
+ <display-name>TestService</display-name>
+
+ <service-ref>
+ <service-ref-name>service/TestService</service-ref-name>
+ <service-interface>javax.xml.rpc.Service</service-interface>
+ <wsdl-file>META-INF/wsdl/TestService.wsdl</wsdl-file>
+ <jaxrpc-mapping-file>META-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
+ <port-component-ref>
+ <service-endpoint-interface>org.jboss.test.ws.jbws1124.TestEndpoint</service-endpoint-interface>
+ </port-component-ref>
+ </service-ref>
+
+</application-client>
+
Property changes on: branches/jbossws-1.0/src/test/resources/jbws1124/META-INF/application-client.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/jbossws-1.0/src/test/resources/jbws1124/META-INF/jboss-client.xml
===================================================================
--- branches/jbossws-1.0/src/test/resources/jbws1124/META-INF/jboss-client.xml 2006-08-07 13:50:14 UTC (rev 700)
+++ branches/jbossws-1.0/src/test/resources/jbws1124/META-INF/jboss-client.xml 2006-08-07 15:17:45 UTC (rev 701)
@@ -0,0 +1,15 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+
+<!DOCTYPE jboss-client PUBLIC
+ "-//JBoss//DTD Application Client 4.0//EN"
+ "http://www.jboss.org/j2ee/dtd/jboss-client_4_0.dtd">
+
+<jboss-client>
+ <jndi-name>jbossws-client</jndi-name>
+
+ <service-ref>
+ <service-ref-name>service/TestService</service-ref-name>
+ <wsdl-override>http://@jbosstest.host.name@:8080/@jbws1124.domain@/TestEndpoint?wsdl</wsdl-override>
+ </service-ref>
+
+</jboss-client>
Property changes on: branches/jbossws-1.0/src/test/resources/jbws1124/META-INF/jboss-client.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/jaxrpc-mapping.xml
===================================================================
--- branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/jaxrpc-mapping.xml 2006-08-07 13:50:14 UTC (rev 700)
+++ branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/jaxrpc-mapping.xml 2006-08-07 15:17:45 UTC (rev 701)
@@ -0,0 +1,28 @@
+<?xml version='1.0' encoding='UTF-8'?><java-wsdl-mapping version='1.1' xmlns='http://java.sun.com/xml/ns/j2ee' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd'>
+ <package-mapping>
+ <package-type>org.jboss.test.ws.jbws1124</package-type>
+ <namespaceURI>http://org.jboss.test.ws/jbws1124/types</namespaceURI>
+ </package-mapping>
+ <service-interface-mapping>
+ <service-interface>org.jboss.test.ws.jbws1124.TestService</service-interface>
+ <wsdl-service-name xmlns:serviceNS='http://org.jboss.test.ws/jbws1124'>serviceNS:TestService</wsdl-service-name>
+ <port-mapping>
+ <port-name>TestEndpointPort</port-name>
+ <java-port-name>TestEndpointPort</java-port-name>
+ </port-mapping>
+ </service-interface-mapping>
+ <service-endpoint-interface-mapping>
+ <service-endpoint-interface>org.jboss.test.ws.jbws1124.TestEndpoint</service-endpoint-interface>
+ <wsdl-port-type xmlns:portTypeNS='http://org.jboss.test.ws/jbws1124'>portTypeNS:TestEndpoint</wsdl-port-type>
+ <wsdl-binding xmlns:bindingNS='http://org.jboss.test.ws/jbws1124'>bindingNS:TestEndpointBinding</wsdl-binding>
+ <service-endpoint-method-mapping>
+ <java-method-name>getResourceString</java-method-name>
+ <wsdl-operation>getResourceString</wsdl-operation>
+ <wsdl-return-value-mapping>
+ <method-return-value>java.lang.String</method-return-value>
+ <wsdl-message xmlns:wsdlMsgNS='http://org.jboss.test.ws/jbws1124'>wsdlMsgNS:TestEndpoint_getResourceStringResponse</wsdl-message>
+ <wsdl-message-part-name>result</wsdl-message-part-name>
+ </wsdl-return-value-mapping>
+ </service-endpoint-method-mapping>
+ </service-endpoint-interface-mapping>
+</java-wsdl-mapping>
\ No newline at end of file
Property changes on: branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/jaxrpc-mapping.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/jboss-web.xml
===================================================================
--- branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/jboss-web.xml 2006-08-07 13:50:14 UTC (rev 700)
+++ branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/jboss-web.xml 2006-08-07 15:17:45 UTC (rev 701)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jboss-web>
+
+ <class-loading>
+ <loader-repository> jbossws.jbws1124:domain=@jbws1124.domain@ </loader-repository>
+ </class-loading>
+
+ <context-root>/@jbws1124.domain@</context-root>
+
+</jboss-web>
+
Property changes on: branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/jboss-web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/test-resource.txt
===================================================================
--- branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/test-resource.txt 2006-08-07 13:50:14 UTC (rev 700)
+++ branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/test-resource.txt 2006-08-07 15:17:45 UTC (rev 701)
@@ -0,0 +1 @@
+ at jbws1124.domain@
Property changes on: branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/test-resource.txt
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/web.xml
===================================================================
--- branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/web.xml 2006-08-07 13:50:14 UTC (rev 700)
+++ branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/web.xml 2006-08-07 15:17:45 UTC (rev 701)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
+ 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_4.xsd"
+ version="2.4">
+
+ <servlet>
+ <servlet-name>TestEndpoint</servlet-name>
+ <servlet-class>org.jboss.test.ws.jbws1124.TestEndpointImpl</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>TestEndpoint</servlet-name>
+ <url-pattern>/TestEndpoint</url-pattern>
+ </servlet-mapping>
+
+</web-app>
+
Property changes on: branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/webservices.xml
===================================================================
--- branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/webservices.xml 2006-08-07 13:50:14 UTC (rev 700)
+++ branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/webservices.xml 2006-08-07 15:17:45 UTC (rev 701)
@@ -0,0 +1,15 @@
+<webservices version='1.1' xmlns='http://java.sun.com/xml/ns/j2ee' xmlns:impl='http://org.jboss.test.ws/jbws1124' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd'>
+ <webservice-description>
+ <webservice-description-name>TestService</webservice-description-name>
+ <wsdl-file>WEB-INF/wsdl/TestService.wsdl</wsdl-file>
+ <jaxrpc-mapping-file>WEB-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
+ <port-component>
+ <port-component-name>TestEndpointPort</port-component-name>
+ <wsdl-port>impl:TestEndpointPort</wsdl-port>
+ <service-endpoint-interface>org.jboss.test.ws.jbws1124.TestEndpoint</service-endpoint-interface>
+ <service-impl-bean>
+ <servlet-link>TestEndpoint</servlet-link>
+ </service-impl-bean>
+ </port-component>
+ </webservice-description>
+</webservices>
\ No newline at end of file
Property changes on: branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/webservices.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/wsdl/TestService.wsdl
===================================================================
--- branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/wsdl/TestService.wsdl 2006-08-07 13:50:14 UTC (rev 700)
+++ branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/wsdl/TestService.wsdl 2006-08-07 15:17:45 UTC (rev 701)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions name='TestService' targetNamespace='http://org.jboss.test.ws/jbws1124' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://org.jboss.test.ws/jbws1124' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
+ <types/>
+ <message name='TestEndpoint_getResourceString'/>
+ <message name='TestEndpoint_getResourceStringResponse'>
+ <part name='result' type='xsd:string'/>
+ </message>
+ <portType name='TestEndpoint'>
+ <operation name='getResourceString'>
+ <input message='tns:TestEndpoint_getResourceString'/>
+ <output message='tns:TestEndpoint_getResourceStringResponse'/>
+ </operation>
+ </portType>
+ <binding name='TestEndpointBinding' type='tns:TestEndpoint'>
+ <soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>
+ <operation name='getResourceString'>
+ <soap:operation soapAction=''/>
+ <input>
+ <soap:body namespace='http://org.jboss.test.ws/jbws1124' use='literal'/>
+ </input>
+ <output>
+ <soap:body namespace='http://org.jboss.test.ws/jbws1124' use='literal'/>
+ </output>
+ </operation>
+ </binding>
+ <service name='TestService'>
+ <port binding='tns:TestEndpointBinding' name='TestEndpointPort'>
+ <soap:address location='REPLACE_WITH_ACTUAL_URL'/>
+ </port>
+ </service>
+</definitions>
\ No newline at end of file
Property changes on: branches/jbossws-1.0/src/test/resources/jbws1124/WEB-INF/wsdl/TestService.wsdl
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/jbossws-1.0/src/test/resources/jbws1124/wstools-config.xml
===================================================================
--- branches/jbossws-1.0/src/test/resources/jbws1124/wstools-config.xml 2006-08-07 13:50:14 UTC (rev 700)
+++ branches/jbossws-1.0/src/test/resources/jbws1124/wstools-config.xml 2006-08-07 15:17:45 UTC (rev 701)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ wstools -cp ../../../../output/tests/classes -dest ./WEB-INF -config wstools-config.xml
+-->
+
+<configuration xmlns="http://www.jboss.org/jbossws-tools" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.jboss.org/jbossws-tools http://www.jboss.org/jbossws-tools/schema/jbossws-tool_1_0.xsd">
+ <java-wsdl>
+ <service name="TestService" endpoint="org.jboss.test.ws.jbws1124.TestEndpoint" style="rpc">
+ </service>
+ <namespaces target-namespace="http://org.jboss.test.ws/jbws1124" type-namespace="http://org.jboss.test.ws/jbws1124/types"/>
+ <mapping file="jaxrpc-mapping.xml"/>
+ <webservices servlet-link="TestEndpoint"/>
+ </java-wsdl>
+</configuration>
Property changes on: branches/jbossws-1.0/src/test/resources/jbws1124/wstools-config.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
More information about the jboss-svn-commits
mailing list