JBossWS SVN: r2917 - branches/dlofthouse.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2007-04-25 06:08:25 -0400 (Wed, 25 Apr 2007)
New Revision: 2917
Added:
branches/dlofthouse/JBWS-1625/
Log:
Branch for JBWS-1625
Copied: branches/dlofthouse/JBWS-1625 (from rev 2916, trunk)
17 years, 8 months
JBossWS SVN: r2916 - in trunk: integration/src/main/java/org/jboss/ws/integration/deployment and 28 other directories.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2007-04-25 06:07:39 -0400 (Wed, 25 Apr 2007)
New Revision: 2916
Added:
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/DeployerHook.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceLifecycleDeployer.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AbstractDeployerHook.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AbstractDeployerHookEJB.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AbstractDeployerHookJSE.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AbstractInvocationHandler.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AbstractServiceEndpointServlet.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/ArchiveDeployerHook.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AssignEndpointHandlersDeployer.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AssignEndpointMetaDataDeployer.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/BasicDeployerHook.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/ClassLoaderInjectionDeployer.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/DeployerHookJAXRPCEJB21.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/DeployerHookJAXRPCJSE.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/DeployerHookJAXWSEJB3.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/DeployerHookJAXWSJSE.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/EagerInitalizeDeployer.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/EndpointLifecycleDeployer.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/InvocationHandlerJSE.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/LifecycleHandlerImpl.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/ModifyWebMetaDataDeployer.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/RequestHandlerImpl.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/ServiceEndpointServlet.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/UnifiedDeploymentInfoDeployer.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/UnifiedMetaDataDeployer.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/WSDLPublisherDeployer.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/WebXMLRewritingDeployer.java
trunk/integration/src/main/java/org/jboss/ws/integration/BasicLifecycleHandler.java
trunk/integration/src/main/java/org/jboss/ws/integration/EndpointHandler.java
trunk/integration/src/main/java/org/jboss/ws/integration/deployment/BasicDeployment.java
trunk/integration/src/main/java/org/jboss/ws/integration/deployment/Deployment.java
trunk/integration/src/main/java/org/jboss/ws/integration/deployment/WSDeploymentException.java
trunk/integration/src/main/java/org/jboss/ws/integration/invocation/
trunk/integration/src/main/java/org/jboss/ws/integration/invocation/InvocationHandler.java
trunk/integration/src/main/java/org/jboss/ws/integration/message/
trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServletRequestContext.java
Removed:
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceDeployer.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceStartStopDeployer.java
trunk/integration/src/main/java/org/jboss/ws/integration/deployment/BasicDeploymentUnit.java
trunk/integration/src/main/java/org/jboss/ws/integration/deployment/DeploymentException.java
trunk/integration/src/main/java/org/jboss/ws/integration/deployment/DeploymentUnit.java
trunk/integration/src/main/java/org/jboss/ws/integration/deployment/EndpointNameDeployer.java
trunk/integration/src/main/java/org/jboss/ws/integration/message/
trunk/jbossws-core/src/java/org/jboss/ws/core/server/EndpointContext.java
trunk/jbossws-core/src/java/org/jboss/ws/core/utils/ObjectNameFactory.java
Modified:
trunk/integration-jboss40/src/java/org/jboss/ws/integration/jboss40/WebServiceClientDeployer.java
trunk/integration-jboss40/src/java/org/jboss/ws/integration/jboss40/WebServiceClientDeployerMBean.java
trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptor.java
trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB21.java
trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB21MBean.java
trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB3.java
trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB3MBean.java
trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorJSE.java
trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorJSEMBean.java
trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorNestedJSE.java
trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorNestedJSEMBean.java
trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/ServerConfigImpl.java
trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/ServiceEndpointInvokerEJB21.java
trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/ServiceEndpointInvokerEJB3.java
trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/jms/MessageDispatcher.java
trunk/integration-jboss50/build.xml
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/AbstractDeployer.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/AbstractDeployerJSE.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/DeploymentInfoAdaptor.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/JAXRPCDeployerEJB21.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/JAXRPCDeployerJSE.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/JAXWSDeployerEJB3.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/JAXWSDeployerJSE.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/ServerConfigImpl.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/ServiceEndpointInvokerEJB21.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/ServiceEndpointInvokerEJB3.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/ServiceEndpointLifecycleDeployer.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceAbstractDeployer.java
trunk/integration-jboss50/src/resources/jbossws.deployer/META-INF/jbossws-deployer-beans.xml
trunk/integration-jboss50/src/resources/jbossws.sar/META-INF/jbossws-beans.xml
trunk/integration-tomcat/src/java/org/jboss/ws/integration/tomcat/TomcatServiceEndpointServlet.java
trunk/integration/src/main/java/org/jboss/ws/integration/BasicEndpoint.java
trunk/integration/src/main/java/org/jboss/ws/integration/BasicService.java
trunk/integration/src/main/java/org/jboss/ws/integration/Endpoint.java
trunk/integration/src/main/java/org/jboss/ws/integration/LifecycleHandler.java
trunk/integration/src/main/java/org/jboss/ws/integration/RequestHandler.java
trunk/integration/src/main/java/org/jboss/ws/integration/Service.java
trunk/integration/src/main/java/org/jboss/ws/integration/deployment/AbstractDeployer.java
trunk/integration/src/main/java/org/jboss/ws/integration/deployment/BasicDeploymentContext.java
trunk/integration/src/main/java/org/jboss/ws/integration/deployment/BasicDeploymentManager.java
trunk/integration/src/main/java/org/jboss/ws/integration/deployment/Deployer.java
trunk/integration/src/main/java/org/jboss/ws/integration/deployment/DeploymentContext.java
trunk/integration/src/main/java/org/jboss/ws/integration/deployment/DeploymentManager.java
trunk/integration/src/main/java/org/jboss/ws/integration/deployment/DeploymentManagerFactory.java
trunk/integration/src/main/java/org/jboss/ws/integration/deployment/RegisteringDeployer.java
trunk/integration/src/main/java/org/jboss/ws/integration/deployment/ValidatingDeployer.java
trunk/integration/src/main/java/org/jboss/ws/integration/management/EndpointRegistryFactory.java
trunk/integration/src/test/java/org/jboss/test/ws/integration/basic/BasicDeploymentTest.java
trunk/jbossws-core/src/java/org/jboss/ws/core/jaxrpc/ServletEndpointContextImpl.java
trunk/jbossws-core/src/java/org/jboss/ws/core/jaxrpc/handler/HandlerDelegateJAXRPC.java
trunk/jbossws-core/src/java/org/jboss/ws/core/jaxws/handler/HandlerDelegateJAXWS.java
trunk/jbossws-core/src/java/org/jboss/ws/core/server/AbstractServiceEndpointServlet.java
trunk/jbossws-core/src/java/org/jboss/ws/core/server/JAXWSDeployment.java
trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServerHandlerDelegate.java
trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServiceEndpoint.java
trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServiceEndpointDeployer.java
trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServiceEndpointInfo.java
trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServiceEndpointInvokerJSE.java
trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServiceEndpointManager.java
trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServiceEndpointManagerMBean.java
trunk/jbossws-core/src/java/org/jboss/ws/core/server/UnifiedDeploymentInfo.java
trunk/jbossws-core/src/java/org/jboss/ws/core/server/WSDLFilePublisher.java
trunk/jbossws-core/src/java/org/jboss/ws/core/server/WSDLRequestHandler.java
trunk/jbossws-core/src/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManager.java
trunk/jbossws-core/src/java/org/jboss/ws/metadata/builder/MetaDataBuilder.java
trunk/jbossws-core/src/java/org/jboss/ws/metadata/builder/jaxrpc/JAXRPCClientDeployment.java
trunk/jbossws-core/src/java/org/jboss/ws/metadata/builder/jaxrpc/JAXRPCDeployment.java
trunk/jbossws-core/src/java/org/jboss/ws/metadata/builder/jaxws/JAXWSServerMetaDataBuilder.java
trunk/jbossws-core/src/java/org/jboss/ws/metadata/webservices/WebservicesMetaData.java
trunk/jbossws-core/src/java/org/jboss/ws/tools/jaxws/impl/WSContractProviderImpl.java
trunk/jbossws-tests/src/java/org/jboss/test/ws/JBossWSTestHelper.java
trunk/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1115/JBWS1115TestCase.java
trunk/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/samples/dynamichandler/DynamicHandlerTestCase.java
trunk/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/samples/wsbpel/JbpmBpelTestSetup.java
trunk/jbossws-tests/src/java/org/jboss/test/ws/jaxws/samples/jaxr/scout/JaxrBaseTest.java
Log:
More general purpose WS integration
Modified: trunk/integration/src/main/java/org/jboss/ws/integration/BasicEndpoint.java
===================================================================
--- trunk/integration/src/main/java/org/jboss/ws/integration/BasicEndpoint.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration/src/main/java/org/jboss/ws/integration/BasicEndpoint.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -55,11 +55,13 @@
*/
package org.jboss.ws.integration;
-import java.util.List;
+import java.util.HashMap;
+import java.util.Map;
import javax.management.ObjectName;
-import javax.xml.transform.Source;
+import org.jboss.ws.integration.invocation.InvocationHandler;
+
/**
* A general JAXWS endpoint.
*
@@ -71,14 +73,17 @@
private Service service;
private ObjectName name;
private Class endpointImpl;
- private List<Source> metaData;
+ private EndpointState state;
private RequestHandler requestHandler;
+ private InvocationHandler invocationHandler;
private LifecycleHandler lifecycleHandler;
+ private Map<Class, Object> metaData = new HashMap<Class, Object>();
public BasicEndpoint(Service service, Class impl)
{
this.service = service;
this.endpointImpl = impl;
+ this.state = EndpointState.UNDEFINED;
}
public Service getService()
@@ -101,26 +106,16 @@
this.endpointImpl = endpointImpl;
}
- public LifecycleHandler getLifecycleHandler()
+ public EndpointState getState()
{
- return lifecycleHandler;
+ return state;
}
- public void setLifecycleHandler(LifecycleHandler lifecycleHandler)
+ public void setState(EndpointState state)
{
- this.lifecycleHandler = lifecycleHandler;
+ this.state = state;
}
- public List<Source> getMetaData()
- {
- return metaData;
- }
-
- public void addMetaData(Source metaData)
- {
- this.metaData.add(metaData);
- }
-
public ObjectName getName()
{
return name;
@@ -136,8 +131,43 @@
return requestHandler;
}
- public void setRequestHandler(RequestHandler requestHandler)
+ public void setRequestHandler(RequestHandler handler)
{
- this.requestHandler = requestHandler;
+ this.requestHandler = handler;
}
+
+ public LifecycleHandler getLifecycleHandler()
+ {
+ return lifecycleHandler;
+ }
+
+ public void setLifecycleHandler(LifecycleHandler handler)
+ {
+ this.lifecycleHandler = handler;
+ }
+
+ public InvocationHandler getInvocationHandler()
+ {
+ return invocationHandler;
+ }
+
+ public void setInvocationHandler(InvocationHandler handler)
+ {
+ this.invocationHandler = handler;
+ }
+
+ public <T> T addMetaData(Class<T> key, Object value)
+ {
+ return (T)metaData.put(key, value);
+ }
+
+ public <T> T getMetaData(Class<T> key)
+ {
+ return (T)metaData.get(key);
+ }
+
+ public <T> T removeMetaData(Class<T> key)
+ {
+ return (T)metaData.get(key);
+ }
}
Added: trunk/integration/src/main/java/org/jboss/ws/integration/BasicLifecycleHandler.java
===================================================================
--- trunk/integration/src/main/java/org/jboss/ws/integration/BasicLifecycleHandler.java (rev 0)
+++ trunk/integration/src/main/java/org/jboss/ws/integration/BasicLifecycleHandler.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,81 @@
+/*
+ * 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.integration;
+
+//$Id$
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.integration.Endpoint;
+import org.jboss.ws.integration.LifecycleHandler;
+import org.jboss.ws.integration.Endpoint.EndpointState;
+import org.jboss.ws.integration.invocation.InvocationHandler;
+
+/**
+ * A basic lifecycle handler
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 31-Oct-2006
+ */
+public class BasicLifecycleHandler implements LifecycleHandler
+{
+ // provide logging
+ protected final Logger log = Logger.getLogger(getClass());
+
+ public void create(Endpoint endpoint)
+ {
+ log.info("Create: " + endpoint.getName());
+
+ // Initialize the invoker
+ InvocationHandler invoker = endpoint.getInvocationHandler();
+ invoker.init(endpoint);
+
+ endpoint.setState(EndpointState.CREATED);
+ }
+
+ public void start(Endpoint endpoint)
+ {
+ log.info("Start: " + endpoint.getName());
+
+ EndpointState state = endpoint.getState();
+ if (state == EndpointState.UNDEFINED || state == EndpointState.DESTROYED)
+ throw new IllegalStateException("Cannot start endpoint in state: " + state);
+
+ endpoint.setState(EndpointState.STARTED);
+ }
+
+ public void stop(Endpoint endpoint)
+ {
+ log.info("Stop: " + endpoint.getName());
+
+ EndpointState state = endpoint.getState();
+ if (state != EndpointState.STARTED)
+ throw new IllegalStateException("Cannot stop endpoint in state: " + state);
+
+ endpoint.setState(EndpointState.STOPED);
+ }
+
+ public void destroy(Endpoint endpoint)
+ {
+ log.info("Destroy: " + endpoint.getName());
+ endpoint.setState(EndpointState.DESTROYED);
+ }
+}
Property changes on: trunk/integration/src/main/java/org/jboss/ws/integration/BasicLifecycleHandler.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: trunk/integration/src/main/java/org/jboss/ws/integration/BasicService.java
===================================================================
--- trunk/integration/src/main/java/org/jboss/ws/integration/BasicService.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration/src/main/java/org/jboss/ws/integration/BasicService.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -61,7 +61,7 @@
import java.util.List;
import java.util.Set;
-import org.jboss.ws.integration.deployment.DeploymentUnit;
+import org.jboss.ws.integration.deployment.Deployment;
/**
* A general service.
@@ -73,21 +73,21 @@
*/
public class BasicService implements Service
{
- private DeploymentUnit unit;
+ private Deployment unit;
private List<Endpoint> endpoints = new LinkedList<Endpoint>();
- public BasicService(DeploymentUnit unit)
+ public BasicService(Deployment unit)
{
this.unit = unit;
this.unit.setService(this);
}
- public DeploymentUnit getDeploymentUnit()
+ public Deployment getDeployment()
{
return unit;
}
- public void setDeploymentUnit(DeploymentUnit unit)
+ public void setDeployment(Deployment unit)
{
this.unit = unit;
}
Modified: trunk/integration/src/main/java/org/jboss/ws/integration/Endpoint.java
===================================================================
--- trunk/integration/src/main/java/org/jboss/ws/integration/Endpoint.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration/src/main/java/org/jboss/ws/integration/Endpoint.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -55,11 +55,9 @@
*/
package org.jboss.ws.integration;
-import java.util.List;
-
import javax.management.ObjectName;
-import javax.xml.transform.Source;
+import org.jboss.ws.integration.invocation.InvocationHandler;
/**
* A general JAXWS endpoint.
@@ -69,33 +67,42 @@
*/
public interface Endpoint
{
+ static final String SEPID_DOMAIN = "jboss.ws";
+ static final String SEPID_PROPERTY_CONTEXT = "context";
+ static final String SEPID_PROPERTY_ENDPOINT = "endpoint";
+
+ public enum EndpointState
+ {
+ UNDEFINED, CREATED, STARTED, STOPED, DESTROYED
+ };
+
/** Get the service this endpoint belongs to */
Service getService();
-
+
/** Set the service this endpoint belongs to */
void setService(Service service);
-
+
/** Get the unique identifier for this endpoint */
ObjectName getName();
-
+
/** Set the unique identifier for this endpoint */
void setName(ObjectName epName);
-
+
+ /** Get the current state for this endpoint */
+ EndpointState getState();
+
+ /** Set the current state for this endpoint */
+ void setState(EndpointState state);
+
/** Get the endpoint implementation bean */
Class getEndpointImpl();
-
+
/** Set the endpoint implementation bean */
void setEndpointImpl(Class epImpl);
- /** Add an arbitry source of meta data */
- void addMetaData(Source metaSource);
-
- /** Get the list of meta data */
- List<Source> getMetaData();
-
/** Set the request handler for this endpoint */
void setRequestHandler(RequestHandler handler);
-
+
/** Get the request handler for this endpoint */
RequestHandler getRequestHandler();
@@ -104,4 +111,19 @@
/** Set the lifecycle handler for this endpoint */
void setLifecycleHandler(LifecycleHandler handler);
+
+ /** Get the endpoint bean invoker */
+ InvocationHandler getInvocationHandler();
+
+ /** Set the endpoint bean invoker */
+ void setInvocationHandler(InvocationHandler invoker);
+
+ /** Add arbitrary meta data */
+ <T> T addMetaData(Class<T> key, Object value);
+
+ /** Get arbitrary meta data */
+ <T> T getMetaData(Class<T> key);
+
+ /** Remove arbitrary meta data */
+ <T> T removeMetaData(Class<T> key);
}
Added: trunk/integration/src/main/java/org/jboss/ws/integration/EndpointHandler.java
===================================================================
--- trunk/integration/src/main/java/org/jboss/ws/integration/EndpointHandler.java (rev 0)
+++ trunk/integration/src/main/java/org/jboss/ws/integration/EndpointHandler.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,68 @@
+/*
+ * ====================================================================
+ *
+ * The Apache Software License, Version 1.1
+ *
+ * Copyright (c) 1999 The Apache Software Foundation. All rights
+ * reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if
+ * any, must include the following acknowlegement:
+ * "This product includes software developed by the
+ * Apache Software Foundation (http://www.apache.org/)."
+ * Alternately, this acknowlegement may appear in the software itself,
+ * if and wherever such third-party acknowlegements normally appear.
+ *
+ * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
+ * Foundation" must not be used to endorse or promote products derived
+ * from this software without prior written permission. For written
+ * permission, please contact apache(a)apache.org.
+ *
+ * 5. Products derived from this software may not be called "Apache"
+ * nor may "Apache" appear in their names without prior written
+ * permission of the Apache Group.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ * ====================================================================
+ *
+ * This software consists of voluntary contributions made by many
+ * individuals on behalf of the Apache Software Foundation. For more
+ * information on the Apache Software Foundation, please see
+ * <http://www.apache.org/>.
+ */
+package org.jboss.ws.integration;
+
+// $Id$
+
+/**
+ * A general endpoint handler.
+ *
+ * @author Thomas.Diesler(a)jboss.com
+ * @since 20-Apr-2007
+ */
+public interface EndpointHandler
+{
+}
Property changes on: trunk/integration/src/main/java/org/jboss/ws/integration/EndpointHandler.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: trunk/integration/src/main/java/org/jboss/ws/integration/LifecycleHandler.java
===================================================================
--- trunk/integration/src/main/java/org/jboss/ws/integration/LifecycleHandler.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration/src/main/java/org/jboss/ws/integration/LifecycleHandler.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -61,7 +61,7 @@
* @author Thomas.Diesler(a)jboss.com
* @since 20-Apr-2007
*/
-public interface LifecycleHandler
+public interface LifecycleHandler extends EndpointHandler
{
/** Handle the create step of an endpoint */
void create(Endpoint endpoint);
Modified: trunk/integration/src/main/java/org/jboss/ws/integration/RequestHandler.java
===================================================================
--- trunk/integration/src/main/java/org/jboss/ws/integration/RequestHandler.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration/src/main/java/org/jboss/ws/integration/RequestHandler.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -55,9 +55,10 @@
*/
package org.jboss.ws.integration;
-import org.jboss.ws.integration.message.RequestMessage;
-import org.jboss.ws.integration.message.ResponseMessage;
+// $Id$
+import java.io.InputStream;
+import java.io.OutputStream;
/**
* A general JAXWS request handler.
@@ -65,11 +66,11 @@
* @author Thomas.Diesler(a)jboss.com
* @since 20-Apr-2007
*/
-public interface RequestHandler
+public interface RequestHandler extends EndpointHandler
{
- /** Get the endpoint this handler belongs to */
- Endpoint getEndpoint();
+ /** Handle a web service request */
+ void handleRequest(Endpoint endpoint, InputStream input, OutputStream output, Object context);
- /** Handle a web service request */
- ResponseMessage handleRequest(RequestMessage message);
+ /** Handle a wsdl request */
+ void handleWSDLRequest(Endpoint endpoint, OutputStream output, Object context);
}
Modified: trunk/integration/src/main/java/org/jboss/ws/integration/Service.java
===================================================================
--- trunk/integration/src/main/java/org/jboss/ws/integration/Service.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration/src/main/java/org/jboss/ws/integration/Service.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -59,7 +59,7 @@
import java.util.List;
-import org.jboss.ws.integration.deployment.DeploymentUnit;
+import org.jboss.ws.integration.deployment.Deployment;
/**
* A general service deployment.
@@ -71,11 +71,11 @@
*/
public interface Service
{
- /** Get the deployment unit this service belongs to */
- DeploymentUnit getDeploymentUnit();
+ /** Get the deployment this service belongs to */
+ Deployment getDeployment();
- /** Set the deployment unit this service belongs to */
- void setDeploymentUnit(DeploymentUnit unit);
+ /** Set the deployment this service belongs to */
+ void setDeployment(Deployment dep);
/** Add an endpoint to the service */
void addEndpoint(Endpoint endpoint);
Modified: trunk/integration/src/main/java/org/jboss/ws/integration/deployment/AbstractDeployer.java
===================================================================
--- trunk/integration/src/main/java/org/jboss/ws/integration/deployment/AbstractDeployer.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration/src/main/java/org/jboss/ws/integration/deployment/AbstractDeployer.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -55,8 +55,10 @@
*/
package org.jboss.ws.integration.deployment;
-// $Id$
+//$Id$
+import org.jboss.logging.Logger;
+
/**
* An abstract deployer that does nothing.
* Overwrite the deployer methods appropriately.
@@ -66,19 +68,22 @@
*/
public abstract class AbstractDeployer implements Deployer
{
- public void create(DeploymentUnit unit)
+ // logging support
+ protected final Logger log = Logger.getLogger(getClass());
+
+ public void create(Deployment dep)
{
}
- public void destroy(DeploymentUnit unit)
+ public void destroy(Deployment dep)
{
}
- public void start(DeploymentUnit unit)
+ public void start(Deployment dep)
{
}
- public void stop(DeploymentUnit unit)
+ public void stop(Deployment dep)
{
}
}
\ No newline at end of file
Copied: trunk/integration/src/main/java/org/jboss/ws/integration/deployment/BasicDeployment.java (from rev 2913, trunk/integration/src/main/java/org/jboss/ws/integration/deployment/BasicDeploymentUnit.java)
===================================================================
--- trunk/integration/src/main/java/org/jboss/ws/integration/deployment/BasicDeployment.java (rev 0)
+++ trunk/integration/src/main/java/org/jboss/ws/integration/deployment/BasicDeployment.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,140 @@
+/*
+ * ====================================================================
+ *
+ * The Apache Software License, Version 1.1
+ *
+ * Copyright (c) 1999 The Apache Software Foundation. All rights
+ * reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if
+ * any, must include the following acknowlegement:
+ * "This product includes software developed by the
+ * Apache Software Foundation (http://www.apache.org/)."
+ * Alternately, this acknowlegement may appear in the software itself,
+ * if and wherever such third-party acknowlegements normally appear.
+ *
+ * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
+ * Foundation" must not be used to endorse or promote products derived
+ * from this software without prior written permission. For written
+ * permission, please contact apache(a)apache.org.
+ *
+ * 5. Products derived from this software may not be called "Apache"
+ * nor may "Apache" appear in their names without prior written
+ * permission of the Apache Group.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ * ====================================================================
+ *
+ * This software consists of voluntary contributions made by many
+ * individuals on behalf of the Apache Software Foundation. For more
+ * information on the Apache Software Foundation, please see
+ * <http://www.apache.org/>.
+ */
+package org.jboss.ws.integration.deployment;
+
+//$Id$
+
+import org.jboss.ws.integration.BasicService;
+import org.jboss.ws.integration.Service;
+
+/**
+ * A general web service deployment dep.
+ *
+ * It has no notion of J2EE deployment packages.
+ *
+ * @author Thomas.Diesler(a)jboss.com
+ * @since 20-Apr-2007
+ */
+public class BasicDeployment implements Deployment
+{
+ // The context for this deployment dep
+ private DeploymentContext context;
+ // A deployment has one service
+ private Service service;
+ // The type of this deployment
+ private DeploymentType type;
+ // The state for this deployment
+ private DeploymentState state;
+ // The deployment class loader
+ private ClassLoader classLoader;
+
+ public BasicDeployment()
+ {
+ context = new BasicDeploymentContext();
+ service = new BasicService(this);
+ state = DeploymentState.UNDEFINED;
+ }
+
+ public DeploymentContext getContext()
+ {
+ return context;
+ }
+
+ public void setContext(DeploymentContext context)
+ {
+ this.context = context;
+ }
+
+ public void setClassLoader(ClassLoader loader)
+ {
+ this.classLoader = loader;
+ }
+
+ public ClassLoader getClassLoader()
+ {
+ return classLoader;
+ }
+
+ public Service getService()
+ {
+ return service;
+ }
+
+ public void setService(Service service)
+ {
+ this.service = service;
+ }
+
+ public DeploymentState getState()
+ {
+ return state;
+ }
+
+ public void setState(DeploymentState deploymentState)
+ {
+ this.state = deploymentState;
+ }
+
+ public DeploymentType getType()
+ {
+ return type;
+ }
+
+ public void setType(DeploymentType deploymentType)
+ {
+ this.type = deploymentType;
+ }
+}
Modified: trunk/integration/src/main/java/org/jboss/ws/integration/deployment/BasicDeploymentContext.java
===================================================================
--- trunk/integration/src/main/java/org/jboss/ws/integration/deployment/BasicDeploymentContext.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration/src/main/java/org/jboss/ws/integration/deployment/BasicDeploymentContext.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -70,13 +70,13 @@
{
private Map<Class, Object> attachments = new HashMap<Class, Object>();
- public Object getAttachment(Class clazz)
+ public <T> T getAttachment(Class<T> clazz)
{
- return attachments.get(clazz);
+ return (T)attachments.get(clazz);
}
- public Object addAttachment(Class clazz, Object obj)
+ public <T> T addAttachment(Class<T> clazz, Object obj)
{
- return attachments.put(clazz, obj);
+ return (T)attachments.put(clazz, obj);
}
}
Modified: trunk/integration/src/main/java/org/jboss/ws/integration/deployment/BasicDeploymentManager.java
===================================================================
--- trunk/integration/src/main/java/org/jboss/ws/integration/deployment/BasicDeploymentManager.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration/src/main/java/org/jboss/ws/integration/deployment/BasicDeploymentManager.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -60,6 +60,8 @@
import java.util.LinkedList;
import java.util.List;
+import org.jboss.ws.integration.deployment.Deployment.DeploymentState;
+
/**
* A general service deployment manger.
*
@@ -86,14 +88,16 @@
* If start fails it automaticall calls destroy in the reverse order
* starting with the deployer that failed
*/
- public void deploy(DeploymentUnit unit)
+ public void deploy(Deployment dep)
{
// create the deployment
for (int i = 0; i < deployers.size(); i++)
{
Deployer deployer = deployers.get(i);
- deployer.create(unit);
+ deployer.create(dep);
}
+
+ dep.setState(DeploymentState.CREATED);
// start the deployment
for (int i = 0; i < deployers.size(); i++)
@@ -101,58 +105,64 @@
Deployer deployer = deployers.get(i);
try
{
- deployer.start(unit);
+ deployer.start(dep);
}
catch (RuntimeException rte)
{
while (i-- >= 0)
{
// destroy the deployment
- failsafeDestroy(deployer, unit);
+ failsafeDestroy(deployer, dep);
}
throw rte;
}
}
+
+ dep.setState(DeploymentState.STARTED);
}
- public void undeploy(DeploymentUnit unit)
+ public void undeploy(Deployment dep)
{
// stop the deployment
for (int i = deployers.size(); 0 < i; i--)
{
Deployer deployer = deployers.get(i - 1);
- failsafeStop(deployer, unit);
+ failsafeStop(deployer, dep);
}
+ dep.setState(DeploymentState.STOPED);
+
// destroy the deployment
for (int i = deployers.size(); 0 < i; i--)
{
Deployer deployer = deployers.get(i - 1);
- failsafeDestroy(deployer, unit);
+ failsafeDestroy(deployer, dep);
}
+
+ dep.setState(DeploymentState.DESTROYED);
}
- private void failsafeStop(Deployer deployer, DeploymentUnit unit)
+ private void failsafeStop(Deployer deployer, Deployment dep)
{
try
{
- deployer.stop(unit);
+ deployer.stop(dep);
}
catch (RuntimeException rte)
{
- DeploymentException.rethrow(rte);
+ WSDeploymentException.rethrow(rte);
}
}
- private void failsafeDestroy(Deployer deployer, DeploymentUnit unit)
+ private void failsafeDestroy(Deployer deployer, Deployment dep)
{
try
{
- deployer.destroy(unit);
+ deployer.destroy(dep);
}
catch (RuntimeException rte)
{
- DeploymentException.rethrow(rte);
+ WSDeploymentException.rethrow(rte);
}
}
}
Deleted: trunk/integration/src/main/java/org/jboss/ws/integration/deployment/BasicDeploymentUnit.java
===================================================================
--- trunk/integration/src/main/java/org/jboss/ws/integration/deployment/BasicDeploymentUnit.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration/src/main/java/org/jboss/ws/integration/deployment/BasicDeploymentUnit.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -1,96 +0,0 @@
-/*
- * ====================================================================
- *
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 1999 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. The end-user documentation included with the redistribution, if
- * any, must include the following acknowlegement:
- * "This product includes software developed by the
- * Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowlegement may appear in the software itself,
- * if and wherever such third-party acknowlegements normally appear.
- *
- * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
- * Foundation" must not be used to endorse or promote products derived
- * from this software without prior written permission. For written
- * permission, please contact apache(a)apache.org.
- *
- * 5. Products derived from this software may not be called "Apache"
- * nor may "Apache" appear in their names without prior written
- * permission of the Apache Group.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Apache Software Foundation. For more
- * information on the Apache Software Foundation, please see
- * <http://www.apache.org/>.
- */
-package org.jboss.ws.integration.deployment;
-
-//$Id$
-
-import org.jboss.ws.integration.Service;
-
-/**
- * A general web service deployment unit.
- *
- * It has no notion of J2EE deployment packages.
- *
- * @author Thomas.Diesler(a)jboss.com
- * @since 20-Apr-2007
- */
-public class BasicDeploymentUnit implements DeploymentUnit
-{
- // The context for this deployment unit
- private DeploymentContext context;
- // A deployment has one service
- private Service service;
-
- public BasicDeploymentUnit()
- {
- context = new BasicDeploymentContext();
- }
-
- public DeploymentContext getContext()
- {
- return context;
- }
-
- public Service getService()
- {
- return service;
- }
-
- public void setService(Service service)
- {
- this.service = service;
- }
-}
Modified: trunk/integration/src/main/java/org/jboss/ws/integration/deployment/Deployer.java
===================================================================
--- trunk/integration/src/main/java/org/jboss/ws/integration/deployment/Deployer.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration/src/main/java/org/jboss/ws/integration/deployment/Deployer.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -65,12 +65,12 @@
*/
public interface Deployer
{
- void create (DeploymentUnit unit);
+ void create (Deployment dep);
- void start (DeploymentUnit unit);
+ void start (Deployment dep);
- void stop (DeploymentUnit unit);
+ void stop (Deployment dep);
- void destroy (DeploymentUnit unit);
+ void destroy (Deployment dep);
}
Copied: trunk/integration/src/main/java/org/jboss/ws/integration/deployment/Deployment.java (from rev 2913, trunk/integration/src/main/java/org/jboss/ws/integration/deployment/DeploymentUnit.java)
===================================================================
--- trunk/integration/src/main/java/org/jboss/ws/integration/deployment/Deployment.java (rev 0)
+++ trunk/integration/src/main/java/org/jboss/ws/integration/deployment/Deployment.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,101 @@
+/*
+ * ====================================================================
+ *
+ * The Apache Software License, Version 1.1
+ *
+ * Copyright (c) 1999 The Apache Software Foundation. All rights
+ * reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if
+ * any, must include the following acknowlegement:
+ * "This product includes software developed by the
+ * Apache Software Foundation (http://www.apache.org/)."
+ * Alternately, this acknowlegement may appear in the software itself,
+ * if and wherever such third-party acknowlegements normally appear.
+ *
+ * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
+ * Foundation" must not be used to endorse or promote products derived
+ * from this software without prior written permission. For written
+ * permission, please contact apache(a)apache.org.
+ *
+ * 5. Products derived from this software may not be called "Apache"
+ * nor may "Apache" appear in their names without prior written
+ * permission of the Apache Group.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ * ====================================================================
+ *
+ * This software consists of voluntary contributions made by many
+ * individuals on behalf of the Apache Software Foundation. For more
+ * information on the Apache Software Foundation, please see
+ * <http://www.apache.org/>.
+ */
+package org.jboss.ws.integration.deployment;
+
+// $Id$
+
+import org.jboss.ws.integration.Service;
+
+/**
+ * A general web service deployment dep.
+ *
+ * It has no notion of J2EE deployment packages.
+ *
+ * @author Thomas.Diesler(a)jboss.com
+ * @since 20-Apr-2007
+ */
+public interface Deployment
+{
+ public enum DeploymentType
+ {
+ JAXRPC_CLIENT, JAXRPC_JSE, JAXRPC_EJB21, JAXRPC_EJB3, JAXWS_JSE, JAXWS_EJB3
+ };
+
+ public enum DeploymentState
+ {
+ UNDEFINED, CREATED, STARTED, STOPED, DESTROYED
+ };
+
+ ClassLoader getClassLoader();
+
+ void setClassLoader(ClassLoader loader);
+
+ DeploymentContext getContext();
+
+ void setContext(DeploymentContext context);
+
+ DeploymentType getType();
+
+ void setType(DeploymentType type);
+
+ DeploymentState getState();
+
+ void setState(DeploymentState type);
+
+ Service getService();
+
+ void setService(Service service);
+}
\ No newline at end of file
Modified: trunk/integration/src/main/java/org/jboss/ws/integration/deployment/DeploymentContext.java
===================================================================
--- trunk/integration/src/main/java/org/jboss/ws/integration/deployment/DeploymentContext.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration/src/main/java/org/jboss/ws/integration/deployment/DeploymentContext.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -2,9 +2,7 @@
public interface DeploymentContext
{
+ <T> T getAttachment(Class<T> clazz);
- Object getAttachment(Class clazz);
-
- Object addAttachment(Class clazz, Object obj);
-
+ <T> T addAttachment(Class<T> clazz, Object obj);
}
\ No newline at end of file
Deleted: trunk/integration/src/main/java/org/jboss/ws/integration/deployment/DeploymentException.java
===================================================================
--- trunk/integration/src/main/java/org/jboss/ws/integration/deployment/DeploymentException.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration/src/main/java/org/jboss/ws/integration/deployment/DeploymentException.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -1,90 +0,0 @@
-/*
- * ====================================================================
- *
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 1999 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. The end-user documentation included with the redistribution, if
- * any, must include the following acknowlegement:
- * "This product includes software developed by the
- * Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowlegement may appear in the software itself,
- * if and wherever such third-party acknowlegements normally appear.
- *
- * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
- * Foundation" must not be used to endorse or promote products derived
- * from this software without prior written permission. For written
- * permission, please contact apache(a)apache.org.
- *
- * 5. Products derived from this software may not be called "Apache"
- * nor may "Apache" appear in their names without prior written
- * permission of the Apache Group.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Apache Software Foundation. For more
- * information on the Apache Software Foundation, please see
- * <http://www.apache.org/>.
- */
-package org.jboss.ws.integration.deployment;
-
-// $Id$
-
-/**
- * A general deployment exception
- *
- * @author Thomas.Diesler(a)jboss.com
- * @since 20-Apr-2007
- */
-public class DeploymentException extends RuntimeException
-{
- public DeploymentException(String message, Throwable cause)
- {
- super(message, cause);
- }
-
- public DeploymentException(String message)
- {
- super(message);
- }
-
- public DeploymentException(Throwable cause)
- {
- super(cause);
- }
-
- public static void rethrow(Throwable cause)
- {
- if (cause instanceof DeploymentException)
- throw (DeploymentException)cause;
-
- throw new DeploymentException(cause);
- }
-}
Modified: trunk/integration/src/main/java/org/jboss/ws/integration/deployment/DeploymentManager.java
===================================================================
--- trunk/integration/src/main/java/org/jboss/ws/integration/deployment/DeploymentManager.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration/src/main/java/org/jboss/ws/integration/deployment/DeploymentManager.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -77,8 +77,8 @@
void setDeployers(List<Deployer> deployers);
/** Deploy a web service */
- void deploy(DeploymentUnit unit);
+ void deploy(Deployment dep);
/** Undeploy a web service */
- void undeploy(DeploymentUnit unit);
+ void undeploy(Deployment dep);
}
Modified: trunk/integration/src/main/java/org/jboss/ws/integration/deployment/DeploymentManagerFactory.java
===================================================================
--- trunk/integration/src/main/java/org/jboss/ws/integration/deployment/DeploymentManagerFactory.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration/src/main/java/org/jboss/ws/integration/deployment/DeploymentManagerFactory.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -58,9 +58,9 @@
//$Id$
import org.jboss.kernel.Kernel;
-import org.jboss.kernel.plugins.util.KernelLocator;
import org.jboss.kernel.spi.registry.KernelRegistry;
import org.jboss.kernel.spi.registry.KernelRegistryEntry;
+import org.jboss.ws.integration.KernelLocator;
/**
* Get the deployment manager from the kernel
Deleted: trunk/integration/src/main/java/org/jboss/ws/integration/deployment/DeploymentUnit.java
===================================================================
--- trunk/integration/src/main/java/org/jboss/ws/integration/deployment/DeploymentUnit.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration/src/main/java/org/jboss/ws/integration/deployment/DeploymentUnit.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -1,78 +0,0 @@
-/*
- * ====================================================================
- *
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 1999 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. The end-user documentation included with the redistribution, if
- * any, must include the following acknowlegement:
- * "This product includes software developed by the
- * Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowlegement may appear in the software itself,
- * if and wherever such third-party acknowlegements normally appear.
- *
- * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
- * Foundation" must not be used to endorse or promote products derived
- * from this software without prior written permission. For written
- * permission, please contact apache(a)apache.org.
- *
- * 5. Products derived from this software may not be called "Apache"
- * nor may "Apache" appear in their names without prior written
- * permission of the Apache Group.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Apache Software Foundation. For more
- * information on the Apache Software Foundation, please see
- * <http://www.apache.org/>.
- */
-package org.jboss.ws.integration.deployment;
-
-import org.jboss.ws.integration.Service;
-
-/**
- * A general web service deployment unit.
- *
- * It has no notion of J2EE deployment packages.
- *
- * @author Thomas.Diesler(a)jboss.com
- * @since 20-Apr-2007
- */
-public interface DeploymentUnit
-{
- /** Get the context for this deployment unit */
- DeploymentContext getContext();
-
- /** Get the service that is being deployed */
- Service getService();
-
- /** Set the service that is being deployed */
- void setService(Service service);
-}
\ No newline at end of file
Deleted: trunk/integration/src/main/java/org/jboss/ws/integration/deployment/EndpointNameDeployer.java
===================================================================
--- trunk/integration/src/main/java/org/jboss/ws/integration/deployment/EndpointNameDeployer.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration/src/main/java/org/jboss/ws/integration/deployment/EndpointNameDeployer.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -1,90 +0,0 @@
-/*
- * ====================================================================
- *
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 1999 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. The end-user documentation included with the redistribution, if
- * any, must include the following acknowlegement:
- * "This product includes software developed by the
- * Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowlegement may appear in the software itself,
- * if and wherever such third-party acknowlegements normally appear.
- *
- * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
- * Foundation" must not be used to endorse or promote products derived
- * from this software without prior written permission. For written
- * permission, please contact apache(a)apache.org.
- *
- * 5. Products derived from this software may not be called "Apache"
- * nor may "Apache" appear in their names without prior written
- * permission of the Apache Group.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Apache Software Foundation. For more
- * information on the Apache Software Foundation, please see
- * <http://www.apache.org/>.
- */
-package org.jboss.ws.integration.deployment;
-
-// $Id$
-
-import javax.management.ObjectName;
-
-import org.jboss.ws.integration.Endpoint;
-import org.jboss.ws.integration.ObjectNameFactory;
-
-/**
- * A deployer that gives the endpoint its name
- *
- * @author Thomas.Diesler(a)jboss.com
- * @since 20-Apr-2007
- */
-public class EndpointNameDeployer extends AbstractDeployer
-{
- public void create(DeploymentUnit unit)
- {
- for (Endpoint ep : unit.getService().getEndpoints())
- {
- ObjectName name = ep.getName();
- if (name == null)
- {
- Class epImpl = ep.getEndpointImpl();
- if (epImpl == null)
- throw new IllegalStateException("Endpoint implementation bean cannot be null: " + ep);
-
- String className = epImpl.getName();
- className = className.substring(className.lastIndexOf(".") + 1);
- ep.setName(ObjectNameFactory.create("jboss.ws:endpoint=" + className));
- }
- }
- }
-}
\ No newline at end of file
Modified: trunk/integration/src/main/java/org/jboss/ws/integration/deployment/RegisteringDeployer.java
===================================================================
--- trunk/integration/src/main/java/org/jboss/ws/integration/deployment/RegisteringDeployer.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration/src/main/java/org/jboss/ws/integration/deployment/RegisteringDeployer.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -59,7 +59,6 @@
import org.jboss.ws.integration.management.EndpointRegistry;
import org.jboss.ws.integration.management.EndpointRegistryFactory;
-
/**
* A deployer that registers the endpoints
*
@@ -68,19 +67,19 @@
*/
public class RegisteringDeployer extends AbstractDeployer
{
- public void create(DeploymentUnit unit)
+ public void create(Deployment dep)
{
EndpointRegistry registry = EndpointRegistryFactory.getEndpointRegistry();
- for (Endpoint ep : unit.getService().getEndpoints())
+ for (Endpoint ep : dep.getService().getEndpoints())
{
registry.register(ep);
}
}
-
- public void destroy(DeploymentUnit unit)
+
+ public void destroy(Deployment dep)
{
EndpointRegistry registry = EndpointRegistryFactory.getEndpointRegistry();
- for (Endpoint ep : unit.getService().getEndpoints())
+ for (Endpoint ep : dep.getService().getEndpoints())
{
registry.unregister(ep);
}
Modified: trunk/integration/src/main/java/org/jboss/ws/integration/deployment/ValidatingDeployer.java
===================================================================
--- trunk/integration/src/main/java/org/jboss/ws/integration/deployment/ValidatingDeployer.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration/src/main/java/org/jboss/ws/integration/deployment/ValidatingDeployer.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -59,6 +59,7 @@
import javax.xml.ws.Provider;
import org.jboss.ws.integration.Endpoint;
+import org.jboss.ws.integration.deployment.Deployment.DeploymentType;
/**
@@ -69,16 +70,23 @@
*/
public class ValidatingDeployer extends AbstractDeployer
{
- public void create(DeploymentUnit unit)
+ public void create(Deployment dep)
{
- for (Endpoint ep : unit.getService().getEndpoints())
+ DeploymentType type = dep.getType();
+ if (type == null)
+ throw new IllegalStateException("Cannot obtain deployment type: " + dep);
+
+ if (type == DeploymentType.JAXWS_EJB3 || type == DeploymentType.JAXWS_JSE)
{
- Class epImpl = ep.getEndpointImpl();
- if (epImpl == null)
- throw new IllegalStateException("Endpoint implementation bean cannot be null: " + ep);
-
- if (!epImpl.isAnnotationPresent(WebService.class) && !epImpl.isAnnotationPresent(Provider.class))
- throw new IllegalStateException("Not a valid JAXWS endpoint: " + epImpl.getName());
+ for (Endpoint ep : dep.getService().getEndpoints())
+ {
+ Class epImpl = ep.getEndpointImpl();
+ if (epImpl == null)
+ throw new IllegalStateException("Endpoint implementation bean cannot be null: " + ep);
+
+ if (!epImpl.isAnnotationPresent(WebService.class) && !epImpl.isAnnotationPresent(Provider.class))
+ throw new IllegalStateException("Not a valid JAXWS endpoint: " + epImpl.getName());
+ }
}
}
}
\ No newline at end of file
Added: trunk/integration/src/main/java/org/jboss/ws/integration/deployment/WSDeploymentException.java
===================================================================
--- trunk/integration/src/main/java/org/jboss/ws/integration/deployment/WSDeploymentException.java (rev 0)
+++ trunk/integration/src/main/java/org/jboss/ws/integration/deployment/WSDeploymentException.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,90 @@
+/*
+ * ====================================================================
+ *
+ * The Apache Software License, Version 1.1
+ *
+ * Copyright (c) 1999 The Apache Software Foundation. All rights
+ * reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if
+ * any, must include the following acknowlegement:
+ * "This product includes software developed by the
+ * Apache Software Foundation (http://www.apache.org/)."
+ * Alternately, this acknowlegement may appear in the software itself,
+ * if and wherever such third-party acknowlegements normally appear.
+ *
+ * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
+ * Foundation" must not be used to endorse or promote products derived
+ * from this software without prior written permission. For written
+ * permission, please contact apache(a)apache.org.
+ *
+ * 5. Products derived from this software may not be called "Apache"
+ * nor may "Apache" appear in their names without prior written
+ * permission of the Apache Group.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ * ====================================================================
+ *
+ * This software consists of voluntary contributions made by many
+ * individuals on behalf of the Apache Software Foundation. For more
+ * information on the Apache Software Foundation, please see
+ * <http://www.apache.org/>.
+ */
+package org.jboss.ws.integration.deployment;
+
+// $Id$
+
+/**
+ * A general deployment exception
+ *
+ * @author Thomas.Diesler(a)jboss.com
+ * @since 20-Apr-2007
+ */
+public class WSDeploymentException extends RuntimeException
+{
+ public WSDeploymentException(String message, Throwable cause)
+ {
+ super(message, cause);
+ }
+
+ public WSDeploymentException(String message)
+ {
+ super(message);
+ }
+
+ public WSDeploymentException(Throwable cause)
+ {
+ super(cause);
+ }
+
+ public static void rethrow(Throwable cause)
+ {
+ if (cause instanceof WSDeploymentException)
+ throw (WSDeploymentException)cause;
+
+ throw new WSDeploymentException(cause);
+ }
+}
Property changes on: trunk/integration/src/main/java/org/jboss/ws/integration/deployment/WSDeploymentException.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/integration/src/main/java/org/jboss/ws/integration/invocation/InvocationHandler.java
===================================================================
--- trunk/integration/src/main/java/org/jboss/ws/integration/invocation/InvocationHandler.java (rev 0)
+++ trunk/integration/src/main/java/org/jboss/ws/integration/invocation/InvocationHandler.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,75 @@
+/*
+ * ====================================================================
+ *
+ * The Apache Software License, Version 1.1
+ *
+ * Copyright (c) 1999 The Apache Software Foundation. All rights
+ * reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if
+ * any, must include the following acknowlegement:
+ * "This product includes software developed by the
+ * Apache Software Foundation (http://www.apache.org/)."
+ * Alternately, this acknowlegement may appear in the software itself,
+ * if and wherever such third-party acknowlegements normally appear.
+ *
+ * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
+ * Foundation" must not be used to endorse or promote products derived
+ * from this software without prior written permission. For written
+ * permission, please contact apache(a)apache.org.
+ *
+ * 5. Products derived from this software may not be called "Apache"
+ * nor may "Apache" appear in their names without prior written
+ * permission of the Apache Group.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ * ====================================================================
+ *
+ * This software consists of voluntary contributions made by many
+ * individuals on behalf of the Apache Software Foundation. For more
+ * information on the Apache Software Foundation, please see
+ * <http://www.apache.org/>.
+ */
+package org.jboss.ws.integration.invocation;
+
+//$Id$
+
+import org.jboss.ws.integration.Endpoint;
+
+/**
+ * A general endpoint invoker.
+ *
+ * @author Thomas.Diesler(a)jboss.com
+ * @since 20-Apr-2007
+ */
+public interface InvocationHandler
+{
+ /** Initialize the invocation handler */
+ void init(Endpoint endpoint);
+
+ /** Invoke the the service endpoint */
+ void invoke(Object reqContext) throws Exception;
+}
Property changes on: trunk/integration/src/main/java/org/jboss/ws/integration/invocation/InvocationHandler.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: trunk/integration/src/main/java/org/jboss/ws/integration/management/EndpointRegistryFactory.java
===================================================================
--- trunk/integration/src/main/java/org/jboss/ws/integration/management/EndpointRegistryFactory.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration/src/main/java/org/jboss/ws/integration/management/EndpointRegistryFactory.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -58,9 +58,9 @@
//$Id$
import org.jboss.kernel.Kernel;
-import org.jboss.kernel.plugins.util.KernelLocator;
import org.jboss.kernel.spi.registry.KernelRegistry;
import org.jboss.kernel.spi.registry.KernelRegistryEntry;
+import org.jboss.ws.integration.KernelLocator;
/**
* Get the endpoint registry from the kernel
Modified: trunk/integration/src/test/java/org/jboss/test/ws/integration/basic/BasicDeploymentTest.java
===================================================================
--- trunk/integration/src/test/java/org/jboss/test/ws/integration/basic/BasicDeploymentTest.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration/src/test/java/org/jboss/test/ws/integration/basic/BasicDeploymentTest.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -65,7 +65,7 @@
import org.jboss.test.ws.integration.KernelTestSetup;
import org.jboss.ws.integration.BasicEndpoint;
import org.jboss.ws.integration.BasicService;
-import org.jboss.ws.integration.deployment.BasicDeploymentUnit;
+import org.jboss.ws.integration.deployment.BasicDeployment;
import org.jboss.ws.integration.deployment.DeploymentManager;
import org.jboss.ws.integration.deployment.DeploymentManagerFactory;
import org.jboss.ws.integration.management.EndpointRegistry;
@@ -92,7 +92,7 @@
EndpointRegistry epRegistry = EndpointRegistryFactory.getEndpointRegistry();
// create the deployment unit
- BasicDeploymentUnit unit = new BasicDeploymentUnit();
+ BasicDeployment unit = new BasicDeployment();
BasicService service = new BasicService(unit);
service.addEndpoint(new BasicEndpoint(service, BasicEndpointImp.class));
Modified: trunk/integration-jboss40/src/java/org/jboss/ws/integration/jboss40/WebServiceClientDeployer.java
===================================================================
--- trunk/integration-jboss40/src/java/org/jboss/ws/integration/jboss40/WebServiceClientDeployer.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss40/src/java/org/jboss/ws/integration/jboss40/WebServiceClientDeployer.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -35,6 +35,7 @@
import org.jboss.ws.core.jaxrpc.client.ServiceReferenceable;
import org.jboss.ws.core.server.UnifiedDeploymentInfo;
import org.jboss.ws.integration.URLLoaderAdapter;
+import org.jboss.ws.integration.deployment.Deployment.DeploymentType;
import org.jboss.ws.integration.jboss42.DeploymentInfoAdapterFactory;
import org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientDeployment;
import org.jboss.ws.metadata.j2ee.serviceref.UnifiedServiceRefMetaData;
@@ -66,7 +67,7 @@
String serviceRefName = serviceRef.getServiceRefName();
// Build the container independent deployment info
- UnifiedDeploymentInfo udi = new JAXRPCClientDeployment(UnifiedDeploymentInfo.DeploymentType.JAXRPC_Client);
+ UnifiedDeploymentInfo udi = new JAXRPCClientDeployment(DeploymentType.JAXRPC_CLIENT);
DeploymentInfoAdapterFactory.newInstance().buildDeploymentInfo(udi, di);
UnifiedServiceRefMetaData usr = ServiceRefMetaDataAdapterFactory.newInstance().buildServiceRefMetaData(udi, serviceRef);
Modified: trunk/integration-jboss40/src/java/org/jboss/ws/integration/jboss40/WebServiceClientDeployerMBean.java
===================================================================
--- trunk/integration-jboss40/src/java/org/jboss/ws/integration/jboss40/WebServiceClientDeployerMBean.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss40/src/java/org/jboss/ws/integration/jboss40/WebServiceClientDeployerMBean.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -25,7 +25,7 @@
import org.jboss.system.ServiceMBean;
import org.jboss.webservice.WebServiceClientDeployment;
-import org.jboss.ws.core.utils.ObjectNameFactory;
+import org.jboss.ws.integration.ObjectNameFactory;
/**
* MBean interface.
Modified: trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptor.java
===================================================================
--- trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptor.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptor.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -36,6 +36,7 @@
import org.jboss.ws.core.server.ServiceEndpointDeployer;
import org.jboss.ws.core.server.UnifiedDeploymentInfo;
import org.jboss.ws.integration.KernelLocator;
+import org.jboss.ws.integration.deployment.WSDeploymentException;
/**
* A deployer service that manages WS4EE compliant Web Services
Modified: trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB21.java
===================================================================
--- trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB21.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB21.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -34,6 +34,7 @@
import org.jboss.ws.core.server.UnifiedDeploymentInfo;
import org.jboss.ws.integration.ResourceLoaderAdapter;
import org.jboss.ws.integration.UnifiedVirtualFile;
+import org.jboss.ws.integration.deployment.Deployment.DeploymentType;
import org.jboss.ws.metadata.builder.jaxrpc.JAXRPCDeployment;
import org.jboss.ws.metadata.umdm.UnifiedMetaData;
@@ -48,7 +49,7 @@
protected UnifiedDeploymentInfo createUnifiedDeploymentInfo(DeploymentInfo di) throws Exception
{
UnifiedVirtualFile vfsWebservices = getWebservicesFile(di);
- UnifiedDeploymentInfo udi = new JAXRPCDeployment(UnifiedDeploymentInfo.DeploymentType.JAXRPC_EJB21, vfsWebservices);
+ UnifiedDeploymentInfo udi = new JAXRPCDeployment(DeploymentType.JAXRPC_EJB21, vfsWebservices);
DeploymentInfoAdapterFactory.newInstance().buildDeploymentInfo(udi, di);
return udi;
}
Modified: trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB21MBean.java
===================================================================
--- trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB21MBean.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB21MBean.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -24,7 +24,7 @@
import javax.management.ObjectName;
import org.jboss.deployment.SubDeployerInterceptorMBean;
-import org.jboss.ws.core.utils.ObjectNameFactory;
+import org.jboss.ws.integration.ObjectNameFactory;
/**
* MBean interface.
Modified: trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB3.java
===================================================================
--- trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB3.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB3.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -40,6 +40,7 @@
import org.jboss.ws.WSException;
import org.jboss.ws.core.server.JAXWSDeployment;
import org.jboss.ws.core.server.UnifiedDeploymentInfo;
+import org.jboss.ws.integration.deployment.Deployment.DeploymentType;
import org.jboss.ws.metadata.j2ee.UnifiedApplicationMetaData;
import org.jboss.ws.metadata.j2ee.UnifiedBeanMetaData;
import org.jboss.ws.metadata.umdm.UnifiedMetaData;
@@ -54,7 +55,7 @@
{
protected UnifiedDeploymentInfo createUnifiedDeploymentInfo(DeploymentInfo di) throws Exception
{
- UnifiedDeploymentInfo udi = new JAXWSDeployment(UnifiedDeploymentInfo.DeploymentType.JAXWS_EJB3);
+ UnifiedDeploymentInfo udi = new JAXWSDeployment(DeploymentType.JAXWS_EJB3);
DeploymentInfoAdapterFactory.newInstance().buildDeploymentInfo(udi, di);
Ejb3ModuleMBean ejb3Module = getEJB3Module(udi.deployedObject);
Modified: trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB3MBean.java
===================================================================
--- trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB3MBean.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorEJB3MBean.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -24,7 +24,7 @@
import javax.management.ObjectName;
import org.jboss.deployment.SubDeployerInterceptorMBean;
-import org.jboss.ws.core.utils.ObjectNameFactory;
+import org.jboss.ws.integration.ObjectNameFactory;
/**
* MBean interface.
Modified: trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorJSE.java
===================================================================
--- trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorJSE.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorJSE.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -37,9 +37,9 @@
import org.jboss.ws.core.server.JAXWSDeployment;
import org.jboss.ws.core.server.UnifiedDeploymentInfo;
import org.jboss.ws.core.server.AbstractServiceEndpointPublisher.RewriteResults;
-import org.jboss.ws.core.server.UnifiedDeploymentInfo.DeploymentType;
import org.jboss.ws.integration.ResourceLoaderAdapter;
import org.jboss.ws.integration.UnifiedVirtualFile;
+import org.jboss.ws.integration.deployment.Deployment.DeploymentType;
import org.jboss.ws.metadata.builder.jaxrpc.JAXRPCDeployment;
import org.jboss.ws.metadata.umdm.EndpointMetaData;
import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
@@ -66,7 +66,7 @@
{
if (getWebservicesFile(di) != null)
{
- di.context.put("UnifiedDeploymentInfo.Type", UnifiedDeploymentInfo.DeploymentType.JAXRPC_JSE);
+ di.context.put("UnifiedDeploymentInfo.Type", DeploymentType.JAXRPC_JSE);
isWebserviceDeployment = true;
}
}
@@ -84,7 +84,7 @@
Class servletClass = di.annotationsCl.loadClass(servletClassName);
if (servletClass.isAnnotationPresent(WebService.class) || servletClass.isAnnotationPresent(WebServiceProvider.class))
{
- di.context.put("UnifiedDeploymentInfo.Type", UnifiedDeploymentInfo.DeploymentType.JAXWS_JSE);
+ di.context.put("UnifiedDeploymentInfo.Type", DeploymentType.JAXWS_JSE);
isWebserviceDeployment = true;
}
}
@@ -104,15 +104,15 @@
UnifiedDeploymentInfo udi;
DeploymentType type = (DeploymentType)di.context.get("UnifiedDeploymentInfo.Type");
- if (type == UnifiedDeploymentInfo.DeploymentType.JAXRPC_JSE)
+ if (type == DeploymentType.JAXRPC_JSE)
{
UnifiedVirtualFile vfsWebservices = getWebservicesFile(di);
- udi = new JAXRPCDeployment(UnifiedDeploymentInfo.DeploymentType.JAXRPC_JSE, vfsWebservices);
+ udi = new JAXRPCDeployment(DeploymentType.JAXRPC_JSE, vfsWebservices);
DeploymentInfoAdapterFactory.newInstance().buildDeploymentInfo(udi, di);
}
- else if (type == UnifiedDeploymentInfo.DeploymentType.JAXWS_JSE)
+ else if (type == DeploymentType.JAXWS_JSE)
{
- udi = new JAXWSDeployment(UnifiedDeploymentInfo.DeploymentType.JAXWS_JSE);
+ udi = new JAXWSDeployment(DeploymentType.JAXWS_JSE);
DeploymentInfoAdapterFactory.newInstance().buildDeploymentInfo(udi, di);
}
else
Modified: trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorJSEMBean.java
===================================================================
--- trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorJSEMBean.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorJSEMBean.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -24,7 +24,7 @@
import javax.management.ObjectName;
import org.jboss.deployment.SubDeployerInterceptorMBean;
-import org.jboss.ws.core.utils.ObjectNameFactory;
+import org.jboss.ws.integration.ObjectNameFactory;
/**
* MBean interface.
Modified: trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorNestedJSE.java
===================================================================
--- trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorNestedJSE.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorNestedJSE.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -35,6 +35,7 @@
import org.jboss.system.server.ServerConfig;
import org.jboss.system.server.ServerConfigLocator;
import org.jboss.ws.core.utils.IOUtils;
+import org.jboss.ws.integration.deployment.WSDeploymentException;
/**
* A deployer service that manages WS4EE compliant Web Services for
@@ -126,7 +127,7 @@
}
catch (IOException ex)
{
- throw new DeploymentException("Failed to destroy: " + di.url, ex);
+ throw new WSDeploymentException("Failed to destroy: " + di.url, ex);
}
}
}
Modified: trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorNestedJSEMBean.java
===================================================================
--- trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorNestedJSEMBean.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/DeployerInterceptorNestedJSEMBean.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -27,7 +27,7 @@
import org.jboss.deployment.MainDeployerMBean;
import org.jboss.deployment.SubDeployerMBean;
-import org.jboss.ws.core.utils.ObjectNameFactory;
+import org.jboss.ws.integration.ObjectNameFactory;
/**
* @author Thomas.Diesler(a)jboss.org
Modified: trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/ServerConfigImpl.java
===================================================================
--- trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/ServerConfigImpl.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/ServerConfigImpl.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -34,7 +34,7 @@
import org.jboss.logging.Logger;
import org.jboss.mx.util.MBeanServerLocator;
import org.jboss.ws.core.server.ServerConfig;
-import org.jboss.ws.core.utils.ObjectNameFactory;
+import org.jboss.ws.integration.ObjectNameFactory;
/**
* JBoss specific implementation of a ServerConfig
Modified: trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/ServiceEndpointInvokerEJB21.java
===================================================================
--- trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/ServiceEndpointInvokerEJB21.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/ServiceEndpointInvokerEJB21.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -47,7 +47,7 @@
import org.jboss.ws.core.server.ServiceEndpointInfo;
import org.jboss.ws.core.server.ServiceEndpointInvoker;
import org.jboss.ws.core.soap.MessageContextAssociation;
-import org.jboss.ws.core.utils.ObjectNameFactory;
+import org.jboss.ws.integration.ObjectNameFactory;
import org.jboss.ws.metadata.j2ee.UnifiedApplicationMetaData;
import org.jboss.ws.metadata.j2ee.UnifiedBeanMetaData;
import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
Modified: trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/ServiceEndpointInvokerEJB3.java
===================================================================
--- trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/ServiceEndpointInvokerEJB3.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/ServiceEndpointInvokerEJB3.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -38,7 +38,7 @@
import org.jboss.ws.core.server.ServiceEndpointInfo;
import org.jboss.ws.core.server.ServiceEndpointInvoker;
import org.jboss.ws.core.server.UnifiedDeploymentInfo;
-import org.jboss.ws.core.utils.ObjectNameFactory;
+import org.jboss.ws.integration.ObjectNameFactory;
/**
* Handles invocations on EJB3 endpoints.
Modified: trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/jms/MessageDispatcher.java
===================================================================
--- trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/jms/MessageDispatcher.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/jms/MessageDispatcher.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -29,7 +29,7 @@
import javax.management.ObjectName;
import javax.xml.soap.SOAPMessage;
-import org.jboss.ws.core.utils.ObjectNameFactory;
+import org.jboss.ws.integration.ObjectNameFactory;
/**
* A dispatcher for SOAPMessages
Modified: trunk/integration-jboss50/build.xml
===================================================================
--- trunk/integration-jboss50/build.xml 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss50/build.xml 2007-04-25 10:07:39 UTC (rev 2916)
@@ -122,6 +122,9 @@
<!-- Build jbossws50.deployer -->
<zip zipfile="${jboss50.output.lib.dir}/jbossws50-deployer.zip">
+ <fileset dir="${integration.output.lib.dir}">
+ <include name="jbossws-integration.jar"/>
+ </fileset>
<fileset dir="${jboss50.output.lib.dir}">
<include name="jbossws-jboss50-integration.jar"/>
</fileset>
Modified: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/AbstractDeployer.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/AbstractDeployer.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/AbstractDeployer.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -31,8 +31,8 @@
import org.jboss.ws.core.server.AbstractServiceEndpointPublisher;
import org.jboss.ws.core.server.ServiceEndpointDeployer;
import org.jboss.ws.core.server.UnifiedDeploymentInfo;
-import org.jboss.ws.core.server.UnifiedDeploymentInfo.DeploymentType;
import org.jboss.ws.integration.KernelLocator;
+import org.jboss.ws.integration.deployment.Deployment.DeploymentType;
/**
* An abstract web service deployer.
@@ -50,10 +50,10 @@
* @author Thomas.Diesler(a)jboss.org
* @since 31-Oct-2006
*/
-public abstract class AbstractDeployer implements WebServiceDeployer
+public abstract class AbstractDeployer implements DeployerHook
{
// provide logging
- private static final Logger log = Logger.getLogger(AbstractDeployer.class);
+ protected final Logger log = Logger.getLogger(getClass());
/** Depending on the type of deployment, this method should return true
* if the deployment contains web service endpoints.
Modified: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/AbstractDeployerJSE.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/AbstractDeployerJSE.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/AbstractDeployerJSE.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -43,9 +43,6 @@
*/
public abstract class AbstractDeployerJSE extends AbstractDeployer
{
- // provide logging
- protected static final Logger log = Logger.getLogger(AbstractDeployerJSE.class);
-
public AbstractDeployerJSE()
{
super();
Copied: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/DeployerHook.java (from rev 2914, trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceDeployer.java)
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/DeployerHook.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/DeployerHook.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,40 @@
+/*
+ * 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.integration.jboss50;
+
+//$Id$
+
+import org.jboss.deployers.spi.DeploymentException;
+import org.jboss.deployers.spi.deployer.DeploymentUnit;
+
+/**
+ * An interface for all web service deployers
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 24-Apr-2007
+ */
+public interface DeployerHook
+{
+ void deploy(DeploymentUnit unit) throws DeploymentException;
+
+ public void undeploy(DeploymentUnit unit);
+}
Modified: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/DeploymentInfoAdaptor.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/DeploymentInfoAdaptor.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/DeploymentInfoAdaptor.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -24,17 +24,16 @@
import java.net.URL;
import java.net.URLClassLoader;
-import org.jboss.deployers.spi.DeploymentException;
import org.jboss.deployers.spi.deployer.DeploymentUnit;
import org.jboss.ejb3.Ejb3Deployment;
import org.jboss.logging.Logger;
import org.jboss.metadata.ApplicationMetaData;
import org.jboss.metadata.WebMetaData;
+import org.jboss.ws.WSException;
import org.jboss.ws.core.server.UnifiedDeploymentInfo;
// $Id$
-
/**
* Build container independent deployment info.
*
@@ -46,7 +45,7 @@
// logging support
private static Logger log = Logger.getLogger(DeploymentInfoAdaptor.class);
- public static void buildDeploymentInfo(UnifiedDeploymentInfo udi, DeploymentUnit unit) throws DeploymentException
+ public static void buildDeploymentInfo(UnifiedDeploymentInfo udi, DeploymentUnit unit)
{
try
{
@@ -55,25 +54,25 @@
udi.parent = new UnifiedDeploymentInfo(null);
buildDeploymentInfo(udi.parent, unit.getDeploymentContext().getParent().getDeploymentUnit());
}
-
+
udi.vfRoot = new VirtualFileAdaptor(unit.getDeploymentContext().getRoot());
udi.name = unit.getName();
udi.simpleName = unit.getSimpleName();
udi.url = udi.vfRoot.toURL();
-
+
buildMetaData(udi, unit);
// Since we create temporary classes, we need to create a delegate loader
// This prevents CCE problems where the parent loader is available at deploy time,
// and a child loader is available at start time.
- udi.classLoader = new URLClassLoader(new URL[]{}, unit.getClassLoader());
-
+ udi.classLoader = new URLClassLoader(new URL[] {}, unit.getClassLoader());
+
log.debug("UnifiedDeploymentInfo:\n" + udi);
}
catch (Exception ex)
{
- DeploymentException.rethrowAsDeploymentException(ex.getMessage(), ex);
+ WSException.rethrow(ex.getMessage(), ex);
}
}
Modified: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/JAXRPCDeployerEJB21.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/JAXRPCDeployerEJB21.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/JAXRPCDeployerEJB21.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -23,18 +23,18 @@
//$Id$
+import java.io.IOException;
+
import org.jboss.deployers.spi.DeploymentException;
import org.jboss.deployers.spi.deployer.DeploymentUnit;
import org.jboss.metadata.ApplicationMetaData;
import org.jboss.virtual.VirtualFile;
import org.jboss.ws.core.server.UnifiedDeploymentInfo;
-import org.jboss.ws.core.server.UnifiedDeploymentInfo.DeploymentType;
import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.integration.deployment.Deployment.DeploymentType;
import org.jboss.ws.metadata.builder.jaxrpc.JAXRPCDeployment;
import org.w3c.dom.Element;
-import java.io.IOException;
-
/**
* A deployer JAXRPC EJB21 Endpoints
*
Modified: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/JAXRPCDeployerJSE.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/JAXRPCDeployerJSE.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/JAXRPCDeployerJSE.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -23,19 +23,19 @@
//$Id$
+import java.io.IOException;
+
import org.jboss.deployers.spi.DeploymentException;
import org.jboss.deployers.spi.deployer.DeploymentUnit;
import org.jboss.metadata.WebMetaData;
import org.jboss.virtual.VirtualFile;
import org.jboss.ws.core.server.UnifiedDeploymentInfo;
-import org.jboss.ws.core.server.UnifiedDeploymentInfo.DeploymentType;
import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.integration.UnifiedVirtualFile;
+import org.jboss.ws.integration.deployment.Deployment.DeploymentType;
import org.jboss.ws.metadata.builder.jaxrpc.JAXRPCDeployment;
import org.w3c.dom.Element;
-import java.io.IOException;
-
/**
* A deployer JAXRPC JSE Endpoints
*
Modified: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/JAXWSDeployerEJB3.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/JAXWSDeployerEJB3.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/JAXWSDeployerEJB3.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -35,7 +35,7 @@
import org.jboss.ejb3.stateless.StatelessContainer;
import org.jboss.ws.core.server.JAXWSDeployment;
import org.jboss.ws.core.server.UnifiedDeploymentInfo;
-import org.jboss.ws.core.server.UnifiedDeploymentInfo.DeploymentType;
+import org.jboss.ws.integration.deployment.Deployment.DeploymentType;
/**
* A deployer JAXWS EJB3 Endpoints
Modified: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/JAXWSDeployerJSE.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/JAXWSDeployerJSE.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/JAXWSDeployerJSE.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -35,7 +35,7 @@
import org.jboss.metadata.web.Servlet;
import org.jboss.ws.core.server.JAXWSDeployment;
import org.jboss.ws.core.server.UnifiedDeploymentInfo;
-import org.jboss.ws.core.server.UnifiedDeploymentInfo.DeploymentType;
+import org.jboss.ws.integration.deployment.Deployment.DeploymentType;
/**
* A deployer JAXWS JSE Endpoints
Modified: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/ServerConfigImpl.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/ServerConfigImpl.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/ServerConfigImpl.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -34,7 +34,7 @@
import org.jboss.logging.Logger;
import org.jboss.mx.util.MBeanServerLocator;
import org.jboss.ws.core.server.ServerConfig;
-import org.jboss.ws.core.utils.ObjectNameFactory;
+import org.jboss.ws.integration.ObjectNameFactory;
/**
* JBoss specific implementation of a ServerConfig
Modified: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/ServiceEndpointInvokerEJB21.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/ServiceEndpointInvokerEJB21.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/ServiceEndpointInvokerEJB21.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -47,7 +47,7 @@
import org.jboss.ws.core.server.ServiceEndpointInfo;
import org.jboss.ws.core.server.ServiceEndpointInvoker;
import org.jboss.ws.core.soap.MessageContextAssociation;
-import org.jboss.ws.core.utils.ObjectNameFactory;
+import org.jboss.ws.integration.ObjectNameFactory;
import org.jboss.ws.metadata.j2ee.UnifiedApplicationMetaData;
import org.jboss.ws.metadata.j2ee.UnifiedBeanMetaData;
import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
Modified: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/ServiceEndpointInvokerEJB3.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/ServiceEndpointInvokerEJB3.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/ServiceEndpointInvokerEJB3.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -49,7 +49,7 @@
import org.jboss.ws.core.server.ServiceEndpointInvoker;
import org.jboss.ws.core.server.UnifiedDeploymentInfo;
import org.jboss.ws.core.soap.MessageContextAssociation;
-import org.jboss.ws.core.utils.ObjectNameFactory;
+import org.jboss.ws.integration.ObjectNameFactory;
/**
* Handles invocations on EJB3 endpoints.
Modified: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/ServiceEndpointLifecycleDeployer.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/ServiceEndpointLifecycleDeployer.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/ServiceEndpointLifecycleDeployer.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -41,7 +41,7 @@
* @author Thomas.Diesler(a)jboss.org
* @since 31-Oct-2006
*/
-public class ServiceEndpointLifecycleDeployer implements WebServiceDeployer
+public class ServiceEndpointLifecycleDeployer implements DeployerHook
{
// provide logging
private static final Logger log = Logger.getLogger(ServiceEndpointLifecycleDeployer.class);
Modified: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceAbstractDeployer.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceAbstractDeployer.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceAbstractDeployer.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -40,19 +40,19 @@
public abstract class WebServiceAbstractDeployer extends AbstractSimpleDeployer
{
// provide logging
- private static final Logger log = Logger.getLogger(WebServiceAbstractDeployer.class);
+ protected final Logger log = Logger.getLogger(getClass());
- private List<WebServiceDeployer> deployers = new LinkedList<WebServiceDeployer>();
+ private List<DeployerHook> deployers = new LinkedList<DeployerHook>();
- public void addDeployer(WebServiceDeployer deployer)
+ public void addDeployerHook(DeployerHook deployer)
{
- log.debug("Add deployer: " + deployer);
+ log.debug("Add deployer hook: " + deployer);
deployers.add(deployer);
}
- public void removeDeployer(WebServiceDeployer deployer)
+ public void removeDeployerHook(DeployerHook deployer)
{
- log.debug("Remove deployer: " + deployer);
+ log.debug("Remove deployer hook: " + deployer);
deployers.remove(deployer);
}
@@ -60,7 +60,7 @@
public void deploy(DeploymentUnit unit) throws DeploymentException
{
log.debug("Deploy: " + unit.getName());
- for (WebServiceDeployer deployer : deployers)
+ for (DeployerHook deployer : deployers)
deployer.deploy(unit);
}
@@ -68,7 +68,7 @@
public void undeploy(DeploymentUnit unit)
{
log.debug("Undeploy: " + unit.getName());
- for (WebServiceDeployer deployer : deployers)
+ for (DeployerHook deployer : deployers)
deployer.undeploy(unit);
}
}
Deleted: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceDeployer.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceDeployer.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceDeployer.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -1,40 +0,0 @@
-/*
- * 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.integration.jboss50;
-
-//$Id$
-
-import org.jboss.deployers.spi.DeploymentException;
-import org.jboss.deployers.spi.deployer.DeploymentUnit;
-
-/**
- * An interface for all web service deployers
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 24-Apr-2007
- */
-public interface WebServiceDeployer
-{
- void deploy(DeploymentUnit unit) throws DeploymentException;
-
- public void undeploy(DeploymentUnit unit);
-}
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceLifecycleDeployer.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceLifecycleDeployer.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceLifecycleDeployer.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,34 @@
+/*
+ * 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.integration.jboss50;
+
+//$Id$
+
+/**
+ * This deployer delegates to registerd web service deployers
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 24-Apr-2007
+ */
+public class WebServiceLifecycleDeployer extends WebServiceAbstractDeployer
+{
+}
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceLifecycleDeployer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Deleted: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceStartStopDeployer.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceStartStopDeployer.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceStartStopDeployer.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -1,34 +0,0 @@
-/*
- * 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.integration.jboss50;
-
-//$Id$
-
-/**
- * This deployer delegates to registerd web service deployers
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 24-Apr-2007
- */
-public class WebServiceStartStopDeployer extends WebServiceAbstractDeployer
-{
-}
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AbstractDeployerHook.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AbstractDeployerHook.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AbstractDeployerHook.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,61 @@
+/*
+ * 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.integration.jboss50.jbossws;
+
+//$Id$
+
+import org.jboss.deployers.spi.deployer.DeploymentUnit;
+import org.jboss.logging.Logger;
+import org.jboss.ws.integration.deployment.DeploymentManager;
+import org.jboss.ws.integration.jboss50.DeployerHook;
+
+/**
+ * An abstract web service deployer.
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 31-Oct-2006
+ */
+public abstract class AbstractDeployerHook implements DeployerHook
+{
+ // provide logging
+ protected final Logger log = Logger.getLogger(getClass());
+
+ protected DeploymentManager deploymentManager;
+
+ public DeploymentManager getDeploymentManager()
+ {
+ return deploymentManager;
+ }
+
+ public void setDeploymentManager(DeploymentManager deploymentManager)
+ {
+ this.deploymentManager = deploymentManager;
+ }
+
+ /** Return true if this deployment should be ignored
+ */
+ public boolean ignoreDeployment(DeploymentUnit unit)
+ {
+ String name = unit.getName();
+ return (name.startsWith("jboss:id=") && name.indexOf("service=jacc") > 0);
+ }
+}
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AbstractDeployerHook.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AbstractDeployerHookEJB.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AbstractDeployerHookEJB.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AbstractDeployerHookEJB.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,34 @@
+/*
+ * 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.integration.jboss50.jbossws;
+
+//$Id$
+
+/**
+ * An abstract deployer for EJB Endpoints
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 31-Oct-2006
+ */
+public abstract class AbstractDeployerHookEJB extends ArchiveDeployerHook
+{
+}
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AbstractDeployerHookEJB.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AbstractDeployerHookJSE.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AbstractDeployerHookJSE.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AbstractDeployerHookJSE.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,44 @@
+/*
+ * 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.integration.jboss50.jbossws;
+
+import org.jboss.deployers.spi.deployer.DeploymentUnit;
+import org.jboss.metadata.WebMetaData;
+
+//$Id$
+
+/**
+ * An abstract deployer for JSE Endpoints
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 31-Oct-2006
+ */
+public abstract class AbstractDeployerHookJSE extends ArchiveDeployerHook
+{
+ public boolean isWebServiceDeployment(DeploymentUnit unit)
+ {
+ if (unit.getAttachment(WebMetaData.class) == null)
+ return false;
+
+ return true;
+ }
+}
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AbstractDeployerHookJSE.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AbstractInvocationHandler.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AbstractInvocationHandler.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AbstractInvocationHandler.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,430 @@
+/*
+ * 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.integration.jboss50.jbossws;
+
+// $Id$
+
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
+import java.lang.reflect.UndeclaredThrowableException;
+import java.util.HashMap;
+
+import javax.activation.DataHandler;
+import javax.management.MBeanException;
+import javax.xml.namespace.QName;
+import javax.xml.rpc.soap.SOAPFaultException;
+import javax.xml.soap.Name;
+import javax.xml.soap.SOAPBody;
+import javax.xml.soap.SOAPBodyElement;
+import javax.xml.soap.SOAPException;
+import javax.xml.soap.SOAPHeader;
+import javax.xml.ws.http.HTTPBinding;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.Constants;
+import org.jboss.ws.core.CommonBinding;
+import org.jboss.ws.core.CommonBindingProvider;
+import org.jboss.ws.core.CommonMessageContext;
+import org.jboss.ws.core.CommonSOAPBinding;
+import org.jboss.ws.core.DirectionHolder;
+import org.jboss.ws.core.EndpointInvocation;
+import org.jboss.ws.core.MessageAbstraction;
+import org.jboss.ws.core.DirectionHolder.Direction;
+import org.jboss.ws.core.jaxrpc.handler.HandlerDelegateJAXRPC;
+import org.jboss.ws.core.jaxrpc.handler.MessageContextJAXRPC;
+import org.jboss.ws.core.jaxws.binding.BindingProviderImpl;
+import org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS;
+import org.jboss.ws.core.jaxws.handler.MessageContextJAXWS;
+import org.jboss.ws.core.server.ServerHandlerDelegate;
+import org.jboss.ws.core.soap.MessageContextAssociation;
+import org.jboss.ws.core.soap.SOAPMessageImpl;
+import org.jboss.ws.core.utils.JavaUtils;
+import org.jboss.ws.extensions.xop.XOPContext;
+import org.jboss.ws.integration.Endpoint;
+import org.jboss.ws.integration.invocation.InvocationHandler;
+import org.jboss.ws.metadata.umdm.EndpointMetaData;
+import org.jboss.ws.metadata.umdm.OperationMetaData;
+import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
+import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
+
+/** An implementation handles invocations on the endpoint
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 19-Jan-2005
+ */
+public abstract class AbstractInvocationHandler implements InvocationHandler
+{
+ // provide logging
+ private static Logger log = Logger.getLogger(AbstractInvocationHandler.class);
+
+ protected Endpoint endpoint;
+ protected CommonBindingProvider bindingProvider;
+ protected ServerHandlerDelegate delegate;
+
+ /** Initialize the service endpoint */
+ public void init(Endpoint endpoint)
+ {
+ this.endpoint = endpoint;
+
+ ServerEndpointMetaData sepMetaData = endpoint.getMetaData(ServerEndpointMetaData.class);
+ if (sepMetaData == null)
+ throw new IllegalStateException("Cannot obtain endpoint meta data");
+
+ if (sepMetaData.getType() == EndpointMetaData.Type.JAXRPC)
+ {
+ bindingProvider = new CommonBindingProvider(sepMetaData);
+ delegate = new HandlerDelegateJAXRPC(sepMetaData);
+ }
+ else
+ {
+ bindingProvider = new BindingProviderImpl(sepMetaData);
+ delegate = new HandlerDelegateJAXWS(sepMetaData);
+ }
+ }
+
+ /** Load the SEI implementation bean if necessary */
+ protected abstract Class loadServiceEndpoint() throws ClassNotFoundException;
+
+ /** Create the instance of the SEI implementation bean if necessary */
+ protected abstract Object createServiceEndpointInstance(Object context, Class seiImplClass) throws Exception;
+
+ /** Invoke the instance of the SEI implementation bean */
+ protected abstract void invokeServiceEndpointInstance(Object seiImpl, EndpointInvocation epInv) throws Exception;
+
+ /** Destroy the instance of the SEI implementation bean if necessary */
+ protected abstract void destroyServiceEndpointInstance(Object seiImpl);
+
+ public boolean callRequestHandlerChain(ServerEndpointMetaData sepMetaData, HandlerType type)
+ {
+ return delegate.callRequestHandlerChain(sepMetaData, type);
+ }
+
+ public boolean callResponseHandlerChain(ServerEndpointMetaData sepMetaData, HandlerType type)
+ {
+ return delegate.callResponseHandlerChain(sepMetaData, type);
+ }
+
+ public void closeHandlerChain(ServerEndpointMetaData sepMetaData, HandlerType type)
+ {
+ delegate.closeHandlerChain(sepMetaData, type);
+ }
+
+ public boolean callFaultHandlerChain(ServerEndpointMetaData sepMetaData, HandlerType type, Exception ex)
+ {
+ return delegate.callFaultHandlerChain(sepMetaData, type, ex);
+ }
+
+ /** Invoke the the service endpoint */
+ public void invoke(Object reqContext) throws Exception
+ {
+ CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
+ ServerEndpointMetaData sepMetaData = (ServerEndpointMetaData)msgContext.getEndpointMetaData();
+ MessageAbstraction reqMessage = msgContext.getMessageAbstraction();
+
+ // Load the endpoint implementation bean
+ Class seImpl = loadServiceEndpoint();
+
+ // Create an instance of the endpoint implementation bean
+ Object seInstance = createServiceEndpointInstance(reqContext, seImpl);
+
+ // The direction of the message
+ DirectionHolder direction = new DirectionHolder(Direction.InBound);
+
+ // Get the order of pre/post handlerchains
+ HandlerType[] handlerType = delegate.getHandlerTypeOrder();
+ HandlerType[] faultType = delegate.getHandlerTypeOrder();
+
+ // Set the required inbound context properties
+ setInboundContextProperties();
+
+ try
+ {
+ boolean oneway = false;
+ EndpointInvocation epInv = null;
+ OperationMetaData opMetaData = null;
+ CommonBinding binding = bindingProvider.getCommonBinding();
+ binding.setHeaderSource(delegate);
+
+ // call the request handler chain
+ boolean handlersPass = callRequestHandlerChain(sepMetaData, handlerType[0]);
+
+ // Unbind the request message
+ if (handlersPass)
+ {
+ // Get the operation meta data from the SOAP message
+ opMetaData = getDispatchDestination(sepMetaData, reqMessage);
+ msgContext.setOperationMetaData(opMetaData);
+ oneway = opMetaData.isOneWay();
+
+ /*
+ * From JAX-WS 10.2.1 - "7. If the node does not understand how to process
+ * the message, then neither handlers nor the endpoint
+ * are invoked and instead the binding generates a SOAP must
+ * understand exception"
+ *
+ * Therefore, this must precede the ENDPOINT chain; however, The PRE
+ * chain still must happen first since the message may be encrypted, in which
+ * case the operation is still not known. Without knowing the operation, it
+ * is not possible to determine what headers are understood by the endpoint.
+ */
+ if (binding instanceof CommonSOAPBinding)
+ ((CommonSOAPBinding)binding).checkMustUnderstand(opMetaData);
+
+ // Unbind the request message
+ epInv = binding.unbindRequestMessage(opMetaData, reqMessage);
+ }
+
+ handlersPass = handlersPass && callRequestHandlerChain(sepMetaData, handlerType[1]);
+ handlersPass = handlersPass && callRequestHandlerChain(sepMetaData, handlerType[2]);
+
+ if (handlersPass)
+ {
+ msgContext.put(CommonMessageContext.ALLOW_EXPAND_TO_DOM, Boolean.TRUE);
+ try
+ {
+ // Check if protocol handlers modified the payload
+ if (msgContext.isModified())
+ {
+ log.debug("Handler modified payload, unbind message again");
+ reqMessage = msgContext.getMessageAbstraction();
+ epInv = binding.unbindRequestMessage(opMetaData, reqMessage);
+ }
+
+ // Invoke the service endpoint
+ invokeServiceEndpointInstance(seInstance, epInv);
+ }
+ finally
+ {
+ msgContext.remove(CommonMessageContext.ALLOW_EXPAND_TO_DOM);
+ }
+
+ // Reverse the message direction
+ msgContext = processPivotInternal(msgContext, direction);
+
+ // Set the required outbound context properties
+ setOutboundContextProperties();
+
+ if (binding instanceof CommonSOAPBinding)
+ XOPContext.setMTOMEnabled(((CommonSOAPBinding)binding).isMTOMEnabled());
+
+ // Bind the response message
+ MessageAbstraction resMessage = binding.bindResponseMessage(opMetaData, epInv);
+ msgContext.setMessageAbstraction(resMessage);
+ }
+ else
+ {
+ // Reverse the message direction without calling the endpoint
+ MessageAbstraction resMessage = msgContext.getMessageAbstraction();
+ msgContext = processPivotInternal(msgContext, direction);
+ msgContext.setMessageAbstraction(resMessage);
+ }
+
+ if (oneway == false)
+ {
+ // call the response handler chain, removing the fault type entry will not call handleFault for that chain
+ handlersPass = callResponseHandlerChain(sepMetaData, handlerType[2]);
+ faultType[2] = null;
+ handlersPass = handlersPass && callResponseHandlerChain(sepMetaData, handlerType[1]);
+ faultType[1] = null;
+ handlersPass = handlersPass && callResponseHandlerChain(sepMetaData, handlerType[0]);
+ faultType[0] = null;
+ }
+ }
+ catch (RuntimeException ex)
+ {
+ // Reverse the message direction
+ processPivotInternal(msgContext, direction);
+
+ try
+ {
+ CommonBinding binding = bindingProvider.getCommonBinding();
+ binding.bindFaultMessage(ex);
+
+ // call the fault handler chain
+ boolean handlersPass = true;
+ if (faultType[2] != null)
+ handlersPass = handlersPass && callFaultHandlerChain(sepMetaData, faultType[2], ex);
+ if (faultType[1] != null)
+ handlersPass = handlersPass && callFaultHandlerChain(sepMetaData, faultType[1], ex);
+ if (faultType[0] != null)
+ handlersPass = handlersPass && callFaultHandlerChain(sepMetaData, faultType[0], ex);
+ }
+ catch (RuntimeException subEx)
+ {
+ log.warn("Exception while processing handleFault: ", ex);
+ ex = subEx;
+ }
+ throw ex;
+ }
+ finally
+ {
+ closeHandlerChain(sepMetaData, handlerType[2]);
+ closeHandlerChain(sepMetaData, handlerType[1]);
+ closeHandlerChain(sepMetaData, handlerType[0]);
+
+ destroyServiceEndpointInstance(seInstance);
+ }
+ }
+
+ protected void setInboundContextProperties()
+ {
+ CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
+ if (msgContext instanceof MessageContextJAXWS)
+ {
+ // Map of attachments to a message for the outbound message, key is the MIME Content-ID, value is a DataHandler
+ msgContext.put(MessageContextJAXWS.INBOUND_MESSAGE_ATTACHMENTS, new HashMap<String, DataHandler>());
+ }
+ }
+
+ protected void setOutboundContextProperties()
+ {
+ CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
+ if (msgContext instanceof MessageContextJAXWS)
+ {
+ // Map of attachments to a message for the outbound message, key is the MIME Content-ID, value is a DataHandler
+ msgContext.put(MessageContextJAXWS.OUTBOUND_MESSAGE_ATTACHMENTS, new HashMap<String, DataHandler>());
+ }
+ }
+
+ private CommonMessageContext processPivotInternal(CommonMessageContext msgContext, DirectionHolder direction)
+ {
+ if (direction.getDirection() == Direction.InBound)
+ {
+ EndpointMetaData epMetaData = msgContext.getEndpointMetaData();
+ if (epMetaData.getType() == EndpointMetaData.Type.JAXRPC)
+ {
+ msgContext = MessageContextJAXRPC.processPivot(msgContext);
+ }
+ else
+ {
+ msgContext = MessageContextJAXWS.processPivot(msgContext);
+ }
+ direction.setDirection(Direction.OutBound);
+ }
+ return msgContext;
+ }
+
+ private OperationMetaData getDispatchDestination(EndpointMetaData epMetaData, MessageAbstraction reqMessage) throws SOAPException
+ {
+ OperationMetaData opMetaData;
+
+ String bindingID = epMetaData.getBindingId();
+ if (HTTPBinding.HTTP_BINDING.equals(bindingID))
+ {
+ if (epMetaData.getOperations().size() != 1)
+ throw new IllegalStateException("Multiple operations not supported for HTTP binding");
+
+ opMetaData = epMetaData.getOperations().get(0);
+ }
+ else
+ {
+ SOAPMessageImpl soapMessage = (SOAPMessageImpl)reqMessage;
+
+ opMetaData = soapMessage.getOperationMetaData(epMetaData);
+ SOAPHeader soapHeader = soapMessage.getSOAPHeader();
+
+ // Report a MustUnderstand fault
+ if (opMetaData == null)
+ {
+ String faultString;
+ SOAPBody soapBody = soapMessage.getSOAPBody();
+ if (soapBody.getChildElements().hasNext())
+ {
+ SOAPBodyElement soapBodyElement = (SOAPBodyElement)soapBody.getChildElements().next();
+ Name soapName = soapBodyElement.getElementName();
+ faultString = "Endpoint " + epMetaData.getPortName() + " does not contain operation meta data for: " + soapName;
+ }
+ else
+ {
+ faultString = "Endpoint " + epMetaData.getPortName() + " does not contain operation meta data for empty soap body";
+ }
+
+ // R2724 If an INSTANCE receives a message that is inconsistent with its WSDL description, it SHOULD generate a soap:Fault
+ // with a faultcode of "Client", unless a "MustUnderstand" or "VersionMismatch" fault is generated.
+ if (soapHeader != null && soapHeader.examineMustUnderstandHeaderElements(Constants.URI_SOAP11_NEXT_ACTOR).hasNext())
+ {
+ QName faultCode = Constants.SOAP11_FAULT_CODE_MUST_UNDERSTAND;
+ throw new SOAPFaultException(faultCode, faultString, null, null);
+ }
+ else
+ {
+ QName faultCode = Constants.SOAP11_FAULT_CODE_CLIENT;
+ throw new SOAPFaultException(faultCode, faultString, null, null);
+ }
+ }
+ }
+ return opMetaData;
+ }
+
+ protected Method getImplMethod(Class implClass, Method seiMethod) throws ClassNotFoundException, NoSuchMethodException
+ {
+ String methodName = seiMethod.getName();
+ Class[] paramTypes = seiMethod.getParameterTypes();
+ for (int i = 0; i < paramTypes.length; i++)
+ {
+ Class paramType = paramTypes[i];
+ if (JavaUtils.isPrimitive(paramType) == false)
+ {
+ String paramTypeName = paramType.getName();
+ paramType = JavaUtils.loadJavaType(paramTypeName);
+ paramTypes[i] = paramType;
+ }
+ }
+
+ Method implMethod = implClass.getMethod(methodName, paramTypes);
+ return implMethod;
+ }
+
+ /** handle invocation exceptions */
+ public void handleInvocationException(Throwable th) throws Exception
+ {
+ if (th instanceof InvocationTargetException)
+ {
+ // unwrap the throwable raised by the service endpoint implementation
+ Throwable targetEx = ((InvocationTargetException)th).getTargetException();
+ handleInvocationThrowable(targetEx);
+ }
+
+ if (th instanceof MBeanException)
+ {
+ throw ((MBeanException)th).getTargetException();
+ }
+
+ handleInvocationThrowable(th);
+ }
+
+ private void handleInvocationThrowable(Throwable th) throws Exception
+ {
+ if (th instanceof Exception)
+ {
+ throw (Exception)th;
+ }
+ else if (th instanceof Error)
+ {
+ throw (Error)th;
+ }
+ else
+ {
+ throw new UndeclaredThrowableException(th);
+ }
+ }
+}
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AbstractInvocationHandler.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AbstractServiceEndpointServlet.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AbstractServiceEndpointServlet.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AbstractServiceEndpointServlet.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,161 @@
+/*
+ * 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.integration.jboss50.jbossws;
+
+// $Id$
+
+import java.io.IOException;
+import java.io.Writer;
+
+import javax.management.ObjectName;
+import javax.servlet.ServletConfig;
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import javax.xml.rpc.JAXRPCException;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.WSException;
+import org.jboss.ws.core.server.ServletRequestContext;
+import org.jboss.ws.integration.Endpoint;
+import org.jboss.ws.integration.ObjectNameFactory;
+import org.jboss.ws.integration.RequestHandler;
+import org.jboss.ws.integration.management.EndpointRegistry;
+import org.jboss.ws.integration.management.EndpointRegistryFactory;
+
+/**
+ * A servlet that is installed for every web service endpoint.
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 15-Jan-2005
+ */
+public abstract class AbstractServiceEndpointServlet extends HttpServlet
+{
+ // provide logging
+ private static final Logger log = Logger.getLogger(AbstractServiceEndpointServlet.class);
+
+ protected Endpoint endpoint;
+ protected EndpointRegistry epManager;
+
+ public void init(ServletConfig config) throws ServletException
+ {
+ super.init(config);
+ epManager = EndpointRegistryFactory.getEndpointRegistry();
+ }
+
+ public void destroy()
+ {
+ super.destroy();
+ }
+
+ public void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
+ {
+ if (endpoint == null)
+ {
+ String contextPath = req.getContextPath();
+ initServiceEndpoint(contextPath);
+ }
+ super.service(req, res);
+ }
+
+ public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
+ {
+ // Process a WSDL request
+ if (req.getParameter("wsdl") != null || req.getParameter("WSDL") != null)
+ {
+ res.setContentType("text/xml");
+ try
+ {
+ RequestHandler requestHandler = endpoint.getRequestHandler();
+ ServletRequestContext context = new ServletRequestContext(getServletContext(), req, res);
+ requestHandler.handleWSDLRequest(endpoint, res.getOutputStream(), context);
+ }
+ catch (Exception ex)
+ {
+ handleException(ex);
+ }
+ }
+ else
+ {
+ res.setStatus(405);
+ res.setContentType("text/plain");
+ Writer out = res.getWriter();
+ out.write("HTTP GET not supported");
+ out.flush();
+ out.close();
+ }
+ }
+
+ public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
+ {
+ log.debug("doPost: " + req.getRequestURI());
+
+ try
+ {
+ RequestHandler requestHandler = endpoint.getRequestHandler();
+ ServletRequestContext context = new ServletRequestContext(getServletContext(), req, res);
+ requestHandler.handleRequest(endpoint, req.getInputStream(), res.getOutputStream(), context);
+ }
+ catch (Exception ex)
+ {
+ handleException(ex);
+ }
+ }
+
+ private void handleException(Exception ex) throws ServletException
+ {
+ log.error("Error processing web service request", ex);
+
+ if (ex instanceof JAXRPCException)
+ throw (JAXRPCException)ex;
+
+ throw new ServletException(ex);
+ }
+
+ /** Initialize the service endpoint
+ */
+ protected void initServiceEndpoint(String contextPath)
+ {
+ String servletName = getServletName();
+ if (contextPath.startsWith("/"))
+ contextPath = contextPath.substring(1);
+
+ for (ObjectName sepId : epManager.getEndpoints())
+ {
+ String propContext = sepId.getKeyProperty(Endpoint.SEPID_PROPERTY_CONTEXT);
+ String propEndpoint = sepId.getKeyProperty(Endpoint.SEPID_PROPERTY_ENDPOINT);
+ if (servletName.equals(propEndpoint) && contextPath.equals(propContext))
+ {
+ endpoint = epManager.getEndpoint(sepId);
+ break;
+ }
+ }
+
+ if (endpoint == null)
+ {
+ ObjectName oname = ObjectNameFactory.create(Endpoint.SEPID_DOMAIN + ":" + Endpoint.SEPID_PROPERTY_CONTEXT + "=" + contextPath + ","
+ + Endpoint.SEPID_PROPERTY_ENDPOINT + "=" + servletName);
+ throw new WSException("Cannot obtain endpoint for: " + oname);
+ }
+ }
+}
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AbstractServiceEndpointServlet.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/ArchiveDeployerHook.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/ArchiveDeployerHook.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/ArchiveDeployerHook.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,169 @@
+/*
+ * 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.integration.jboss50.jbossws;
+
+//$Id$
+
+import java.io.InputStream;
+import java.net.URL;
+
+import javax.management.ObjectName;
+
+import org.jboss.deployers.spi.DeploymentException;
+import org.jboss.deployers.spi.deployer.DeploymentUnit;
+import org.jboss.logging.Logger;
+import org.jboss.virtual.VirtualFile;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.integration.Endpoint;
+import org.jboss.ws.integration.ObjectNameFactory;
+import org.jboss.ws.integration.deployment.Deployment;
+import org.jboss.ws.integration.deployment.WSDeploymentException;
+import org.jboss.ws.integration.deployment.Deployment.DeploymentType;
+import org.jboss.ws.metadata.webservices.WebservicesFactory;
+import org.jboss.ws.metadata.webservices.WebservicesMetaData;
+import org.jboss.xb.binding.ObjectModelFactory;
+import org.jboss.xb.binding.Unmarshaller;
+import org.jboss.xb.binding.UnmarshallerFactory;
+import org.w3c.dom.Element;
+
+/**
+ * An abstract web service deployer.
+ *
+ * deploy(unit)
+ * if(isWebServiceDeployment)
+ * dep = createDeployment(unit)
+ * deploy(dep)
+ *
+ * undeploy(unit)
+ * dep = getDeployment(unit)
+ * undeploy(dep)
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 31-Oct-2006
+ */
+public abstract class ArchiveDeployerHook extends AbstractDeployerHook
+{
+ // provide logging
+ protected final Logger log = Logger.getLogger(getClass());
+
+ /** Get the deployemnt type this deployer can handle
+ */
+ public abstract DeploymentType getDeploymentType();
+
+ /** Depending on the type of deployment, this method should return true
+ * if the deployment contains web service endpoints.
+ */
+ public abstract boolean isWebServiceDeployment(DeploymentUnit unit);
+
+ /** Create the Deployment for a given DeploymentUnit
+ */
+ public abstract Deployment createDeployment(DeploymentUnit unit);
+
+ /** Get the Deployment for a given DeploymentUnit
+ */
+ public Deployment getDeployment(DeploymentUnit unit)
+ {
+ Deployment dep = unit.getAttachment(Deployment.class);
+ return (dep != null && dep.getType() == getDeploymentType() ? dep : null);
+ }
+
+ public void deploy(DeploymentUnit unit) throws DeploymentException
+ {
+ if (ignoreDeployment(unit))
+ return;
+
+ if (isWebServiceDeployment(unit))
+ {
+ Deployment dep = getDeployment(unit);
+ if (dep == null)
+ {
+ dep = createDeployment(unit);
+ dep.getContext().addAttachment(DeploymentUnit.class, unit);
+ }
+
+ deploymentManager.deploy(dep);
+ unit.addAttachment(Deployment.class, dep);
+ }
+ }
+
+ public void undeploy(DeploymentUnit unit)
+ {
+ if (ignoreDeployment(unit))
+ return;
+
+ Deployment dep = getDeployment(unit);
+ if (dep != null)
+ {
+ deploymentManager.undeploy(dep);
+ unit.removeAttachment(Deployment.class);
+ }
+ }
+
+ /** Unmrashall the webservices.xml if there is one
+ */
+ protected WebservicesMetaData getWebservicesMetaData(DeploymentUnit unit)
+ {
+ WebservicesMetaData wsMetaData = unit.getAttachment(WebservicesMetaData.class);
+ VirtualFile vfWebservices = unit.getMetaDataFile("webservices.xml");
+ if (wsMetaData == null && vfWebservices != null)
+ {
+ try
+ {
+ URL webservicesURL = vfWebservices.toURL();
+ InputStream is = webservicesURL.openStream();
+ try
+ {
+ Element root = DOMUtils.parse(vfWebservices.openStream());
+ String namespaceURI = root.getNamespaceURI();
+ if (namespaceURI.equals("http://java.sun.com/xml/ns/j2ee"))
+ {
+ Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
+ ObjectModelFactory factory = new WebservicesFactory(webservicesURL);
+ wsMetaData = (WebservicesMetaData)unmarshaller.unmarshal(is, factory, null);
+ unit.addAttachment(WebservicesMetaData.class, wsMetaData);
+ }
+ }
+ finally
+ {
+ is.close();
+ }
+ }
+ catch (Exception ex)
+ {
+ throw new WSDeploymentException(ex);
+ }
+ }
+ return wsMetaData;
+ }
+
+ protected ObjectName createEndpointName(String contextRoot, String linkName)
+ {
+ if (contextRoot.startsWith("/"))
+ contextRoot = contextRoot.substring(1);
+
+ StringBuilder idstr = new StringBuilder(Endpoint.SEPID_DOMAIN + ":");
+ idstr.append(Endpoint.SEPID_PROPERTY_CONTEXT + "=" + contextRoot);
+ idstr.append("," + Endpoint.SEPID_PROPERTY_ENDPOINT + "=" + linkName);
+
+ return ObjectNameFactory.create(idstr.toString());
+ }
+}
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/ArchiveDeployerHook.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AssignEndpointHandlersDeployer.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AssignEndpointHandlersDeployer.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AssignEndpointHandlersDeployer.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,115 @@
+/*
+ * 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.integration.jboss50.jbossws;
+
+//$Id$
+
+import java.util.Map;
+
+import org.jboss.ws.integration.Endpoint;
+import org.jboss.ws.integration.LifecycleHandler;
+import org.jboss.ws.integration.RequestHandler;
+import org.jboss.ws.integration.deployment.AbstractDeployer;
+import org.jboss.ws.integration.deployment.Deployment;
+import org.jboss.ws.integration.invocation.InvocationHandler;
+
+/**
+ * A deployer that assigns the handlers to the Endpoint
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 31-Oct-2005
+ */
+public class AssignEndpointHandlersDeployer extends AbstractDeployer
+{
+ private String requestHandler;
+ private String lifecycleHandler;
+ private Map<String,String> invocationHandlers;
+
+ public void setLifecycleHandler(String handler)
+ {
+ this.lifecycleHandler = handler;
+ }
+
+ public void setRequestHandler(String handler)
+ {
+ this.requestHandler = handler;
+ }
+
+ public void setInvocationHandlers(Map<String,String> handlers)
+ {
+ this.invocationHandlers = handlers;
+ }
+
+ @Override
+ public void create(Deployment dep)
+ {
+ for (Endpoint ep : dep.getService().getEndpoints())
+ {
+ ep.setRequestHandler(getRequestHandler(dep));
+ ep.setLifecycleHandler(getLifecycleHandler(dep));
+ ep.setInvocationHandler(getInvocationHandler(dep));
+ }
+ }
+
+ private RequestHandler getRequestHandler(Deployment dep)
+ {
+ try
+ {
+ Class<?> handlerClass = dep.getClassLoader().loadClass(requestHandler);
+ return (RequestHandler)handlerClass.newInstance();
+ }
+ catch (Exception e)
+ {
+ throw new IllegalStateException("Cannot load request handler: " + requestHandler);
+ }
+ }
+
+ private LifecycleHandler getLifecycleHandler(Deployment dep)
+ {
+ try
+ {
+ Class<?> handlerClass = dep.getClassLoader().loadClass(lifecycleHandler);
+ return (LifecycleHandler)handlerClass.newInstance();
+ }
+ catch (Exception e)
+ {
+ throw new IllegalStateException("Cannot load lifecycle handler: " + lifecycleHandler);
+ }
+ }
+
+ private InvocationHandler getInvocationHandler(Deployment dep)
+ {
+ String className = invocationHandlers.get(dep.getType().toString());
+ if (className == null)
+ throw new IllegalStateException("Cannot obtain invocation handler for: " + dep.getType());
+
+ try
+ {
+ Class<?> handlerClass = dep.getClassLoader().loadClass(className);
+ return (InvocationHandler)handlerClass.newInstance();
+ }
+ catch (Exception e)
+ {
+ throw new IllegalStateException("Cannot load invocation handler: " + className);
+ }
+ }
+}
\ No newline at end of file
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AssignEndpointHandlersDeployer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AssignEndpointMetaDataDeployer.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AssignEndpointMetaDataDeployer.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AssignEndpointMetaDataDeployer.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,85 @@
+/*
+ * 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.integration.jboss50.jbossws;
+
+//$Id$
+
+import javax.management.ObjectName;
+
+import org.jboss.ws.integration.Endpoint;
+import org.jboss.ws.integration.deployment.AbstractDeployer;
+import org.jboss.ws.integration.deployment.Deployment;
+import org.jboss.ws.metadata.umdm.EndpointMetaData;
+import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
+import org.jboss.ws.metadata.umdm.ServiceMetaData;
+import org.jboss.ws.metadata.umdm.UnifiedMetaData;
+
+/**
+ * A deployer that assigns the EndpointMetaData to the Endpoint
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 31-Oct-2005
+ */
+public class AssignEndpointMetaDataDeployer extends AbstractDeployer
+{
+ @Override
+ public void create(Deployment dep)
+ {
+ UnifiedMetaData umd = dep.getContext().getAttachment(UnifiedMetaData.class);
+ if (umd == null)
+ throw new IllegalStateException("Cannot obtain unified meta data");
+
+ for (Endpoint ep : dep.getService().getEndpoints())
+ {
+ ServerEndpointMetaData sepMetaData = ep.getMetaData(ServerEndpointMetaData.class);
+ if (sepMetaData == null)
+ {
+ sepMetaData = getEndpointMetaData(umd, ep.getName());
+ ep.addMetaData(ServerEndpointMetaData.class, sepMetaData);
+ }
+ }
+ }
+
+ private ServerEndpointMetaData getEndpointMetaData(UnifiedMetaData umd, ObjectName epName)
+ {
+ String propEndpoint = epName.getKeyProperty(Endpoint.SEPID_PROPERTY_ENDPOINT);
+
+ ServerEndpointMetaData epMetaData = null;
+ for (ServiceMetaData serviceMetaData : umd.getServices())
+ {
+ for (EndpointMetaData aux : serviceMetaData.getEndpoints())
+ {
+ String linkName = ((ServerEndpointMetaData)aux).getLinkName();
+ if (propEndpoint.equals(linkName))
+ {
+ epMetaData = (ServerEndpointMetaData)aux;
+ break;
+ }
+ }
+ }
+
+ if (epMetaData == null)
+ throw new IllegalStateException("Cannot find endpoint meta data for: " + epName);
+
+ return epMetaData;
+ }
+}
\ No newline at end of file
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/AssignEndpointMetaDataDeployer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/BasicDeployerHook.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/BasicDeployerHook.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/BasicDeployerHook.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,61 @@
+/*
+ * 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.integration.jboss50.jbossws;
+
+//$Id$
+
+import org.jboss.deployers.spi.DeploymentException;
+import org.jboss.deployers.spi.deployer.DeploymentUnit;
+import org.jboss.ws.integration.deployment.Deployment;
+
+/**
+ * A basic hook that delegates a deployment manger.
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 31-Oct-2006
+ */
+public class BasicDeployerHook extends AbstractDeployerHook
+{
+ public void deploy(DeploymentUnit unit) throws DeploymentException
+ {
+ if (ignoreDeployment(unit))
+ return;
+
+ Deployment dep = unit.getAttachment(Deployment.class);
+ if (dep != null)
+ {
+ deploymentManager.deploy(dep);
+ }
+ }
+
+ public void undeploy(DeploymentUnit unit)
+ {
+ if (ignoreDeployment(unit))
+ return;
+
+ Deployment dep = unit.getAttachment(Deployment.class);
+ if (dep != null)
+ {
+ deploymentManager.undeploy(dep);
+ }
+ }
+}
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/BasicDeployerHook.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/ClassLoaderInjectionDeployer.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/ClassLoaderInjectionDeployer.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/ClassLoaderInjectionDeployer.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,53 @@
+/*
+ * 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.integration.jboss50.jbossws;
+
+//$Id$
+
+import org.jboss.deployers.spi.deployer.DeploymentUnit;
+import org.jboss.ws.integration.deployment.AbstractDeployer;
+import org.jboss.ws.integration.deployment.Deployment;
+import org.jboss.ws.metadata.umdm.UnifiedMetaData;
+
+/**
+ * A deployer that injects the correct classloader into the UMDM
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 31-Oct-2005
+ */
+public class ClassLoaderInjectionDeployer extends AbstractDeployer
+{
+ @Override
+ public void create(Deployment dep)
+ {
+ DeploymentUnit unit = dep.getContext().getAttachment(DeploymentUnit.class);
+ if (unit == null)
+ throw new IllegalStateException("Cannot obtain deployement unit");
+
+ UnifiedMetaData umd = dep.getContext().getAttachment(UnifiedMetaData.class);
+ if (umd == null)
+ throw new IllegalStateException("Cannot obtain unified meta data");
+
+ ClassLoader classLoader = unit.getClassLoader();
+ umd.setClassLoader(classLoader);
+ }
+}
\ No newline at end of file
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/ClassLoaderInjectionDeployer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/DeployerHookJAXRPCEJB21.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/DeployerHookJAXRPCEJB21.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/DeployerHookJAXRPCEJB21.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,60 @@
+/*
+ * 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.integration.jboss50.jbossws;
+
+//$Id$
+
+import org.jboss.deployers.spi.deployer.DeploymentUnit;
+import org.jboss.metadata.ApplicationMetaData;
+import org.jboss.ws.integration.deployment.Deployment;
+import org.jboss.ws.integration.deployment.Deployment.DeploymentType;
+import org.jboss.ws.metadata.webservices.WebservicesMetaData;
+
+/**
+ * A deployer JAXRPC EJB21 Endpoints
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 06-Jan-2007
+ */
+public class DeployerHookJAXRPCEJB21 extends AbstractDeployerHookEJB
+{
+ /** Get the deployemnt type this deployer can handle
+ */
+ public DeploymentType getDeploymentType()
+ {
+ return DeploymentType.JAXRPC_EJB21;
+ }
+
+ @Override
+ public Deployment createDeployment(DeploymentUnit unit)
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public boolean isWebServiceDeployment(DeploymentUnit unit)
+ {
+ WebservicesMetaData wsMetaData = getWebservicesMetaData(unit);
+ return wsMetaData != null && unit.getAllMetaData(ApplicationMetaData.class).size() > 0;
+ }
+}
\ No newline at end of file
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/DeployerHookJAXRPCEJB21.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/DeployerHookJAXRPCJSE.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/DeployerHookJAXRPCJSE.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/DeployerHookJAXRPCJSE.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,139 @@
+/*
+ * 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.integration.jboss50.jbossws;
+
+//$Id$
+
+import org.jboss.deployers.spi.deployer.DeploymentUnit;
+import org.jboss.metadata.WebMetaData;
+import org.jboss.metadata.web.Servlet;
+import org.jboss.ws.integration.BasicEndpoint;
+import org.jboss.ws.integration.Endpoint;
+import org.jboss.ws.integration.Service;
+import org.jboss.ws.integration.deployment.BasicDeployment;
+import org.jboss.ws.integration.deployment.Deployment;
+import org.jboss.ws.integration.deployment.Deployment.DeploymentType;
+import org.jboss.ws.metadata.webservices.PortComponentMetaData;
+import org.jboss.ws.metadata.webservices.WebserviceDescriptionMetaData;
+import org.jboss.ws.metadata.webservices.WebservicesMetaData;
+
+/**
+ * A deployer JAXRPC JSE Endpoints
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 31-Oct-2005
+ */
+public class DeployerHookJAXRPCJSE extends AbstractDeployerHookJSE
+{
+ /** Get the deployemnt type this deployer can handle
+ */
+ public DeploymentType getDeploymentType()
+ {
+ return DeploymentType.JAXRPC_JSE;
+ }
+
+ /**
+ * Create an endpoint for every servlet-link in webservices.xml
+ */
+ @Override
+ public Deployment createDeployment(DeploymentUnit unit)
+ {
+ Deployment deployment = new BasicDeployment();
+ deployment.setType(getDeploymentType());
+ deployment.setClassLoader(unit.getClassLoader());
+
+ Service service = deployment.getService();
+
+ WebMetaData wmd = unit.getAttachment(WebMetaData.class);
+ if (wmd == null)
+ throw new IllegalStateException("Deployment unit does not contain web meta data");
+
+ WebservicesMetaData wsMetaData = getWebservicesMetaData(unit);
+ if (wsMetaData == null)
+ throw new IllegalStateException("Deployment unit does not contain webservices meta data");
+
+ // Copy the attachments
+ deployment.getContext().addAttachment(WebservicesMetaData.class, wsMetaData);
+ deployment.getContext().addAttachment(WebMetaData.class, wmd);
+
+ // Get the context root
+ String contextRoot = wmd.getContextRoot();
+ if (contextRoot == null)
+ {
+ contextRoot = unit.getSimpleName();
+ if (contextRoot.endsWith(".war"))
+ contextRoot = contextRoot.substring(0, contextRoot.length() - 4);
+ }
+
+ for (WebserviceDescriptionMetaData wsd : wsMetaData.getWebserviceDescriptions())
+ {
+ for (PortComponentMetaData pcmd : wsd.getPortComponents())
+ {
+ String servletLink = pcmd.getServletLink();
+ Servlet servlet = getServlet(wmd, servletLink);
+ String servletClassName = servlet.getServletClass();
+
+ Class<?> servletClass = null;
+ try
+ {
+ ClassLoader loader = unit.getClassLoader();
+ servletClass = loader.loadClass(servletClassName.trim());
+ }
+ catch (ClassNotFoundException ex)
+ {
+ log.warn("Cannot load servlet class: " + servletClassName);
+ continue;
+ }
+
+ // Create the endpoint
+ Endpoint endpoint = new BasicEndpoint(service, servletClass);
+ endpoint.setName(createEndpointName(contextRoot, servletLink));
+
+ service.addEndpoint(endpoint);
+ }
+ }
+
+ return deployment;
+ }
+
+ private Servlet getServlet(WebMetaData wmd, String servletLink)
+ {
+ for (Servlet servlet : wmd.getServlets())
+ {
+ if (servletLink.equals(servlet.getName()))
+ {
+ return servlet;
+ }
+ }
+ throw new IllegalStateException("Cannot find servlet for link: " + servletLink);
+ }
+
+ @Override
+ public boolean isWebServiceDeployment(DeploymentUnit unit)
+ {
+ if (super.isWebServiceDeployment(unit) == false)
+ return false;
+
+ WebservicesMetaData wsMetaData = getWebservicesMetaData(unit);
+ return wsMetaData != null;
+ }
+}
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/DeployerHookJAXRPCJSE.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/DeployerHookJAXWSEJB3.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/DeployerHookJAXWSEJB3.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/DeployerHookJAXWSEJB3.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,85 @@
+/*
+ * 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.integration.jboss50.jbossws;
+
+//$Id$
+
+import java.util.Iterator;
+
+import javax.jws.WebService;
+import javax.xml.ws.WebServiceProvider;
+
+import org.jboss.deployers.spi.deployer.DeploymentUnit;
+import org.jboss.ejb3.EJBContainer;
+import org.jboss.ejb3.Ejb3Deployment;
+import org.jboss.ejb3.stateless.StatelessContainer;
+import org.jboss.ws.integration.deployment.Deployment;
+import org.jboss.ws.integration.deployment.Deployment.DeploymentType;
+
+import sun.reflect.generics.reflectiveObjects.NotImplementedException;
+
+/**
+ * A deployer JAXWS EJB3 Endpoints
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 31-Oct-2005
+ */
+public class DeployerHookJAXWSEJB3 extends AbstractDeployerHookEJB
+{
+ /** Get the deployemnt type this deployer can handle
+ */
+ public DeploymentType getDeploymentType()
+ {
+ return DeploymentType.JAXWS_EJB3;
+ }
+
+ @Override
+ public Deployment createDeployment(DeploymentUnit unit)
+ {
+ throw new NotImplementedException();
+ }
+
+ @Override
+ public boolean isWebServiceDeployment(DeploymentUnit unit)
+ {
+ boolean isWebServiceDeployment = false;
+
+ Ejb3Deployment ejb3Deployment = unit.getAttachment(Ejb3Deployment.class);
+ if (ejb3Deployment != null)
+ {
+ Iterator it = ejb3Deployment.getEjbContainers().values().iterator();
+ while (it.hasNext())
+ {
+ EJBContainer container = (EJBContainer)it.next();
+ boolean isWebService = container.resolveAnnotation(WebService.class) != null;
+ boolean isWebServiceProvider = container.resolveAnnotation(WebServiceProvider.class) != null;
+ if (container instanceof StatelessContainer && (isWebService || isWebServiceProvider))
+ {
+ isWebServiceDeployment = true;
+ break;
+ }
+ }
+ }
+
+ return isWebServiceDeployment;
+ }
+}
\ No newline at end of file
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/DeployerHookJAXWSEJB3.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/DeployerHookJAXWSJSE.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/DeployerHookJAXWSJSE.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/DeployerHookJAXWSJSE.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,112 @@
+/*
+ * 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.integration.jboss50.jbossws;
+
+//$Id$
+
+import java.util.Iterator;
+
+import javax.jws.WebService;
+import javax.xml.ws.WebServiceProvider;
+
+import org.jboss.deployers.spi.deployer.DeploymentUnit;
+import org.jboss.metadata.WebMetaData;
+import org.jboss.metadata.web.Servlet;
+import org.jboss.ws.integration.deployment.Deployment;
+import org.jboss.ws.integration.deployment.Deployment.DeploymentType;
+
+import sun.reflect.generics.reflectiveObjects.NotImplementedException;
+
+/**
+ * A deployer JAXWS JSE Endpoints
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 31-Oct-2005
+ */
+public class DeployerHookJAXWSJSE extends AbstractDeployerHookJSE
+{
+ /** Get the deployemnt type this deployer can handle
+ */
+ public DeploymentType getDeploymentType()
+ {
+ return DeploymentType.JAXWS_JSE;
+ }
+
+ @Override
+ public Deployment createDeployment(DeploymentUnit unit)
+ {
+ throw new NotImplementedException();
+ }
+
+ @Override
+ public boolean isWebServiceDeployment(DeploymentUnit unit)
+ {
+ WebMetaData webMetaData = unit.getAttachment(WebMetaData.class);
+ if (webMetaData == null)
+ return false;
+
+ String name = unit.getName();
+ if (name.startsWith("jboss:id=") && name.indexOf("service=jacc") > 0)
+ return false;
+
+ boolean isWebServiceDeployment = false;
+ try
+ {
+ Iterator it = webMetaData.getServlets().iterator();
+ while (it.hasNext())
+ {
+ Servlet servlet = (Servlet)it.next();
+ String servletClassName = servlet.getServletClass();
+
+ // Skip JSPs
+ if (servletClassName == null)
+ continue;
+
+ Class<?> servletClass = null;
+ try
+ {
+ ClassLoader loader = unit.getClassLoader();
+ servletClass = loader.loadClass(servletClassName.trim());
+ }
+ catch (ClassNotFoundException ex)
+ {
+ log.warn("Cannot load servlet class: " + servletClassName);
+ continue;
+ }
+
+ boolean isWebService = servletClass.isAnnotationPresent(WebService.class);
+ boolean isWebServiceProvider = servletClass.isAnnotationPresent(WebServiceProvider.class);
+ if (isWebService || isWebServiceProvider)
+ {
+ isWebServiceDeployment = true;
+ break;
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ log.error("Cannot process web deployment", ex);
+ }
+
+ return isWebServiceDeployment;
+ }
+}
\ No newline at end of file
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/DeployerHookJAXWSJSE.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/EagerInitalizeDeployer.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/EagerInitalizeDeployer.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/EagerInitalizeDeployer.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,47 @@
+/*
+ * 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.integration.jboss50.jbossws;
+
+//$Id$
+
+import org.jboss.ws.integration.deployment.AbstractDeployer;
+import org.jboss.ws.integration.deployment.Deployment;
+import org.jboss.ws.metadata.umdm.UnifiedMetaData;
+
+/**
+ * A deployer that initializes the UMDM
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 31-Oct-2005
+ */
+public class EagerInitalizeDeployer extends AbstractDeployer
+{
+ @Override
+ public void create(Deployment dep)
+ {
+ UnifiedMetaData umd = dep.getContext().getAttachment(UnifiedMetaData.class);
+ if (umd == null)
+ throw new IllegalStateException("Cannot obtain unified meta data");
+
+ umd.eagerInitialize();
+ }
+}
\ No newline at end of file
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/EagerInitalizeDeployer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/EndpointLifecycleDeployer.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/EndpointLifecycleDeployer.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/EndpointLifecycleDeployer.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,69 @@
+/*
+ * 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.integration.jboss50.jbossws;
+
+//$Id$
+
+import org.jboss.ws.integration.Endpoint;
+import org.jboss.ws.integration.deployment.AbstractDeployer;
+import org.jboss.ws.integration.deployment.Deployment;
+
+/**
+ * A deployer that that calls the endpoint lifecycle handler
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 31-Oct-2005
+ */
+public class EndpointLifecycleDeployer extends AbstractDeployer
+{
+ @Override
+ public void create(Deployment dep)
+ {
+ for (Endpoint ep : dep.getService().getEndpoints())
+ ep.getLifecycleHandler().create(ep);
+ }
+
+ @Override
+ public void start(Deployment dep)
+ {
+ for (Endpoint ep : dep.getService().getEndpoints())
+ {
+ ep.getLifecycleHandler().start(ep);
+ }
+ }
+
+ @Override
+ public void stop(Deployment dep)
+ {
+ for (Endpoint ep : dep.getService().getEndpoints())
+ {
+ ep.getLifecycleHandler().stop(ep);
+ }
+ }
+
+ @Override
+ public void destroy(Deployment dep)
+ {
+ for (Endpoint ep : dep.getService().getEndpoints())
+ ep.getLifecycleHandler().destroy(ep);
+ }
+}
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/EndpointLifecycleDeployer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/InvocationHandlerJSE.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/InvocationHandlerJSE.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/InvocationHandlerJSE.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,125 @@
+/*
+ * 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.integration.jboss50.jbossws;
+
+// $Id$
+
+import java.lang.reflect.Method;
+
+import javax.xml.rpc.ServiceException;
+import javax.xml.rpc.server.ServiceLifecycle;
+import javax.xml.rpc.server.ServletEndpointContext;
+import javax.xml.rpc.soap.SOAPFaultException;
+import javax.xml.ws.WebServiceContext;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.WSException;
+import org.jboss.ws.core.CommonMessageContext;
+import org.jboss.ws.core.EndpointInvocation;
+import org.jboss.ws.core.jaxrpc.ServletEndpointContextImpl;
+import org.jboss.ws.core.jaxws.WebServiceContextInjector;
+import org.jboss.ws.core.jaxws.WebServiceContextJSE;
+import org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS;
+import org.jboss.ws.core.server.ServletRequestContext;
+import org.jboss.ws.core.soap.MessageContextAssociation;
+import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
+
+/**
+ * Handles invocations on JSE endpoints.
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 19-Jan-2005
+ */
+public class InvocationHandlerJSE extends AbstractInvocationHandler
+{
+ // provide logging
+ private Logger log = Logger.getLogger(InvocationHandlerJSE.class);
+
+ /** Load the SEI implementation bean if necessary */
+ public Class loadServiceEndpoint() throws ClassNotFoundException
+ {
+ ServerEndpointMetaData sepMetaData = endpoint.getMetaData(ServerEndpointMetaData.class);
+ if (sepMetaData == null)
+ throw new IllegalStateException("Cannot obtain endpoint meta data");
+
+ ClassLoader cl = sepMetaData.getClassLoader();
+ String seiImplName = sepMetaData.getServiceEndpointImplName();
+ Class seiImplClass = cl.loadClass(seiImplName);
+ return seiImplClass;
+ }
+
+ /** Create an instance of the SEI implementation bean if necessary */
+ public Object createServiceEndpointInstance(Object context, Class seiImplClass) throws IllegalAccessException, InstantiationException
+ {
+ Object seiImpl = seiImplClass.newInstance();
+ if (seiImpl instanceof ServiceLifecycle && context != null)
+ {
+ try
+ {
+ ServiceLifecycle serviceLifecycle = ((ServiceLifecycle)seiImpl);
+ ServletEndpointContext servletEndpointContext = new ServletEndpointContextImpl((ServletRequestContext)context);
+ serviceLifecycle.init(servletEndpointContext);
+ }
+ catch (ServiceException ex)
+ {
+ throw new WSException(ex);
+ }
+ }
+ return seiImpl;
+ }
+
+ /** Invoke an instance of the SEI implementation bean */
+ public void invokeServiceEndpointInstance(Object seiImpl, EndpointInvocation epInv) throws SOAPFaultException, Exception
+ {
+ log.debug("invokeServiceEndpoint: " + epInv.getJavaMethod().getName());
+ try
+ {
+ CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
+ if (msgContext instanceof SOAPMessageContextJAXWS)
+ {
+ WebServiceContext wsContext = new WebServiceContextJSE((SOAPMessageContextJAXWS)msgContext);
+ new WebServiceContextInjector().injectContext(seiImpl, wsContext);
+ }
+
+ Class implClass = seiImpl.getClass();
+ Method seiMethod = epInv.getJavaMethod();
+ Method implMethod = getImplMethod(implClass, seiMethod);
+
+ Object[] args = epInv.getRequestPayload();
+ Object retObj = implMethod.invoke(seiImpl, args);
+ epInv.setReturnValue(retObj);
+ }
+ catch (Exception e)
+ {
+ handleInvocationException(e);
+ }
+ }
+
+ /** Destroy an instance of the SEI implementation bean if necessary */
+ public void destroyServiceEndpointInstance(Object seiImpl)
+ {
+ if (seiImpl instanceof ServiceLifecycle)
+ {
+ ((ServiceLifecycle)seiImpl).destroy();
+ }
+ }
+}
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/InvocationHandlerJSE.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/LifecycleHandlerImpl.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/LifecycleHandlerImpl.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/LifecycleHandlerImpl.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,58 @@
+/*
+ * 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.integration.jboss50.jbossws;
+
+//$Id$
+
+import org.jboss.ws.integration.BasicLifecycleHandler;
+import org.jboss.ws.integration.Endpoint;
+import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
+
+/**
+ * A lifecycle handler
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 31-Oct-2006
+ */
+public class LifecycleHandlerImpl extends BasicLifecycleHandler
+{
+ public void start(Endpoint endpoint)
+ {
+ super.start(endpoint);
+ log.info("WebService started: " + getEndpointAddress(endpoint));
+ }
+
+ public void stop(Endpoint endpoint)
+ {
+ super.stop(endpoint);
+ log.info("WebService stoped: " + getEndpointAddress(endpoint));
+ }
+
+ private String getEndpointAddress(Endpoint ep)
+ {
+ ServerEndpointMetaData sepMetaData = ep.getMetaData(ServerEndpointMetaData.class);
+ if (sepMetaData == null)
+ throw new IllegalStateException("Cannot obtain endpoint meta data");
+
+ return sepMetaData.getEndpointAddress();
+ }
+}
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/LifecycleHandlerImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/ModifyWebMetaDataDeployer.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/ModifyWebMetaDataDeployer.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/ModifyWebMetaDataDeployer.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,118 @@
+/*
+ * 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.integration.jboss50.jbossws;
+
+//$Id$
+
+import java.util.Iterator;
+
+import org.jboss.kernel.Kernel;
+import org.jboss.kernel.spi.registry.KernelRegistry;
+import org.jboss.kernel.spi.registry.KernelRegistryEntry;
+import org.jboss.metadata.NameValuePair;
+import org.jboss.metadata.WebMetaData;
+import org.jboss.metadata.web.Servlet;
+import org.jboss.ws.core.utils.JavaUtils;
+import org.jboss.ws.integration.KernelLocator;
+import org.jboss.ws.integration.deployment.AbstractDeployer;
+import org.jboss.ws.integration.deployment.Deployment;
+import org.jboss.ws.integration.deployment.DeploymentManager;
+
+/**
+ * A deployer that modifies the web.xml meta data
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 31-Oct-2005
+ */
+public class ModifyWebMetaDataDeployer extends AbstractDeployer
+{
+ // The servlet init param in web.xml that is the service endpoint class
+ public static final String INIT_PARAM_WEBSERVICE_ENDPOINT_BEAN = WebXMLRewritingDeployer.INIT_PARAM_WEBSERVICE_ENDPOINT_BEAN;
+
+ public String getServiceEndpointServlet()
+ {
+ Kernel kernel = KernelLocator.getKernel();
+ KernelRegistry registry = kernel.getRegistry();
+ KernelRegistryEntry entry = registry.getEntry(WebXMLRewritingDeployer.BEAN_NAME);
+ WebXMLRewritingDeployer delegate = (WebXMLRewritingDeployer)entry.getTarget();
+ return delegate.getServiceEndpointServlet();
+ }
+
+ @Override
+ public void create(Deployment dep)
+ {
+ WebMetaData webMetaData = dep.getContext().getAttachment(WebMetaData.class);
+ if (webMetaData != null)
+ {
+ for (Servlet servlet : webMetaData.getServlets())
+ {
+ String servletClassName = servlet.getServletClass();
+
+ // JSP
+ if (servletClassName != null && servletClassName.length() > 0)
+ {
+ // Nothing to do if we have an <init-param>
+ if (!isAlreadyModified(servlet) && !isJavaxServlet(servletClassName, dep.getClassLoader()))
+ {
+ servlet.setServletClass(getServiceEndpointServlet());
+ NameValuePair initParam = new NameValuePair(INIT_PARAM_WEBSERVICE_ENDPOINT_BEAN, servletClassName);
+ servlet.addInitParam(initParam);
+ }
+ }
+ }
+ }
+ }
+
+ private boolean isJavaxServlet(String servletClassName, ClassLoader loader)
+ {
+ boolean isServlet = false;
+ if (loader != null)
+ {
+ try
+ {
+ Class servletClass = loader.loadClass(servletClassName);
+ isServlet = JavaUtils.isAssignableFrom(javax.servlet.Servlet.class, servletClass);
+ if (isServlet == true)
+ {
+ log.info("Ignore servlet: " + servletClassName);
+ }
+ }
+ catch (ClassNotFoundException e)
+ {
+ log.warn("Cannot load servlet class: " + servletClassName);
+ }
+ }
+ return isServlet;
+ }
+
+ private boolean isAlreadyModified(Servlet servlet)
+ {
+ Iterator itParams = servlet.getInitParams().iterator();
+ while (itParams.hasNext())
+ {
+ NameValuePair pair = (NameValuePair)itParams.next();
+ if (INIT_PARAM_WEBSERVICE_ENDPOINT_BEAN.equals(pair.getName()))
+ return true;
+ }
+ return false;
+ }
+}
\ No newline at end of file
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/ModifyWebMetaDataDeployer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/RequestHandlerImpl.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/RequestHandlerImpl.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/RequestHandlerImpl.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,421 @@
+/*
+ * 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.integration.jboss50.jbossws;
+
+//$Id$
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.io.OutputStreamWriter;
+import java.net.URL;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.activation.DataHandler;
+import javax.servlet.ServletContext;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import javax.servlet.http.HttpSession;
+import javax.xml.namespace.QName;
+import javax.xml.rpc.soap.SOAPFaultException;
+import javax.xml.soap.MimeHeaders;
+import javax.xml.soap.SOAPEnvelope;
+import javax.xml.soap.SOAPException;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.soap.SOAPPart;
+import javax.xml.ws.addressing.AddressingProperties;
+import javax.xml.ws.addressing.JAXWSAConstants;
+import javax.xml.ws.http.HTTPBinding;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.Constants;
+import org.jboss.ws.WSException;
+import org.jboss.ws.core.CommonBinding;
+import org.jboss.ws.core.CommonBindingProvider;
+import org.jboss.ws.core.CommonMessageContext;
+import org.jboss.ws.core.HTTPMessageImpl;
+import org.jboss.ws.core.MessageAbstraction;
+import org.jboss.ws.core.MessageTrace;
+import org.jboss.ws.core.jaxrpc.binding.BindingException;
+import org.jboss.ws.core.jaxrpc.handler.MessageContextJAXRPC;
+import org.jboss.ws.core.jaxrpc.handler.SOAPMessageContextJAXRPC;
+import org.jboss.ws.core.jaxws.handler.MessageContextJAXWS;
+import org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS;
+import org.jboss.ws.core.server.MimeHeaderSource;
+import org.jboss.ws.core.server.ServiceEndpointManager;
+import org.jboss.ws.core.server.ServiceEndpointManagerFactory;
+import org.jboss.ws.core.server.ServletHeaderSource;
+import org.jboss.ws.core.server.ServletRequestContext;
+import org.jboss.ws.core.server.WSDLRequestHandler;
+import org.jboss.ws.core.soap.MessageContextAssociation;
+import org.jboss.ws.core.soap.MessageFactoryImpl;
+import org.jboss.ws.core.soap.SOAPConnectionImpl;
+import org.jboss.ws.core.soap.SOAPMessageImpl;
+import org.jboss.ws.core.utils.DOMWriter;
+import org.jboss.ws.core.utils.ThreadLocalAssociation;
+import org.jboss.ws.extensions.addressing.AddressingConstantsImpl;
+import org.jboss.ws.extensions.xop.XOPContext;
+import org.jboss.ws.integration.Endpoint;
+import org.jboss.ws.integration.RequestHandler;
+import org.jboss.ws.integration.Endpoint.EndpointState;
+import org.jboss.ws.integration.invocation.InvocationHandler;
+import org.jboss.ws.metadata.umdm.EndpointMetaData;
+import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
+import org.jboss.ws.metadata.umdm.EndpointMetaData.Type;
+import org.w3c.dom.Document;
+
+/**
+ * A request handler
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 31-Oct-2006
+ */
+public class RequestHandlerImpl implements RequestHandler
+{
+ // provide logging
+ protected final Logger log = Logger.getLogger(getClass());
+
+ public void handleRequest(Endpoint endpoint, InputStream input, OutputStream output, Object ctx)
+ {
+ log.debug("handleRequest: " + endpoint.getName());
+
+ ServerEndpointMetaData sepMetaData = endpoint.getMetaData(ServerEndpointMetaData.class);
+ if (sepMetaData == null)
+ throw new IllegalStateException("Cannot obtain endpoint meta data");
+
+ ServletRequestContext context = (ServletRequestContext)ctx;
+
+ Type type = sepMetaData.getType();
+
+ ServletContext servletContext = context.getServletContext();
+ HttpServletRequest httpRequest = context.getHttpServletRequest();
+ HttpServletResponse httpResponse = context.getHttpServletResponse();
+ ServletHeaderSource headerSource = new ServletHeaderSource(httpRequest, httpResponse);
+ HttpSession httpSession = context.getHttpSession();
+
+ // Associate a message context with the current thread
+ CommonMessageContext msgContext;
+ if (type == EndpointMetaData.Type.JAXRPC)
+ {
+ msgContext = new SOAPMessageContextJAXRPC();
+ msgContext.put(MessageContextJAXRPC.SERVLET_CONTEXT, servletContext);
+ msgContext.put(MessageContextJAXRPC.SERVLET_REQUEST, httpRequest);
+ msgContext.put(MessageContextJAXRPC.SERVLET_RESPONSE, httpResponse);
+ msgContext.put(MessageContextJAXRPC.SERVLET_SESSION, httpSession);
+ }
+ else
+ {
+ msgContext = new SOAPMessageContextJAXWS();
+ msgContext.put(MessageContextJAXWS.MESSAGE_OUTBOUND_PROPERTY, new Boolean(false));
+ msgContext.put(MessageContextJAXWS.INBOUND_MESSAGE_ATTACHMENTS, new HashMap<String, DataHandler>());
+ msgContext.put(MessageContextJAXWS.HTTP_REQUEST_HEADERS, headerSource.getHeaderMap());
+ msgContext.put(MessageContextJAXWS.HTTP_REQUEST_METHOD, httpRequest.getMethod());
+ msgContext.put(MessageContextJAXWS.QUERY_STRING, httpRequest.getQueryString());
+ msgContext.put(MessageContextJAXWS.PATH_INFO, httpRequest.getPathInfo());
+ msgContext.put(MessageContextJAXWS.SERVLET_CONTEXT, servletContext);
+ msgContext.put(MessageContextJAXWS.SERVLET_REQUEST, httpRequest);
+ msgContext.put(MessageContextJAXWS.SERVLET_RESPONSE, httpResponse);
+
+ }
+ msgContext.setEndpointMetaData(sepMetaData);
+
+ MessageContextAssociation.pushMessageContext(msgContext);
+ try
+ {
+ MessageAbstraction resMessage = processRequest(endpoint, headerSource, context, input);
+
+ // Replace the message context with the response context
+ msgContext = MessageContextAssociation.peekMessageContext();
+
+ Map<String, List<String>> headers = (Map<String, List<String>>)msgContext.get(MessageContextJAXWS.HTTP_RESPONSE_HEADERS);
+ if (headers != null)
+ headerSource.setHeaderMap(headers);
+
+ Integer code = (Integer)msgContext.get(MessageContextJAXWS.HTTP_RESPONSE_CODE);
+ if (code != null)
+ httpResponse.setStatus(code.intValue());
+
+ boolean isFault = false;
+ if (resMessage instanceof SOAPMessage)
+ {
+ SOAPPart part = ((SOAPMessage)resMessage).getSOAPPart();
+ if (part == null)
+ throw new SOAPException("Cannot obtain SOAPPart from response message");
+
+ // R1126 An INSTANCE MUST return a "500 Internal Server Error" HTTP status code
+ // if the response envelope is a Fault.
+ //
+ // Also, a one-way operation must show up as empty content, and can be detected
+ // by a null envelope.
+ SOAPEnvelope soapEnv = part.getEnvelope();
+ isFault = soapEnv != null && soapEnv.getBody().hasFault();
+ if (isFault && httpResponse != null)
+ {
+ httpResponse.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
+ }
+ }
+
+ sendResponse(output, msgContext, isFault);
+ }
+ catch (Exception ex)
+ {
+ WSException.rethrow(ex);
+ }
+ finally
+ {
+ try
+ {
+ output.flush();
+ output.close();
+ }
+ catch (IOException ioex)
+ {
+ log.error("Cannot flush output stream");
+ }
+
+ // Reset the message context association
+ MessageContextAssociation.popMessageContext();
+
+ // clear thread local storage
+ ThreadLocalAssociation.clear();
+ }
+ }
+
+ private void sendResponse(OutputStream output, CommonMessageContext msgContext, boolean isFault) throws SOAPException, IOException
+ {
+ MessageAbstraction resMessage = msgContext.getMessageAbstraction();
+ String wsaTo = null;
+
+ // Get the destination from the AddressingProperties
+ AddressingProperties outProps = (AddressingProperties)msgContext.get(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_OUTBOUND);
+ if (outProps != null && outProps.getTo() != null)
+ {
+ AddressingConstantsImpl ADDR = new AddressingConstantsImpl();
+ wsaTo = outProps.getTo().getURI().toString();
+ if (wsaTo.equals(ADDR.getAnonymousURI()))
+ wsaTo = null;
+ }
+ if (wsaTo != null)
+ {
+ log.debug("Sending response to addressing destination: " + wsaTo);
+ new SOAPConnectionImpl().callOneWay((SOAPMessage)resMessage, wsaTo);
+ }
+ else
+ {
+ resMessage.writeTo(output);
+ }
+ }
+
+ /**
+ * Handle a request to this web service endpoint
+ */
+ private MessageAbstraction processRequest(Endpoint endpoint, MimeHeaderSource headerSource, ServletRequestContext context, InputStream input)
+ throws BindingException
+ {
+ CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
+
+ ServerEndpointMetaData sepMetaData = endpoint.getMetaData(ServerEndpointMetaData.class);
+ if (sepMetaData == null)
+ throw new IllegalStateException("Cannot obtain endpoint meta data");
+
+ long beginProcessing = 0;
+ ClassLoader ctxClassLoader = Thread.currentThread().getContextClassLoader();
+ try
+ {
+ EndpointState state = endpoint.getState();
+ if (state != EndpointState.STARTED)
+ {
+ QName faultCode = Constants.SOAP11_FAULT_CODE_SERVER;
+ String faultString = "Endpoint cannot handle requests in state: " + state;
+ throw new SOAPFaultException(faultCode, faultString, null, null);
+ }
+
+ log.debug("BEGIN handleRequest: " + endpoint.getName());
+ beginProcessing = processRequestMessage(endpoint);
+
+ MimeHeaders headers = (headerSource != null ? headerSource.getMimeHeaders() : null);
+
+ MessageAbstraction reqMessage;
+
+ String bindingID = sepMetaData.getBindingId();
+ if (HTTPBinding.HTTP_BINDING.equals(bindingID))
+ {
+ reqMessage = new HTTPMessageImpl(headers, input);
+ }
+ else
+ {
+ MessageFactoryImpl msgFactory = new MessageFactoryImpl();
+ msgFactory.setServiceMode(sepMetaData.getServiceMode());
+ msgFactory.setStyle(sepMetaData.getStyle());
+
+ reqMessage = (SOAPMessageImpl)msgFactory.createMessage(headers, input);
+ }
+
+ // Associate current message with message context
+ msgContext.setMessageAbstraction(reqMessage);
+
+ // debug the incomming message
+ MessageTrace.traceMessage("Incoming Request Message", reqMessage);
+
+ // Set the thread context class loader
+ ClassLoader classLoader = sepMetaData.getClassLoader();
+ Thread.currentThread().setContextClassLoader(classLoader);
+
+ // Invoke the service endpoint
+ InvocationHandler invoker = endpoint.getInvocationHandler();
+ invoker.invoke(endpoint);
+
+ MessageAbstraction resMessage = msgContext.getMessageAbstraction();
+ if (resMessage != null)
+ postProcessResponse(headerSource, resMessage);
+
+ return resMessage;
+ }
+ catch (Exception ex)
+ {
+ MessageAbstraction resMessage = msgContext.getMessageAbstraction();
+
+ // In case we have an exception before the invoker is called
+ // we create the fault message here.
+ if (resMessage == null || resMessage.isFaultMessage() == false)
+ {
+ CommonBindingProvider bindingProvider = new CommonBindingProvider(sepMetaData);
+ CommonBinding binding = bindingProvider.getCommonBinding();
+ resMessage = binding.bindFaultMessage(ex);
+ }
+
+ if (resMessage != null)
+ postProcessResponse(headerSource, resMessage);
+
+ return resMessage;
+ }
+ finally
+ {
+ try
+ {
+ MessageAbstraction resMessage = msgContext.getMessageAbstraction();
+ if (resMessage != null)
+ {
+ if (resMessage.isFaultMessage())
+ {
+ processFaultMessage(endpoint, beginProcessing);
+ }
+ else
+ {
+ processResponseMessage(endpoint, beginProcessing);
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ log.error("Cannot process metrics", ex);
+ }
+
+ // Reset the thread context class loader
+ Thread.currentThread().setContextClassLoader(ctxClassLoader);
+ log.debug("END handleRequest: " + endpoint.getName());
+ }
+ }
+
+ private long processRequestMessage(Endpoint endpoint)
+ {
+ return 0;
+ }
+
+ private void processResponseMessage(Endpoint endpoint, long beginProcessing)
+ {
+ }
+
+ private void processFaultMessage(Endpoint endpoint, long beginProcessing)
+ {
+ }
+
+ /** Set response mime headers
+ */
+ private void postProcessResponse(MimeHeaderSource headerSource, MessageAbstraction resMessage)
+ {
+ try
+ {
+ // Set the outbound headers
+ if (headerSource != null && resMessage instanceof SOAPMessage)
+ {
+ XOPContext.eagerlyCreateAttachments();
+ ((SOAPMessage)resMessage).saveChanges();
+ headerSource.setMimeHeaders(resMessage.getMimeHeaders());
+ }
+
+ // debug the outgoing message
+ MessageTrace.traceMessage("Outgoing Response Message", resMessage);
+ }
+ catch (Exception ex)
+ {
+ WSException.rethrow("Faild to post process response message", ex);
+ }
+ }
+
+ public void handleWSDLRequest(Endpoint endpoint, OutputStream output, Object context)
+ {
+ log.debug("handleWSDLRequest: " + endpoint.getName());
+
+ ServerEndpointMetaData epMetaData = endpoint.getMetaData(ServerEndpointMetaData.class);
+ if (epMetaData == null)
+ throw new IllegalStateException("Cannot obtain endpoint meta data");
+
+ ServletRequestContext reqContext = (ServletRequestContext)context;
+ HttpServletRequest req = reqContext.getHttpServletRequest();
+
+ try
+ {
+ // For the base document the resourcePath should be null
+ String resPath = (String)req.getParameter("resource");
+ URL reqURL = new URL(req.getRequestURL().toString());
+
+ String wsdlHost = reqURL.getProtocol() + "://" + reqURL.getHost() + ":" + reqURL.getPort();
+
+ ServiceEndpointManagerFactory factory = ServiceEndpointManagerFactory.getInstance();
+ ServiceEndpointManager epManager = factory.getServiceEndpointManager();
+ if (epManager.getWebServiceHost().equals(ServiceEndpointManager.UNDEFINED_HOSTNAME) == false)
+ {
+ wsdlHost = epManager.getWebServiceHost();
+ }
+ log.debug("WSDL request, using host: " + wsdlHost);
+
+ WSDLRequestHandler wsdlRequestHandler = new WSDLRequestHandler(epMetaData);
+ Document document = wsdlRequestHandler.getDocumentForPath(reqURL, wsdlHost, resPath);
+
+ OutputStreamWriter writer = new OutputStreamWriter(output);
+ new DOMWriter(writer).setPrettyprint(true).print(document.getDocumentElement());
+ output.flush();
+ output.close();
+ }
+ catch (RuntimeException rte)
+ {
+ throw rte;
+ }
+ catch (IOException ex)
+ {
+ throw new WSException(ex);
+ }
+ }
+}
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/RequestHandlerImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/ServiceEndpointServlet.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/ServiceEndpointServlet.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/ServiceEndpointServlet.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,62 @@
+/*
+ * 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.integration.jboss50.jbossws;
+
+// $Id$
+
+import javax.servlet.ServletContext;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.metadata.umdm.EndpointMetaData;
+
+/**
+ * A servlet that is installed for every web service endpoint.
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 16-May-2006
+ */
+public class ServiceEndpointServlet extends AbstractServiceEndpointServlet
+{
+ // provide logging
+ private static final Logger log = Logger.getLogger(ServiceEndpointServlet.class);
+
+ /** Initialize the service endpoint
+ */
+ protected void initServiceEndpoint(String contextPath)
+ {
+ super.initServiceEndpoint(contextPath);
+
+ // read the config name/file from web.xml
+ ServletContext ctx = getServletContext();
+ String configName = ctx.getInitParameter("jbossws-config-name");
+ String configFile = ctx.getInitParameter("jbossws-config-file");
+ if (configName != null || configFile != null)
+ {
+ EndpointMetaData epMetaData = endpoint.getMetaData(EndpointMetaData.class);
+ if (epMetaData == null)
+ throw new IllegalStateException("Cannot obtain endpoint meta data");
+
+ log.debug("Updating service endpoint config\n config-name: " + configName + "\n config-file: " + configFile);
+ epMetaData.setConfigName(configName, configFile);
+ }
+ }
+}
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/ServiceEndpointServlet.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/UnifiedDeploymentInfoDeployer.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/UnifiedDeploymentInfoDeployer.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/UnifiedDeploymentInfoDeployer.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,70 @@
+/*
+ * 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.integration.jboss50.jbossws;
+
+//$Id$
+
+import org.jboss.deployers.spi.deployer.DeploymentUnit;
+import org.jboss.ws.core.server.JAXWSDeployment;
+import org.jboss.ws.core.server.UnifiedDeploymentInfo;
+import org.jboss.ws.integration.deployment.AbstractDeployer;
+import org.jboss.ws.integration.deployment.Deployment;
+import org.jboss.ws.integration.deployment.Deployment.DeploymentType;
+import org.jboss.ws.integration.jboss50.DeploymentInfoAdaptor;
+import org.jboss.ws.metadata.builder.jaxrpc.JAXRPCDeployment;
+import org.jboss.ws.metadata.webservices.WebservicesMetaData;
+
+/**
+ * A deployer that builds the UnifiedDeploymentInfo
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 31-Oct-2005
+ */
+public class UnifiedDeploymentInfoDeployer extends AbstractDeployer
+{
+ @Override
+ public void create(Deployment dep)
+ {
+ UnifiedDeploymentInfo udi = dep.getContext().getAttachment(UnifiedDeploymentInfo.class);
+ if (udi == null)
+ {
+ DeploymentUnit unit = dep.getContext().getAttachment(DeploymentUnit.class);
+ if (unit == null)
+ throw new IllegalStateException("Cannot obtain deployment unit");
+
+ DeploymentType type = dep.getType();
+ if (type == DeploymentType.JAXWS_JSE || type == DeploymentType.JAXWS_EJB3)
+ {
+ udi = new JAXWSDeployment(type);
+ DeploymentInfoAdaptor.buildDeploymentInfo(udi, unit);
+ }
+ else
+ {
+ WebservicesMetaData wsMetaData = dep.getContext().getAttachment(WebservicesMetaData.class);
+ udi = new JAXRPCDeployment(type, wsMetaData);
+ DeploymentInfoAdaptor.buildDeploymentInfo(udi, unit);
+ }
+
+ dep.getContext().addAttachment(UnifiedDeploymentInfo.class, udi);
+ }
+ }
+}
\ No newline at end of file
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/UnifiedDeploymentInfoDeployer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/UnifiedMetaDataDeployer.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/UnifiedMetaDataDeployer.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/UnifiedMetaDataDeployer.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -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.integration.jboss50.jbossws;
+
+//$Id$
+
+import org.jboss.ws.core.server.UnifiedDeploymentInfo;
+import org.jboss.ws.integration.deployment.AbstractDeployer;
+import org.jboss.ws.integration.deployment.Deployment;
+import org.jboss.ws.integration.deployment.Deployment.DeploymentType;
+import org.jboss.ws.metadata.builder.jaxrpc.JAXRPCDeployment;
+import org.jboss.ws.metadata.builder.jaxrpc.JAXRPCServerMetaDataBuilder;
+import org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderEJB3;
+import org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderJSE;
+import org.jboss.ws.metadata.umdm.UnifiedMetaData;
+
+/**
+ * A deployer that builds the UnifiedDeploymentInfo
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 31-Oct-2005
+ */
+public class UnifiedMetaDataDeployer extends AbstractDeployer
+{
+ @Override
+ public void create(Deployment dep)
+ {
+ UnifiedMetaData umd = dep.getContext().getAttachment(UnifiedMetaData.class);
+ if (umd == null)
+ {
+ UnifiedDeploymentInfo udi = dep.getContext().getAttachment(UnifiedDeploymentInfo.class);
+ if (udi == null)
+ throw new IllegalStateException("Cannot obtain unified deployement info");
+
+ if (udi.type == DeploymentType.JAXRPC_JSE)
+ {
+ JAXRPCServerMetaDataBuilder builder = new JAXRPCServerMetaDataBuilder();
+ umd = builder.buildMetaData((JAXRPCDeployment)udi);
+ }
+ else if (udi.type == DeploymentType.JAXRPC_EJB21)
+ {
+ JAXRPCServerMetaDataBuilder builder = new JAXRPCServerMetaDataBuilder();
+ umd = builder.buildMetaData((JAXRPCDeployment)udi);
+ }
+ else if (udi.type == DeploymentType.JAXWS_JSE)
+ {
+ JAXWSMetaDataBuilderJSE builder = new JAXWSMetaDataBuilderJSE();
+ umd = builder.buildMetaData(udi);
+ }
+ else if (udi.type == DeploymentType.JAXWS_EJB3)
+ {
+ JAXWSMetaDataBuilderEJB3 builder = new JAXWSMetaDataBuilderEJB3();
+ umd = builder.buildMetaData(udi);
+ }
+ else
+ {
+ throw new IllegalStateException("Invalid type: " + udi.type);
+ }
+
+ dep.getContext().addAttachment(UnifiedMetaData.class, umd);
+ }
+ }
+}
\ No newline at end of file
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/UnifiedMetaDataDeployer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/WSDLPublisherDeployer.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/WSDLPublisherDeployer.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/WSDLPublisherDeployer.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,64 @@
+/*
+ * 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.integration.jboss50.jbossws;
+
+//$Id$
+
+import java.io.IOException;
+
+import org.jboss.ws.core.server.UnifiedDeploymentInfo;
+import org.jboss.ws.core.server.WSDLFilePublisher;
+import org.jboss.ws.integration.deployment.AbstractDeployer;
+import org.jboss.ws.integration.deployment.Deployment;
+import org.jboss.ws.integration.deployment.WSDeploymentException;
+import org.jboss.ws.metadata.umdm.UnifiedMetaData;
+
+/**
+ * A deployer that publishes the wsdl
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 31-Oct-2005
+ */
+public class WSDLPublisherDeployer extends AbstractDeployer
+{
+ @Override
+ public void create(Deployment dep)
+ {
+ UnifiedDeploymentInfo udi = dep.getContext().getAttachment(UnifiedDeploymentInfo.class);
+ if (udi == null)
+ throw new IllegalStateException("Cannot obtain unified deployement info");
+
+ UnifiedMetaData umd = dep.getContext().getAttachment(UnifiedMetaData.class);
+ if (umd == null)
+ throw new IllegalStateException("Cannot obtain unified meta data");
+
+ try
+ {
+ WSDLFilePublisher publisher = new WSDLFilePublisher(udi);
+ publisher.publishWsdlFiles(umd);
+ }
+ catch (IOException ex)
+ {
+ throw new WSDeploymentException(ex);
+ }
+ }
+}
\ No newline at end of file
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/WSDLPublisherDeployer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/WebXMLRewritingDeployer.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/WebXMLRewritingDeployer.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/WebXMLRewritingDeployer.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,257 @@
+/*
+ * 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.integration.jboss50.jbossws;
+
+//$Id$
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.InputStream;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+import javax.servlet.Servlet;
+
+import org.jboss.ws.WSException;
+import org.jboss.ws.core.server.UnifiedDeploymentInfo;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.core.utils.DOMWriter;
+import org.jboss.ws.core.utils.IOUtils;
+import org.jboss.ws.core.utils.JavaUtils;
+import org.jboss.ws.integration.deployment.AbstractDeployer;
+import org.jboss.ws.integration.deployment.Deployment;
+import org.w3c.dom.Element;
+
+/**
+ * A deployer that rewrites the web.xml
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 31-Oct-2005
+ */
+public class WebXMLRewritingDeployer extends AbstractDeployer
+{
+ // The default bean name
+ public static final Object BEAN_NAME = "WSWebXMLRewritingDeployer";
+ // The servlet init param in web.xml that is the service endpoint class
+ public static final String INIT_PARAM_WEBSERVICE_ENDPOINT_BEAN = "webservice-endpoint-bean";
+
+ // The service endpoint servlet that is specific for the deployed stack
+ private String serviceEndpointServlet;
+
+ public String getServiceEndpointServlet()
+ {
+ return serviceEndpointServlet;
+ }
+
+ public void setServiceEndpointServlet(String servletName)
+ {
+ this.serviceEndpointServlet = servletName;
+ }
+
+ @Override
+ public void create(Deployment dep)
+ {
+ UnifiedDeploymentInfo udi = dep.getContext().getAttachment(UnifiedDeploymentInfo.class);
+ if (udi == null)
+ throw new IllegalStateException("Cannot obtain unified deployement info");
+
+ URL warURL = udi.webappURL;
+ if (warURL == null)
+ throw new IllegalStateException("Cannot obtain webapp URL");
+
+ File warFile = new File(warURL.getFile());
+ if (warFile.isDirectory() == false)
+ throw new WSException("Expected a war directory: " + warURL);
+
+ File webXML = new File(warURL.getFile() + "/WEB-INF/web.xml");
+ if (webXML.isFile() == false)
+ throw new WSException("Cannot find web.xml: " + webXML);
+
+ try
+ {
+ // After redeployment there might be a stale copy of the original web.xml.org, we delete it
+ File orgWebXML = new File(webXML.getCanonicalPath() + ".org");
+ orgWebXML.delete();
+
+ // Rename the web.xml
+ if (webXML.renameTo(orgWebXML) == false)
+ throw new WSException("Cannot rename web.xml: " + orgWebXML);
+
+ FileInputStream stream = new FileInputStream(orgWebXML);
+ rewriteWebXml(stream, webXML, udi.classLoader);
+ }
+ catch (RuntimeException rte)
+ {
+ throw rte;
+ }
+ catch (Exception e)
+ {
+ throw new WSException(e);
+ }
+ }
+
+ public void rewriteWebXml(InputStream source, File dest, ClassLoader loader) throws Exception
+ {
+ if (dest == null)
+ {
+ dest = File.createTempFile("jbossws-alt-web", "xml", IOUtils.createTempDirectory());
+ dest.deleteOnExit();
+ }
+
+ Element root = DOMUtils.parse(source);
+ modifyServletConfig(root, loader);
+
+ FileOutputStream fos = new FileOutputStream(dest);
+ new DOMWriter(fos).setPrettyprint(true).print(root);
+ fos.flush();
+ fos.close();
+ }
+
+ private void modifyServletConfig(Element root, ClassLoader loader) throws ClassNotFoundException
+ {
+ Iterator itServlets = DOMUtils.getChildElements(root, "servlet");
+ while (itServlets.hasNext())
+ {
+ Element servletElement = (Element)itServlets.next();
+ String linkName = DOMUtils.getTextContent(DOMUtils.getFirstChildElement(servletElement, "servlet-name"));
+
+ // find the servlet-class
+ Element classElement = DOMUtils.getFirstChildElement(servletElement, "servlet-class");
+
+ // JSP
+ if (classElement == null)
+ continue;
+
+ String servletClassName = DOMUtils.getTextContent(classElement).trim();
+
+ // Get the servlet class
+ Class servletClass = null;
+ if (loader != null)
+ {
+ try
+ {
+ servletClass = loader.loadClass(servletClassName);
+ }
+ catch (ClassNotFoundException ex)
+ {
+ log.warn("Cannot load servlet class: " + servletClassName);
+ }
+ }
+
+ String targetBeanName = null;
+
+ // Nothing to do if we have an <init-param>
+ if (isAlreadyModified(servletElement))
+ {
+ Iterator itParams = DOMUtils.getChildElements(servletElement, "init-param");
+ while (itParams.hasNext())
+ {
+ Element elParam = (Element)itParams.next();
+ Element elParamName = DOMUtils.getFirstChildElement(elParam, "param-name");
+ Element elParamValue = DOMUtils.getFirstChildElement(elParam, "param-value");
+ if (INIT_PARAM_WEBSERVICE_ENDPOINT_BEAN.equals(DOMUtils.getTextContent(elParamName)))
+ {
+ targetBeanName = DOMUtils.getTextContent(elParamValue);
+ }
+ }
+ }
+ else
+ {
+ // Check if it is a real servlet that we can ignore
+ if (servletClass != null && JavaUtils.isAssignableFrom(Servlet.class, servletClass))
+ {
+ log.info("Ignore servlet: " + servletClassName);
+ continue;
+ }
+ else if (servletClassName.endsWith("Servlet"))
+ {
+ log.info("Ignore <servlet-class> that ends with 'Servlet': " + servletClassName);
+ continue;
+ }
+
+ // build a list of detached elements that come after <servlet-class>
+ boolean startDetach = false;
+ List<Element> detachedElements = new ArrayList<Element>();
+ Iterator itDetached = DOMUtils.getChildElements(servletElement);
+ while (itDetached.hasNext())
+ {
+ Element el = (Element)itDetached.next();
+ if (startDetach == true)
+ {
+ detachedElements.add(el);
+ servletElement.removeChild(el);
+ }
+ if (el.equals(classElement))
+ {
+ servletElement.removeChild(el);
+ startDetach = true;
+ }
+ }
+
+ // replace the class name
+ classElement = (Element)DOMUtils.createElement("servlet-class");
+ classElement.appendChild(DOMUtils.createTextNode(serviceEndpointServlet));
+ classElement = (Element)servletElement.getOwnerDocument().importNode(classElement, true);
+ servletElement.appendChild(classElement);
+
+ // add additional init params
+ if (servletClassName.equals(serviceEndpointServlet) == false)
+ {
+ Element paramElement = DOMUtils.createElement("init-param");
+ paramElement.appendChild(DOMUtils.createElement("param-name")).appendChild(DOMUtils.createTextNode(INIT_PARAM_WEBSERVICE_ENDPOINT_BEAN));
+ paramElement.appendChild(DOMUtils.createElement("param-value")).appendChild(DOMUtils.createTextNode(servletClassName));
+ paramElement = (Element)servletElement.getOwnerDocument().importNode(paramElement, true);
+ servletElement.appendChild(paramElement);
+ targetBeanName = servletClassName;
+ }
+
+ // reattach the elements
+ itDetached = detachedElements.iterator();
+ while (itDetached.hasNext())
+ {
+ Element el = (Element)itDetached.next();
+ servletElement.appendChild(el);
+ }
+ }
+
+ if (targetBeanName == null)
+ throw new IllegalStateException("Cannot obtain service endpoint bean for: " + linkName);
+ }
+ }
+
+ // Return true if the web.xml is already modified
+ private boolean isAlreadyModified(Element servletElement)
+ {
+ Iterator itParams = DOMUtils.getChildElements(servletElement, "init-param");
+ while (itParams.hasNext())
+ {
+ Element elParam = (Element)itParams.next();
+ Element elParamName = DOMUtils.getFirstChildElement(elParam, "param-name");
+ if (INIT_PARAM_WEBSERVICE_ENDPOINT_BEAN.equals(DOMUtils.getTextContent(elParamName)))
+ return true;
+ }
+ return false;
+ }
+}
\ No newline at end of file
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/jbossws/WebXMLRewritingDeployer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: trunk/integration-jboss50/src/resources/jbossws.deployer/META-INF/jbossws-deployer-beans.xml
===================================================================
--- trunk/integration-jboss50/src/resources/jbossws.deployer/META-INF/jbossws-deployer-beans.xml 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss50/src/resources/jbossws.deployer/META-INF/jbossws-deployer-beans.xml 2007-04-25 10:07:39 UTC (rev 2916)
@@ -44,7 +44,7 @@
<!--
A web service deployer that hooks in after the WAR/EJB deployer
-->
- <bean name="WebServiceStartStopDeployer" class="org.jboss.ws.integration.jboss50.WebServiceStartStopDeployer">
+ <bean name="WebServiceLifecycleDeployer" class="org.jboss.ws.integration.jboss50.WebServiceLifecycleDeployer">
<install bean="MainDeployer" method="addDeployer">
<parameter>
<this/>
Modified: trunk/integration-jboss50/src/resources/jbossws.sar/META-INF/jbossws-beans.xml
===================================================================
--- trunk/integration-jboss50/src/resources/jbossws.sar/META-INF/jbossws-beans.xml 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-jboss50/src/resources/jbossws.sar/META-INF/jbossws-beans.xml 2007-04-25 10:07:39 UTC (rev 2916)
@@ -7,6 +7,127 @@
<property name="kernel"><inject bean="jboss.kernel:service=Kernel"/></property>
</bean>
+ <!--
+ *****************************************************************************************************************************
+ * Start of general purpose web service integration
+ -->
+
+ <!-- The registry for web service endpoints -->
+ <bean name="WSEndpointRegistry" class="org.jboss.ws.integration.management.BasicEndpointRegistry"/>
+
+ <!-- The deployment manger registers the list of web service deployers -->
+ <bean name="WSDeploymentJSE" class="org.jboss.ws.integration.deployment.BasicDeploymentManager">
+ <property name="deployers">
+ <list class="java.util.LinkedList" elementClass="org.jboss.ws.integration.deployment.Deployer">
+ <inject bean="WSUnifiedDeploymentInfoDeployer"/>
+ <inject bean="WSUnifiedMetaDataDeployer"/>
+ <inject bean="WSAssignEndpointMetaDataDeployer"/>
+ <inject bean="WSAssignEndpointHandlersDeployer"/>
+ <inject bean="WSModifyWebMetaDataDeployer"/>
+ <inject bean="WSWSDLPublisherDeployer"/>
+ <inject bean="WSRegisteringDeployer"/>
+ </list>
+ </property>
+ </bean>
+ <bean name="WSDeploymentEJB" class="org.jboss.ws.integration.deployment.BasicDeploymentManager">
+ <property name="deployers">
+ <list class="java.util.LinkedList" elementClass="org.jboss.ws.integration.deployment.Deployer">
+ <inject bean="WSUnifiedDeploymentInfoDeployer"/>
+ <inject bean="WSUnifiedMetaDataDeployer"/>
+ <inject bean="WSAssignEndpointMetaDataDeployer"/>
+ <inject bean="WSAssignEndpointHandlersDeployer"/>
+ <inject bean="WSRegisteringDeployer"/>
+ </list>
+ </property>
+ </bean>
+ <bean name="WSLifecycleDeployment" class="org.jboss.ws.integration.deployment.BasicDeploymentManager">
+ <property name="deployers">
+ <list class="java.util.LinkedList" elementClass="org.jboss.ws.integration.deployment.Deployer">
+ <inject bean="WSClassLoaderInjectionDeployer"/>
+ <inject bean="WSEagerInitializeDeployer"/>
+ <inject bean="WSEndpointLifecycleDeployer"/>
+ </list>
+ </property>
+ </bean>
+
+ <!-- The deployers, each handles an aspect of web service deployment -->
+ <bean name="WSAssignEndpointHandlersDeployer" class="org.jboss.ws.integration.jboss50.jbossws.AssignEndpointHandlersDeployer">
+ <property name="requestHandler">org.jboss.ws.integration.jboss50.jbossws.RequestHandlerImpl</property>
+ <property name="lifecycleHandler">org.jboss.ws.integration.jboss50.jbossws.LifecycleHandlerImpl</property>
+ <property name="invocationHandlers">
+ <map keyClass="java.lang.String" valueClass="java.lang.String">
+ <entry><key>JAXRPC_JSE</key><value>org.jboss.ws.integration.jboss50.jbossws.InvocationHandlerJSE</value></entry>
+ <entry><key>JAXWS_JSE</key><value>org.jboss.ws.integration.jboss50.jbossws.InvocationHandlerJSE</value></entry>
+ </map>
+ </property>
+ </bean>
+ <bean name="WSAssignEndpointMetaDataDeployer" class="org.jboss.ws.integration.jboss50.jbossws.AssignEndpointMetaDataDeployer"/>
+ <bean name="WSClassLoaderInjectionDeployer" class="org.jboss.ws.integration.jboss50.jbossws.ClassLoaderInjectionDeployer"/>
+ <bean name="WSEagerInitializeDeployer" class="org.jboss.ws.integration.jboss50.jbossws.EagerInitializeDeployer"/>
+ <bean name="WSEndpointLifecycleDeployer" class="org.jboss.ws.integration.jboss50.jbossws.EndpointLifecycleDeployer"/>
+ <bean name="WSModifyWebMetaDataDeployer" class="org.jboss.ws.integration.jboss50.jbossws.ModifyWebMetaDataDeployer"/>
+ <bean name="WSRegisteringDeployer" class="org.jboss.ws.integration.deployment.RegisteringDeployer"/>
+ <bean name="WSUnifiedDeploymentInfoDeployer" class="org.jboss.ws.integration.jboss50.jbossws.UnifiedDeploymentInfoDeployer"/>
+ <bean name="WSUnifiedMetaDataDeployer" class="org.jboss.ws.integration.jboss50.jbossws.UnifiedMetaDataDeployer"/>
+ <bean name="WSValidatingDeployer" class="org.jboss.ws.integration.deployment.ValidatingDeployer"/>
+ <bean name="WSWebXMLRewritingDeployer" class="org.jboss.ws.integration.jboss50.jbossws.WebXMLRewritingDeployer">
+ <property name="serviceEndpointServlet">org.jboss.ws.integration.jboss50.jbossws.ServiceEndpointServlet</property>
+ </bean>
+ <bean name="WSWSDLPublisherDeployer" class="org.jboss.ws.integration.jboss50.jbossws.WSDLPublisherDeployer"/>
+
+ <!-- Register deployers with the Web Service JSE deployer
+ <bean name="WSDeployerHookJAXWSJSE" class="org.jboss.ws.integration.jboss50.jbossws.DeployerHookJAXWSJSE">
+ <property name="deploymentManager"><inject bean="WSDeploymentJSE"/></property>
+ <install bean="WebServiceDeployerJSE" method="addDeployerHook">
+ <parameter>
+ <this/>
+ </parameter>
+ </install>
+ <uninstall bean="WebServiceDeployerJSE" method="removeDeployerHook">
+ <parameter>
+ <this/>
+ </parameter>
+ </uninstall>
+ <depends>WebServiceDeployerJSE</depends>
+ </bean>
+ <bean name="WSDeployerHookJAXRPCJSE" class="org.jboss.ws.integration.jboss50.jbossws.DeployerHookJAXRPCJSE">
+ <property name="deploymentManager"><inject bean="WSDeploymentJSE"/></property>
+ <install bean="WebServiceDeployerJSE" method="addDeployerHook">
+ <parameter>
+ <this/>
+ </parameter>
+ </install>
+ <uninstall bean="WebServiceDeployerJSE" method="removeDeployerHook">
+ <parameter>
+ <this/>
+ </parameter>
+ </uninstall>
+ <depends>WebServiceDeployerJSE</depends>
+ </bean>
+ -->
+
+ <!-- Register deployers with the Web Service lifecycle deployer
+ <bean name="WSLifecycleDeployerHook" class="org.jboss.ws.integration.jboss50.jbossws.BasicDeployerHook">
+ <property name="deploymentManager"><inject bean="WSLifecycleDeployment"/></property>
+ <install bean="WebServiceLifecycleDeployer" method="addDeployerHook">
+ <parameter>
+ <this/>
+ </parameter>
+ </install>
+ <uninstall bean="WebServiceLifecycleDeployer" method="removeDeployerHook">
+ <parameter>
+ <this/>
+ </parameter>
+ </uninstall>
+ <depends>WebServiceLifecycleDeployer</depends>
+ </bean>
+ -->
+
+ <!--
+ *****************************************************************************************************************************
+ * Start of legacy web service integration
+ -->
+
<bean name="ServiceEndpointManager" class="org.jboss.ws.core.server.ServiceEndpointManager">
<!--
@@ -56,14 +177,13 @@
<bean name="ServerConfig" class="org.jboss.ws.integration.jboss50.ServerConfigImpl"/>
- <!-- Register deployers with the Web Service EJB deployer -->
<bean name="JAXWSDeployerEJB3" class="org.jboss.ws.integration.jboss50.JAXWSDeployerEJB3">
- <install bean="WebServiceDeployerEJB" method="addDeployer">
+ <install bean="WebServiceDeployerEJB" method="addDeployerHook">
<parameter>
<this/>
</parameter>
</install>
- <uninstall bean="WebServiceDeployerEJB" method="removeDeployer">
+ <uninstall bean="WebServiceDeployerEJB" method="removeDeployerHook">
<parameter>
<this/>
</parameter>
@@ -71,12 +191,12 @@
<depends>WebServiceDeployerEJB</depends>
</bean>
<bean name="JAXRPCDeployerEJB21" class="org.jboss.ws.integration.jboss50.JAXRPCDeployerEJB21">
- <install bean="WebServiceDeployerEJB" method="addDeployer">
+ <install bean="WebServiceDeployerEJB" method="addDeployerHook">
<parameter>
<this/>
</parameter>
</install>
- <uninstall bean="WebServiceDeployerEJB" method="removeDeployer">
+ <uninstall bean="WebServiceDeployerEJB" method="removeDeployerHook">
<parameter>
<this/>
</parameter>
@@ -84,14 +204,13 @@
<depends>WebServiceDeployerEJB</depends>
</bean>
- <!-- Register deployers with the Web Service JSE deployer -->
<bean name="JAXWSDeployerJSE" class="org.jboss.ws.integration.jboss50.JAXWSDeployerJSE">
- <install bean="WebServiceDeployerJSE" method="addDeployer">
+ <install bean="WebServiceDeployerJSE" method="addDeployerHook">
<parameter>
<this/>
</parameter>
</install>
- <uninstall bean="WebServiceDeployerJSE" method="removeDeployer">
+ <uninstall bean="WebServiceDeployerJSE" method="removeDeployerHook">
<parameter>
<this/>
</parameter>
@@ -99,12 +218,12 @@
<depends>WebServiceDeployerJSE</depends>
</bean>
<bean name="JAXRPCDeployerJSE" class="org.jboss.ws.integration.jboss50.JAXRPCDeployerJSE">
- <install bean="WebServiceDeployerJSE" method="addDeployer">
+ <install bean="WebServiceDeployerJSE" method="addDeployerHook">
<parameter>
<this/>
</parameter>
</install>
- <uninstall bean="WebServiceDeployerJSE" method="removeDeployer">
+ <uninstall bean="WebServiceDeployerJSE" method="removeDeployerHook">
<parameter>
<this/>
</parameter>
@@ -112,19 +231,18 @@
<depends>WebServiceDeployerJSE</depends>
</bean>
- <!-- Register deployers with the Web Service Start/Stop deployer -->
<bean name="ServiceEndpointLifecycleDeployer" class="org.jboss.ws.integration.jboss50.ServiceEndpointLifecycleDeployer">
- <install bean="WebServiceStartStopDeployer" method="addDeployer">
+ <install bean="WebServiceLifecycleDeployer" method="addDeployerHook">
<parameter>
<this/>
</parameter>
</install>
- <uninstall bean="WebServiceStartStopDeployer" method="removeDeployer">
+ <uninstall bean="WebServiceLifecycleDeployer" method="removeDeployerHook">
<parameter>
<this/>
</parameter>
</uninstall>
- <depends>WebServiceStartStopDeployer</depends>
+ <depends>WebServiceLifecycleDeployer</depends>
</bean>
</deployment>
Modified: trunk/integration-tomcat/src/java/org/jboss/ws/integration/tomcat/TomcatServiceEndpointServlet.java
===================================================================
--- trunk/integration-tomcat/src/java/org/jboss/ws/integration/tomcat/TomcatServiceEndpointServlet.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/integration-tomcat/src/java/org/jboss/ws/integration/tomcat/TomcatServiceEndpointServlet.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -44,6 +44,7 @@
import org.jboss.ws.integration.KernelLocator;
import org.jboss.ws.integration.ResourceLoaderAdapter;
import org.jboss.ws.integration.UnifiedVirtualFile;
+import org.jboss.ws.integration.deployment.Deployment.DeploymentType;
import org.jboss.ws.metadata.builder.jaxrpc.JAXRPCDeployment;
/**
@@ -165,11 +166,11 @@
UnifiedVirtualFile vfsWebservices = getWebservicesFile(ctxLoader);
if (vfsWebservices != null)
{
- udi = new JAXRPCDeployment(UnifiedDeploymentInfo.DeploymentType.JAXRPC_JSE, vfsWebservices);
+ udi = new JAXRPCDeployment(DeploymentType.JAXRPC_JSE, vfsWebservices);
}
else
{
- udi = new JAXWSDeployment(UnifiedDeploymentInfo.DeploymentType.JAXWS_JSE);
+ udi = new JAXWSDeployment(DeploymentType.JAXWS_JSE);
}
DeploymentInfoAdaptor.buildDeploymentInfo(udi, ctxLoader, servletContext);
Modified: trunk/jbossws-core/src/java/org/jboss/ws/core/jaxrpc/ServletEndpointContextImpl.java
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/core/jaxrpc/ServletEndpointContextImpl.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/jbossws-core/src/java/org/jboss/ws/core/jaxrpc/ServletEndpointContextImpl.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -32,7 +32,7 @@
import javax.xml.rpc.handler.MessageContext;
import javax.xml.rpc.server.ServletEndpointContext;
-import org.jboss.ws.core.server.EndpointContext;
+import org.jboss.ws.core.server.ServletRequestContext;
import org.jboss.ws.core.soap.MessageContextAssociation;
/**
@@ -46,7 +46,7 @@
private HttpServletRequest request;
private HttpServletResponse response;
- public ServletEndpointContextImpl(EndpointContext context)
+ public ServletEndpointContextImpl(ServletRequestContext context)
{
this.context = context.getServletContext();
this.request = context.getHttpServletRequest();
Modified: trunk/jbossws-core/src/java/org/jboss/ws/core/jaxrpc/handler/HandlerDelegateJAXRPC.java
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/core/jaxrpc/handler/HandlerDelegateJAXRPC.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/jbossws-core/src/java/org/jboss/ws/core/jaxrpc/handler/HandlerDelegateJAXRPC.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -76,7 +76,7 @@
/**
* For JAXRPC PRE/POST are defined in the context of message origin.
*/
- protected HandlerType[] getHandlerTypeOrder()
+ public HandlerType[] getHandlerTypeOrder()
{
return new HandlerType[] { HandlerType.PRE, HandlerType.ENDPOINT, HandlerType.POST };
}
Modified: trunk/jbossws-core/src/java/org/jboss/ws/core/jaxws/handler/HandlerDelegateJAXWS.java
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/core/jaxws/handler/HandlerDelegateJAXWS.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/jbossws-core/src/java/org/jboss/ws/core/jaxws/handler/HandlerDelegateJAXWS.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -64,7 +64,7 @@
/**
* For JAXWS PRE/POST are defined in the context of an outbound message
*/
- protected HandlerType[] getHandlerTypeOrder()
+ public HandlerType[] getHandlerTypeOrder()
{
return new HandlerType[] { HandlerType.POST, HandlerType.ENDPOINT, HandlerType.PRE };
}
Modified: trunk/jbossws-core/src/java/org/jboss/ws/core/server/AbstractServiceEndpointServlet.java
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/core/server/AbstractServiceEndpointServlet.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/jbossws-core/src/java/org/jboss/ws/core/server/AbstractServiceEndpointServlet.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -37,7 +37,7 @@
import org.jboss.logging.Logger;
import org.jboss.ws.WSException;
-import org.jboss.ws.core.utils.ObjectNameFactory;
+import org.jboss.ws.integration.ObjectNameFactory;
import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
/**
@@ -110,7 +110,7 @@
try
{
- EndpointContext context = new EndpointContext(getServletContext(), req, res);
+ ServletRequestContext context = new ServletRequestContext(getServletContext(), req, res);
epManager.processRequest(sepId, req.getInputStream(), res.getOutputStream(), context);
}
catch (Exception ex)
Deleted: trunk/jbossws-core/src/java/org/jboss/ws/core/server/EndpointContext.java
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/core/server/EndpointContext.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/jbossws-core/src/java/org/jboss/ws/core/server/EndpointContext.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -1,76 +0,0 @@
-/*
- * 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.core.server;
-
-// $Id$
-
-import javax.servlet.ServletContext;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import javax.servlet.http.HttpSession;
-import javax.xml.rpc.handler.MessageContext;
-
-import org.jboss.ws.core.soap.MessageContextAssociation;
-
-/**
- * Implementation of ServletEndpointContext
- *
- * @author Thomas.Diesler(a)jboss.org
- */
-public class EndpointContext
-{
- private ServletContext context;
- private HttpServletRequest request;
- private HttpServletResponse response;
-
- public EndpointContext(ServletContext context, HttpServletRequest request, HttpServletResponse response)
- {
- this.context = context;
- this.request = request;
- this.response = response;
- }
-
- public HttpSession getHttpSession()
- {
- return request.getSession(true);
- }
-
- public MessageContext getMessageContext()
- {
- return (MessageContext)MessageContextAssociation.peekMessageContext();
- }
-
- public ServletContext getServletContext()
- {
- return context;
- }
-
- public HttpServletRequest getHttpServletRequest()
- {
- return request;
- }
-
- public HttpServletResponse getHttpServletResponse()
- {
- return response;
- }
-}
\ No newline at end of file
Modified: trunk/jbossws-core/src/java/org/jboss/ws/core/server/JAXWSDeployment.java
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/core/server/JAXWSDeployment.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/jbossws-core/src/java/org/jboss/ws/core/server/JAXWSDeployment.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -21,10 +21,10 @@
*/
package org.jboss.ws.core.server;
+//$Id$
+import org.jboss.ws.integration.deployment.Deployment.DeploymentType;
-// $Id$
-
/**
* The container independent deployment info.
*
Modified: trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServerHandlerDelegate.java
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServerHandlerDelegate.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServerHandlerDelegate.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -42,7 +42,7 @@
}
// Get the order of pre/post handlerchains
- protected abstract HandlerType[] getHandlerTypeOrder();
+ public abstract HandlerType[] getHandlerTypeOrder();
public abstract boolean callRequestHandlerChain(ServerEndpointMetaData sepMetaData, HandlerType type);
Modified: trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServiceEndpoint.java
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServiceEndpoint.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServiceEndpoint.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -159,7 +159,7 @@
/**
* Handle a request to this web service endpoint
*/
- public MessageAbstraction processRequest(MimeHeaderSource headerSource, EndpointContext context, InputStream inputStream) throws BindingException
+ public MessageAbstraction processRequest(MimeHeaderSource headerSource, ServletRequestContext context, InputStream inputStream) throws BindingException
{
CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
ServerEndpointMetaData sepMetaData = seInfo.getServerEndpointMetaData();
Modified: trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServiceEndpointDeployer.java
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServiceEndpointDeployer.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServiceEndpointDeployer.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -28,6 +28,7 @@
import org.jboss.logging.Logger;
import org.jboss.ws.WSException;
+import org.jboss.ws.integration.deployment.Deployment.DeploymentType;
import org.jboss.ws.metadata.builder.jaxrpc.JAXRPCDeployment;
import org.jboss.ws.metadata.builder.jaxrpc.JAXRPCServerMetaDataBuilder;
import org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderEJB3;
@@ -71,22 +72,22 @@
try
{
UnifiedMetaData wsMetaData;
- if (udi.type == UnifiedDeploymentInfo.DeploymentType.JAXRPC_JSE)
+ if (udi.type == DeploymentType.JAXRPC_JSE)
{
JAXRPCServerMetaDataBuilder builder = new JAXRPCServerMetaDataBuilder();
wsMetaData = builder.buildMetaData((JAXRPCDeployment)udi);
}
- else if (udi.type == UnifiedDeploymentInfo.DeploymentType.JAXRPC_EJB21)
+ else if (udi.type == DeploymentType.JAXRPC_EJB21)
{
JAXRPCServerMetaDataBuilder builder = new JAXRPCServerMetaDataBuilder();
wsMetaData = builder.buildMetaData((JAXRPCDeployment)udi);
}
- else if (udi.type == UnifiedDeploymentInfo.DeploymentType.JAXWS_JSE)
+ else if (udi.type == DeploymentType.JAXWS_JSE)
{
JAXWSMetaDataBuilderJSE builder = new JAXWSMetaDataBuilderJSE();
wsMetaData = builder.buildMetaData(udi);
}
- else if (udi.type == UnifiedDeploymentInfo.DeploymentType.JAXWS_EJB3)
+ else if (udi.type == DeploymentType.JAXWS_EJB3)
{
JAXWSMetaDataBuilderEJB3 builder = new JAXWSMetaDataBuilderEJB3();
wsMetaData = builder.buildMetaData(udi);
Modified: trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServiceEndpointInfo.java
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServiceEndpointInfo.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServiceEndpointInfo.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -26,7 +26,7 @@
import javax.management.ObjectName;
import org.jboss.ws.WSException;
-import org.jboss.ws.core.server.UnifiedDeploymentInfo.DeploymentType;
+import org.jboss.ws.integration.deployment.Deployment.DeploymentType;
import org.jboss.ws.metadata.j2ee.UnifiedApplicationMetaData;
import org.jboss.ws.metadata.j2ee.UnifiedBeanMetaData;
import org.jboss.ws.metadata.j2ee.UnifiedMessageDrivenMetaData;
Modified: trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServiceEndpointInvokerJSE.java
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServiceEndpointInvokerJSE.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServiceEndpointInvokerJSE.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -72,7 +72,7 @@
try
{
ServiceLifecycle serviceLifecycle = ((ServiceLifecycle)seiImpl);
- ServletEndpointContext servletEndpointContext = new ServletEndpointContextImpl((EndpointContext)context);
+ ServletEndpointContext servletEndpointContext = new ServletEndpointContextImpl((ServletRequestContext)context);
serviceLifecycle.init(servletEndpointContext);
}
catch (ServiceException ex)
Modified: trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServiceEndpointManager.java
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServiceEndpointManager.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServiceEndpointManager.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -398,10 +398,8 @@
wsEndpoint.handleWSDLRequest(outStream, requestURL, resourcePath);
}
- public void processRequest(ObjectName sepID, InputStream inStream, OutputStream outStream, EndpointContext context) throws Exception
+ public void processRequest(ObjectName sepID, InputStream inStream, OutputStream outStream, ServletRequestContext context) throws Exception
{
- final String SESSION_COOKIES = "org.jboss.ws.cookies";
-
ServiceEndpoint wsEndpoint = getServiceEndpointByID(sepID);
if (wsEndpoint == null)
throw new WSException("Cannot obtain endpoint for: " + sepID);
@@ -719,9 +717,9 @@
public static class HttpSessionPropertyCallback implements PropertyCallback
{
- private EndpointContext context;
+ private ServletRequestContext context;
- public HttpSessionPropertyCallback(final EndpointContext context)
+ public HttpSessionPropertyCallback(final ServletRequestContext context)
{
this.context = context;
}
Modified: trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServiceEndpointManagerMBean.java
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServiceEndpointManagerMBean.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServiceEndpointManagerMBean.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -26,7 +26,7 @@
import javax.management.ObjectName;
-import org.jboss.ws.core.utils.ObjectNameFactory;
+import org.jboss.ws.integration.ObjectNameFactory;
import org.jboss.ws.metadata.umdm.HandlerMetaData;
/**
Copied: trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServletRequestContext.java (from rev 2913, trunk/jbossws-core/src/java/org/jboss/ws/core/server/EndpointContext.java)
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServletRequestContext.java (rev 0)
+++ trunk/jbossws-core/src/java/org/jboss/ws/core/server/ServletRequestContext.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -0,0 +1,76 @@
+/*
+ * 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.core.server;
+
+// $Id$
+
+import javax.servlet.ServletContext;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import javax.servlet.http.HttpSession;
+import javax.xml.rpc.handler.MessageContext;
+
+import org.jboss.ws.core.soap.MessageContextAssociation;
+
+/**
+ * Implementation of ServletEndpointContext
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ */
+public class ServletRequestContext
+{
+ private ServletContext context;
+ private HttpServletRequest request;
+ private HttpServletResponse response;
+
+ public ServletRequestContext(ServletContext context, HttpServletRequest request, HttpServletResponse response)
+ {
+ this.context = context;
+ this.request = request;
+ this.response = response;
+ }
+
+ public HttpSession getHttpSession()
+ {
+ return request.getSession(true);
+ }
+
+ public MessageContext getMessageContext()
+ {
+ return (MessageContext)MessageContextAssociation.peekMessageContext();
+ }
+
+ public ServletContext getServletContext()
+ {
+ return context;
+ }
+
+ public HttpServletRequest getHttpServletRequest()
+ {
+ return request;
+ }
+
+ public HttpServletResponse getHttpServletResponse()
+ {
+ return response;
+ }
+}
\ No newline at end of file
Modified: trunk/jbossws-core/src/java/org/jboss/ws/core/server/UnifiedDeploymentInfo.java
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/core/server/UnifiedDeploymentInfo.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/jbossws-core/src/java/org/jboss/ws/core/server/UnifiedDeploymentInfo.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -32,6 +32,7 @@
import javax.management.ObjectName;
import org.jboss.ws.integration.UnifiedVirtualFile;
+import org.jboss.ws.integration.deployment.Deployment.DeploymentType;
/**
* The container independent deployment info.
@@ -41,11 +42,6 @@
*/
public class UnifiedDeploymentInfo
{
- public enum DeploymentType
- {
- JAXRPC_Client, JAXRPC_JSE, JAXRPC_EJB21, JAXRPC_EJB3, JAXWS_JSE, JAXWS_EJB3
- };
-
public UnifiedDeploymentInfo(DeploymentType type)
{
this.type = type;
Modified: trunk/jbossws-core/src/java/org/jboss/ws/core/server/WSDLFilePublisher.java
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/core/server/WSDLFilePublisher.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/jbossws-core/src/java/org/jboss/ws/core/server/WSDLFilePublisher.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -42,7 +42,6 @@
import org.jboss.util.NotImplementedException;
import org.jboss.ws.Constants;
import org.jboss.ws.WSException;
-import org.jboss.ws.core.server.UnifiedDeploymentInfo.DeploymentType;
import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.core.utils.IOUtils;
import org.jboss.ws.core.utils.ResourceURL;
@@ -72,9 +71,14 @@
{
this.udi = udi;
- if (udi.type == DeploymentType.JAXRPC_JSE || udi.type == DeploymentType.JAXWS_JSE)
+ if (udi.type.toString().endsWith("_JSE"))
+ {
expLocation = "WEB-INF/wsdl/";
- else expLocation = "META-INF/wsdl/";
+ }
+ else
+ {
+ expLocation = "META-INF/wsdl/";
+ }
}
/** Publish the deployed wsdl file to the data directory
@@ -101,7 +105,7 @@
// udpate the wsdl file location
serviceMetaData.setWsdlLocation(wsdlFile.toURL());
-
+
// Process the wsdl imports
Definition wsdl11Definition = wsdlDefinitions.getWsdlOneOneDefinition();
if (wsdl11Definition != null)
@@ -155,7 +159,8 @@
wsdlWriter.writeWSDL(subdef, fw);
fw.close();
- if(log.isDebugEnabled()) log.debug("WSDL import published to: " + targetURL);
+ if (log.isDebugEnabled())
+ log.debug("WSDL import published to: " + targetURL);
// recursivly publish imports
publishWsdlImports(targetURL, subdef);
@@ -209,7 +214,8 @@
fos.close();
is.close();
- if(log.isDebugEnabled()) log.debug("XMLSchema import published to: " + xsdURL);
+ if (log.isDebugEnabled())
+ log.debug("XMLSchema import published to: " + xsdURL);
// recursivly publish imports
Element subdoc = DOMUtils.parse(xsdURL.openStream());
@@ -274,8 +280,9 @@
if (wsdlLocation == null)
throw new IllegalStateException("Cannot obtain wsdl location for: " + serviceMetaData.getServiceName());
- if(log.isDebugEnabled()) log.debug("Publish WSDL file: " + wsdlLocation);
-
+ if (log.isDebugEnabled())
+ log.debug("Publish WSDL file: " + wsdlLocation);
+
// Only file URLs are supported in <wsdl-publish-location>
String publishLocation = serviceMetaData.getWsdlPublishLocation();
boolean predefinedLocation = publishLocation != null && publishLocation.startsWith("file:");
@@ -313,7 +320,7 @@
{
throw new WSException("Invalid wsdlFile '" + wsdlLocation + "', expected in: " + expLocation);
}
-
+
return wsdlFile;
}
}
Modified: trunk/jbossws-core/src/java/org/jboss/ws/core/server/WSDLRequestHandler.java
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/core/server/WSDLRequestHandler.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/jbossws-core/src/java/org/jboss/ws/core/server/WSDLRequestHandler.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -74,6 +74,8 @@
// The WSDLFilePublisher should set the location to an URL
URL wsdlLocation = epMetaData.getServiceMetaData().getWsdlLocation();
+ if (wsdlLocation == null)
+ throw new IllegalStateException("Cannot obtain wsdl location");
// get the root wsdl
if (resPath == null)
Deleted: trunk/jbossws-core/src/java/org/jboss/ws/core/utils/ObjectNameFactory.java
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/core/utils/ObjectNameFactory.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/jbossws-core/src/java/org/jboss/ws/core/utils/ObjectNameFactory.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -1,72 +0,0 @@
-/*
- * 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.core.utils;
-
-import java.util.Hashtable;
-
-import javax.management.MalformedObjectNameException;
-import javax.management.ObjectName;
-
-/**
- * A simple factory for creating safe object names.
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 08-May-2006
- */
-public class ObjectNameFactory
-{
- public static ObjectName create(String name)
- {
- try
- {
- return new ObjectName(name);
- }
- catch (MalformedObjectNameException e)
- {
- throw new Error("Invalid ObjectName: " + name + "; " + e);
- }
- }
-
- public static ObjectName create(String domain, String key, String value)
- {
- try
- {
- return new ObjectName(domain, key, value);
- }
- catch (MalformedObjectNameException e)
- {
- throw new Error("Invalid ObjectName: " + domain + "," + key + "," + value + "; " + e);
- }
- }
-
- public static ObjectName create(String domain, Hashtable table)
- {
- try
- {
- return new ObjectName(domain, table);
- }
- catch (MalformedObjectNameException e)
- {
- throw new Error("Invalid ObjectName: " + domain + "," + table + "; " + e);
- }
- }
-}
Modified: trunk/jbossws-core/src/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManager.java
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManager.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/jbossws-core/src/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManager.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -55,13 +55,13 @@
import org.jboss.ws.WSException;
import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.core.utils.DOMWriter;
-import org.jboss.ws.core.utils.ObjectNameFactory;
import org.jboss.ws.core.utils.UUIDGenerator;
import org.jboss.ws.extensions.eventing.EventingConstants;
import org.jboss.ws.extensions.eventing.deployment.EventingEndpointDI;
import org.jboss.ws.extensions.eventing.jaxws.AttributedURIType;
import org.jboss.ws.extensions.eventing.jaxws.EndpointReferenceType;
import org.jboss.ws.extensions.eventing.jaxws.ReferenceParametersType;
+import org.jboss.ws.integration.ObjectNameFactory;
import org.w3c.dom.Element;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
Modified: trunk/jbossws-core/src/java/org/jboss/ws/metadata/builder/MetaDataBuilder.java
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/metadata/builder/MetaDataBuilder.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/jbossws-core/src/java/org/jboss/ws/metadata/builder/MetaDataBuilder.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -50,7 +50,7 @@
import org.jboss.ws.core.server.ServiceEndpointManager;
import org.jboss.ws.core.server.ServiceEndpointManagerFactory;
import org.jboss.ws.core.server.UnifiedDeploymentInfo;
-import org.jboss.ws.core.utils.ObjectNameFactory;
+import org.jboss.ws.integration.ObjectNameFactory;
import org.jboss.ws.extensions.addressing.AddressingPropertiesImpl;
import org.jboss.ws.extensions.addressing.metadata.AddressingOpMetaExt;
import org.jboss.ws.extensions.eventing.EventingConstants;
Modified: trunk/jbossws-core/src/java/org/jboss/ws/metadata/builder/jaxrpc/JAXRPCClientDeployment.java
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/metadata/builder/jaxrpc/JAXRPCClientDeployment.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/jbossws-core/src/java/org/jboss/ws/metadata/builder/jaxrpc/JAXRPCClientDeployment.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -21,11 +21,11 @@
*/
package org.jboss.ws.metadata.builder.jaxrpc;
+//$Id$
+
import org.jboss.ws.core.server.UnifiedDeploymentInfo;
+import org.jboss.ws.integration.deployment.Deployment.DeploymentType;
-
-// $Id$
-
/**
* The container independent deployment info.
*
Modified: trunk/jbossws-core/src/java/org/jboss/ws/metadata/builder/jaxrpc/JAXRPCDeployment.java
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/metadata/builder/jaxrpc/JAXRPCDeployment.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/jbossws-core/src/java/org/jboss/ws/metadata/builder/jaxrpc/JAXRPCDeployment.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -27,6 +27,7 @@
import org.jboss.ws.WSException;
import org.jboss.ws.core.server.UnifiedDeploymentInfo;
import org.jboss.ws.integration.UnifiedVirtualFile;
+import org.jboss.ws.integration.deployment.Deployment.DeploymentType;
import org.jboss.ws.metadata.webservices.WebservicesFactory;
import org.jboss.ws.metadata.webservices.WebservicesMetaData;
import org.jboss.xb.binding.ObjectModelFactory;
@@ -43,8 +44,14 @@
*/
public class JAXRPCDeployment extends UnifiedDeploymentInfo
{
- private WebservicesMetaData jsr109MetaData;
+ private WebservicesMetaData wsMetaData;
+ public JAXRPCDeployment(DeploymentType type, WebservicesMetaData wsMetaData)
+ {
+ super(type);
+ this.wsMetaData = wsMetaData;
+ }
+
public JAXRPCDeployment(DeploymentType type, UnifiedVirtualFile vfWebservices)
{
super(type);
@@ -58,7 +65,7 @@
{
Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
ObjectModelFactory factory = new WebservicesFactory(webservicesURL);
- jsr109MetaData = (WebservicesMetaData)unmarshaller.unmarshal(is, factory, null);
+ wsMetaData = (WebservicesMetaData)unmarshaller.unmarshal(is, factory, null);
}
finally
{
@@ -73,6 +80,6 @@
public WebservicesMetaData getWebservicesMetaData()
{
- return jsr109MetaData;
+ return wsMetaData;
}
}
Modified: trunk/jbossws-core/src/java/org/jboss/ws/metadata/builder/jaxws/JAXWSServerMetaDataBuilder.java
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/metadata/builder/jaxws/JAXWSServerMetaDataBuilder.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/jbossws-core/src/java/org/jboss/ws/metadata/builder/jaxws/JAXWSServerMetaDataBuilder.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -29,7 +29,7 @@
import org.jboss.ws.annotation.EndpointConfig;
import org.jboss.ws.annotation.WebContext;
import org.jboss.ws.core.server.UnifiedDeploymentInfo;
-import org.jboss.ws.core.server.UnifiedDeploymentInfo.DeploymentType;
+import org.jboss.ws.integration.deployment.Deployment.DeploymentType;
import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
import org.jboss.ws.metadata.umdm.UnifiedMetaData;
Modified: trunk/jbossws-core/src/java/org/jboss/ws/metadata/webservices/WebservicesMetaData.java
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/metadata/webservices/WebservicesMetaData.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/jbossws-core/src/java/org/jboss/ws/metadata/webservices/WebservicesMetaData.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -24,7 +24,6 @@
import java.net.URL;
import java.util.ArrayList;
-import java.util.Map;
import org.jboss.ws.Constants;
@@ -95,24 +94,4 @@
buf.append(" xsi:schemaLocation='http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd'");
buf.append(" version='1.1'>");
}
-
- private String createAlternatePrefix(String prefix, Map<String, String> namespaces)
- {
- // allocate working buffer
- StringBuilder altPrefixBuilder = new StringBuilder(prefix);
- // remember original length
- int baseLength = prefix.length();
-
- for (int i = 2; i < Integer.MAX_VALUE; i++)
- {
- // append a natural number to the original prefix
- String altPrefix = altPrefixBuilder.append(i).toString();
- // if the alternate prefix does not match an existing one, we're done
- if (!namespaces.containsKey(altPrefix))
- return altPrefix;
- // truncate buffer to original length
- altPrefixBuilder.setLength(baseLength);
- }
- throw new IllegalArgumentException("could not create alternate prefix from: " + prefix);
- }
}
Modified: trunk/jbossws-core/src/java/org/jboss/ws/tools/jaxws/impl/WSContractProviderImpl.java
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/tools/jaxws/impl/WSContractProviderImpl.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/jbossws-core/src/java/org/jboss/ws/tools/jaxws/impl/WSContractProviderImpl.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -21,9 +21,6 @@
*/
package org.jboss.ws.tools.jaxws.impl;
-import static org.jboss.ws.core.server.UnifiedDeploymentInfo.DeploymentType.JAXWS_EJB3;
-import static org.jboss.ws.core.server.UnifiedDeploymentInfo.DeploymentType.JAXWS_JSE;
-
import java.io.File;
import java.io.IOException;
import java.io.PrintStream;
@@ -34,8 +31,8 @@
import org.jboss.ws.WSException;
import org.jboss.ws.core.server.UnifiedDeploymentInfo;
-import org.jboss.ws.core.server.UnifiedDeploymentInfo.DeploymentType;
import org.jboss.ws.integration.ResourceLoaderAdapter;
+import org.jboss.ws.integration.deployment.Deployment.DeploymentType;
import org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder;
import org.jboss.ws.metadata.umdm.UnifiedMetaData;
import org.jboss.ws.tools.jaxws.api.WSContractProvider;
@@ -72,7 +69,7 @@
private UnifiedDeploymentInfo createUDI(Class<?> endpointClass, ClassLoader loader)
{
- DeploymentType type = (endpointClass.isAnnotationPresent(Stateless.class)) ? JAXWS_EJB3 : JAXWS_JSE;
+ DeploymentType type = (endpointClass.isAnnotationPresent(Stateless.class)) ? DeploymentType.JAXWS_EJB3 : DeploymentType.JAXWS_JSE;
UnifiedDeploymentInfo udi = new UnifiedDeploymentInfo(type)
{
@Override
Modified: trunk/jbossws-tests/src/java/org/jboss/test/ws/JBossWSTestHelper.java
===================================================================
--- trunk/jbossws-tests/src/java/org/jboss/test/ws/JBossWSTestHelper.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/jbossws-tests/src/java/org/jboss/test/ws/JBossWSTestHelper.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -31,7 +31,7 @@
import javax.naming.NamingException;
import org.jboss.logging.Logger;
-import org.jboss.ws.core.utils.ObjectNameFactory;
+import org.jboss.ws.integration.ObjectNameFactory;
/**
* A JBossWS test helper that deals with test deployment/undeployment, etc.
Modified: trunk/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1115/JBWS1115TestCase.java
===================================================================
--- trunk/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1115/JBWS1115TestCase.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1115/JBWS1115TestCase.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -26,7 +26,7 @@
import javax.management.ObjectName;
import org.jboss.test.ws.JBossWSTest;
-import org.jboss.ws.core.utils.ObjectNameFactory;
+import org.jboss.ws.integration.ObjectNameFactory;
/**
* Auto discover HTTP(S) port configuration from Tomcat
Modified: trunk/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/samples/dynamichandler/DynamicHandlerTestCase.java
===================================================================
--- trunk/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/samples/dynamichandler/DynamicHandlerTestCase.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/samples/dynamichandler/DynamicHandlerTestCase.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -36,7 +36,7 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
import org.jboss.ws.core.jaxrpc.client.ServiceExt;
-import org.jboss.ws.core.utils.ObjectNameFactory;
+import org.jboss.ws.integration.ObjectNameFactory;
import org.jboss.ws.metadata.umdm.HandlerMetaData;
/**
Modified: trunk/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/samples/wsbpel/JbpmBpelTestSetup.java
===================================================================
--- trunk/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/samples/wsbpel/JbpmBpelTestSetup.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/samples/wsbpel/JbpmBpelTestSetup.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -28,7 +28,7 @@
import org.jboss.logging.Logger;
import org.jboss.test.ws.JBossWSTestHelper;
import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.core.utils.ObjectNameFactory;
+import org.jboss.ws.integration.ObjectNameFactory;
/**
* A test setup that deploys process archives.
Modified: trunk/jbossws-tests/src/java/org/jboss/test/ws/jaxws/samples/jaxr/scout/JaxrBaseTest.java
===================================================================
--- trunk/jbossws-tests/src/java/org/jboss/test/ws/jaxws/samples/jaxr/scout/JaxrBaseTest.java 2007-04-24 12:52:42 UTC (rev 2915)
+++ trunk/jbossws-tests/src/java/org/jboss/test/ws/jaxws/samples/jaxr/scout/JaxrBaseTest.java 2007-04-25 10:07:39 UTC (rev 2916)
@@ -57,7 +57,7 @@
import javax.xml.registry.infomodel.User;
import org.jboss.test.ws.JBossWSTest;
-import org.jboss.ws.core.utils.ObjectNameFactory;
+import org.jboss.ws.integration.ObjectNameFactory;
/**
* Acts as the base class for Jaxr Test Cases
17 years, 8 months
JBossWS SVN: r2915 - in trunk/integration-jboss50/src/resources: jbossws.sar and 1 other directories.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2007-04-24 08:52:42 -0400 (Tue, 24 Apr 2007)
New Revision: 2915
Added:
trunk/integration-jboss50/src/resources/jbossws.sar/
trunk/integration-jboss50/src/resources/jbossws.sar/META-INF/
trunk/integration-jboss50/src/resources/jbossws.sar/META-INF/jbossws-beans.xml
Log:
Add a layer of indirection for the deployers
Added: trunk/integration-jboss50/src/resources/jbossws.sar/META-INF/jbossws-beans.xml
===================================================================
--- trunk/integration-jboss50/src/resources/jbossws.sar/META-INF/jbossws-beans.xml (rev 0)
+++ trunk/integration-jboss50/src/resources/jbossws.sar/META-INF/jbossws-beans.xml 2007-04-24 12:52:42 UTC (rev 2915)
@@ -0,0 +1,130 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+ <!-- Locate the single instance of the kernel -->
+ <bean name="KernelLocator" class="org.jboss.ws.integration.KernelLocator">
+ <property name="kernel"><inject bean="jboss.kernel:service=Kernel"/></property>
+ </bean>
+
+ <bean name="ServiceEndpointManager" class="org.jboss.ws.core.server.ServiceEndpointManager">
+
+ <!--
+ The WSDL, that is a required deployment artifact for an endpoint, has a <soap:address>
+ element which points to the location of the endpoint. JBoss supports rewriting of that SOAP address.
+
+ If the content of <soap:address> is a valid URL, JBossWS will not rewrite it unless 'alwaysModifySOAPAddress' is true.
+ If the content of <soap:address> is not a valid URL, JBossWS will rewrite it using the attribute values given below.
+
+ If next line (webServiceHost) is commented, JBossWS uses requesters protocolo, host and port when rewriting the <soap:address>.
+ -->
+ <property name="webServiceHost">${jboss.bind.address}</property>
+ <property name="alwaysModifySOAPAddress">true</property>
+
+ <!--
+ Set these properties to explicitly define the ports that will be used for rewriting the SOAP address.
+ Otherwise the ports will be identified by querying the list of installed connectors.
+ If multiple connectors are found the port of the first connector is used.
+ <property name="webServiceSecurePort">8443</property>
+ <property name="webServicePort">8080</property>
+ -->
+
+ <property name="serviceEndpointInvokerJSE">org.jboss.ws.core.server.ServiceEndpointInvokerJSE</property>
+ <property name="serviceEndpointInvokerEJB3">org.jboss.ws.integration.jboss50.ServiceEndpointInvokerEJB3</property>
+ <property name="serviceEndpointInvokerEJB21">org.jboss.ws.integration.jboss50.ServiceEndpointInvokerEJB21</property>
+ <!-- Not implemented
+ <property name="serviceEndpointInvokerMDB">org.jboss.ws.integration.jboss50.ServiceEndpointInvokerMDB</property>
+ -->
+ </bean>
+
+ <bean name="ServiceEndpointDeployer" class="org.jboss.ws.core.server.ServiceEndpointDeployer">
+ <property name="serviceEndpointManager">
+ <inject bean="ServiceEndpointManager"/>
+ </property>
+ </bean>
+
+ <bean name="ServiceEndpointPublisher" class="org.jboss.ws.integration.jboss50.ServiceEndpointPublisher">
+ <property name="mainDeployer"><inject bean="MainDeployer"/></property>
+ <property name="serviceEndpointServlet">org.jboss.ws.integration.jboss50.JBossServiceEndpointServlet</property>
+ </bean>
+
+ <!-- Bind Service objects in client environment context -->
+ <bean name="ServiceRefHandler" class="org.jboss.ws.core.client.ServiceRefHandlerImpl"/>
+
+ <!-- A subscription manager for WS-Eventing -->
+ <bean name="SubscriptionManager" class="org.jboss.ws.extensions.eventing.mgmt.SubscriptionManager"/>
+
+ <bean name="ServerConfig" class="org.jboss.ws.integration.jboss50.ServerConfigImpl"/>
+
+ <!-- Register deployers with the Web Service EJB deployer -->
+ <bean name="JAXWSDeployerEJB3" class="org.jboss.ws.integration.jboss50.JAXWSDeployerEJB3">
+ <install bean="WebServiceDeployerEJB" method="addDeployer">
+ <parameter>
+ <this/>
+ </parameter>
+ </install>
+ <uninstall bean="WebServiceDeployerEJB" method="removeDeployer">
+ <parameter>
+ <this/>
+ </parameter>
+ </uninstall>
+ <depends>WebServiceDeployerEJB</depends>
+ </bean>
+ <bean name="JAXRPCDeployerEJB21" class="org.jboss.ws.integration.jboss50.JAXRPCDeployerEJB21">
+ <install bean="WebServiceDeployerEJB" method="addDeployer">
+ <parameter>
+ <this/>
+ </parameter>
+ </install>
+ <uninstall bean="WebServiceDeployerEJB" method="removeDeployer">
+ <parameter>
+ <this/>
+ </parameter>
+ </uninstall>
+ <depends>WebServiceDeployerEJB</depends>
+ </bean>
+
+ <!-- Register deployers with the Web Service JSE deployer -->
+ <bean name="JAXWSDeployerJSE" class="org.jboss.ws.integration.jboss50.JAXWSDeployerJSE">
+ <install bean="WebServiceDeployerJSE" method="addDeployer">
+ <parameter>
+ <this/>
+ </parameter>
+ </install>
+ <uninstall bean="WebServiceDeployerJSE" method="removeDeployer">
+ <parameter>
+ <this/>
+ </parameter>
+ </uninstall>
+ <depends>WebServiceDeployerJSE</depends>
+ </bean>
+ <bean name="JAXRPCDeployerJSE" class="org.jboss.ws.integration.jboss50.JAXRPCDeployerJSE">
+ <install bean="WebServiceDeployerJSE" method="addDeployer">
+ <parameter>
+ <this/>
+ </parameter>
+ </install>
+ <uninstall bean="WebServiceDeployerJSE" method="removeDeployer">
+ <parameter>
+ <this/>
+ </parameter>
+ </uninstall>
+ <depends>WebServiceDeployerJSE</depends>
+ </bean>
+
+ <!-- Register deployers with the Web Service Start/Stop deployer -->
+ <bean name="ServiceEndpointLifecycleDeployer" class="org.jboss.ws.integration.jboss50.ServiceEndpointLifecycleDeployer">
+ <install bean="WebServiceStartStopDeployer" method="addDeployer">
+ <parameter>
+ <this/>
+ </parameter>
+ </install>
+ <uninstall bean="WebServiceStartStopDeployer" method="removeDeployer">
+ <parameter>
+ <this/>
+ </parameter>
+ </uninstall>
+ <depends>WebServiceStartStopDeployer</depends>
+ </bean>
+
+</deployment>
Property changes on: trunk/integration-jboss50/src/resources/jbossws.sar/META-INF/jbossws-beans.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
17 years, 8 months
JBossWS SVN: r2914 - in trunk: integration-jboss50 and 2 other directories.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2007-04-24 08:51:10 -0400 (Tue, 24 Apr 2007)
New Revision: 2914
Added:
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceAbstractDeployer.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceDeployer.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceDeployerEJB.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceDeployerJSE.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceStartStopDeployer.java
Modified:
trunk/build/ant-import/build-thirdparty.xml
trunk/integration-jboss50/build.xml
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/AbstractDeployer.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/AbstractDeployerEJB.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/AbstractDeployerJSE.java
trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/ServiceEndpointLifecycleDeployer.java
trunk/integration-jboss50/src/resources/jbossws.deployer/META-INF/jbossws-deployer-beans.xml
Log:
Add a layer of indirection for the deployers
Modified: trunk/build/ant-import/build-thirdparty.xml
===================================================================
--- trunk/build/ant-import/build-thirdparty.xml 2007-04-24 08:30:31 UTC (rev 2913)
+++ trunk/build/ant-import/build-thirdparty.xml 2007-04-24 12:51:10 UTC (rev 2914)
@@ -59,8 +59,10 @@
<get src="${jboss.repository}/jboss/jbossxb/${jboss-jbossxb}/lib/jboss-xml-binding-sources.jar" dest="${thirdparty.dir}/jboss-xml-binding-sources.jar" usetimestamp="true" verbose="true"/>
<get src="${jboss.repository}/jboss/microcontainer/${jboss-microcontainer}/lib/jboss-container.jar" dest="${thirdparty.dir}/jboss-container.jar" usetimestamp="true" verbose="true"/>
<get src="${jboss.repository}/jboss/microcontainer/${jboss-microcontainer}/lib/jboss-dependency.jar" dest="${thirdparty.dir}/jboss-dependency.jar" usetimestamp="true" verbose="true"/>
+ <get src="${jboss.repository}/jboss/microcontainer/${jboss-microcontainer}/lib/jboss-deployers.jar" dest="${thirdparty.dir}/jboss-deployers.jar" usetimestamp="true" verbose="true"/>
<get src="${jboss.repository}/jboss/microcontainer/${jboss-microcontainer}/lib/jboss-microcontainer.jar" dest="${thirdparty.dir}/jboss-microcontainer.jar" usetimestamp="true" verbose="true"/>
<get src="${jboss.repository}/jboss/microcontainer/${jboss-microcontainer}/lib/jboss-dependency-src.zip" dest="${thirdparty.dir}/jboss-dependency-src.zip" usetimestamp="true" verbose="true"/>
+ <get src="${jboss.repository}/jboss/microcontainer/${jboss-microcontainer}/lib/jboss-deployers-src.zip" dest="${thirdparty.dir}/jboss-deployers-src.zip" usetimestamp="true" verbose="true"/>
<get src="${jboss.repository}/jboss/microcontainer/${jboss-microcontainer}/lib/jboss-microcontainer-src.zip" dest="${thirdparty.dir}/jboss-microcontainer-src.zip" usetimestamp="true" verbose="true"/>
<get src="${jboss.repository}/jboss/remoting/${jboss-remoting}/lib/jboss-remoting.jar" dest="${thirdparty.dir}/jboss-remoting.jar" usetimestamp="true" verbose="true"/>
<get src="${jboss.repository}/jboss/security/${jboss-security}/lib/jbosssx-client.jar" dest="${thirdparty.dir}/jbosssx-client.jar" usetimestamp="true" verbose="true"/>
Modified: trunk/integration-jboss50/build.xml
===================================================================
--- trunk/integration-jboss50/build.xml 2007-04-24 08:30:31 UTC (rev 2913)
+++ trunk/integration-jboss50/build.xml 2007-04-24 12:51:10 UTC (rev 2914)
@@ -98,6 +98,9 @@
<!-- Build jbossws50.sar -->
<jar jarfile="${jboss50.output.lib.dir}/jbossws50.sar" manifest="${build.etc.dir}/default.mf">
+ <fileset dir="${core.output.lib.dir}">
+ <include name="jbossws-core.jar"/>
+ </fileset>
<fileset dir="${jboss50.output.lib.dir}">
<include name="jbossws-context.war"/>
</fileset>
@@ -112,6 +115,9 @@
<include name="standard-jaxws-client-config.xml"/>
<include name="standard-jaxws-endpoint-config.xml"/>
</metainf>
+ <metainf dir="${jboss50.resources.dir}/jbossws.sar/META-INF">
+ <include name="jbossws-beans.xml"/>
+ </metainf>
</jar>
<!-- Build jbossws50.deployer -->
@@ -119,15 +125,6 @@
<fileset dir="${jboss50.output.lib.dir}">
<include name="jbossws-jboss50-integration.jar"/>
</fileset>
- <fileset dir="${api.output.lib.dir}">
- <include name="jboss-jaxws.jar"/>
- </fileset>
- <fileset dir="${core.output.lib.dir}">
- <include name="jbossws-core.jar"/>
- </fileset>
- <fileset dir="${thirdparty.dir}">
- <include name="wsdl4j.jar"/>
- </fileset>
<fileset dir="${jboss50.resources.dir}/jbossws.deployer">
<include name="META-INF/jbossws-deployer-beans.xml"/>
</fileset>
Modified: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/AbstractDeployer.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/AbstractDeployer.java 2007-04-24 08:30:31 UTC (rev 2913)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/AbstractDeployer.java 2007-04-24 12:51:10 UTC (rev 2914)
@@ -23,16 +23,16 @@
//$Id$
-import org.jboss.deployers.plugins.deployer.AbstractSimpleDeployer;
import org.jboss.deployers.spi.DeploymentException;
import org.jboss.deployers.spi.deployer.DeploymentUnit;
-import org.jboss.ws.integration.KernelLocator;
import org.jboss.kernel.spi.registry.KernelRegistry;
import org.jboss.kernel.spi.registry.KernelRegistryEntry;
+import org.jboss.logging.Logger;
import org.jboss.ws.core.server.AbstractServiceEndpointPublisher;
import org.jboss.ws.core.server.ServiceEndpointDeployer;
import org.jboss.ws.core.server.UnifiedDeploymentInfo;
import org.jboss.ws.core.server.UnifiedDeploymentInfo.DeploymentType;
+import org.jboss.ws.integration.KernelLocator;
/**
* An abstract web service deployer.
@@ -50,8 +50,11 @@
* @author Thomas.Diesler(a)jboss.org
* @since 31-Oct-2006
*/
-public abstract class AbstractDeployer extends AbstractSimpleDeployer
+public abstract class AbstractDeployer implements WebServiceDeployer
{
+ // provide logging
+ private static final Logger log = Logger.getLogger(AbstractDeployer.class);
+
/** Depending on the type of deployment, this method should return true
* if the deployment contains web service endpoints.
*/
@@ -59,7 +62,6 @@
/** Deploy the web service endpoints if there are any
*/
- @Override
public final void deploy(DeploymentUnit unit) throws DeploymentException
{
boolean isComponent = unit.getDeploymentContext().isComponent();
@@ -82,14 +84,13 @@
UnifiedDeploymentInfo udi = getUnifiedDeploymentInfo(unit);
if (udi != null)
undeployInternal(unit, udi);
-
+
DeploymentException.rethrowAsDeploymentException("Cannot create service endpoint", ex);
}
}
/** Undeploy the web service endpoints if there are any
*/
- @Override
public final void undeploy(DeploymentUnit unit)
{
boolean isComponent = unit.getDeploymentContext().isComponent();
Modified: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/AbstractDeployerEJB.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/AbstractDeployerEJB.java 2007-04-24 08:30:31 UTC (rev 2913)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/AbstractDeployerEJB.java 2007-04-24 12:51:10 UTC (rev 2914)
@@ -27,6 +27,7 @@
import org.jboss.deployers.spi.DeploymentException;
import org.jboss.deployers.spi.deployer.DeploymentUnit;
+import org.jboss.logging.Logger;
import org.jboss.ws.core.server.UnifiedDeploymentInfo;
import org.jboss.ws.metadata.umdm.UnifiedMetaData;
@@ -38,6 +39,9 @@
*/
public abstract class AbstractDeployerEJB extends AbstractDeployer
{
+ // provide logging
+ protected static final Logger log = Logger.getLogger(AbstractDeployerEJB.class);
+
@Override
protected void createServiceEndpoint(UnifiedDeploymentInfo udi, DeploymentUnit unit) throws Exception
{
Modified: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/AbstractDeployerJSE.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/AbstractDeployerJSE.java 2007-04-24 08:30:31 UTC (rev 2913)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/AbstractDeployerJSE.java 2007-04-24 12:51:10 UTC (rev 2914)
@@ -23,18 +23,16 @@
//$Id$
-import java.io.InputStream;
-import java.net.URL;
import java.util.Iterator;
import java.util.Set;
import org.jboss.deployers.spi.DeploymentException;
import org.jboss.deployers.spi.deployer.DeploymentUnit;
+import org.jboss.logging.Logger;
import org.jboss.metadata.NameValuePair;
import org.jboss.metadata.WebMetaData;
import org.jboss.metadata.web.Servlet;
import org.jboss.ws.core.server.AbstractServiceEndpointPublisher;
-import org.jboss.ws.core.server.AbstractServiceEndpointPublisher.RewriteResults;
import org.jboss.ws.core.utils.JavaUtils;
/**
@@ -45,10 +43,12 @@
*/
public abstract class AbstractDeployerJSE extends AbstractDeployer
{
+ // provide logging
+ protected static final Logger log = Logger.getLogger(AbstractDeployerJSE.class);
+
public AbstractDeployerJSE()
{
super();
- super.setRelativeOrder(CLASSLOADER_DEPLOYER + 1);
}
/**
Modified: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/ServiceEndpointLifecycleDeployer.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/ServiceEndpointLifecycleDeployer.java 2007-04-24 08:30:31 UTC (rev 2913)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/ServiceEndpointLifecycleDeployer.java 2007-04-24 12:51:10 UTC (rev 2914)
@@ -25,15 +25,15 @@
import java.util.Set;
-import org.jboss.deployers.plugins.deployer.AbstractSimpleDeployer;
import org.jboss.deployers.spi.DeploymentException;
import org.jboss.deployers.spi.deployer.DeploymentUnit;
-import org.jboss.ws.integration.KernelLocator;
import org.jboss.kernel.spi.registry.KernelRegistry;
import org.jboss.kernel.spi.registry.KernelRegistryEntry;
+import org.jboss.logging.Logger;
import org.jboss.metadata.WebMetaData;
import org.jboss.ws.core.server.ServiceEndpointDeployer;
import org.jboss.ws.core.server.UnifiedDeploymentInfo;
+import org.jboss.ws.integration.KernelLocator;
/**
* A deployer that starts and stops web service deployments
@@ -41,11 +41,13 @@
* @author Thomas.Diesler(a)jboss.org
* @since 31-Oct-2006
*/
-public class ServiceEndpointLifecycleDeployer extends AbstractSimpleDeployer
+public class ServiceEndpointLifecycleDeployer implements WebServiceDeployer
{
+ // provide logging
+ private static final Logger log = Logger.getLogger(ServiceEndpointLifecycleDeployer.class);
+
/** Start the service endpoint
*/
- @Override
public void deploy(DeploymentUnit unit) throws DeploymentException
{
UnifiedDeploymentInfo udi = unit.getAttachment(UnifiedDeploymentInfo.class);
@@ -66,7 +68,6 @@
/** Stop the service endpoint
*/
- @Override
public void undeploy(DeploymentUnit unit)
{
UnifiedDeploymentInfo udi = unit.getAttachment(UnifiedDeploymentInfo.class);
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceAbstractDeployer.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceAbstractDeployer.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceAbstractDeployer.java 2007-04-24 12:51:10 UTC (rev 2914)
@@ -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.ws.integration.jboss50;
+
+//$Id$
+
+import java.util.LinkedList;
+import java.util.List;
+
+import org.jboss.deployers.plugins.deployer.AbstractSimpleDeployer;
+import org.jboss.deployers.spi.DeploymentException;
+import org.jboss.deployers.spi.deployer.DeploymentUnit;
+import org.jboss.logging.Logger;
+
+/**
+ * This deployer delegates to registerd web service deployers
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 24-Apr-2007
+ */
+public abstract class WebServiceAbstractDeployer extends AbstractSimpleDeployer
+{
+ // provide logging
+ private static final Logger log = Logger.getLogger(WebServiceAbstractDeployer.class);
+
+ private List<WebServiceDeployer> deployers = new LinkedList<WebServiceDeployer>();
+
+ public void addDeployer(WebServiceDeployer deployer)
+ {
+ log.debug("Add deployer: " + deployer);
+ deployers.add(deployer);
+ }
+
+ public void removeDeployer(WebServiceDeployer deployer)
+ {
+ log.debug("Remove deployer: " + deployer);
+ deployers.remove(deployer);
+ }
+
+ @Override
+ public void deploy(DeploymentUnit unit) throws DeploymentException
+ {
+ log.debug("Deploy: " + unit.getName());
+ for (WebServiceDeployer deployer : deployers)
+ deployer.deploy(unit);
+ }
+
+ @Override
+ public void undeploy(DeploymentUnit unit)
+ {
+ log.debug("Undeploy: " + unit.getName());
+ for (WebServiceDeployer deployer : deployers)
+ deployer.undeploy(unit);
+ }
+}
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceAbstractDeployer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceDeployer.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceDeployer.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceDeployer.java 2007-04-24 12:51:10 UTC (rev 2914)
@@ -0,0 +1,40 @@
+/*
+ * 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.integration.jboss50;
+
+//$Id$
+
+import org.jboss.deployers.spi.DeploymentException;
+import org.jboss.deployers.spi.deployer.DeploymentUnit;
+
+/**
+ * An interface for all web service deployers
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 24-Apr-2007
+ */
+public interface WebServiceDeployer
+{
+ void deploy(DeploymentUnit unit) throws DeploymentException;
+
+ public void undeploy(DeploymentUnit unit);
+}
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceDeployer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceDeployerEJB.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceDeployerEJB.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceDeployerEJB.java 2007-04-24 12:51:10 UTC (rev 2914)
@@ -0,0 +1,34 @@
+/*
+ * 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.integration.jboss50;
+
+//$Id$
+
+/**
+ * This deployer delegates to registerd web service deployers
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 24-Apr-2007
+ */
+public class WebServiceDeployerEJB extends WebServiceAbstractDeployer
+{
+}
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceDeployerEJB.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceDeployerJSE.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceDeployerJSE.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceDeployerJSE.java 2007-04-24 12:51:10 UTC (rev 2914)
@@ -0,0 +1,34 @@
+/*
+ * 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.integration.jboss50;
+
+//$Id$
+
+/**
+ * This deployer delegates to registerd web service deployers
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 24-Apr-2007
+ */
+public class WebServiceDeployerJSE extends WebServiceAbstractDeployer
+{
+}
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceDeployerJSE.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceStartStopDeployer.java
===================================================================
--- trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceStartStopDeployer.java (rev 0)
+++ trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceStartStopDeployer.java 2007-04-24 12:51:10 UTC (rev 2914)
@@ -0,0 +1,34 @@
+/*
+ * 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.integration.jboss50;
+
+//$Id$
+
+/**
+ * This deployer delegates to registerd web service deployers
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 24-Apr-2007
+ */
+public class WebServiceStartStopDeployer extends WebServiceAbstractDeployer
+{
+}
Property changes on: trunk/integration-jboss50/src/java/org/jboss/ws/integration/jboss50/WebServiceStartStopDeployer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: trunk/integration-jboss50/src/resources/jbossws.deployer/META-INF/jbossws-deployer-beans.xml
===================================================================
--- trunk/integration-jboss50/src/resources/jbossws.deployer/META-INF/jbossws-deployer-beans.xml 2007-04-24 08:30:31 UTC (rev 2913)
+++ trunk/integration-jboss50/src/resources/jbossws.deployer/META-INF/jbossws-deployer-beans.xml 2007-04-24 12:51:10 UTC (rev 2914)
@@ -2,60 +2,10 @@
<deployment xmlns="urn:jboss:bean-deployer:2.0">
- <bean name="KernelLocator" class="org.jboss.ws.integration.KernelLocator">
- <property name="kernel"><inject bean="jboss.kernel:service=Kernel"/></property>
- </bean>
-
- <bean name="ServiceEndpointManager" class="org.jboss.ws.core.server.ServiceEndpointManager">
-
- <!--
- The WSDL, that is a required deployment artifact for an endpoint, has a <soap:address>
- element which points to the location of the endpoint. JBoss supports rewriting of that SOAP address.
-
- If the content of <soap:address> is a valid URL, JBossWS will not rewrite it unless 'alwaysModifySOAPAddress' is true.
- If the content of <soap:address> is not a valid URL, JBossWS will rewrite it using the attribute values given below.
-
- If next line (webServiceHost) is commented, JBossWS uses requesters protocolo, host and port when rewriting the <soap:address>.
- -->
- <property name="webServiceHost">${jboss.bind.address}</property>
- <property name="alwaysModifySOAPAddress">true</property>
-
- <!--
- Set these properties to explicitly define the ports that will be used for rewriting the SOAP address.
- Otherwise the ports will be identified by querying the list of installed connectors.
- If multiple connectors are found the port of the first connector is used.
- <property name="webServiceSecurePort">8443</property>
- <property name="webServicePort">8080</property>
- -->
-
- <property name="serviceEndpointInvokerJSE">org.jboss.ws.core.server.ServiceEndpointInvokerJSE</property>
- <property name="serviceEndpointInvokerEJB3">org.jboss.ws.integration.jboss50.ServiceEndpointInvokerEJB3</property>
- <property name="serviceEndpointInvokerEJB21">org.jboss.ws.integration.jboss50.ServiceEndpointInvokerEJB21</property>
- <!-- Not implemented
- <property name="serviceEndpointInvokerMDB">org.jboss.ws.integration.jboss50.ServiceEndpointInvokerMDB</property>
- -->
- </bean>
-
- <bean name="ServiceEndpointDeployer" class="org.jboss.ws.core.server.ServiceEndpointDeployer">
- <property name="serviceEndpointManager">
- <inject bean="ServiceEndpointManager"/>
- </property>
- </bean>
-
- <bean name="ServiceEndpointPublisher" class="org.jboss.ws.integration.jboss50.ServiceEndpointPublisher">
- <property name="mainDeployer"><inject bean="MainDeployer"/></property>
- <property name="serviceEndpointServlet">org.jboss.ws.integration.jboss50.JBossServiceEndpointServlet</property>
- </bean>
-
- <!-- Bind Service objects in client environment context -->
- <bean name="ServiceRefHandler" class="org.jboss.ws.core.client.ServiceRefHandlerImpl"/>
-
- <!-- A subscription manager for WS-Eventing -->
- <bean name="SubscriptionManager" class="org.jboss.ws.extensions.eventing.mgmt.SubscriptionManager"/>
-
- <bean name="ServerConfig" class="org.jboss.ws.integration.jboss50.ServerConfigImpl"/>
-
- <bean name="JAXWSDeployerEJB3" class="org.jboss.ws.integration.jboss50.JAXWSDeployerEJB3">
+ <!--
+ A web service deployer that hooks in after the EJB deployer
+ -->
+ <bean name="WebServiceDeployerEJB" class="org.jboss.ws.integration.jboss50.WebServiceDeployerEJB">
<install bean="MainDeployer" method="addDeployer">
<parameter>
<this/>
@@ -67,11 +17,17 @@
</parameter>
</uninstall>
<depends>EJBRegistrationDeployer</depends>
- <depends>JBossWebAppParsingDeployer</depends>
- <depends>ServiceEndpointManager</depends>
</bean>
- <bean name="JAXWSDeployerJSE" class="org.jboss.ws.integration.jboss50.JAXWSDeployerJSE">
+ <!--
+ A web service deployer that hooks in before the WAR deployer
+ -->
+ <bean name="WebServiceDeployerJSE" class="org.jboss.ws.integration.jboss50.WebServiceDeployerJSE">
+ <!--
+ The AbstractWarDeployer sets this explicitly to 7001. We need to hook in before
+ Should this not be done with bean dependencies (i.e. the WarDeployer should depend on this guy)?
+ -->
+ <property name="relativeOrder">7000</property>
<install bean="MainDeployer" method="addDeployer">
<parameter>
<this/>
@@ -82,11 +38,13 @@
<this/>
</parameter>
</uninstall>
- <depends>JBossWebAppParsingDeployer</depends>
- <depends>ServiceEndpointManager</depends>
+ <depends>WebAppParsingDeployer</depends>
</bean>
- <bean name="JAXRPCDeployerJSE" class="org.jboss.ws.integration.jboss50.JAXRPCDeployerJSE">
+ <!--
+ A web service deployer that hooks in after the WAR/EJB deployer
+ -->
+ <bean name="WebServiceStartStopDeployer" class="org.jboss.ws.integration.jboss50.WebServiceStartStopDeployer">
<install bean="MainDeployer" method="addDeployer">
<parameter>
<this/>
@@ -97,37 +55,9 @@
<this/>
</parameter>
</uninstall>
- <depends>JBossWebAppParsingDeployer</depends>
- <depends>ServiceEndpointManager</depends>
+ <depends>WarDeployer</depends>
+ <depends>WebServiceDeployerEJB</depends>
+ <depends>WebServiceDeployerJSE</depends>
</bean>
- <bean name="JAXRPCDeployerEJB21" class="org.jboss.ws.integration.jboss50.JAXRPCDeployerEJB21">
- <install bean="MainDeployer" method="addDeployer">
- <parameter>
- <this/>
- </parameter>
- </install>
- <uninstall bean="MainDeployer" method="removeDeployer">
- <parameter>
- <this/>
- </parameter>
- </uninstall>
- <depends>JBossWebAppParsingDeployer</depends>
- <depends>ServiceEndpointManager</depends>
- </bean>
-
- <bean name="ServiceEndpointLifecycleDeployer" class="org.jboss.ws.integration.jboss50.ServiceEndpointLifecycleDeployer">
- <install bean="MainDeployer" method="addDeployer">
- <parameter>
- <this/>
- </parameter>
- </install>
- <uninstall bean="MainDeployer" method="removeDeployer">
- <parameter>
- <this/>
- </parameter>
- </uninstall>
- <depends>ServiceEndpointManager</depends>
- </bean>
-
</deployment>
17 years, 8 months
JBossWS SVN: r2913 - in branches/JBWS-856: jbossws-core/src/java/org/jboss/ws/metadata/wsdl and 3 other directories.
by jbossws-commits@lists.jboss.org
Author: palin
Date: 2007-04-24 04:30:31 -0400 (Tue, 24 Apr 2007)
New Revision: 2913
Added:
branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/metadata/wsdl/WSDLExtensibilityElement.java
branches/JBWS-856/jbossws-tests/src/resources/common/wsdl11/PolicyAttachment.wsdl
Modified:
branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/Constants.java
branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/metadata/wsdl/Extendable.java
branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/metadata/wsdl/WSDLBinding.java
branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/metadata/wsdl/WSDLBindingMessageReference.java
branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/metadata/wsdl/WSDLBindingOperation.java
branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/metadata/wsdl/WSDLDefinitions.java
branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/tools/wsdl/WSDL11Reader.java
branches/JBWS-856/jbossws-tests/src/java/org/jboss/test/ws/common/wsdl11/WSDL11TestCase.java
Log:
Modified the unmarshalling of wsdl 1.1 to the unified wsdl structure in order to collect eventual policy attachment in wsdl extensibility elements/attributes.
Modified: branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/Constants.java
===================================================================
--- branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/Constants.java 2007-04-24 06:35:57 UTC (rev 2912)
+++ branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/Constants.java 2007-04-24 08:30:31 UTC (rev 2913)
@@ -100,6 +100,9 @@
/** WS-Eventing namespace uri **/
static final String URI_WS_EVENTING = "http://schemas.xmlsoap.org/ws/2004/08/eventing";
+ /** WS-Policy namespace uri **/
+ static final String URI_WS_POLICY = "http://schemas.xmlsoap.org/ws/2004/09/policy";
+
/** WS-Addressing namespace uri **/
static final String URI_WS_ADDRESSING = "http://www.w3.org/2005/08/addressing";
@@ -276,6 +279,10 @@
static final String WSDL_PROPERTY_ACTION_OUT = "http://www.jboss.org/jbossws/wsa/actionOut";
static final String WSDL_PROPERTY_EVENTSOURCE = "http://www.jboss.org/jbossws/wse/isEventSource";
+
+ static final String WSDL_ELEMENT_POLICY = "http://www.jboss.org/jbossws/wsp/policy";
+ static final String WSDL_PROPERTY_POLICYURIS = "http://www.jboss.org/jbossws/wsp/policyURIs";
+ static final String WSDL_ELEMENT_POLICYREFERENCE = "http://www.jboss.org/jbossws/wsp/policyReference";
/** The key to the original message part name */
static final String WSDL_PROPERTY_PART_NAME = "http://www.jboss.org/jbossws/partname";
@@ -293,7 +300,9 @@
static final QName WSDL_ATTRIBUTE_WSA_ACTION = new QName(URI_WS_ADDRESSING, "Action");
static final QName WSDL_ATTRIBUTE_WSE_EVENTSOURCE = new QName(URI_WS_EVENTING, "EventSource");
-
+
+ static final QName WSDL_ATTRIBUTE_WSP_POLICYURIS = new QName(URI_WS_POLICY, "PolicyURIs");
+
/** WSDL-2.0 exchange patterns */
static final String WSDL20_PATTERN_IN_ONLY = "http://www.w3.org/2004/08/wsdl/in-only";
static final String WSDL20_PATTERN_ROUST_IN_ONLY = "http://www.w3.org/2004/08/wsdl/robust-in-only";
Modified: branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/metadata/wsdl/Extendable.java
===================================================================
--- branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/metadata/wsdl/Extendable.java 2007-04-24 06:35:57 UTC (rev 2912)
+++ branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/metadata/wsdl/Extendable.java 2007-04-24 08:30:31 UTC (rev 2913)
@@ -26,6 +26,8 @@
import java.io.Serializable;
import java.util.ArrayList;
import java.util.LinkedHashMap;
+import java.util.LinkedList;
+import java.util.List;
import java.util.Map;
import org.jboss.logging.Logger;
@@ -43,6 +45,7 @@
private Map features = new LinkedHashMap();
private Map properties = new LinkedHashMap();
+ private Map<String,List<WSDLExtensibilityElement>> extElements = new LinkedHashMap<String,List<WSDLExtensibilityElement>>();
public WSDLFeature[] getFeatures()
{
@@ -83,4 +86,32 @@
WSDLProperty property = (WSDLProperty)properties.get(uri);
return property;
}
+
+ public void addExtensibilityElement(WSDLExtensibilityElement extElement)
+ {
+ log.trace("addExtensibilityElement: " + extElement);
+ String uri = extElement.getUri();
+ List<WSDLExtensibilityElement> list = extElements.get(uri);
+ if (list == null)
+ {
+ list = new LinkedList<WSDLExtensibilityElement>();
+ extElements.put(uri,list);
+ }
+ list.add(extElement);
+ }
+
+ public List<WSDLExtensibilityElement> getExtensibilityElements(String uri)
+ {
+ return extElements.get(uri);
+ }
+
+ public List<WSDLExtensibilityElement> getAllExtensibilityElements()
+ {
+ List<WSDLExtensibilityElement> list = new LinkedList<WSDLExtensibilityElement>();
+ for (String k : extElements.keySet())
+ {
+ list.addAll(extElements.get(k));
+ }
+ return list;
+ }
}
Modified: branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/metadata/wsdl/WSDLBinding.java
===================================================================
--- branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/metadata/wsdl/WSDLBinding.java 2007-04-24 06:35:57 UTC (rev 2912)
+++ branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/metadata/wsdl/WSDLBinding.java 2007-04-24 08:30:31 UTC (rev 2913)
@@ -40,7 +40,7 @@
* @author <a href="jason.greene(a)jboss.com">Jason T. Greene</a>
* @since 10-Oct-2004
*/
-public class WSDLBinding implements Serializable
+public class WSDLBinding extends Extendable implements Serializable
{
private static final long serialVersionUID = -7699953670233209811L;
Modified: branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/metadata/wsdl/WSDLBindingMessageReference.java
===================================================================
--- branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/metadata/wsdl/WSDLBindingMessageReference.java 2007-04-24 06:35:57 UTC (rev 2912)
+++ branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/metadata/wsdl/WSDLBindingMessageReference.java 2007-04-24 08:30:31 UTC (rev 2913)
@@ -34,7 +34,7 @@
* @author <a href="mailto:jason.greene@jboss.com">Jason T. Greene</a>
* @version $Revision$
*/
-public abstract class WSDLBindingMessageReference
+public abstract class WSDLBindingMessageReference extends Extendable
{
// The parent WSDL binding operation
private WSDLBindingOperation wsdlBindingOperation;
Modified: branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/metadata/wsdl/WSDLBindingOperation.java
===================================================================
--- branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/metadata/wsdl/WSDLBindingOperation.java 2007-04-24 06:35:57 UTC (rev 2912)
+++ branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/metadata/wsdl/WSDLBindingOperation.java 2007-04-24 08:30:31 UTC (rev 2913)
@@ -41,7 +41,7 @@
* @author Anil.Saldhana(a)jboss.org
* @since 10-Oct-2004
*/
-public class WSDLBindingOperation implements Comparable, Serializable
+public class WSDLBindingOperation extends Extendable implements Comparable, Serializable
{
private static final long serialVersionUID = -1986624862746844610L;
Modified: branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/metadata/wsdl/WSDLDefinitions.java
===================================================================
--- branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/metadata/wsdl/WSDLDefinitions.java 2007-04-24 06:35:57 UTC (rev 2912)
+++ branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/metadata/wsdl/WSDLDefinitions.java 2007-04-24 08:30:31 UTC (rev 2913)
@@ -27,6 +27,7 @@
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedHashMap;
+import java.util.LinkedList;
import java.util.List;
import java.util.Map;
@@ -47,7 +48,7 @@
* @author Thomas.Diesler(a)jboss.org
* @since 10-Oct-2004
*/
-public class WSDLDefinitions implements Serializable
+public class WSDLDefinitions extends Extendable implements Serializable
{
private static final long serialVersionUID = 1643422922694990226L;
@@ -209,7 +210,7 @@
{
includes.add(include);
}
-
+
public WSDLTypes getWsdlTypes()
{
return types;
Added: branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/metadata/wsdl/WSDLExtensibilityElement.java
===================================================================
--- branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/metadata/wsdl/WSDLExtensibilityElement.java (rev 0)
+++ branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/metadata/wsdl/WSDLExtensibilityElement.java 2007-04-24 08:30:31 UTC (rev 2913)
@@ -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.metadata.wsdl;
+
+import java.io.Serializable;
+
+import org.w3c.dom.Element;
+
+/**
+ * Common metadata for (unknown) wsdl extensibility elements
+ *
+ * @author Alessio Soldano, <alessio.soldano(a)javalinux.it>
+ * @since 24-Apr-2007
+ *
+ */
+public class WSDLExtensibilityElement implements Serializable
+{
+ private static final long serialVersionUID = -7528676719881753461L;
+
+ /** A REQUIRED uri attribute information item */
+ private String uri;
+ /** An OPTIONAL required attribute information item */
+ private boolean required;
+
+ private Element element;
+
+ public WSDLExtensibilityElement(String uri, Element element)
+ {
+ this.element = element;
+ this.uri = uri;
+ }
+
+ public Element getElement()
+ {
+ return element;
+ }
+
+ public void setElement(Element element)
+ {
+ this.element = element;
+ }
+
+ public boolean isRequired()
+ {
+ return required;
+ }
+
+ public void setRequired(boolean required)
+ {
+ this.required = required;
+ }
+
+ public String getUri()
+ {
+ return uri;
+ }
+
+ public void setUri(String uri)
+ {
+ this.uri = uri;
+ }
+
+}
Modified: branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/tools/wsdl/WSDL11Reader.java
===================================================================
--- branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/tools/wsdl/WSDL11Reader.java 2007-04-24 06:35:57 UTC (rev 2912)
+++ branches/JBWS-856/jbossws-core/src/java/org/jboss/ws/tools/wsdl/WSDL11Reader.java 2007-04-24 08:30:31 UTC (rev 2913)
@@ -53,6 +53,7 @@
import javax.wsdl.Service;
import javax.wsdl.Types;
import javax.wsdl.WSDLException;
+import javax.wsdl.extensions.ElementExtensible;
import javax.wsdl.extensions.ExtensibilityElement;
import javax.wsdl.extensions.UnknownExtensibilityElement;
import javax.wsdl.extensions.mime.MIMEContent;
@@ -76,6 +77,7 @@
import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.core.utils.DOMWriter;
import org.jboss.ws.core.utils.ResourceURL;
+import org.jboss.ws.metadata.wsdl.Extendable;
import org.jboss.ws.metadata.wsdl.WSDLBinding;
import org.jboss.ws.metadata.wsdl.WSDLBindingMessageReference;
import org.jboss.ws.metadata.wsdl.WSDLBindingOperation;
@@ -83,6 +85,7 @@
import org.jboss.ws.metadata.wsdl.WSDLBindingOperationOutput;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
import org.jboss.ws.metadata.wsdl.WSDLEndpoint;
+import org.jboss.ws.metadata.wsdl.WSDLExtensibilityElement;
import org.jboss.ws.metadata.wsdl.WSDLInterface;
import org.jboss.ws.metadata.wsdl.WSDLInterfaceFault;
import org.jboss.ws.metadata.wsdl.WSDLInterfaceOperation;
@@ -156,6 +159,7 @@
processNamespaces(srcWsdl);
processTypes(srcWsdl, wsdlLoc);
+ processUnknownExtensibilityElements(srcWsdl, destWsdl);
processServices(srcWsdl);
if (getAllDefinedBindings(srcWsdl).size() != destWsdl.getBindings().length)
@@ -209,6 +213,41 @@
destWsdl.registerNamespaceURI(nsURI, prefix);
}
}
+
+ private void processUnknownExtensibilityElements(ElementExtensible src, Extendable dest) throws WSDLException
+ {
+ List extElements = src.getExtensibilityElements();
+ for (int i=0; i<extElements.size(); i++)
+ {
+ ExtensibilityElement extElement = (ExtensibilityElement)extElements.get(i);
+ processPolicyElements(extElement, dest);
+ //add processing of further extensibility element types below
+ }
+ }
+
+ private void processPolicyElements(ExtensibilityElement extElement, Extendable dest)
+ {
+ if (extElement instanceof UnknownExtensibilityElement)
+ {
+ Element srcElement = ((UnknownExtensibilityElement)extElement).getElement();
+ if (Constants.URI_WS_POLICY.equals(srcElement.getNamespaceURI()))
+ {
+ Element element = (Element)srcElement.cloneNode(true);
+ copyParentNamespaceDeclarations(element,srcElement);
+ if (element.getLocalName().equals("Policy"))
+ {
+ dest.addExtensibilityElement(
+ new WSDLExtensibilityElement(Constants.WSDL_ELEMENT_POLICY,element));
+ }
+ else if (element.getLocalName().equals("PolicyReference"))
+ {
+ dest.addExtensibilityElement(
+ new WSDLExtensibilityElement(Constants.WSDL_ELEMENT_POLICYREFERENCE,element));
+ }
+
+ }
+ }
+ }
private void processTypes(Definition srcWsdl, URL wsdlLoc) throws IOException, WSDLException
{
@@ -465,7 +504,14 @@
if (destWsdl.getInterface(qname) == null)
{
WSDLInterface destInterface = new WSDLInterface(destWsdl, qname);
-
+
+ //policy extensions
+ QName policyURIsProp = (QName)srcPortType.getExtensionAttribute(Constants.WSDL_ATTRIBUTE_WSP_POLICYURIS);
+ if (policyURIsProp != null && !"".equalsIgnoreCase(policyURIsProp.getLocalPart()))
+ {
+ destInterface.addProperty(new WSDLProperty(Constants.WSDL_PROPERTY_POLICYURIS, policyURIsProp.getLocalPart()));
+ }
+
// eventing extensions
QName eventSourceProp = (QName)srcPortType.getExtensionAttribute(Constants.WSDL_ATTRIBUTE_WSE_EVENTSOURCE);
if (eventSourceProp != null && eventSourceProp.getLocalPart().equals(Boolean.TRUE.toString()))
@@ -487,6 +533,7 @@
Operation srcOperation = (Operation)itOperations.next();
WSDLInterfaceOperation destOperation = new WSDLInterfaceOperation(destInterface, srcOperation.getName());
+ processUnknownExtensibilityElements(srcOperation, destOperation);
destOperation.setStyle(getOperationStyle(srcWsdl, srcPortType, srcOperation));
if (srcOperation.getStyle() != null && false == OperationType.NOTIFICATION.equals(srcOperation.getStyle()))
@@ -545,6 +592,7 @@
destOperation.addProperty(new WSDLProperty(Constants.WSDL_PROPERTY_MESSAGE_NAME_IN, srcMessage.getQName().getLocalPart()));
destInput.setPartName(srcPart.getName());
+ processUnknownExtensibilityElements(srcMessage, destInput);
destOperation.addInput(destInput);
}
@@ -565,6 +613,7 @@
// WSDL 2.0 RPC bindings
rpcInput.setElement(destOperation.getName());
rpcInput.setMessageName(srcMessage.getQName());
+ processUnknownExtensibilityElements(srcMessage, rpcInput);
destOperation.addInput(rpcInput);
}
}
@@ -861,6 +910,7 @@
WSDLBinding destBinding = new WSDLBinding(destWsdl, srcBindingQName);
destBinding.setInterfaceName(srcPortType.getQName());
destBinding.setType(bindingType);
+ processUnknownExtensibilityElements(srcBinding, destBinding);
destWsdl.addBinding(destBinding);
// mark SWA Parts upfront
@@ -1011,6 +1061,7 @@
WSDLBindingOperation destBindingOperation = new WSDLBindingOperation(destBinding);
QName refQName = new QName(namespaceURI, srcOperationName);
destBindingOperation.setRef(refQName);
+ processUnknownExtensibilityElements(srcBindingOperation, destBindingOperation);
destBinding.addOperation(destBindingOperation);
String opName = srcOperationName;
@@ -1061,6 +1112,7 @@
List<ExtensibilityElement> extList = srcBindingInput.getExtensibilityElements();
WSDLBindingOperationInput input = new WSDLBindingOperationInput(destBindingOperation);
+ processUnknownExtensibilityElements(srcBindingInput, input);
destBindingOperation.addInput(input);
ReferenceCallback cb = new ReferenceCallback() {
@@ -1284,6 +1336,7 @@
Service srcService = (Service)it.next();
QName qname = srcService.getQName();
WSDLService destService = new WSDLService(destWsdl, qname);
+ processUnknownExtensibilityElements(srcService, destService);
destWsdl.addService(destService);
processPorts(srcWsdl, destService, srcService);
}
@@ -1328,6 +1381,7 @@
WSDLEndpoint destEndpoint = new WSDLEndpoint(destService, endpointName);
destEndpoint.setBinding(srcBinding.getQName());
destEndpoint.setAddress(getSOAPAddress(srcPort));
+ processUnknownExtensibilityElements(srcPort, destEndpoint);
if (processBinding(srcWsdl, srcBinding))
destService.addEndpoint(destEndpoint);
Modified: branches/JBWS-856/jbossws-tests/src/java/org/jboss/test/ws/common/wsdl11/WSDL11TestCase.java
===================================================================
--- branches/JBWS-856/jbossws-tests/src/java/org/jboss/test/ws/common/wsdl11/WSDL11TestCase.java 2007-04-24 06:35:57 UTC (rev 2912)
+++ branches/JBWS-856/jbossws-tests/src/java/org/jboss/test/ws/common/wsdl11/WSDL11TestCase.java 2007-04-24 08:30:31 UTC (rev 2913)
@@ -22,23 +22,28 @@
package org.jboss.test.ws.common.wsdl11;
import java.io.File;
+import java.util.List;
import javax.xml.namespace.QName;
import org.jboss.test.ws.JBossWSTest;
import org.jboss.ws.Constants;
import org.jboss.ws.extensions.eventing.EventingConstants;
+import org.jboss.ws.metadata.wsdl.WSDLBinding;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
import org.jboss.ws.metadata.wsdl.WSDLEndpoint;
+import org.jboss.ws.metadata.wsdl.WSDLExtensibilityElement;
import org.jboss.ws.metadata.wsdl.WSDLInterface;
import org.jboss.ws.metadata.wsdl.WSDLInterfaceOperation;
import org.jboss.ws.metadata.wsdl.WSDLInterfaceOperationInput;
import org.jboss.ws.metadata.wsdl.WSDLInterfaceOperationOutput;
+import org.jboss.ws.metadata.wsdl.WSDLProperty;
import org.jboss.ws.metadata.wsdl.WSDLRPCPart;
import org.jboss.ws.metadata.wsdl.WSDLService;
import org.jboss.ws.metadata.wsdl.WSDLTypes;
import org.jboss.ws.metadata.wsdl.WSDLUtils;
import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
+import org.w3c.dom.Element;
/**
* Test the unmarshalling of wsdl-1.1 into the unified wsdl structure
@@ -182,4 +187,76 @@
WSDLDefinitions wsdlDefinitions = factory.parse(wsdlFile.toURL());
assertNotNull(wsdlDefinitions); // should throw an Exception when SWA parts are not skipped
}
+
+ public void testPolicyAttachment() throws Exception
+ {
+ File wsdlFile = new File("resources/common/wsdl11/PolicyAttachment.wsdl");
+ assertTrue(wsdlFile.exists());
+
+ WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
+ WSDLDefinitions wsdlDefinitions = factory.parse(wsdlFile.toURL());
+ assertNotNull(wsdlDefinitions);
+ List<WSDLExtensibilityElement> list = wsdlDefinitions.getExtensibilityElements(Constants.WSDL_ELEMENT_POLICY);
+ assertNotNull(list);
+ assertEquals(list.size(),5);
+ for (WSDLExtensibilityElement extEl : list)
+ {
+ Element el = extEl.getElement();
+ assertNotNull(el);
+ QName qName = new QName(el.getNamespaceURI(),el.getLocalName(),el.getPrefix());
+ assertEquals(qName,new QName("http://schemas.xmlsoap.org/ws/2004/09/policy","Policy","wsp"));
+ assertNotNull(el.getAttributeNodeNS("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utilit...","Id"));
+ //System.out.println(DOMWriter.printNode(extEl.getElement(),true));
+ }
+ }
+
+ public void testServicePolicyRef() throws Exception
+ {
+ File wsdlFile = new File("resources/common/wsdl11/PolicyAttachment.wsdl");
+ WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
+ WSDLDefinitions wsdlDefinitions = factory.parse(wsdlFile.toURL());
+ WSDLService wsdlService = wsdlDefinitions.getServices()[0];
+ List<WSDLExtensibilityElement> list = wsdlService.getExtensibilityElements(
+ Constants.WSDL_ELEMENT_POLICYREFERENCE);
+ assertNotNull(list);
+ assertEquals(list.size(),1);
+ assertPolicyRef(list.get(0),"uselessServicePolicy");
+ }
+
+ public void testEndpointPolicyRef() throws Exception
+ {
+ File wsdlFile = new File("resources/common/wsdl11/PolicyAttachment.wsdl");
+ WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
+ WSDLDefinitions wsdlDefinitions = factory.parse(wsdlFile.toURL());
+ WSDLService wsdlService = wsdlDefinitions.getServices()[0];
+ WSDLEndpoint wsdlEndpoint = wsdlService.getEndpoints()[0];
+
+ List<WSDLExtensibilityElement> extPortList = wsdlEndpoint.getExtensibilityElements(
+ Constants.WSDL_ELEMENT_POLICYREFERENCE);
+ assertNotNull(extPortList);
+ assertEquals(extPortList.size(),1);
+ assertPolicyRef(extPortList.get(0),"uselessPortPolicy");
+
+ WSDLProperty extPortTypeProp = wsdlEndpoint.getInterface().getProperty(
+ Constants.WSDL_PROPERTY_POLICYURIS);
+ assertEquals(extPortTypeProp.getValue(),"#RmPolicy");
+
+ WSDLBinding wsdlBinding = wsdlDefinitions.getBinding(wsdlEndpoint.getBinding());
+ List<WSDLExtensibilityElement> extBinding = wsdlBinding.getExtensibilityElements(
+ Constants.WSDL_ELEMENT_POLICYREFERENCE);
+ assertNotNull(extBinding);
+ assertEquals(extBinding.size(),2);
+ assertPolicyRef(extBinding.get(0),"RmPolicy");
+ assertPolicyRef(extBinding.get(1),"X509EndpointPolicy");
+ }
+
+
+ private void assertPolicyRef(WSDLExtensibilityElement extEl, String policyURI)
+ {
+ Element el = extEl.getElement();
+ QName qName = new QName(el.getNamespaceURI(),el.getLocalName(),el.getPrefix());
+ assertEquals(qName,new QName("http://schemas.xmlsoap.org/ws/2004/09/policy","PolicyReference","wsp"));
+ assertNotNull(el);
+ assertEquals(el.getAttributeNode("URI").getValue(),"#"+policyURI);
+ }
}
Added: branches/JBWS-856/jbossws-tests/src/resources/common/wsdl11/PolicyAttachment.wsdl
===================================================================
--- branches/JBWS-856/jbossws-tests/src/resources/common/wsdl11/PolicyAttachment.wsdl (rev 0)
+++ branches/JBWS-856/jbossws-tests/src/resources/common/wsdl11/PolicyAttachment.wsdl 2007-04-24 08:30:31 UTC (rev 2913)
@@ -0,0 +1,134 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<definitions name="TestService" targetNamespace="http://org.jboss.ws/jaxrpc"
+ xmlns:tns="http://org.jboss.ws/jaxrpc"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:ns2="http://org.jboss.ws/jaxrpc/types"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:fab="http://www.fabrikam123.example.com/stock"
+ xmlns:rmp="http://schemas.xmlsoap.org/ws/2005/02/rm/policy"
+ xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"
+ xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
+ xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utilit..." >
+ <wsp:Policy wsu:Id="RmPolicy" >
+ <rmp:RMAssertion>
+ <rmp:InactivityTimeout Milliseconds="600000" />
+ <rmp:BaseRetransmissionInterval Milliseconds="3000" />
+ <rmp:ExponentialBackoff />
+ <rmp:AcknowledgementInterval Milliseconds="200" />
+ </rmp:RMAssertion>
+ </wsp:Policy>
+ <wsp:Policy wsu:Id="uselessServicePolicy" >
+ <fab:useless>nothing</fab:useless>
+ </wsp:Policy>
+ <wsp:Policy wsu:Id="uselessPortPolicy" >
+ <fab:useless>nothing again</fab:useless>
+ </wsp:Policy>
+ <wsp:Policy wsu:Id="X509EndpointPolicy" >
+ <sp:AsymmetricBinding>
+ <wsp:Policy>
+ <!-- Details omitted for readability -->
+ <sp:IncludeTimestamp />
+ <sp:OnlySignEntireHeadersAndBody />
+ </wsp:Policy>
+ </sp:AsymmetricBinding>
+ </wsp:Policy>
+ <wsp:Policy wsu:Id="SecureMessagePolicy" >
+ <sp:SignedParts>
+ <sp:Body />
+ </sp:SignedParts>
+ <sp:EncryptedParts>
+ <sp:Body />
+ </sp:EncryptedParts>
+ </wsp:Policy>
+ <types>
+ <schema targetNamespace="http://org.jboss.ws/jaxrpc/types" xmlns:tns="http://org.jboss.ws/jaxrpc/types" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://www.w3.org/2001/XMLSchema">
+ <complexType name="echoSimpleUserType">
+ <sequence>
+ <element name="String_1" type="string" nillable="true"/>
+ <element name="SimpleUserType_2" type="tns:SimpleUserType" nillable="true"/>
+ </sequence>
+ </complexType>
+ <complexType name="SimpleUserType">
+ <sequence>
+ <element name="a" type="int"/>
+ <element name="b" type="int"/>
+ </sequence>
+ </complexType>
+ <complexType name="echoSimpleUserTypeResponse">
+ <sequence>
+ <element name="result" type="tns:SimpleUserType" nillable="true"/>
+ </sequence>
+ </complexType>
+ <complexType name="echoString">
+ <sequence>
+ <element name="String_1" type="string" nillable="true"/>
+ <element name="String_2" type="string" nillable="true"/>
+ </sequence>
+ </complexType>
+ <complexType name="echoStringResponse">
+ <sequence>
+ <element name="result" type="string" nillable="true"/>
+ </sequence>
+ </complexType>
+ <element name="echoSimpleUserType" type="tns:echoSimpleUserType"/>
+ <element name="echoSimpleUserTypeResponse" type="tns:echoSimpleUserTypeResponse"/>
+ <element name="echoString" type="tns:echoString"/>
+ <element name="echoStringResponse" type="tns:echoStringResponse"/>
+ </schema>
+ </types>
+ <message name="JaxRpcTestService_echoSimpleUserType">
+ <part name="parameters" element="ns2:echoSimpleUserType"/>
+ </message>
+ <message name="JaxRpcTestService_echoSimpleUserTypeResponse">
+ <part name="result" element="ns2:echoSimpleUserTypeResponse"/>
+ </message>
+ <message name="JaxRpcTestService_echoString">
+ <part name="parameters" element="ns2:echoString"/>
+ </message>
+ <message name="JaxRpcTestService_echoStringResponse">
+ <part name="result" element="ns2:echoStringResponse"/>
+ </message>
+ <portType name="JaxRpcTestService" wsp:PolicyURIs="#RmPolicy">
+ <operation name="echoSimpleUserType">
+ <input message="tns:JaxRpcTestService_echoSimpleUserType"/>
+ <output message="tns:JaxRpcTestService_echoSimpleUserTypeResponse"/>
+ </operation>
+ <operation name="echoString">
+ <input message="tns:JaxRpcTestService_echoString"/>
+ <output message="tns:JaxRpcTestService_echoStringResponse"/>
+ </operation>
+ </portType>
+ <binding name="JaxRpcTestServiceBinding" type="tns:JaxRpcTestService">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+ <wsp:PolicyReference URI="#RmPolicy" wsdl:required="true" />
+ <wsp:PolicyReference URI="#X509EndpointPolicy" wsdl:required="true" />
+ <operation name="echoSimpleUserType">
+ <soap:operation soapAction=""/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+ <operation name="echoString">
+ <soap:operation soapAction=""/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+ </binding>
+ <service name="TestService">
+ <wsp:PolicyReference URI="#uselessServicePolicy" wsdl:required="true" />
+ <port name="JaxRpcTestServicePort" binding="tns:JaxRpcTestServiceBinding">
+ <wsp:PolicyReference URI="#uselessPortPolicy" wsdl:required="true" />
+ <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
+ </port>
+ </service>
+</definitions>
17 years, 8 months
JBossWS SVN: r2912 - in trunk/build/hudson/hudson-home/jobs: JBWS-Trunk-Tests-AS-5.0 and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2007-04-24 02:35:57 -0400 (Tue, 24 Apr 2007)
New Revision: 2912
Added:
trunk/build/hudson/hudson-home/jobs/JBWS-Trunk-Tests-AS-5.0/
Modified:
trunk/build/hudson/hudson-home/jobs/JBWS-Trunk-Tests-AS-5.0/config.xml
Log:
Add trunk tests
Copied: trunk/build/hudson/hudson-home/jobs/JBWS-Trunk-Tests-AS-5.0 (from rev 2911, trunk/build/hudson/hudson-home/jobs/JBWS-Tests-AS-5.0)
Modified: trunk/build/hudson/hudson-home/jobs/JBWS-Trunk-Tests-AS-5.0/config.xml
===================================================================
--- trunk/build/hudson/hudson-home/jobs/JBWS-Tests-AS-5.0/config.xml 2007-04-23 21:48:37 UTC (rev 2911)
+++ trunk/build/hudson/hudson-home/jobs/JBWS-Trunk-Tests-AS-5.0/config.xml 2007-04-24 06:35:57 UTC (rev 2912)
@@ -6,10 +6,10 @@
#
# Module settings
#
-MODULE=JBWS-Tests-AS-5.0
-SVNBASENAME=(a)svn.basename@
+MODULE=JBWS-Trunk-AS-5.0
+SVNBASENAME=trunk
WORKSPACE=`pwd`
-SVNBASEDIR=$WORKSPACE/(a)svn.basename@
+SVNBASEDIR=$WORKSPACE/trunk
JBOSS_INSTANCE=@hudson.home@/jobs/AS-5.0/workspace/trunk/build/output/(a)hudson.jboss50.build@
ENVIRONMENT="-Djbossws.integration.target=jboss50 -Djboss50.home=$JBOSS_INSTANCE"
@@ -50,7 +50,7 @@
</builders>
<publishers class="vector">
<hudson.tasks.junit.JUnitResultArchiver>
- <testResults>@svn.basename(a)/jbossws-tests/output/reports/*.xml</testResults>
+ <testResults>trunk/jbossws-tests/output/reports/*.xml</testResults>
</hudson.tasks.junit.JUnitResultArchiver>
<hudson.tasks.Mailer>
<recipients>@hudson.mail.recipients@</recipients>
@@ -62,8 +62,8 @@
<scm class="hudson.scm.SubversionSCM">
<locations>
<hudson.scm.SubversionSCM-ModuleLocation>
- <remote>@svn.url@</remote>
- <local>@svn.basename@</local>
+ <remote>https://svn.jboss.org/repos/jbossws/trunk</remote>
+ <local>trunk</local>
</hudson.scm.SubversionSCM-ModuleLocation>
</locations>
<useUpdate>true</useUpdate>
@@ -81,7 +81,7 @@
*/10 * * * *</spec>
</hudson.triggers.SCMTrigger>
</triggers>
- <description>Build and test jbossws-(a)version.id@ against AS-5.0</description>
+ <description>Build and test jbossws trunk against AS-5.0</description>
<keepDependencies>false</keepDependencies>
<properties/>
<actions class="vector"/>
17 years, 8 months
JBossWS SVN: r2911 - in trunk: jbossws-core/src/java/org/jboss/ws/tools and 7 other directories.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2007-04-23 17:48:37 -0400 (Mon, 23 Apr 2007)
New Revision: 2911
Added:
trunk/jbossws-core/src/java/org/jboss/ws/tools/HolderWriter.java
trunk/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws429/
trunk/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws429/JBWS429TestCase.java
trunk/jbossws-tests/src/resources/tools/jbws429/
trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/
trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/Person.java
trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PersonHolder.java
trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PhoneBook.wsdl
trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PhoneBook_PortType.java
trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/jaxrpc-mapping.xml
trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/wstools-config.xml
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/Account.java
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/AccountHolder.java
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/Person.java
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/PhoneBook.wsdl
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/PhoneBook_PortType.java
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/TelephoneNumber.java
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/jaxrpc-mapping.xml
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/wstools-config.xml
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/Account.java
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/AccountHolder.java
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/Person.java
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/PhoneBook.wsdl
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/PhoneBook_PortType.java
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/TelephoneNumber.java
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/jaxrpc-mapping.xml
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/wstools-config.xml
Removed:
trunk/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws429/JBWS429TestCase.java
trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/
trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/Person.java
trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PersonHolder.java
trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PhoneBook.wsdl
trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PhoneBook_PortType.java
trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/jaxrpc-mapping.xml
trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/wstools-config.xml
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/Account.java
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/AccountHolder.java
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/Person.java
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/PhoneBook.wsdl
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/PhoneBook_PortType.java
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/TelephoneNumber.java
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/jaxrpc-mapping.xml
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/wstools-config.xml
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/Account.java
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/AccountHolder.java
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/Person.java
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/PhoneBook.wsdl
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/PhoneBook_PortType.java
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/TelephoneNumber.java
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/jaxrpc-mapping.xml
trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/wstools-config.xml
Modified:
trunk/jbossws-core/src/java/org/jboss/ws/metadata/wsdl/WSDLUtils.java
trunk/jbossws-core/src/java/org/jboss/ws/tools/WSDLToJava.java
trunk/jbossws-core/src/java/org/jboss/ws/tools/XSDToJava.java
Log:
JBWS-429 - WSDL to Java, JAX-RPC holder generation.
Modified: trunk/jbossws-core/src/java/org/jboss/ws/metadata/wsdl/WSDLUtils.java
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/metadata/wsdl/WSDLUtils.java 2007-04-23 21:46:33 UTC (rev 2910)
+++ trunk/jbossws-core/src/java/org/jboss/ws/metadata/wsdl/WSDLUtils.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -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.wsdl;
import java.io.File;
@@ -92,10 +92,10 @@
private final Map primitiveMap = new HashMap();
- private final static Map<String,Class> schemaBasicTypes = new HashMap<String,Class>();
+ private final static Map<String, Class> schemaBasicTypes = new HashMap<String, Class>();
- private final static Map<Class,Class> holderTypes = new HashMap<Class,Class>();
- private final static Map<Class,Class> reverseHolderTypes = new HashMap<Class,Class>();
+ private final static Map<Class, Class> holderTypes = new HashMap<Class, Class>();
+ private final static Map<Class, Class> reverseHolderTypes = new HashMap<Class, Class>();
// Skip these methods when generating wsdl operations
private List<String> ignoredMethods;
@@ -119,55 +119,54 @@
static
{
- holderTypes.put(BigDecimal.class,BigDecimalHolder.class);
- holderTypes.put(BigInteger.class,BigIntegerHolder.class);
- holderTypes.put(boolean.class,BooleanHolder.class);
- holderTypes.put(Boolean.class,BooleanWrapperHolder.class);
- holderTypes.put(byte.class,ByteHolder.class);
- holderTypes.put(Byte.class,ByteWrapperHolder.class);
- holderTypes.put(Byte[].class,ByteArrayHolder.class);
- holderTypes.put(Calendar.class,CalendarHolder.class);
- holderTypes.put(double.class,DoubleHolder.class);
- holderTypes.put(Double.class,DoubleWrapperHolder.class);
+ holderTypes.put(BigDecimal.class, BigDecimalHolder.class);
+ holderTypes.put(BigInteger.class, BigIntegerHolder.class);
+ holderTypes.put(boolean.class, BooleanHolder.class);
+ holderTypes.put(Boolean.class, BooleanWrapperHolder.class);
+ holderTypes.put(byte.class, ByteHolder.class);
+ holderTypes.put(Byte.class, ByteWrapperHolder.class);
+ holderTypes.put(Byte[].class, ByteArrayHolder.class);
+ holderTypes.put(Calendar.class, CalendarHolder.class);
+ holderTypes.put(double.class, DoubleHolder.class);
+ holderTypes.put(Double.class, DoubleWrapperHolder.class);
holderTypes.put(float.class, FloatHolder.class);
holderTypes.put(Float.class, FloatWrapperHolder.class);
- holderTypes.put(int.class,IntHolder.class);
- holderTypes.put(Integer.class,IntegerWrapperHolder.class);
- holderTypes.put(long.class,LongHolder.class);
- holderTypes.put(Long.class,LongWrapperHolder.class);
- holderTypes.put(Object.class,ObjectHolder.class);
- holderTypes.put(QName.class,QNameHolder.class);
- holderTypes.put(short.class,ShortHolder.class);
- holderTypes.put(Short.class,ShortWrapperHolder.class);
- holderTypes.put(String.class,StringHolder.class);
+ holderTypes.put(int.class, IntHolder.class);
+ holderTypes.put(Integer.class, IntegerWrapperHolder.class);
+ holderTypes.put(long.class, LongHolder.class);
+ holderTypes.put(Long.class, LongWrapperHolder.class);
+ holderTypes.put(Object.class, ObjectHolder.class);
+ holderTypes.put(QName.class, QNameHolder.class);
+ holderTypes.put(short.class, ShortHolder.class);
+ holderTypes.put(Short.class, ShortWrapperHolder.class);
+ holderTypes.put(String.class, StringHolder.class);
}
static
{
- reverseHolderTypes.put(BigDecimalHolder.class , BigDecimal.class);
- reverseHolderTypes.put(BigIntegerHolder.class , BigInteger.class);
- reverseHolderTypes.put(BooleanHolder.class , boolean.class);
+ reverseHolderTypes.put(BigDecimalHolder.class, BigDecimal.class);
+ reverseHolderTypes.put(BigIntegerHolder.class, BigInteger.class);
+ reverseHolderTypes.put(BooleanHolder.class, boolean.class);
reverseHolderTypes.put(BooleanWrapperHolder.class, Boolean.class);
reverseHolderTypes.put(ByteArrayHolder.class, Byte[].class);
reverseHolderTypes.put(ByteHolder.class, byte.class);
- reverseHolderTypes.put(ByteWrapperHolder.class,Byte.class );
- reverseHolderTypes.put(CalendarHolder.class,Calendar.class);
- reverseHolderTypes.put(DoubleHolder.class,double.class );
- reverseHolderTypes.put(DoubleWrapperHolder.class,Double.class);
- reverseHolderTypes.put(FloatHolder.class,float.class);
+ reverseHolderTypes.put(ByteWrapperHolder.class, Byte.class);
+ reverseHolderTypes.put(CalendarHolder.class, Calendar.class);
+ reverseHolderTypes.put(DoubleHolder.class, double.class);
+ reverseHolderTypes.put(DoubleWrapperHolder.class, Double.class);
+ reverseHolderTypes.put(FloatHolder.class, float.class);
reverseHolderTypes.put(FloatWrapperHolder.class, Float.class);
- reverseHolderTypes.put(IntHolder.class,int.class );
- reverseHolderTypes.put(IntegerWrapperHolder.class,Integer.class );
+ reverseHolderTypes.put(IntHolder.class, int.class);
+ reverseHolderTypes.put(IntegerWrapperHolder.class, Integer.class);
reverseHolderTypes.put(LongHolder.class, long.class);
- reverseHolderTypes.put(LongWrapperHolder.class,Long.class);
- reverseHolderTypes.put(ObjectHolder.class,Object.class);
- reverseHolderTypes.put(QNameHolder.class,QName.class);
- reverseHolderTypes.put(ShortHolder.class,short.class);
- reverseHolderTypes.put(ShortWrapperHolder.class,Short.class);
- reverseHolderTypes.put(StringHolder.class,String.class);
+ reverseHolderTypes.put(LongWrapperHolder.class, Long.class);
+ reverseHolderTypes.put(ObjectHolder.class, Object.class);
+ reverseHolderTypes.put(QNameHolder.class, QName.class);
+ reverseHolderTypes.put(ShortHolder.class, short.class);
+ reverseHolderTypes.put(ShortWrapperHolder.class, Short.class);
+ reverseHolderTypes.put(StringHolder.class, String.class);
}
-
/**
* Singleton - Only way to get an instance
* @return
@@ -220,8 +219,7 @@
//Check baseType is xsd:anyType
if (baseType != null)
{
- if (baseType.getNamespace() == Constants.NS_SCHEMA_XSD &&
- baseType.getName().equals("anyType"))
+ if (baseType.getNamespace() == Constants.NS_SCHEMA_XSD && baseType.getName().equals("anyType"))
bool = true; //Ignore this baseType
}
if (XSComplexTypeDefinition.CONTENTTYPE_SIMPLE == t.getContentType())
@@ -233,7 +231,6 @@
}
-
/**
* Check if the class is a Java standard class
* @param cls
@@ -241,13 +238,14 @@
*/
public boolean checkIgnoreClass(Class cls)
{
- if(cls == null)
+ if (cls == null)
throw new IllegalArgumentException("Illegal null argument:cls");
//if (cls.isArray()) cls = cls.getComponentType();
if (!cls.isArray())
{
String pkgname = cls.getPackage() != null ? cls.getPackage().getName() : null;
- if (pkgname != null && pkgname.startsWith("java")) return true;
+ if (pkgname != null && pkgname.startsWith("java"))
+ return true;
if (ParameterWrapping.WrapperType.class.isAssignableFrom(cls))
return true;
@@ -256,7 +254,6 @@
return false;
}
-
/** Check if this method should be ignored
*/
public boolean checkIgnoreMethod(Method method)
@@ -287,7 +284,6 @@
return ignoreMethod;
}
-
/**
* Chop "PortType" at the end of the String
* @param name
@@ -296,7 +292,8 @@
public String chopPortType(String name)
{
int index = name.lastIndexOf("PortType");
- if (index > 0) return name.substring(0, index);
+ if (index > 0)
+ return name.substring(0, index);
return name;
}
@@ -310,7 +307,8 @@
public String chop(String name, String chopstr)
{
int index = name.lastIndexOf(chopstr);
- if (index > 0) return name.substring(0, index);
+ if (index > 0)
+ return name.substring(0, index);
return name;
}
@@ -321,9 +319,9 @@
*/
public File createPackage(String path, String packageName)
{
- if(packageName == null )
+ if (packageName == null)
throw new IllegalArgumentException("Illegal Null Argument: packageName");
- if(path == null)
+ if (path == null)
throw new IllegalArgumentException("Illegal Null Argument: path");
String pac = packageName.replace('.', '/');
File dir = new File(path + "/" + pac);
@@ -338,23 +336,22 @@
* @return
* @throws IOException Problem creating the file
*/
- public File createPhysicalFile(File loc, String fname)
- throws IOException
+ public File createPhysicalFile(File loc, String fname) throws IOException
{
- if(loc == null )
+ if (loc == null)
throw new IllegalArgumentException("Illegal Null Argument: loc");
- if(fname == null)
+ if (fname == null)
throw new IllegalArgumentException("Illegal Null Argument: fname");
- File sei = new File(loc.getAbsolutePath() + "/" + fname + ".java");
- //Delete the sei if already exists
- if (sei.exists()) sei.delete();
- boolean boolCreate = sei.createNewFile();
+ File javaFile = new File(loc.getAbsolutePath() + "/" + fname + ".java");
+ //Delete the javaFile if already exists
+ if (javaFile.exists())
+ javaFile.delete();
+ boolean boolCreate = javaFile.createNewFile();
if (!boolCreate)
- throw new WSException("SEI " + fname + ".java cannot be created");
- return sei;
+ throw new WSException(fname + ".java cannot be created");
+ return javaFile;
}
-
/**
* Create the basic template of a class
* @param pkgname Package Name
@@ -363,10 +360,7 @@
* @param importList Strings representing imports
* @return
*/
- public StringBuilder createClassBasicStructure(String pkgname,
- String fname,
- XSTypeDefinition type,
- List importList, String baseName)
+ public StringBuilder createClassBasicStructure(String pkgname, String fname, XSTypeDefinition type, List importList, String baseName)
{
StringBuilder buf = new StringBuilder();
writeJbossHeader(buf);
@@ -393,8 +387,7 @@
//Check baseType is xsd:anyType
if (baseType != null)
{
- if (baseType.getNamespace() == Constants.NS_SCHEMA_XSD &&
- baseType.getName().equals("anyType"))
+ if (baseType.getNamespace() == Constants.NS_SCHEMA_XSD && baseType.getName().equals("anyType"))
baseType = null; //Ignore this baseType
}
if (XSComplexTypeDefinition.CONTENTTYPE_SIMPLE == t.getContentType())
@@ -404,9 +397,9 @@
}
buf.append("public class " + fname);
- if(baseName == null && baseType != null)
+ if (baseName == null && baseType != null)
baseName = baseType.getName();
- if(baseName != null)
+ if (baseName != null)
buf.append(" extends " + baseName);
buf.append(newline);
buf.append("{");
@@ -421,7 +414,7 @@
* @param name Field name to check
* @return true - if public field exists, false-otherwise
*/
- public boolean doesPublicFieldExist( Class javaType, String name)
+ public boolean doesPublicFieldExist(Class javaType, String name)
{
Field fld = null;
try
@@ -442,7 +435,6 @@
return false;
}
-
/**
* Ensure that the first alphabet is uppercase
* @param fname
@@ -470,10 +462,11 @@
*/
public int getArrayDimension(Class arr)
{
- if(arr == null || arr.isArray() == false)
+ if (arr == null || arr.isArray() == false)
throw new IllegalArgumentException("Illegal null or array arg:arr");
int counter = 0;
- while(arr.isArray()) {
+ while (arr.isArray())
+ {
counter += 1;
arr = arr.getComponentType();
}
@@ -499,14 +492,12 @@
*/
public Class getJavaTypeForHolder(Class cls)
{
- if(Holder.class.isAssignableFrom(cls))
+ if (Holder.class.isAssignableFrom(cls))
return HolderUtils.getValueType(cls);
- else
- return cls;
+ else return cls;
//return reverseHolderTypes.get(cls);
}
-
/**
* An input of "HelloObjArray" is converted into arrayOfHelloObj
* Applied in the input part for WSDL 1.1 Messages
@@ -536,7 +527,8 @@
public static String getJustClassName(Class cls)
{
- if (cls == null) return null;
+ if (cls == null)
+ return null;
if (cls.isArray())
{
Class c = cls.getComponentType();
@@ -557,8 +549,7 @@
int index = classname.lastIndexOf(".");
if (index < 0)
index = 0;
- else
- index = index + 1;
+ else index = index + 1;
return classname.substring(index);
}
@@ -619,7 +610,8 @@
*/
public Class getJavaType(QName xmlType)
{
- if (xmlType == null) return null;
+ if (xmlType == null)
+ return null;
String localPart = xmlType.getLocalPart();
return (Class)schemaBasicTypes.get(localPart);
}
@@ -634,14 +626,13 @@
if (str == null || str.length() == 0)
throw new IllegalArgumentException("String passed to WSDLUtils.getMixedCase is null");
- if (str.length() == 1) return str.toUpperCase();
+ if (str.length() == 1)
+ return str.toUpperCase();
char[] charr = str.toCharArray();
charr[0] = Character.toUpperCase(charr[0]);
return new String(charr);
}
-
-
/**
* Given a QName, provide a string that is prefix:localpart
* @param qn
@@ -654,7 +645,8 @@
StringBuilder sb = new StringBuilder();
String prefix = qn.getPrefix();
String localpart = qn.getLocalPart();
- if (prefix == null || prefix == "") prefix = Constants.PREFIX_TNS;
+ if (prefix == null || prefix == "")
+ prefix = Constants.PREFIX_TNS;
sb.append(prefix + ":");
sb.append(localpart);
@@ -666,23 +658,22 @@
* @param formattedStr string that is prefix:localpart
* @return QName
*/
- public QName getQName( String formattedStr)
+ public QName getQName(String formattedStr)
{
QName qn = null;
int ind = formattedStr.lastIndexOf(":");
- if(ind < 0)
+ if (ind < 0)
throw new IllegalArgumentException("Formatted String is not of format prefix:localpart");
- String prefix = formattedStr.substring(0,ind);
+ String prefix = formattedStr.substring(0, ind);
String nsuri = null;
- if(Constants.PREFIX_XSD.equals(prefix)) nsuri = Constants.NS_SCHEMA_XSD;
- if(nsuri == null)
- qn = new QName( formattedStr.substring(ind+1) );
- else
- qn = new QName( nsuri,formattedStr.substring(ind+1),prefix);
+ if (Constants.PREFIX_XSD.equals(prefix))
+ nsuri = Constants.NS_SCHEMA_XSD;
+ if (nsuri == null)
+ qn = new QName(formattedStr.substring(ind + 1));
+ else qn = new QName(nsuri, formattedStr.substring(ind + 1), prefix);
return qn;
}
-
/**
* Return the primitive for a wrapper equivalent (Integer -> int)
* @param str
@@ -718,19 +709,20 @@
StringBuilder sb = new StringBuilder("http://");
//Generate tokens with '.' as delimiter
- StringTokenizer st = new StringTokenizer(packageName,".");
+ StringTokenizer st = new StringTokenizer(packageName, ".");
//Have a LIFO queue for the tokens
Stack<String> stk = new Stack<String>();
- while(st != null && st.hasMoreTokens())
+ while (st != null && st.hasMoreTokens())
{
stk.push(st.nextToken());
}
String next;
- while(!stk.isEmpty() && (next=stk.pop())!=null)
+ while (!stk.isEmpty() && (next = stk.pop()) != null)
{
- if(sb.toString().equals("http://") == false) sb.append(".");
+ if (sb.toString().equals("http://") == false)
+ sb.append(".");
sb.append(next);
}
@@ -751,26 +743,25 @@
WSDLInterface wi = wsdl.getInterfaces()[0];
WSDLInterfaceOperation wio = wi.getOperations()[0];
String style = wio.getStyle();
- if(style == null || style.equals(Constants.URI_STYLE_RPC) || "rpc".equalsIgnoreCase(style))
+ if (style == null || style.equals(Constants.URI_STYLE_RPC) || "rpc".equalsIgnoreCase(style))
return Constants.RPC_LITERAL;
- else
- return Constants.DOCUMENT_LITERAL;
+ else return Constants.DOCUMENT_LITERAL;
}
public static JBossXSModel getSchemaModel(WSDLTypes types)
{
if (types instanceof XSModelTypes)
- return ((XSModelTypes) types).getSchemaModel();
+ return ((XSModelTypes)types).getSchemaModel();
throw new WSException("WSDLTypes is not an XSModelTypes");
}
public static void addSchemaModel(WSDLTypes types, String namespace, JBossXSModel model)
{
- if (! (types instanceof XSModelTypes))
+ if (!(types instanceof XSModelTypes))
throw new WSException("WSDLTypes is not an XSModelTypes");
- XSModelTypes modelTypes = (XSModelTypes) types;
+ XSModelTypes modelTypes = (XSModelTypes)types;
modelTypes.addSchemaModel(namespace, model);
}
@@ -782,10 +773,10 @@
*/
public boolean isStandardHolder(Class cls)
{
- if(Holder.class.isAssignableFrom(cls) == false)
- return false; //Not even a holder
+ if (Holder.class.isAssignableFrom(cls) == false)
+ return false; //Not even a holder
//It is a holder. Is it a standard holder?
- if(cls.getPackage().getName().startsWith("javax.xml.rpc"))
+ if (cls.getPackage().getName().startsWith("javax.xml.rpc"))
return true;
return false;
}
@@ -861,8 +852,10 @@
switch (outputs.length)
{
- case 0: return null;
- case 1: return outputs[0];
+ case 0:
+ return null;
+ case 1:
+ return outputs[0];
}
throw new WSException("Only Request-Only and Request-Response MEPs are allowed");
@@ -876,8 +869,10 @@
switch (inputs.length)
{
- case 0: return null;
- case 1: return inputs[0];
+ case 0:
+ return null;
+ case 1:
+ return inputs[0];
}
throw new WSException("Only Request-Only and Request-Response MEPs are allowed");
Copied: trunk/jbossws-core/src/java/org/jboss/ws/tools/HolderWriter.java (from rev 2812, branches/dlofthouse/JBWS-429/jbossws-core/src/java/org/jboss/ws/tools/HolderWriter.java)
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/tools/HolderWriter.java (rev 0)
+++ trunk/jbossws-core/src/java/org/jboss/ws/tools/HolderWriter.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -0,0 +1,121 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, 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.tools;
+
+import java.io.File;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.util.HashMap;
+
+import javax.xml.rpc.holders.Holder;
+
+import org.jboss.ws.WSException;
+import org.jboss.ws.metadata.wsdl.WSDLUtils;
+
+/**
+ * Utility class to write JAX-RPC holders.
+ *
+ * @author darran.lofthouse(a)jboss.com
+ * @since 11 Apr 2007
+ */
+public class HolderWriter
+{
+
+ private static final WSDLUtils utils = WSDLUtils.getInstance();
+
+ private static final String newline = "\n";
+
+ /**
+ * HashMap of the holders already generated so they do not need to be
+ * generated again.
+ */
+ private HashMap<String, String> createdHolders = new HashMap<String, String>();
+
+ String getOrCreateHolder(final String type, final File pkgLoc)
+ {
+
+ String fullHolderName = createdHolders.get(type);
+ if (fullHolderName == null)
+ {
+ StringBuilder buf = new StringBuilder();
+ fullHolderName = writeHolder(type, buf);
+
+ createdHolders.put(type, fullHolderName);
+
+ String holderName = fullHolderName.substring(fullHolderName.lastIndexOf('.') + 1);
+
+ try
+ {
+ File sei = utils.createPhysicalFile(pkgLoc, holderName);
+ FileWriter writer = new FileWriter(sei);
+ writer.write(buf.toString());
+ writer.flush();
+ writer.close();
+ }
+ catch (IOException e)
+ {
+ throw new WSException("Unable to create JAX-RPC holder.", e);
+ }
+ }
+
+ return fullHolderName;
+ }
+
+ private String writeHolder(final String type, final StringBuilder buf)
+ {
+ String pkg = type.substring(0, type.lastIndexOf('.'));
+ String typeName = type.substring(type.lastIndexOf('.') + 1);
+ String holderName = typeName + "Holder";
+
+ utils.writeJbossHeader(buf);
+ buf.append(newline);
+ buf.append("package ").append(pkg).append(";").append(newline);
+
+ buf.append(newline);
+ buf.append("public class ").append(holderName).append(" implements ").append(Holder.class.getName());
+ buf.append(newline).append("{").append(newline);
+
+ // Add the public member variable.
+ buf.append(newline);
+ buf.append(" public ").append(type).append(" value;");
+ buf.append(newline);
+
+ // Add the default constructor.
+ buf.append(newline);
+ buf.append(" ").append("public ").append(holderName).append("()").append(newline);
+ buf.append(" {").append(newline);
+ buf.append(" this.value = new ").append(type).append("();").append(newline);
+ buf.append(" }").append(newline);
+
+ // Add the second constructor.
+ buf.append(newline);
+ buf.append(" ").append("public ").append(holderName).append("(final ").append(type).append(" value)").append(newline);
+ buf.append(" {").append(newline);
+ buf.append(" this.value = value;").append(newline);
+ buf.append(" }").append(newline);
+ buf.append(newline);
+
+ buf.append("}").append(newline);
+ return pkg + "." + holderName;
+ }
+
+}
Modified: trunk/jbossws-core/src/java/org/jboss/ws/tools/WSDLToJava.java
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/tools/WSDLToJava.java 2007-04-23 21:46:33 UTC (rev 2910)
+++ trunk/jbossws-core/src/java/org/jboss/ws/tools/WSDLToJava.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -80,7 +80,6 @@
{
private String newline = "\n";
- //protected LiteralTypeMapping typeMapping = new LiteralTypeMapping();
protected LiteralTypeMapping typeMapping = null;
protected WSDLDefinitions wsdl = null;
@@ -90,14 +89,12 @@
*/
protected WSDLUtils utils = WSDLUtils.getInstance();
- //protected XSDToJavaIntf xsdJava = new XSDToJava();
-
//Feature Set
protected boolean annotate = false;
protected Map<String, String> namespacePackageMap = null;
- //private String wsdlStyle = Constants.RPC_LITERAL;
+ protected HolderWriter holderWriter = new HolderWriter();
private String seiPkgName = "";
@@ -378,12 +375,12 @@
boolean holder = false;
if (input != null && input.getElement() != null)
{
- QName xmlName = input.getElement();
+ QName xmlName = input.getElement();
holder = output != null && xmlName.equals(output.getElement());
-
+
appendParameters(paramBuffer, input, output, xmlName.getLocalPart());
}
-
+
if (!holder && output != null && output.getElement() != null)
{
QName xmlName = output.getElement();
@@ -569,8 +566,15 @@
if (className.charAt(0) == '>')
className = className.substring(1);
className = utils.firstLetterUpperCase(className);
- buf.append(seiPkgName + "." + className + arraySuffix);
+ className = seiPkgName + "." + className + arraySuffix;
+ if (holder)
+ {
+ className = holderWriter.getOrCreateHolder(className, getLocationForJavaGeneration());
+ }
+
+ buf.append(className);
+
if (xt instanceof XSComplexTypeDefinition)
generateJavaSource((XSComplexTypeDefinition)xt, xsmodel, containingElement);
}
Modified: trunk/jbossws-core/src/java/org/jboss/ws/tools/XSDToJava.java
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/tools/XSDToJava.java 2007-04-23 21:46:33 UTC (rev 2910)
+++ trunk/jbossws-core/src/java/org/jboss/ws/tools/XSDToJava.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -134,7 +134,7 @@
String nsuri = elmtype.getNamespace();
String tname = elmtype.getName();
if (tname != null) continue; //Consider only anon complex types
- //xsdJava.createJavaFile(ctype, dirloc, packageName, xsmodel, elmname);
+
createJavaFile(ctype, dirloc, packageName, xsmodel, elmname);
}
}
@@ -159,7 +159,6 @@
throw new IllegalArgumentException(str);
checkXSDTypeToJava();
xsdJava.createJavaFile(type,outerElementName, loc,pkgname,schema, false);
- //createJavaFile(type, schema);
}
private void checkXSDTypeToJava()
Copied: trunk/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws429 (from rev 2812, branches/dlofthouse/JBWS-429/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws429)
Deleted: trunk/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws429/JBWS429TestCase.java
===================================================================
--- branches/dlofthouse/JBWS-429/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws429/JBWS429TestCase.java 2007-04-11 22:11:22 UTC (rev 2812)
+++ trunk/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws429/JBWS429TestCase.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -1,131 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, 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.tools.jbws429;
-
-import java.io.File;
-import java.io.FilenameFilter;
-
-import org.jboss.test.ws.tools.WSToolsTest;
-import org.jboss.test.ws.tools.fixture.JBossSourceComparator;
-import org.jboss.test.ws.tools.validation.JaxrpcMappingValidator;
-import org.jboss.ws.tools.WSTools;
-
-/**
- * Test case for http://jira.jboss.com/jira/browse/JBWS-429
- *
- * WSDL to Java, generation of custom holders.
- *
- * @author darran.lofthouse(a)jboss.com
- * @since 11 Apr 2007
- */
-public class JBWS429TestCase extends WSToolsTest
-{
-
- /**
- * Test WSDL to Java with the a document/literal endpoint
- * where the message part is the same for both the input
- * and output message.
- *
- */
- public void testGenerateDocLitInOut() throws Exception
- {
- generateScenario("doclit_inout");
- }
-
- /**
- * Test WSDL to Java with a rpc/literal endpoint
- * where a matching message part is in the request
- * and response messages.
- *
- */
- public void testGenerateRpcLitInOut() throws Exception
- {
- generateScenario("rpclit_inout");
- }
-
- /**
- * Test WSDL to Java with a rpc/literal endpoint
- * where there are multiple parts in the response
- * message so a holder is required.
- *
- */
- public void testGenerateRpcLitOut() throws Exception
- {
- generateScenario("rpclit_out");
- }
-
- protected void generateScenario(final String scenario) throws Exception
- {
- String resourceDir = "resources/tools/jbws429/" + scenario;
- String toolsDir = "tools/jbws429/" + scenario;
- String[] args = new String[] { "-dest", toolsDir, "-config", resourceDir + "/wstools-config.xml" };
- new WSTools().generate(args);
- File resourceDirFile = new File(resourceDir);
- String[] expectedFiles = resourceDirFile.list(new FilenameFilter() {
- public boolean accept(File dir, String name)
- {
- return name.endsWith(".java");
- }
- });
-
- for (int i = 0; i < expectedFiles.length; i++)
- {
- String currentFile = expectedFiles[i];
-
- try
- {
- compareSource(resourceDir + "/" + currentFile, toolsDir + "/org/jboss/test/ws/jbws429/" + currentFile);
- }
- catch (Exception e)
- {
- throw new Exception("Validation of '" + currentFile + "' failed.", e);
- }
- }
-
- File packageDir = new File(toolsDir + "/org/jboss/test/ws/jbws429");
- String[] generatedFiles = packageDir.list();
- for (int i = 0; i < generatedFiles.length; i++)
- {
- String currentFile = generatedFiles[i];
-
- boolean matched = "PhoneBookService.java".equals(currentFile);
-
- for (int j = 0; j < expectedFiles.length && (matched == false); j++)
- matched = currentFile.equals(expectedFiles[j]);
-
- assertTrue("File '" + currentFile + "' was not expected to be generated", matched);
- }
-
- JaxrpcMappingValidator mappingValidator = new JaxrpcMappingValidator();
- mappingValidator.validate(resourceDir + "/jaxrpc-mapping.xml", toolsDir + "/jaxrpc-mapping.xml");
- }
-
- private static void compareSource(final String expectedName, final String generatedName) throws Exception
- {
- File expected = new File(expectedName);
- File generated = new File(generatedName);
-
- JBossSourceComparator sc = new JBossSourceComparator(expected, generated);
- sc.validate();
- sc.validateImports();
- }
-}
Copied: trunk/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws429/JBWS429TestCase.java (from rev 2812, branches/dlofthouse/JBWS-429/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws429/JBWS429TestCase.java)
===================================================================
--- trunk/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws429/JBWS429TestCase.java (rev 0)
+++ trunk/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws429/JBWS429TestCase.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -0,0 +1,131 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, 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.tools.jbws429;
+
+import java.io.File;
+import java.io.FilenameFilter;
+
+import org.jboss.test.ws.tools.WSToolsTest;
+import org.jboss.test.ws.tools.fixture.JBossSourceComparator;
+import org.jboss.test.ws.tools.validation.JaxrpcMappingValidator;
+import org.jboss.ws.tools.WSTools;
+
+/**
+ * Test case for http://jira.jboss.com/jira/browse/JBWS-429
+ *
+ * WSDL to Java, generation of custom holders.
+ *
+ * @author darran.lofthouse(a)jboss.com
+ * @since 11 Apr 2007
+ */
+public class JBWS429TestCase extends WSToolsTest
+{
+
+ /**
+ * Test WSDL to Java with the a document/literal endpoint
+ * where the message part is the same for both the input
+ * and output message.
+ *
+ */
+ public void testGenerateDocLitInOut() throws Exception
+ {
+ generateScenario("doclit_inout");
+ }
+
+ /**
+ * Test WSDL to Java with a rpc/literal endpoint
+ * where a matching message part is in the request
+ * and response messages.
+ *
+ */
+ public void testGenerateRpcLitInOut() throws Exception
+ {
+ generateScenario("rpclit_inout");
+ }
+
+ /**
+ * Test WSDL to Java with a rpc/literal endpoint
+ * where there are multiple parts in the response
+ * message so a holder is required.
+ *
+ */
+ public void testGenerateRpcLitOut() throws Exception
+ {
+ generateScenario("rpclit_out");
+ }
+
+ protected void generateScenario(final String scenario) throws Exception
+ {
+ String resourceDir = "resources/tools/jbws429/" + scenario;
+ String toolsDir = "tools/jbws429/" + scenario;
+ String[] args = new String[] { "-dest", toolsDir, "-config", resourceDir + "/wstools-config.xml" };
+ new WSTools().generate(args);
+ File resourceDirFile = new File(resourceDir);
+ String[] expectedFiles = resourceDirFile.list(new FilenameFilter() {
+ public boolean accept(File dir, String name)
+ {
+ return name.endsWith(".java");
+ }
+ });
+
+ for (int i = 0; i < expectedFiles.length; i++)
+ {
+ String currentFile = expectedFiles[i];
+
+ try
+ {
+ compareSource(resourceDir + "/" + currentFile, toolsDir + "/org/jboss/test/ws/jbws429/" + currentFile);
+ }
+ catch (Exception e)
+ {
+ throw new Exception("Validation of '" + currentFile + "' failed.", e);
+ }
+ }
+
+ File packageDir = new File(toolsDir + "/org/jboss/test/ws/jbws429");
+ String[] generatedFiles = packageDir.list();
+ for (int i = 0; i < generatedFiles.length; i++)
+ {
+ String currentFile = generatedFiles[i];
+
+ boolean matched = "PhoneBookService.java".equals(currentFile);
+
+ for (int j = 0; j < expectedFiles.length && (matched == false); j++)
+ matched = currentFile.equals(expectedFiles[j]);
+
+ assertTrue("File '" + currentFile + "' was not expected to be generated", matched);
+ }
+
+ JaxrpcMappingValidator mappingValidator = new JaxrpcMappingValidator();
+ mappingValidator.validate(resourceDir + "/jaxrpc-mapping.xml", toolsDir + "/jaxrpc-mapping.xml");
+ }
+
+ private static void compareSource(final String expectedName, final String generatedName) throws Exception
+ {
+ File expected = new File(expectedName);
+ File generated = new File(generatedName);
+
+ JBossSourceComparator sc = new JBossSourceComparator(expected, generated);
+ sc.validate();
+ sc.validateImports();
+ }
+}
Copied: trunk/jbossws-tests/src/resources/tools/jbws429 (from rev 2812, branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429)
Copied: trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout (from rev 2812, branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/doclit_inout)
Deleted: trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/Person.java
===================================================================
--- branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/doclit_inout/Person.java 2007-04-11 22:11:22 UTC (rev 2812)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/Person.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -1,34 +0,0 @@
-/*
- * JBossWS WS-Tools Generated Source
- *
- * Generation Date: Wed Apr 11 23:01:45 CEST 2007
- *
- * This generated source code represents a derivative work of the input to
- * the generator that produced it. Consult the input for the copyright and
- * terms of use that apply to this source code.
- */
-
-package org.jboss.test.ws.jbws429;
-
-
-public class Person
-{
-
-protected java.lang.String firstName;
-
-protected java.lang.String surname;
-public Person(){}
-
-public Person(java.lang.String firstName, java.lang.String surname){
-this.firstName=firstName;
-this.surname=surname;
-}
-public java.lang.String getFirstName() { return firstName ;}
-
-public void setFirstName(java.lang.String firstName){ this.firstName=firstName; }
-
-public java.lang.String getSurname() { return surname ;}
-
-public void setSurname(java.lang.String surname){ this.surname=surname; }
-
-}
Copied: trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/Person.java (from rev 2812, branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/doclit_inout/Person.java)
===================================================================
--- trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/Person.java (rev 0)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/Person.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -0,0 +1,34 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Wed Apr 11 23:01:45 CEST 2007
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+
+package org.jboss.test.ws.jbws429;
+
+
+public class Person
+{
+
+protected java.lang.String firstName;
+
+protected java.lang.String surname;
+public Person(){}
+
+public Person(java.lang.String firstName, java.lang.String surname){
+this.firstName=firstName;
+this.surname=surname;
+}
+public java.lang.String getFirstName() { return firstName ;}
+
+public void setFirstName(java.lang.String firstName){ this.firstName=firstName; }
+
+public java.lang.String getSurname() { return surname ;}
+
+public void setSurname(java.lang.String surname){ this.surname=surname; }
+
+}
Deleted: trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PersonHolder.java
===================================================================
--- branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PersonHolder.java 2007-04-11 22:11:22 UTC (rev 2812)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PersonHolder.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -1,28 +0,0 @@
-/*
- * JBossWS WS-Tools Generated Source
- *
- * Generation Date: Wed Apr 11 23:01:45 CEST 2007
- *
- * This generated source code represents a derivative work of the input to
- * the generator that produced it. Consult the input for the copyright and
- * terms of use that apply to this source code.
- */
-
-package org.jboss.test.ws.jbws429;
-
-public class PersonHolder implements javax.xml.rpc.holders.Holder
-{
-
- public org.jboss.test.ws.jbws429.Person value;
-
- public PersonHolder()
- {
- this.value = new org.jboss.test.ws.jbws429.Person();
- }
-
- public PersonHolder(final org.jboss.test.ws.jbws429.Person value)
- {
- this.value = value;
- }
-
-}
Copied: trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PersonHolder.java (from rev 2812, branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PersonHolder.java)
===================================================================
--- trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PersonHolder.java (rev 0)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PersonHolder.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -0,0 +1,28 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Wed Apr 11 23:01:45 CEST 2007
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+
+package org.jboss.test.ws.jbws429;
+
+public class PersonHolder implements javax.xml.rpc.holders.Holder
+{
+
+ public org.jboss.test.ws.jbws429.Person value;
+
+ public PersonHolder()
+ {
+ this.value = new org.jboss.test.ws.jbws429.Person();
+ }
+
+ public PersonHolder(final org.jboss.test.ws.jbws429.Person value)
+ {
+ this.value = value;
+ }
+
+}
Deleted: trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PhoneBook.wsdl
===================================================================
--- branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PhoneBook.wsdl 2007-04-11 22:11:22 UTC (rev 2812)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PhoneBook.wsdl 2007-04-23 21:48:37 UTC (rev 2911)
@@ -1,57 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<definitions name='PhoneBook' targetNamespace='http://test.jboss.org/ws/jbws429'
- xmlns='http://schemas.xmlsoap.org/wsdl/'
- xmlns:ns1='http://test.jboss.org/ws/jbws429/types'
- xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
- xmlns:tns='http://test.jboss.org/ws/jbws429'
- xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
-
- <types>
- <schema targetNamespace='http://test.jboss.org/ws/jbws429/types'
- xmlns='http://www.w3.org/2001/XMLSchema'
- xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/'
- xmlns:tns='http://test.jboss.org/ws/jbws429/types'
- xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
-
- <complexType name='Person'>
- <sequence>
- <element name='firstName' nillable='true' type='string'/>
- <element name='surname' nillable='true' type='string'/>
- </sequence>
- </complexType>
-
- <element name='lookup' type='tns:Person'/>
- </schema>
- </types>
-
- <message name='PhoneBook_lookup'>
- <part element='ns1:lookup' name='lookup'/>
- </message>
- <message name='PhoneBook_lookupResponse'>
- <part element='ns1:lookup' name='lookup'/>
- </message>
-
- <portType name='PhoneBook'>
- <operation name='lookup'>
- <input message='tns:PhoneBook_lookup'/>
- <output message='tns:PhoneBook_lookupResponse'/>
- </operation>
- </portType>
- <binding name='PhoneBookBinding' type='tns:PhoneBook'>
- <soap:binding style='document' transport='http://schemas.xmlsoap.org/soap/http'/>
- <operation name='lookup'>
- <soap:operation soapAction=''/>
- <input>
- <soap:body use='literal'/>
- </input>
- <output>
- <soap:body use='literal'/>
- </output>
- </operation>
- </binding>
- <service name='PhoneBook'>
- <port binding='tns:PhoneBookBinding' name='PhoneBookPort'>
- <soap:address location='REPLACE_WITH_ACTUAL_URL'/>
- </port>
- </service>
-</definitions>
Copied: trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PhoneBook.wsdl (from rev 2812, branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PhoneBook.wsdl)
===================================================================
--- trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PhoneBook.wsdl (rev 0)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PhoneBook.wsdl 2007-04-23 21:48:37 UTC (rev 2911)
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions name='PhoneBook' targetNamespace='http://test.jboss.org/ws/jbws429'
+ xmlns='http://schemas.xmlsoap.org/wsdl/'
+ xmlns:ns1='http://test.jboss.org/ws/jbws429/types'
+ xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
+ xmlns:tns='http://test.jboss.org/ws/jbws429'
+ xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
+
+ <types>
+ <schema targetNamespace='http://test.jboss.org/ws/jbws429/types'
+ xmlns='http://www.w3.org/2001/XMLSchema'
+ xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/'
+ xmlns:tns='http://test.jboss.org/ws/jbws429/types'
+ xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
+
+ <complexType name='Person'>
+ <sequence>
+ <element name='firstName' nillable='true' type='string'/>
+ <element name='surname' nillable='true' type='string'/>
+ </sequence>
+ </complexType>
+
+ <element name='lookup' type='tns:Person'/>
+ </schema>
+ </types>
+
+ <message name='PhoneBook_lookup'>
+ <part element='ns1:lookup' name='lookup'/>
+ </message>
+ <message name='PhoneBook_lookupResponse'>
+ <part element='ns1:lookup' name='lookup'/>
+ </message>
+
+ <portType name='PhoneBook'>
+ <operation name='lookup'>
+ <input message='tns:PhoneBook_lookup'/>
+ <output message='tns:PhoneBook_lookupResponse'/>
+ </operation>
+ </portType>
+ <binding name='PhoneBookBinding' type='tns:PhoneBook'>
+ <soap:binding style='document' transport='http://schemas.xmlsoap.org/soap/http'/>
+ <operation name='lookup'>
+ <soap:operation soapAction=''/>
+ <input>
+ <soap:body use='literal'/>
+ </input>
+ <output>
+ <soap:body use='literal'/>
+ </output>
+ </operation>
+ </binding>
+ <service name='PhoneBook'>
+ <port binding='tns:PhoneBookBinding' name='PhoneBookPort'>
+ <soap:address location='REPLACE_WITH_ACTUAL_URL'/>
+ </port>
+ </service>
+</definitions>
Deleted: trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PhoneBook_PortType.java
===================================================================
--- branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PhoneBook_PortType.java 2007-04-11 22:11:22 UTC (rev 2812)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PhoneBook_PortType.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -1,15 +0,0 @@
-/*
- * JBossWS WS-Tools Generated Source
- *
- * Generation Date: Wed Apr 11 23:01:45 CEST 2007
- *
- * This generated source code represents a derivative work of the input to
- * the generator that produced it. Consult the input for the copyright and
- * terms of use that apply to this source code.
- */
-package org.jboss.test.ws.jbws429;
-public interface PhoneBook_PortType extends java.rmi.Remote
-{
-
- public void lookup(org.jboss.test.ws.jbws429.PersonHolder lookup) throws java.rmi.RemoteException;
-}
Copied: trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PhoneBook_PortType.java (from rev 2812, branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PhoneBook_PortType.java)
===================================================================
--- trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PhoneBook_PortType.java (rev 0)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PhoneBook_PortType.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -0,0 +1,15 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Wed Apr 11 23:01:45 CEST 2007
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+package org.jboss.test.ws.jbws429;
+public interface PhoneBook_PortType extends java.rmi.Remote
+{
+
+ public void lookup(org.jboss.test.ws.jbws429.PersonHolder lookup) throws java.rmi.RemoteException;
+}
Deleted: trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/jaxrpc-mapping.xml
===================================================================
--- branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/doclit_inout/jaxrpc-mapping.xml 2007-04-11 22:11:22 UTC (rev 2812)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/jaxrpc-mapping.xml 2007-04-23 21:48:37 UTC (rev 2911)
@@ -1,49 +0,0 @@
-<?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 xmlns='http://java.sun.com/xml/ns/j2ee'>
- <package-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429</package-type>
- <namespaceURI xmlns='http://java.sun.com/xml/ns/j2ee'>http://test.jboss.org/ws/jbws429/types</namespaceURI>
- </package-mapping>
- <package-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <package-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429</package-type>
- <namespaceURI xmlns='http://java.sun.com/xml/ns/j2ee'>http://test.jboss.org/ws/jbws429</namespaceURI>
- </package-mapping>
- <java-xml-type-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <java-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.Person</java-type>
- <root-type-qname xmlns:typeNS='http://test.jboss.org/ws/jbws429/types' xmlns='http://java.sun.com/xml/ns/j2ee'>typeNS:Person</root-type-qname>
- <qname-scope xmlns='http://java.sun.com/xml/ns/j2ee'>complexType</qname-scope>
- <variable-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <java-variable-name xmlns='http://java.sun.com/xml/ns/j2ee'>firstName</java-variable-name>
- <xml-element-name xmlns='http://java.sun.com/xml/ns/j2ee'>firstName</xml-element-name>
- </variable-mapping>
- <variable-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <java-variable-name xmlns='http://java.sun.com/xml/ns/j2ee'>surname</java-variable-name>
- <xml-element-name xmlns='http://java.sun.com/xml/ns/j2ee'>surname</xml-element-name>
- </variable-mapping>
- </java-xml-type-mapping>
- <service-interface-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <service-interface xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.PhoneBook_Service</service-interface>
- <wsdl-service-name xmlns:serviceNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>serviceNS:PhoneBook</wsdl-service-name>
- <port-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <port-name xmlns='http://java.sun.com/xml/ns/j2ee'>PhoneBookPort</port-name>
- <java-port-name xmlns='http://java.sun.com/xml/ns/j2ee'>PhoneBookPort</java-port-name>
- </port-mapping>
- </service-interface-mapping>
- <service-endpoint-interface-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <service-endpoint-interface xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.PhoneBook_PortType</service-endpoint-interface>
- <wsdl-port-type xmlns:portTypeNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>portTypeNS:PhoneBook</wsdl-port-type>
- <wsdl-binding xmlns:bindingNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>bindingNS:PhoneBookBinding</wsdl-binding>
- <service-endpoint-method-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <java-method-name xmlns='http://java.sun.com/xml/ns/j2ee'>lookup</java-method-name>
- <wsdl-operation xmlns='http://java.sun.com/xml/ns/j2ee'>lookup</wsdl-operation>
- <method-param-parts-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <param-position xmlns='http://java.sun.com/xml/ns/j2ee'>0</param-position>
- <param-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.Person</param-type>
- <wsdl-message-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <wsdl-message xmlns:wsdlMsgNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>wsdlMsgNS:PhoneBook_lookup</wsdl-message>
- <wsdl-message-part-name xmlns='http://java.sun.com/xml/ns/j2ee'>lookup</wsdl-message-part-name>
- <parameter-mode xmlns='http://java.sun.com/xml/ns/j2ee'>INOUT</parameter-mode>
- </wsdl-message-mapping>
- </method-param-parts-mapping>
- </service-endpoint-method-mapping>
- </service-endpoint-interface-mapping>
-</java-wsdl-mapping>
\ No newline at end of file
Copied: trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/jaxrpc-mapping.xml (from rev 2812, branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/doclit_inout/jaxrpc-mapping.xml)
===================================================================
--- trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/jaxrpc-mapping.xml (rev 0)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/jaxrpc-mapping.xml 2007-04-23 21:48:37 UTC (rev 2911)
@@ -0,0 +1,49 @@
+<?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 xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <package-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429</package-type>
+ <namespaceURI xmlns='http://java.sun.com/xml/ns/j2ee'>http://test.jboss.org/ws/jbws429/types</namespaceURI>
+ </package-mapping>
+ <package-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <package-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429</package-type>
+ <namespaceURI xmlns='http://java.sun.com/xml/ns/j2ee'>http://test.jboss.org/ws/jbws429</namespaceURI>
+ </package-mapping>
+ <java-xml-type-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <java-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.Person</java-type>
+ <root-type-qname xmlns:typeNS='http://test.jboss.org/ws/jbws429/types' xmlns='http://java.sun.com/xml/ns/j2ee'>typeNS:Person</root-type-qname>
+ <qname-scope xmlns='http://java.sun.com/xml/ns/j2ee'>complexType</qname-scope>
+ <variable-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <java-variable-name xmlns='http://java.sun.com/xml/ns/j2ee'>firstName</java-variable-name>
+ <xml-element-name xmlns='http://java.sun.com/xml/ns/j2ee'>firstName</xml-element-name>
+ </variable-mapping>
+ <variable-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <java-variable-name xmlns='http://java.sun.com/xml/ns/j2ee'>surname</java-variable-name>
+ <xml-element-name xmlns='http://java.sun.com/xml/ns/j2ee'>surname</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <service-interface-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <service-interface xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.PhoneBook_Service</service-interface>
+ <wsdl-service-name xmlns:serviceNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>serviceNS:PhoneBook</wsdl-service-name>
+ <port-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <port-name xmlns='http://java.sun.com/xml/ns/j2ee'>PhoneBookPort</port-name>
+ <java-port-name xmlns='http://java.sun.com/xml/ns/j2ee'>PhoneBookPort</java-port-name>
+ </port-mapping>
+ </service-interface-mapping>
+ <service-endpoint-interface-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <service-endpoint-interface xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.PhoneBook_PortType</service-endpoint-interface>
+ <wsdl-port-type xmlns:portTypeNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>portTypeNS:PhoneBook</wsdl-port-type>
+ <wsdl-binding xmlns:bindingNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>bindingNS:PhoneBookBinding</wsdl-binding>
+ <service-endpoint-method-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <java-method-name xmlns='http://java.sun.com/xml/ns/j2ee'>lookup</java-method-name>
+ <wsdl-operation xmlns='http://java.sun.com/xml/ns/j2ee'>lookup</wsdl-operation>
+ <method-param-parts-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <param-position xmlns='http://java.sun.com/xml/ns/j2ee'>0</param-position>
+ <param-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.Person</param-type>
+ <wsdl-message-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <wsdl-message xmlns:wsdlMsgNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>wsdlMsgNS:PhoneBook_lookup</wsdl-message>
+ <wsdl-message-part-name xmlns='http://java.sun.com/xml/ns/j2ee'>lookup</wsdl-message-part-name>
+ <parameter-mode xmlns='http://java.sun.com/xml/ns/j2ee'>INOUT</parameter-mode>
+ </wsdl-message-mapping>
+ </method-param-parts-mapping>
+ </service-endpoint-method-mapping>
+ </service-endpoint-interface-mapping>
+</java-wsdl-mapping>
\ No newline at end of file
Deleted: trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/wstools-config.xml
===================================================================
--- branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/doclit_inout/wstools-config.xml 2007-04-11 22:11:22 UTC (rev 2812)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/wstools-config.xml 2007-04-23 21:48:37 UTC (rev 2911)
@@ -1,5 +0,0 @@
-<configuration>
- <wsdl-java location="resources/tools/jbws429/doclit_inout/PhoneBook.wsdl" parameter-style="bare">
- <mapping file="jaxrpc-mapping.xml"/>
- </wsdl-java>
-</configuration>
Copied: trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/wstools-config.xml (from rev 2812, branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/doclit_inout/wstools-config.xml)
===================================================================
--- trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/wstools-config.xml (rev 0)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/doclit_inout/wstools-config.xml 2007-04-23 21:48:37 UTC (rev 2911)
@@ -0,0 +1,5 @@
+<configuration>
+ <wsdl-java location="resources/tools/jbws429/doclit_inout/PhoneBook.wsdl" parameter-style="bare">
+ <mapping file="jaxrpc-mapping.xml"/>
+ </wsdl-java>
+</configuration>
Copied: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout (from rev 2812, branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_inout)
Deleted: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/Account.java
===================================================================
--- branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/Account.java 2007-04-11 22:11:22 UTC (rev 2812)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/Account.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -1,27 +0,0 @@
-/*
- * JBossWS WS-Tools Generated Source
- *
- * Generation Date: Wed Apr 11 23:58:44 CEST 2007
- *
- * This generated source code represents a derivative work of the input to
- * the generator that produced it. Consult the input for the copyright and
- * terms of use that apply to this source code.
- */
-
-package org.jboss.test.ws.jbws429;
-
-
-public class Account
-{
-
-protected java.lang.String accountNumber;
-public Account(){}
-
-public Account(java.lang.String accountNumber){
-this.accountNumber=accountNumber;
-}
-public java.lang.String getAccountNumber() { return accountNumber ;}
-
-public void setAccountNumber(java.lang.String accountNumber){ this.accountNumber=accountNumber; }
-
-}
Copied: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/Account.java (from rev 2812, branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/Account.java)
===================================================================
--- trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/Account.java (rev 0)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/Account.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -0,0 +1,27 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Wed Apr 11 23:58:44 CEST 2007
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+
+package org.jboss.test.ws.jbws429;
+
+
+public class Account
+{
+
+protected java.lang.String accountNumber;
+public Account(){}
+
+public Account(java.lang.String accountNumber){
+this.accountNumber=accountNumber;
+}
+public java.lang.String getAccountNumber() { return accountNumber ;}
+
+public void setAccountNumber(java.lang.String accountNumber){ this.accountNumber=accountNumber; }
+
+}
Deleted: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/AccountHolder.java
===================================================================
--- branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/AccountHolder.java 2007-04-11 22:11:22 UTC (rev 2812)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/AccountHolder.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -1,28 +0,0 @@
-/*
- * JBossWS WS-Tools Generated Source
- *
- * Generation Date: Wed Apr 11 23:58:44 CEST 2007
- *
- * This generated source code represents a derivative work of the input to
- * the generator that produced it. Consult the input for the copyright and
- * terms of use that apply to this source code.
- */
-
-package org.jboss.test.ws.jbws429;
-
-public class AccountHolder implements javax.xml.rpc.holders.Holder
-{
-
- public org.jboss.test.ws.jbws429.Account value;
-
- public AccountHolder()
- {
- this.value = new org.jboss.test.ws.jbws429.Account();
- }
-
- public AccountHolder(final org.jboss.test.ws.jbws429.Account value)
- {
- this.value = value;
- }
-
-}
Copied: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/AccountHolder.java (from rev 2812, branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/AccountHolder.java)
===================================================================
--- trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/AccountHolder.java (rev 0)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/AccountHolder.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -0,0 +1,28 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Wed Apr 11 23:58:44 CEST 2007
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+
+package org.jboss.test.ws.jbws429;
+
+public class AccountHolder implements javax.xml.rpc.holders.Holder
+{
+
+ public org.jboss.test.ws.jbws429.Account value;
+
+ public AccountHolder()
+ {
+ this.value = new org.jboss.test.ws.jbws429.Account();
+ }
+
+ public AccountHolder(final org.jboss.test.ws.jbws429.Account value)
+ {
+ this.value = value;
+ }
+
+}
Deleted: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/Person.java
===================================================================
--- branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/Person.java 2007-04-11 22:11:22 UTC (rev 2812)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/Person.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -1,34 +0,0 @@
-/*
- * JBossWS WS-Tools Generated Source
- *
- * Generation Date: Wed Apr 11 23:58:44 CEST 2007
- *
- * This generated source code represents a derivative work of the input to
- * the generator that produced it. Consult the input for the copyright and
- * terms of use that apply to this source code.
- */
-
-package org.jboss.test.ws.jbws429;
-
-
-public class Person
-{
-
-protected java.lang.String firstName;
-
-protected java.lang.String surname;
-public Person(){}
-
-public Person(java.lang.String firstName, java.lang.String surname){
-this.firstName=firstName;
-this.surname=surname;
-}
-public java.lang.String getFirstName() { return firstName ;}
-
-public void setFirstName(java.lang.String firstName){ this.firstName=firstName; }
-
-public java.lang.String getSurname() { return surname ;}
-
-public void setSurname(java.lang.String surname){ this.surname=surname; }
-
-}
Copied: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/Person.java (from rev 2812, branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/Person.java)
===================================================================
--- trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/Person.java (rev 0)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/Person.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -0,0 +1,34 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Wed Apr 11 23:58:44 CEST 2007
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+
+package org.jboss.test.ws.jbws429;
+
+
+public class Person
+{
+
+protected java.lang.String firstName;
+
+protected java.lang.String surname;
+public Person(){}
+
+public Person(java.lang.String firstName, java.lang.String surname){
+this.firstName=firstName;
+this.surname=surname;
+}
+public java.lang.String getFirstName() { return firstName ;}
+
+public void setFirstName(java.lang.String firstName){ this.firstName=firstName; }
+
+public java.lang.String getSurname() { return surname ;}
+
+public void setSurname(java.lang.String surname){ this.surname=surname; }
+
+}
Deleted: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/PhoneBook.wsdl
===================================================================
--- branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/PhoneBook.wsdl 2007-04-11 22:11:22 UTC (rev 2812)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/PhoneBook.wsdl 2007-04-23 21:48:37 UTC (rev 2911)
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<definitions name='PhoneBook' targetNamespace='http://test.jboss.org/ws/jbws429'
- xmlns='http://schemas.xmlsoap.org/wsdl/'
- xmlns:ns1='http://test.jboss.org/ws/jbws429/types'
- xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
- xmlns:tns='http://test.jboss.org/ws/jbws429'
- xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
-
- <types xmlns='http://schemas.xmlsoap.org/wsdl/'>
- <schema targetNamespace='http://test.jboss.org/ws/jbws429/types'
- xmlns='http://www.w3.org/2001/XMLSchema'
- xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/'
- xmlns:tns='http://test.jboss.org/ws/jbws429/types'
- xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
-
- <complexType name='Person' xmlns='http://www.w3.org/2001/XMLSchema'>
- <sequence xmlns='http://www.w3.org/2001/XMLSchema'>
- <element name='firstName' nillable='true' type='string' xmlns='http://www.w3.org/2001/XMLSchema'/>
- <element name='surname' nillable='true' type='string' xmlns='http://www.w3.org/2001/XMLSchema'/>
- </sequence>
- </complexType>
-
- <complexType name='TelephoneNumber' xmlns='http://www.w3.org/2001/XMLSchema'>
- <sequence xmlns='http://www.w3.org/2001/XMLSchema'>
- <element name='areaCode' nillable='true' type='string' xmlns='http://www.w3.org/2001/XMLSchema'/>
- <element name='number' nillable='true' type='string' xmlns='http://www.w3.org/2001/XMLSchema'/>
- </sequence>
- </complexType>
-
- <complexType name='Account' xmlns='http://www.w3.org/2001/XMLSchema'>
- <sequence xmlns='http://www.w3.org/2001/XMLSchema'>
- <element name='accountNumber' nillable='true' type='string' xmlns='http://www.w3.org/2001/XMLSchema'/>
- </sequence>
- </complexType>
-
- </schema>
- </types>
-
- <message name='PhoneBook_lookup' xmlns='http://schemas.xmlsoap.org/wsdl/'>
- <part name='Person_1' type='ns1:Person' xmlns='http://schemas.xmlsoap.org/wsdl/'/>
- <part name='Account' type='ns1:Account' xmlns='http://schemas.xmlsoap.org/wsdl/'/>
- </message>
- <message name='PhoneBook_lookupResponse' xmlns='http://schemas.xmlsoap.org/wsdl/'>
- <part name='result' type='ns1:TelephoneNumber' xmlns='http://schemas.xmlsoap.org/wsdl/'/>
- <part name='Account' type='ns1:Account' xmlns='http://schemas.xmlsoap.org/wsdl/'/>
- </message>
-
- <portType name='PhoneBook' xmlns='http://schemas.xmlsoap.org/wsdl/'>
- <operation name='lookup' parameterOrder='Person_1 Account' xmlns='http://schemas.xmlsoap.org/wsdl/'>
- <input message='tns:PhoneBook_lookup' xmlns='http://schemas.xmlsoap.org/wsdl/'/>
- <output message='tns:PhoneBook_lookupResponse' xmlns='http://schemas.xmlsoap.org/wsdl/'/>
- </operation>
- </portType>
-
- <binding name='PhoneBookBinding' type='tns:PhoneBook' xmlns='http://schemas.xmlsoap.org/wsdl/'>
- <soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>
- <operation name='lookup' xmlns='http://schemas.xmlsoap.org/wsdl/'>
- <soap:operation soapAction=''/>
- <input xmlns='http://schemas.xmlsoap.org/wsdl/'>
- <soap:body namespace='http://www.jboss.org/support/phonebook' use='literal'/>
- </input>
- <output xmlns='http://schemas.xmlsoap.org/wsdl/'>
- <soap:body namespace='http://www.jboss.org/support/phonebook' use='literal'/>
- </output>
- </operation>
- </binding>
- <service name='PhoneBook' xmlns='http://schemas.xmlsoap.org/wsdl/'>
- <port binding='tns:PhoneBookBinding' name='PhoneBookPort' xmlns='http://schemas.xmlsoap.org/wsdl/'>
- <soap:address location='REPLACE_WITH_ACTUAL_URL'/>
- </port>
- </service>
-</definitions>
\ No newline at end of file
Copied: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/PhoneBook.wsdl (from rev 2812, branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/PhoneBook.wsdl)
===================================================================
--- trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/PhoneBook.wsdl (rev 0)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/PhoneBook.wsdl 2007-04-23 21:48:37 UTC (rev 2911)
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions name='PhoneBook' targetNamespace='http://test.jboss.org/ws/jbws429'
+ xmlns='http://schemas.xmlsoap.org/wsdl/'
+ xmlns:ns1='http://test.jboss.org/ws/jbws429/types'
+ xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
+ xmlns:tns='http://test.jboss.org/ws/jbws429'
+ xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
+
+ <types xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <schema targetNamespace='http://test.jboss.org/ws/jbws429/types'
+ xmlns='http://www.w3.org/2001/XMLSchema'
+ xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/'
+ xmlns:tns='http://test.jboss.org/ws/jbws429/types'
+ xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
+
+ <complexType name='Person' xmlns='http://www.w3.org/2001/XMLSchema'>
+ <sequence xmlns='http://www.w3.org/2001/XMLSchema'>
+ <element name='firstName' nillable='true' type='string' xmlns='http://www.w3.org/2001/XMLSchema'/>
+ <element name='surname' nillable='true' type='string' xmlns='http://www.w3.org/2001/XMLSchema'/>
+ </sequence>
+ </complexType>
+
+ <complexType name='TelephoneNumber' xmlns='http://www.w3.org/2001/XMLSchema'>
+ <sequence xmlns='http://www.w3.org/2001/XMLSchema'>
+ <element name='areaCode' nillable='true' type='string' xmlns='http://www.w3.org/2001/XMLSchema'/>
+ <element name='number' nillable='true' type='string' xmlns='http://www.w3.org/2001/XMLSchema'/>
+ </sequence>
+ </complexType>
+
+ <complexType name='Account' xmlns='http://www.w3.org/2001/XMLSchema'>
+ <sequence xmlns='http://www.w3.org/2001/XMLSchema'>
+ <element name='accountNumber' nillable='true' type='string' xmlns='http://www.w3.org/2001/XMLSchema'/>
+ </sequence>
+ </complexType>
+
+ </schema>
+ </types>
+
+ <message name='PhoneBook_lookup' xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <part name='Person_1' type='ns1:Person' xmlns='http://schemas.xmlsoap.org/wsdl/'/>
+ <part name='Account' type='ns1:Account' xmlns='http://schemas.xmlsoap.org/wsdl/'/>
+ </message>
+ <message name='PhoneBook_lookupResponse' xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <part name='result' type='ns1:TelephoneNumber' xmlns='http://schemas.xmlsoap.org/wsdl/'/>
+ <part name='Account' type='ns1:Account' xmlns='http://schemas.xmlsoap.org/wsdl/'/>
+ </message>
+
+ <portType name='PhoneBook' xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <operation name='lookup' parameterOrder='Person_1 Account' xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <input message='tns:PhoneBook_lookup' xmlns='http://schemas.xmlsoap.org/wsdl/'/>
+ <output message='tns:PhoneBook_lookupResponse' xmlns='http://schemas.xmlsoap.org/wsdl/'/>
+ </operation>
+ </portType>
+
+ <binding name='PhoneBookBinding' type='tns:PhoneBook' xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>
+ <operation name='lookup' xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <soap:operation soapAction=''/>
+ <input xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <soap:body namespace='http://www.jboss.org/support/phonebook' use='literal'/>
+ </input>
+ <output xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <soap:body namespace='http://www.jboss.org/support/phonebook' use='literal'/>
+ </output>
+ </operation>
+ </binding>
+ <service name='PhoneBook' xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <port binding='tns:PhoneBookBinding' name='PhoneBookPort' xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <soap:address location='REPLACE_WITH_ACTUAL_URL'/>
+ </port>
+ </service>
+</definitions>
\ No newline at end of file
Deleted: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/PhoneBook_PortType.java
===================================================================
--- branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/PhoneBook_PortType.java 2007-04-11 22:11:22 UTC (rev 2812)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/PhoneBook_PortType.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -1,15 +0,0 @@
-/*
- * JBossWS WS-Tools Generated Source
- *
- * Generation Date: Wed Apr 11 23:58:44 CEST 2007
- *
- * This generated source code represents a derivative work of the input to
- * the generator that produced it. Consult the input for the copyright and
- * terms of use that apply to this source code.
- */
-package org.jboss.test.ws.jbws429;
-public interface PhoneBook_PortType extends java.rmi.Remote
-{
-
- public org.jboss.test.ws.jbws429.TelephoneNumber lookup(org.jboss.test.ws.jbws429.Person person_1, org.jboss.test.ws.jbws429.AccountHolder account) throws java.rmi.RemoteException;
-}
Copied: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/PhoneBook_PortType.java (from rev 2812, branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/PhoneBook_PortType.java)
===================================================================
--- trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/PhoneBook_PortType.java (rev 0)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/PhoneBook_PortType.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -0,0 +1,15 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Wed Apr 11 23:58:44 CEST 2007
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+package org.jboss.test.ws.jbws429;
+public interface PhoneBook_PortType extends java.rmi.Remote
+{
+
+ public org.jboss.test.ws.jbws429.TelephoneNumber lookup(org.jboss.test.ws.jbws429.Person person_1, org.jboss.test.ws.jbws429.AccountHolder account) throws java.rmi.RemoteException;
+}
Deleted: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/TelephoneNumber.java
===================================================================
--- branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/TelephoneNumber.java 2007-04-11 22:11:22 UTC (rev 2812)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/TelephoneNumber.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -1,34 +0,0 @@
-/*
- * JBossWS WS-Tools Generated Source
- *
- * Generation Date: Wed Apr 11 23:58:44 CEST 2007
- *
- * This generated source code represents a derivative work of the input to
- * the generator that produced it. Consult the input for the copyright and
- * terms of use that apply to this source code.
- */
-
-package org.jboss.test.ws.jbws429;
-
-
-public class TelephoneNumber
-{
-
-protected java.lang.String areaCode;
-
-protected java.lang.String number;
-public TelephoneNumber(){}
-
-public TelephoneNumber(java.lang.String areaCode, java.lang.String number){
-this.areaCode=areaCode;
-this.number=number;
-}
-public java.lang.String getAreaCode() { return areaCode ;}
-
-public void setAreaCode(java.lang.String areaCode){ this.areaCode=areaCode; }
-
-public java.lang.String getNumber() { return number ;}
-
-public void setNumber(java.lang.String number){ this.number=number; }
-
-}
Copied: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/TelephoneNumber.java (from rev 2812, branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/TelephoneNumber.java)
===================================================================
--- trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/TelephoneNumber.java (rev 0)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/TelephoneNumber.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -0,0 +1,34 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Wed Apr 11 23:58:44 CEST 2007
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+
+package org.jboss.test.ws.jbws429;
+
+
+public class TelephoneNumber
+{
+
+protected java.lang.String areaCode;
+
+protected java.lang.String number;
+public TelephoneNumber(){}
+
+public TelephoneNumber(java.lang.String areaCode, java.lang.String number){
+this.areaCode=areaCode;
+this.number=number;
+}
+public java.lang.String getAreaCode() { return areaCode ;}
+
+public void setAreaCode(java.lang.String areaCode){ this.areaCode=areaCode; }
+
+public java.lang.String getNumber() { return number ;}
+
+public void setNumber(java.lang.String number){ this.number=number; }
+
+}
Deleted: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/jaxrpc-mapping.xml
===================================================================
--- branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/jaxrpc-mapping.xml 2007-04-11 22:11:22 UTC (rev 2812)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/jaxrpc-mapping.xml 2007-04-23 21:48:37 UTC (rev 2911)
@@ -1,85 +0,0 @@
-<?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 xmlns='http://java.sun.com/xml/ns/j2ee'>
- <package-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429</package-type>
- <namespaceURI xmlns='http://java.sun.com/xml/ns/j2ee'>http://test.jboss.org/ws/jbws429/types</namespaceURI>
- </package-mapping>
- <package-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <package-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429</package-type>
- <namespaceURI xmlns='http://java.sun.com/xml/ns/j2ee'>http://test.jboss.org/ws/jbws429</namespaceURI>
- </package-mapping>
- <java-xml-type-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <java-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.Person</java-type>
- <root-type-qname xmlns:typeNS='http://test.jboss.org/ws/jbws429/types' xmlns='http://java.sun.com/xml/ns/j2ee'>typeNS:Person</root-type-qname>
- <qname-scope xmlns='http://java.sun.com/xml/ns/j2ee'>complexType</qname-scope>
- <variable-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <java-variable-name xmlns='http://java.sun.com/xml/ns/j2ee'>firstName</java-variable-name>
- <xml-element-name xmlns='http://java.sun.com/xml/ns/j2ee'>firstName</xml-element-name>
- </variable-mapping>
- <variable-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <java-variable-name xmlns='http://java.sun.com/xml/ns/j2ee'>surname</java-variable-name>
- <xml-element-name xmlns='http://java.sun.com/xml/ns/j2ee'>surname</xml-element-name>
- </variable-mapping>
- </java-xml-type-mapping>
- <java-xml-type-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <java-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.Account</java-type>
- <root-type-qname xmlns:typeNS='http://test.jboss.org/ws/jbws429/types' xmlns='http://java.sun.com/xml/ns/j2ee'>typeNS:Account</root-type-qname>
- <qname-scope xmlns='http://java.sun.com/xml/ns/j2ee'>complexType</qname-scope>
- <variable-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <java-variable-name xmlns='http://java.sun.com/xml/ns/j2ee'>accountNumber</java-variable-name>
- <xml-element-name xmlns='http://java.sun.com/xml/ns/j2ee'>accountNumber</xml-element-name>
- </variable-mapping>
- </java-xml-type-mapping>
- <java-xml-type-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <java-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.TelephoneNumber</java-type>
- <root-type-qname xmlns:typeNS='http://test.jboss.org/ws/jbws429/types' xmlns='http://java.sun.com/xml/ns/j2ee'>typeNS:TelephoneNumber</root-type-qname>
- <qname-scope xmlns='http://java.sun.com/xml/ns/j2ee'>complexType</qname-scope>
- <variable-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <java-variable-name xmlns='http://java.sun.com/xml/ns/j2ee'>areaCode</java-variable-name>
- <xml-element-name xmlns='http://java.sun.com/xml/ns/j2ee'>areaCode</xml-element-name>
- </variable-mapping>
- <variable-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <java-variable-name xmlns='http://java.sun.com/xml/ns/j2ee'>number</java-variable-name>
- <xml-element-name xmlns='http://java.sun.com/xml/ns/j2ee'>number</xml-element-name>
- </variable-mapping>
- </java-xml-type-mapping>
- <service-interface-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <service-interface xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.PhoneBook_Service</service-interface>
- <wsdl-service-name xmlns:serviceNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>serviceNS:PhoneBook</wsdl-service-name>
- <port-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <port-name xmlns='http://java.sun.com/xml/ns/j2ee'>PhoneBookPort</port-name>
- <java-port-name xmlns='http://java.sun.com/xml/ns/j2ee'>PhoneBookPort</java-port-name>
- </port-mapping>
- </service-interface-mapping>
- <service-endpoint-interface-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <service-endpoint-interface xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.PhoneBook_PortType</service-endpoint-interface>
- <wsdl-port-type xmlns:portTypeNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>portTypeNS:PhoneBook</wsdl-port-type>
- <wsdl-binding xmlns:bindingNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>bindingNS:PhoneBookBinding</wsdl-binding>
- <service-endpoint-method-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <java-method-name xmlns='http://java.sun.com/xml/ns/j2ee'>lookup</java-method-name>
- <wsdl-operation xmlns='http://java.sun.com/xml/ns/j2ee'>lookup</wsdl-operation>
- <method-param-parts-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <param-position xmlns='http://java.sun.com/xml/ns/j2ee'>0</param-position>
- <param-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.Person</param-type>
- <wsdl-message-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <wsdl-message xmlns:wsdlMsgNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>wsdlMsgNS:PhoneBook_lookup</wsdl-message>
- <wsdl-message-part-name xmlns='http://java.sun.com/xml/ns/j2ee'>Person_1</wsdl-message-part-name>
- <parameter-mode xmlns='http://java.sun.com/xml/ns/j2ee'>IN</parameter-mode>
- </wsdl-message-mapping>
- </method-param-parts-mapping>
- <method-param-parts-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <param-position xmlns='http://java.sun.com/xml/ns/j2ee'>1</param-position>
- <param-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.Account</param-type>
- <wsdl-message-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <wsdl-message xmlns:wsdlMsgNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>wsdlMsgNS:PhoneBook_lookup</wsdl-message>
- <wsdl-message-part-name xmlns='http://java.sun.com/xml/ns/j2ee'>Account</wsdl-message-part-name>
- <parameter-mode xmlns='http://java.sun.com/xml/ns/j2ee'>INOUT</parameter-mode>
- </wsdl-message-mapping>
- </method-param-parts-mapping>
- <wsdl-return-value-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <method-return-value xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.TelephoneNumber</method-return-value>
- <wsdl-message xmlns:wsdlMsgNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>wsdlMsgNS:PhoneBook_lookupResponse</wsdl-message>
- <wsdl-message-part-name xmlns='http://java.sun.com/xml/ns/j2ee'>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
Copied: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/jaxrpc-mapping.xml (from rev 2812, branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/jaxrpc-mapping.xml)
===================================================================
--- trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/jaxrpc-mapping.xml (rev 0)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/jaxrpc-mapping.xml 2007-04-23 21:48:37 UTC (rev 2911)
@@ -0,0 +1,85 @@
+<?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 xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <package-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429</package-type>
+ <namespaceURI xmlns='http://java.sun.com/xml/ns/j2ee'>http://test.jboss.org/ws/jbws429/types</namespaceURI>
+ </package-mapping>
+ <package-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <package-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429</package-type>
+ <namespaceURI xmlns='http://java.sun.com/xml/ns/j2ee'>http://test.jboss.org/ws/jbws429</namespaceURI>
+ </package-mapping>
+ <java-xml-type-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <java-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.Person</java-type>
+ <root-type-qname xmlns:typeNS='http://test.jboss.org/ws/jbws429/types' xmlns='http://java.sun.com/xml/ns/j2ee'>typeNS:Person</root-type-qname>
+ <qname-scope xmlns='http://java.sun.com/xml/ns/j2ee'>complexType</qname-scope>
+ <variable-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <java-variable-name xmlns='http://java.sun.com/xml/ns/j2ee'>firstName</java-variable-name>
+ <xml-element-name xmlns='http://java.sun.com/xml/ns/j2ee'>firstName</xml-element-name>
+ </variable-mapping>
+ <variable-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <java-variable-name xmlns='http://java.sun.com/xml/ns/j2ee'>surname</java-variable-name>
+ <xml-element-name xmlns='http://java.sun.com/xml/ns/j2ee'>surname</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <java-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.Account</java-type>
+ <root-type-qname xmlns:typeNS='http://test.jboss.org/ws/jbws429/types' xmlns='http://java.sun.com/xml/ns/j2ee'>typeNS:Account</root-type-qname>
+ <qname-scope xmlns='http://java.sun.com/xml/ns/j2ee'>complexType</qname-scope>
+ <variable-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <java-variable-name xmlns='http://java.sun.com/xml/ns/j2ee'>accountNumber</java-variable-name>
+ <xml-element-name xmlns='http://java.sun.com/xml/ns/j2ee'>accountNumber</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <java-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.TelephoneNumber</java-type>
+ <root-type-qname xmlns:typeNS='http://test.jboss.org/ws/jbws429/types' xmlns='http://java.sun.com/xml/ns/j2ee'>typeNS:TelephoneNumber</root-type-qname>
+ <qname-scope xmlns='http://java.sun.com/xml/ns/j2ee'>complexType</qname-scope>
+ <variable-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <java-variable-name xmlns='http://java.sun.com/xml/ns/j2ee'>areaCode</java-variable-name>
+ <xml-element-name xmlns='http://java.sun.com/xml/ns/j2ee'>areaCode</xml-element-name>
+ </variable-mapping>
+ <variable-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <java-variable-name xmlns='http://java.sun.com/xml/ns/j2ee'>number</java-variable-name>
+ <xml-element-name xmlns='http://java.sun.com/xml/ns/j2ee'>number</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <service-interface-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <service-interface xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.PhoneBook_Service</service-interface>
+ <wsdl-service-name xmlns:serviceNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>serviceNS:PhoneBook</wsdl-service-name>
+ <port-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <port-name xmlns='http://java.sun.com/xml/ns/j2ee'>PhoneBookPort</port-name>
+ <java-port-name xmlns='http://java.sun.com/xml/ns/j2ee'>PhoneBookPort</java-port-name>
+ </port-mapping>
+ </service-interface-mapping>
+ <service-endpoint-interface-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <service-endpoint-interface xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.PhoneBook_PortType</service-endpoint-interface>
+ <wsdl-port-type xmlns:portTypeNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>portTypeNS:PhoneBook</wsdl-port-type>
+ <wsdl-binding xmlns:bindingNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>bindingNS:PhoneBookBinding</wsdl-binding>
+ <service-endpoint-method-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <java-method-name xmlns='http://java.sun.com/xml/ns/j2ee'>lookup</java-method-name>
+ <wsdl-operation xmlns='http://java.sun.com/xml/ns/j2ee'>lookup</wsdl-operation>
+ <method-param-parts-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <param-position xmlns='http://java.sun.com/xml/ns/j2ee'>0</param-position>
+ <param-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.Person</param-type>
+ <wsdl-message-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <wsdl-message xmlns:wsdlMsgNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>wsdlMsgNS:PhoneBook_lookup</wsdl-message>
+ <wsdl-message-part-name xmlns='http://java.sun.com/xml/ns/j2ee'>Person_1</wsdl-message-part-name>
+ <parameter-mode xmlns='http://java.sun.com/xml/ns/j2ee'>IN</parameter-mode>
+ </wsdl-message-mapping>
+ </method-param-parts-mapping>
+ <method-param-parts-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <param-position xmlns='http://java.sun.com/xml/ns/j2ee'>1</param-position>
+ <param-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.Account</param-type>
+ <wsdl-message-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <wsdl-message xmlns:wsdlMsgNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>wsdlMsgNS:PhoneBook_lookup</wsdl-message>
+ <wsdl-message-part-name xmlns='http://java.sun.com/xml/ns/j2ee'>Account</wsdl-message-part-name>
+ <parameter-mode xmlns='http://java.sun.com/xml/ns/j2ee'>INOUT</parameter-mode>
+ </wsdl-message-mapping>
+ </method-param-parts-mapping>
+ <wsdl-return-value-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <method-return-value xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.TelephoneNumber</method-return-value>
+ <wsdl-message xmlns:wsdlMsgNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>wsdlMsgNS:PhoneBook_lookupResponse</wsdl-message>
+ <wsdl-message-part-name xmlns='http://java.sun.com/xml/ns/j2ee'>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
Deleted: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/wstools-config.xml
===================================================================
--- branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/wstools-config.xml 2007-04-11 22:11:22 UTC (rev 2812)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/wstools-config.xml 2007-04-23 21:48:37 UTC (rev 2911)
@@ -1,5 +0,0 @@
-<configuration>
- <wsdl-java location="resources/tools/jbws429/rpclit_inout/PhoneBook.wsdl" parameter-style="bare">
- <mapping file="jaxrpc-mapping.xml"/>
- </wsdl-java>
-</configuration>
Copied: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/wstools-config.xml (from rev 2812, branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/wstools-config.xml)
===================================================================
--- trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/wstools-config.xml (rev 0)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/wstools-config.xml 2007-04-23 21:48:37 UTC (rev 2911)
@@ -0,0 +1,5 @@
+<configuration>
+ <wsdl-java location="resources/tools/jbws429/rpclit_inout/PhoneBook.wsdl" parameter-style="bare">
+ <mapping file="jaxrpc-mapping.xml"/>
+ </wsdl-java>
+</configuration>
Copied: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out (from rev 2812, branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_out)
Deleted: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/Account.java
===================================================================
--- branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_out/Account.java 2007-04-11 22:11:22 UTC (rev 2812)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/Account.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -1,27 +0,0 @@
-/*
- * JBossWS WS-Tools Generated Source
- *
- * Generation Date: Wed Apr 11 23:58:44 CEST 2007
- *
- * This generated source code represents a derivative work of the input to
- * the generator that produced it. Consult the input for the copyright and
- * terms of use that apply to this source code.
- */
-
-package org.jboss.test.ws.jbws429;
-
-
-public class Account
-{
-
-protected java.lang.String accountNumber;
-public Account(){}
-
-public Account(java.lang.String accountNumber){
-this.accountNumber=accountNumber;
-}
-public java.lang.String getAccountNumber() { return accountNumber ;}
-
-public void setAccountNumber(java.lang.String accountNumber){ this.accountNumber=accountNumber; }
-
-}
Copied: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/Account.java (from rev 2812, branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_out/Account.java)
===================================================================
--- trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/Account.java (rev 0)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/Account.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -0,0 +1,27 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Wed Apr 11 23:58:44 CEST 2007
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+
+package org.jboss.test.ws.jbws429;
+
+
+public class Account
+{
+
+protected java.lang.String accountNumber;
+public Account(){}
+
+public Account(java.lang.String accountNumber){
+this.accountNumber=accountNumber;
+}
+public java.lang.String getAccountNumber() { return accountNumber ;}
+
+public void setAccountNumber(java.lang.String accountNumber){ this.accountNumber=accountNumber; }
+
+}
Deleted: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/AccountHolder.java
===================================================================
--- branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_out/AccountHolder.java 2007-04-11 22:11:22 UTC (rev 2812)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/AccountHolder.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -1,28 +0,0 @@
-/*
- * JBossWS WS-Tools Generated Source
- *
- * Generation Date: Wed Apr 11 23:58:44 CEST 2007
- *
- * This generated source code represents a derivative work of the input to
- * the generator that produced it. Consult the input for the copyright and
- * terms of use that apply to this source code.
- */
-
-package org.jboss.test.ws.jbws429;
-
-public class AccountHolder implements javax.xml.rpc.holders.Holder
-{
-
- public org.jboss.test.ws.jbws429.Account value;
-
- public AccountHolder()
- {
- this.value = new org.jboss.test.ws.jbws429.Account();
- }
-
- public AccountHolder(final org.jboss.test.ws.jbws429.Account value)
- {
- this.value = value;
- }
-
-}
Copied: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/AccountHolder.java (from rev 2812, branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_out/AccountHolder.java)
===================================================================
--- trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/AccountHolder.java (rev 0)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/AccountHolder.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -0,0 +1,28 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Wed Apr 11 23:58:44 CEST 2007
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+
+package org.jboss.test.ws.jbws429;
+
+public class AccountHolder implements javax.xml.rpc.holders.Holder
+{
+
+ public org.jboss.test.ws.jbws429.Account value;
+
+ public AccountHolder()
+ {
+ this.value = new org.jboss.test.ws.jbws429.Account();
+ }
+
+ public AccountHolder(final org.jboss.test.ws.jbws429.Account value)
+ {
+ this.value = value;
+ }
+
+}
Deleted: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/Person.java
===================================================================
--- branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_out/Person.java 2007-04-11 22:11:22 UTC (rev 2812)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/Person.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -1,34 +0,0 @@
-/*
- * JBossWS WS-Tools Generated Source
- *
- * Generation Date: Wed Apr 11 23:58:44 CEST 2007
- *
- * This generated source code represents a derivative work of the input to
- * the generator that produced it. Consult the input for the copyright and
- * terms of use that apply to this source code.
- */
-
-package org.jboss.test.ws.jbws429;
-
-
-public class Person
-{
-
-protected java.lang.String firstName;
-
-protected java.lang.String surname;
-public Person(){}
-
-public Person(java.lang.String firstName, java.lang.String surname){
-this.firstName=firstName;
-this.surname=surname;
-}
-public java.lang.String getFirstName() { return firstName ;}
-
-public void setFirstName(java.lang.String firstName){ this.firstName=firstName; }
-
-public java.lang.String getSurname() { return surname ;}
-
-public void setSurname(java.lang.String surname){ this.surname=surname; }
-
-}
Copied: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/Person.java (from rev 2812, branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_out/Person.java)
===================================================================
--- trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/Person.java (rev 0)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/Person.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -0,0 +1,34 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Wed Apr 11 23:58:44 CEST 2007
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+
+package org.jboss.test.ws.jbws429;
+
+
+public class Person
+{
+
+protected java.lang.String firstName;
+
+protected java.lang.String surname;
+public Person(){}
+
+public Person(java.lang.String firstName, java.lang.String surname){
+this.firstName=firstName;
+this.surname=surname;
+}
+public java.lang.String getFirstName() { return firstName ;}
+
+public void setFirstName(java.lang.String firstName){ this.firstName=firstName; }
+
+public java.lang.String getSurname() { return surname ;}
+
+public void setSurname(java.lang.String surname){ this.surname=surname; }
+
+}
Deleted: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/PhoneBook.wsdl
===================================================================
--- branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_out/PhoneBook.wsdl 2007-04-11 22:11:22 UTC (rev 2812)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/PhoneBook.wsdl 2007-04-23 21:48:37 UTC (rev 2911)
@@ -1,71 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<definitions name='PhoneBook' targetNamespace='http://test.jboss.org/ws/jbws429'
- xmlns='http://schemas.xmlsoap.org/wsdl/'
- xmlns:ns1='http://test.jboss.org/ws/jbws429/types'
- xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
- xmlns:tns='http://test.jboss.org/ws/jbws429'
- xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
-
- <types xmlns='http://schemas.xmlsoap.org/wsdl/'>
- <schema targetNamespace='http://test.jboss.org/ws/jbws429/types'
- xmlns='http://www.w3.org/2001/XMLSchema'
- xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/'
- xmlns:tns='http://test.jboss.org/ws/jbws429/types'
- xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
-
- <complexType name='Person' xmlns='http://www.w3.org/2001/XMLSchema'>
- <sequence xmlns='http://www.w3.org/2001/XMLSchema'>
- <element name='firstName' nillable='true' type='string' xmlns='http://www.w3.org/2001/XMLSchema'/>
- <element name='surname' nillable='true' type='string' xmlns='http://www.w3.org/2001/XMLSchema'/>
- </sequence>
- </complexType>
-
- <complexType name='TelephoneNumber' xmlns='http://www.w3.org/2001/XMLSchema'>
- <sequence xmlns='http://www.w3.org/2001/XMLSchema'>
- <element name='areaCode' nillable='true' type='string' xmlns='http://www.w3.org/2001/XMLSchema'/>
- <element name='number' nillable='true' type='string' xmlns='http://www.w3.org/2001/XMLSchema'/>
- </sequence>
- </complexType>
-
- <complexType name='Account' xmlns='http://www.w3.org/2001/XMLSchema'>
- <sequence xmlns='http://www.w3.org/2001/XMLSchema'>
- <element name='accountNumber' nillable='true' type='string' xmlns='http://www.w3.org/2001/XMLSchema'/>
- </sequence>
- </complexType>
-
- </schema>
- </types>
-
- <message name='PhoneBook_lookup' xmlns='http://schemas.xmlsoap.org/wsdl/'>
- <part name='Person_1' type='ns1:Person' xmlns='http://schemas.xmlsoap.org/wsdl/'/>
- </message>
- <message name='PhoneBook_lookupResponse' xmlns='http://schemas.xmlsoap.org/wsdl/'>
- <part name='result' type='ns1:TelephoneNumber' xmlns='http://schemas.xmlsoap.org/wsdl/'/>
- <part name='Account' type='ns1:Account' xmlns='http://schemas.xmlsoap.org/wsdl/'/>
- </message>
-
- <portType name='PhoneBook' xmlns='http://schemas.xmlsoap.org/wsdl/'>
- <operation name='lookup' parameterOrder='Person_1 Account' xmlns='http://schemas.xmlsoap.org/wsdl/'>
- <input message='tns:PhoneBook_lookup' xmlns='http://schemas.xmlsoap.org/wsdl/'/>
- <output message='tns:PhoneBook_lookupResponse' xmlns='http://schemas.xmlsoap.org/wsdl/'/>
- </operation>
- </portType>
-
- <binding name='PhoneBookBinding' type='tns:PhoneBook' xmlns='http://schemas.xmlsoap.org/wsdl/'>
- <soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>
- <operation name='lookup' xmlns='http://schemas.xmlsoap.org/wsdl/'>
- <soap:operation soapAction=''/>
- <input xmlns='http://schemas.xmlsoap.org/wsdl/'>
- <soap:body namespace='http://www.jboss.org/support/phonebook' use='literal'/>
- </input>
- <output xmlns='http://schemas.xmlsoap.org/wsdl/'>
- <soap:body namespace='http://www.jboss.org/support/phonebook' use='literal'/>
- </output>
- </operation>
- </binding>
- <service name='PhoneBook' xmlns='http://schemas.xmlsoap.org/wsdl/'>
- <port binding='tns:PhoneBookBinding' name='PhoneBookPort' xmlns='http://schemas.xmlsoap.org/wsdl/'>
- <soap:address location='REPLACE_WITH_ACTUAL_URL'/>
- </port>
- </service>
-</definitions>
\ No newline at end of file
Copied: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/PhoneBook.wsdl (from rev 2812, branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_out/PhoneBook.wsdl)
===================================================================
--- trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/PhoneBook.wsdl (rev 0)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/PhoneBook.wsdl 2007-04-23 21:48:37 UTC (rev 2911)
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions name='PhoneBook' targetNamespace='http://test.jboss.org/ws/jbws429'
+ xmlns='http://schemas.xmlsoap.org/wsdl/'
+ xmlns:ns1='http://test.jboss.org/ws/jbws429/types'
+ xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
+ xmlns:tns='http://test.jboss.org/ws/jbws429'
+ xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
+
+ <types xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <schema targetNamespace='http://test.jboss.org/ws/jbws429/types'
+ xmlns='http://www.w3.org/2001/XMLSchema'
+ xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/'
+ xmlns:tns='http://test.jboss.org/ws/jbws429/types'
+ xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
+
+ <complexType name='Person' xmlns='http://www.w3.org/2001/XMLSchema'>
+ <sequence xmlns='http://www.w3.org/2001/XMLSchema'>
+ <element name='firstName' nillable='true' type='string' xmlns='http://www.w3.org/2001/XMLSchema'/>
+ <element name='surname' nillable='true' type='string' xmlns='http://www.w3.org/2001/XMLSchema'/>
+ </sequence>
+ </complexType>
+
+ <complexType name='TelephoneNumber' xmlns='http://www.w3.org/2001/XMLSchema'>
+ <sequence xmlns='http://www.w3.org/2001/XMLSchema'>
+ <element name='areaCode' nillable='true' type='string' xmlns='http://www.w3.org/2001/XMLSchema'/>
+ <element name='number' nillable='true' type='string' xmlns='http://www.w3.org/2001/XMLSchema'/>
+ </sequence>
+ </complexType>
+
+ <complexType name='Account' xmlns='http://www.w3.org/2001/XMLSchema'>
+ <sequence xmlns='http://www.w3.org/2001/XMLSchema'>
+ <element name='accountNumber' nillable='true' type='string' xmlns='http://www.w3.org/2001/XMLSchema'/>
+ </sequence>
+ </complexType>
+
+ </schema>
+ </types>
+
+ <message name='PhoneBook_lookup' xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <part name='Person_1' type='ns1:Person' xmlns='http://schemas.xmlsoap.org/wsdl/'/>
+ </message>
+ <message name='PhoneBook_lookupResponse' xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <part name='result' type='ns1:TelephoneNumber' xmlns='http://schemas.xmlsoap.org/wsdl/'/>
+ <part name='Account' type='ns1:Account' xmlns='http://schemas.xmlsoap.org/wsdl/'/>
+ </message>
+
+ <portType name='PhoneBook' xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <operation name='lookup' parameterOrder='Person_1 Account' xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <input message='tns:PhoneBook_lookup' xmlns='http://schemas.xmlsoap.org/wsdl/'/>
+ <output message='tns:PhoneBook_lookupResponse' xmlns='http://schemas.xmlsoap.org/wsdl/'/>
+ </operation>
+ </portType>
+
+ <binding name='PhoneBookBinding' type='tns:PhoneBook' xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>
+ <operation name='lookup' xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <soap:operation soapAction=''/>
+ <input xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <soap:body namespace='http://www.jboss.org/support/phonebook' use='literal'/>
+ </input>
+ <output xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <soap:body namespace='http://www.jboss.org/support/phonebook' use='literal'/>
+ </output>
+ </operation>
+ </binding>
+ <service name='PhoneBook' xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <port binding='tns:PhoneBookBinding' name='PhoneBookPort' xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <soap:address location='REPLACE_WITH_ACTUAL_URL'/>
+ </port>
+ </service>
+</definitions>
\ No newline at end of file
Deleted: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/PhoneBook_PortType.java
===================================================================
--- branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_out/PhoneBook_PortType.java 2007-04-11 22:11:22 UTC (rev 2812)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/PhoneBook_PortType.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -1,15 +0,0 @@
-/*
- * JBossWS WS-Tools Generated Source
- *
- * Generation Date: Wed Apr 11 23:58:44 CEST 2007
- *
- * This generated source code represents a derivative work of the input to
- * the generator that produced it. Consult the input for the copyright and
- * terms of use that apply to this source code.
- */
-package org.jboss.test.ws.jbws429;
-public interface PhoneBook_PortType extends java.rmi.Remote
-{
-
- public org.jboss.test.ws.jbws429.TelephoneNumber lookup(org.jboss.test.ws.jbws429.Person person_1, org.jboss.test.ws.jbws429.AccountHolder account) throws java.rmi.RemoteException;
-}
Copied: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/PhoneBook_PortType.java (from rev 2812, branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_out/PhoneBook_PortType.java)
===================================================================
--- trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/PhoneBook_PortType.java (rev 0)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/PhoneBook_PortType.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -0,0 +1,15 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Wed Apr 11 23:58:44 CEST 2007
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+package org.jboss.test.ws.jbws429;
+public interface PhoneBook_PortType extends java.rmi.Remote
+{
+
+ public org.jboss.test.ws.jbws429.TelephoneNumber lookup(org.jboss.test.ws.jbws429.Person person_1, org.jboss.test.ws.jbws429.AccountHolder account) throws java.rmi.RemoteException;
+}
Deleted: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/TelephoneNumber.java
===================================================================
--- branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_out/TelephoneNumber.java 2007-04-11 22:11:22 UTC (rev 2812)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/TelephoneNumber.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -1,34 +0,0 @@
-/*
- * JBossWS WS-Tools Generated Source
- *
- * Generation Date: Wed Apr 11 23:58:44 CEST 2007
- *
- * This generated source code represents a derivative work of the input to
- * the generator that produced it. Consult the input for the copyright and
- * terms of use that apply to this source code.
- */
-
-package org.jboss.test.ws.jbws429;
-
-
-public class TelephoneNumber
-{
-
-protected java.lang.String areaCode;
-
-protected java.lang.String number;
-public TelephoneNumber(){}
-
-public TelephoneNumber(java.lang.String areaCode, java.lang.String number){
-this.areaCode=areaCode;
-this.number=number;
-}
-public java.lang.String getAreaCode() { return areaCode ;}
-
-public void setAreaCode(java.lang.String areaCode){ this.areaCode=areaCode; }
-
-public java.lang.String getNumber() { return number ;}
-
-public void setNumber(java.lang.String number){ this.number=number; }
-
-}
Copied: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/TelephoneNumber.java (from rev 2812, branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_out/TelephoneNumber.java)
===================================================================
--- trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/TelephoneNumber.java (rev 0)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/TelephoneNumber.java 2007-04-23 21:48:37 UTC (rev 2911)
@@ -0,0 +1,34 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Wed Apr 11 23:58:44 CEST 2007
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+
+package org.jboss.test.ws.jbws429;
+
+
+public class TelephoneNumber
+{
+
+protected java.lang.String areaCode;
+
+protected java.lang.String number;
+public TelephoneNumber(){}
+
+public TelephoneNumber(java.lang.String areaCode, java.lang.String number){
+this.areaCode=areaCode;
+this.number=number;
+}
+public java.lang.String getAreaCode() { return areaCode ;}
+
+public void setAreaCode(java.lang.String areaCode){ this.areaCode=areaCode; }
+
+public java.lang.String getNumber() { return number ;}
+
+public void setNumber(java.lang.String number){ this.number=number; }
+
+}
Deleted: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/jaxrpc-mapping.xml
===================================================================
--- branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_out/jaxrpc-mapping.xml 2007-04-11 22:11:22 UTC (rev 2812)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/jaxrpc-mapping.xml 2007-04-23 21:48:37 UTC (rev 2911)
@@ -1,85 +0,0 @@
-<?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 xmlns='http://java.sun.com/xml/ns/j2ee'>
- <package-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429</package-type>
- <namespaceURI xmlns='http://java.sun.com/xml/ns/j2ee'>http://test.jboss.org/ws/jbws429/types</namespaceURI>
- </package-mapping>
- <package-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <package-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429</package-type>
- <namespaceURI xmlns='http://java.sun.com/xml/ns/j2ee'>http://test.jboss.org/ws/jbws429</namespaceURI>
- </package-mapping>
- <java-xml-type-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <java-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.Person</java-type>
- <root-type-qname xmlns:typeNS='http://test.jboss.org/ws/jbws429/types' xmlns='http://java.sun.com/xml/ns/j2ee'>typeNS:Person</root-type-qname>
- <qname-scope xmlns='http://java.sun.com/xml/ns/j2ee'>complexType</qname-scope>
- <variable-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <java-variable-name xmlns='http://java.sun.com/xml/ns/j2ee'>firstName</java-variable-name>
- <xml-element-name xmlns='http://java.sun.com/xml/ns/j2ee'>firstName</xml-element-name>
- </variable-mapping>
- <variable-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <java-variable-name xmlns='http://java.sun.com/xml/ns/j2ee'>surname</java-variable-name>
- <xml-element-name xmlns='http://java.sun.com/xml/ns/j2ee'>surname</xml-element-name>
- </variable-mapping>
- </java-xml-type-mapping>
- <java-xml-type-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <java-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.TelephoneNumber</java-type>
- <root-type-qname xmlns:typeNS='http://test.jboss.org/ws/jbws429/types' xmlns='http://java.sun.com/xml/ns/j2ee'>typeNS:TelephoneNumber</root-type-qname>
- <qname-scope xmlns='http://java.sun.com/xml/ns/j2ee'>complexType</qname-scope>
- <variable-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <java-variable-name xmlns='http://java.sun.com/xml/ns/j2ee'>areaCode</java-variable-name>
- <xml-element-name xmlns='http://java.sun.com/xml/ns/j2ee'>areaCode</xml-element-name>
- </variable-mapping>
- <variable-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <java-variable-name xmlns='http://java.sun.com/xml/ns/j2ee'>number</java-variable-name>
- <xml-element-name xmlns='http://java.sun.com/xml/ns/j2ee'>number</xml-element-name>
- </variable-mapping>
- </java-xml-type-mapping>
- <java-xml-type-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <java-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.Account</java-type>
- <root-type-qname xmlns:typeNS='http://test.jboss.org/ws/jbws429/types' xmlns='http://java.sun.com/xml/ns/j2ee'>typeNS:Account</root-type-qname>
- <qname-scope xmlns='http://java.sun.com/xml/ns/j2ee'>complexType</qname-scope>
- <variable-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <java-variable-name xmlns='http://java.sun.com/xml/ns/j2ee'>accountNumber</java-variable-name>
- <xml-element-name xmlns='http://java.sun.com/xml/ns/j2ee'>accountNumber</xml-element-name>
- </variable-mapping>
- </java-xml-type-mapping>
- <service-interface-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <service-interface xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.PhoneBook_Service</service-interface>
- <wsdl-service-name xmlns:serviceNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>serviceNS:PhoneBook</wsdl-service-name>
- <port-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <port-name xmlns='http://java.sun.com/xml/ns/j2ee'>PhoneBookPort</port-name>
- <java-port-name xmlns='http://java.sun.com/xml/ns/j2ee'>PhoneBookPort</java-port-name>
- </port-mapping>
- </service-interface-mapping>
- <service-endpoint-interface-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <service-endpoint-interface xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.PhoneBook_PortType</service-endpoint-interface>
- <wsdl-port-type xmlns:portTypeNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>portTypeNS:PhoneBook</wsdl-port-type>
- <wsdl-binding xmlns:bindingNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>bindingNS:PhoneBookBinding</wsdl-binding>
- <service-endpoint-method-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <java-method-name xmlns='http://java.sun.com/xml/ns/j2ee'>lookup</java-method-name>
- <wsdl-operation xmlns='http://java.sun.com/xml/ns/j2ee'>lookup</wsdl-operation>
- <method-param-parts-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <param-position xmlns='http://java.sun.com/xml/ns/j2ee'>0</param-position>
- <param-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.Person</param-type>
- <wsdl-message-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <wsdl-message xmlns:wsdlMsgNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>wsdlMsgNS:PhoneBook_lookup</wsdl-message>
- <wsdl-message-part-name xmlns='http://java.sun.com/xml/ns/j2ee'>Person_1</wsdl-message-part-name>
- <parameter-mode xmlns='http://java.sun.com/xml/ns/j2ee'>IN</parameter-mode>
- </wsdl-message-mapping>
- </method-param-parts-mapping>
- <method-param-parts-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <param-position xmlns='http://java.sun.com/xml/ns/j2ee'>1</param-position>
- <param-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.Account</param-type>
- <wsdl-message-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <wsdl-message xmlns:wsdlMsgNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>wsdlMsgNS:PhoneBook_lookup</wsdl-message>
- <wsdl-message-part-name xmlns='http://java.sun.com/xml/ns/j2ee'>Account</wsdl-message-part-name>
- <parameter-mode xmlns='http://java.sun.com/xml/ns/j2ee'>OUT</parameter-mode>
- </wsdl-message-mapping>
- </method-param-parts-mapping>
- <wsdl-return-value-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
- <method-return-value xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.TelephoneNumber</method-return-value>
- <wsdl-message xmlns:wsdlMsgNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>wsdlMsgNS:PhoneBook_lookupResponse</wsdl-message>
- <wsdl-message-part-name xmlns='http://java.sun.com/xml/ns/j2ee'>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
Copied: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/jaxrpc-mapping.xml (from rev 2812, branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_out/jaxrpc-mapping.xml)
===================================================================
--- trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/jaxrpc-mapping.xml (rev 0)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/jaxrpc-mapping.xml 2007-04-23 21:48:37 UTC (rev 2911)
@@ -0,0 +1,85 @@
+<?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 xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <package-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429</package-type>
+ <namespaceURI xmlns='http://java.sun.com/xml/ns/j2ee'>http://test.jboss.org/ws/jbws429/types</namespaceURI>
+ </package-mapping>
+ <package-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <package-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429</package-type>
+ <namespaceURI xmlns='http://java.sun.com/xml/ns/j2ee'>http://test.jboss.org/ws/jbws429</namespaceURI>
+ </package-mapping>
+ <java-xml-type-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <java-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.Person</java-type>
+ <root-type-qname xmlns:typeNS='http://test.jboss.org/ws/jbws429/types' xmlns='http://java.sun.com/xml/ns/j2ee'>typeNS:Person</root-type-qname>
+ <qname-scope xmlns='http://java.sun.com/xml/ns/j2ee'>complexType</qname-scope>
+ <variable-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <java-variable-name xmlns='http://java.sun.com/xml/ns/j2ee'>firstName</java-variable-name>
+ <xml-element-name xmlns='http://java.sun.com/xml/ns/j2ee'>firstName</xml-element-name>
+ </variable-mapping>
+ <variable-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <java-variable-name xmlns='http://java.sun.com/xml/ns/j2ee'>surname</java-variable-name>
+ <xml-element-name xmlns='http://java.sun.com/xml/ns/j2ee'>surname</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <java-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.TelephoneNumber</java-type>
+ <root-type-qname xmlns:typeNS='http://test.jboss.org/ws/jbws429/types' xmlns='http://java.sun.com/xml/ns/j2ee'>typeNS:TelephoneNumber</root-type-qname>
+ <qname-scope xmlns='http://java.sun.com/xml/ns/j2ee'>complexType</qname-scope>
+ <variable-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <java-variable-name xmlns='http://java.sun.com/xml/ns/j2ee'>areaCode</java-variable-name>
+ <xml-element-name xmlns='http://java.sun.com/xml/ns/j2ee'>areaCode</xml-element-name>
+ </variable-mapping>
+ <variable-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <java-variable-name xmlns='http://java.sun.com/xml/ns/j2ee'>number</java-variable-name>
+ <xml-element-name xmlns='http://java.sun.com/xml/ns/j2ee'>number</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <java-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.Account</java-type>
+ <root-type-qname xmlns:typeNS='http://test.jboss.org/ws/jbws429/types' xmlns='http://java.sun.com/xml/ns/j2ee'>typeNS:Account</root-type-qname>
+ <qname-scope xmlns='http://java.sun.com/xml/ns/j2ee'>complexType</qname-scope>
+ <variable-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <java-variable-name xmlns='http://java.sun.com/xml/ns/j2ee'>accountNumber</java-variable-name>
+ <xml-element-name xmlns='http://java.sun.com/xml/ns/j2ee'>accountNumber</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <service-interface-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <service-interface xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.PhoneBook_Service</service-interface>
+ <wsdl-service-name xmlns:serviceNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>serviceNS:PhoneBook</wsdl-service-name>
+ <port-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <port-name xmlns='http://java.sun.com/xml/ns/j2ee'>PhoneBookPort</port-name>
+ <java-port-name xmlns='http://java.sun.com/xml/ns/j2ee'>PhoneBookPort</java-port-name>
+ </port-mapping>
+ </service-interface-mapping>
+ <service-endpoint-interface-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <service-endpoint-interface xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.PhoneBook_PortType</service-endpoint-interface>
+ <wsdl-port-type xmlns:portTypeNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>portTypeNS:PhoneBook</wsdl-port-type>
+ <wsdl-binding xmlns:bindingNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>bindingNS:PhoneBookBinding</wsdl-binding>
+ <service-endpoint-method-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <java-method-name xmlns='http://java.sun.com/xml/ns/j2ee'>lookup</java-method-name>
+ <wsdl-operation xmlns='http://java.sun.com/xml/ns/j2ee'>lookup</wsdl-operation>
+ <method-param-parts-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <param-position xmlns='http://java.sun.com/xml/ns/j2ee'>0</param-position>
+ <param-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.Person</param-type>
+ <wsdl-message-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <wsdl-message xmlns:wsdlMsgNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>wsdlMsgNS:PhoneBook_lookup</wsdl-message>
+ <wsdl-message-part-name xmlns='http://java.sun.com/xml/ns/j2ee'>Person_1</wsdl-message-part-name>
+ <parameter-mode xmlns='http://java.sun.com/xml/ns/j2ee'>IN</parameter-mode>
+ </wsdl-message-mapping>
+ </method-param-parts-mapping>
+ <method-param-parts-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <param-position xmlns='http://java.sun.com/xml/ns/j2ee'>1</param-position>
+ <param-type xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.Account</param-type>
+ <wsdl-message-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <wsdl-message xmlns:wsdlMsgNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>wsdlMsgNS:PhoneBook_lookup</wsdl-message>
+ <wsdl-message-part-name xmlns='http://java.sun.com/xml/ns/j2ee'>Account</wsdl-message-part-name>
+ <parameter-mode xmlns='http://java.sun.com/xml/ns/j2ee'>OUT</parameter-mode>
+ </wsdl-message-mapping>
+ </method-param-parts-mapping>
+ <wsdl-return-value-mapping xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <method-return-value xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws429.TelephoneNumber</method-return-value>
+ <wsdl-message xmlns:wsdlMsgNS='http://test.jboss.org/ws/jbws429' xmlns='http://java.sun.com/xml/ns/j2ee'>wsdlMsgNS:PhoneBook_lookupResponse</wsdl-message>
+ <wsdl-message-part-name xmlns='http://java.sun.com/xml/ns/j2ee'>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
Deleted: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/wstools-config.xml
===================================================================
--- branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_out/wstools-config.xml 2007-04-11 22:11:22 UTC (rev 2812)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/wstools-config.xml 2007-04-23 21:48:37 UTC (rev 2911)
@@ -1,5 +0,0 @@
-<configuration>
- <wsdl-java location="resources/tools/jbws429/rpclit_out/PhoneBook.wsdl" parameter-style="bare">
- <mapping file="jaxrpc-mapping.xml"/>
- </wsdl-java>
-</configuration>
Copied: trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/wstools-config.xml (from rev 2812, branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_out/wstools-config.xml)
===================================================================
--- trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/wstools-config.xml (rev 0)
+++ trunk/jbossws-tests/src/resources/tools/jbws429/rpclit_out/wstools-config.xml 2007-04-23 21:48:37 UTC (rev 2911)
@@ -0,0 +1,5 @@
+<configuration>
+ <wsdl-java location="resources/tools/jbws429/rpclit_out/PhoneBook.wsdl" parameter-style="bare">
+ <mapping file="jaxrpc-mapping.xml"/>
+ </wsdl-java>
+</configuration>
17 years, 8 months
JBossWS SVN: r2909 - branches/dlofthouse.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2007-04-23 17:10:03 -0400 (Mon, 23 Apr 2007)
New Revision: 2909
Removed:
branches/dlofthouse/JBWS-1093/
Log:
Branch no longer required.
17 years, 8 months
JBossWS SVN: r2908 - branches/dlofthouse.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2007-04-23 17:09:48 -0400 (Mon, 23 Apr 2007)
New Revision: 2908
Removed:
branches/dlofthouse/JBWS-429/
Log:
Branch no longer required.
17 years, 8 months