Author: heiko.braun(a)jboss.com
Date: 2007-01-18 07:54:34 -0500 (Thu, 18 Jan 2007)
New Revision: 1994
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/core/jaxws/ServiceDecorator.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/common/
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/common/EventingEndpointBase.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/EventSourceEndpoint.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/EventSourceEndpointImpl.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/EventingService.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/SubscriptionManagerEndpoint.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/SubscriptionManagerEndpointImpl.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/DeliveryType.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/EndpointReference.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/FilterType.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/MetaData.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/ReferenceParameters.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/RenewRequest.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/RenewResponse.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/StatusRequest.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/StatusResponse.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/SubscribeRequest.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/SubscribeResponse.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/SubscriptionEndRequest.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/UnsubscribeRequest.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/AttributedAnyType.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/AttributedQNameType.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/AttributedURIType.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/AttributedUnsignedLongType.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/DeliveryType.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/EndpointReferenceType.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/EventSourceEndpoint.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/EventSourceEndpointImpl.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/EventingService.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/FilterType.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/GetStatus.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/GetStatusResponse.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/LanguageSpecificStringType.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/MetadataType.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/ObjectFactory.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/ProblemActionType.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/ReferenceParametersType.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/RelatesToType.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/Renew.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/RenewResponse.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/Subscribe.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/SubscribeResponse.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/SubscriptionEnd.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/SubscriptionManagerEndpoint.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/SubscriptionManagerEndpointImpl.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/Unsubscribe.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/package-info.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/DispatchException.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/NotificationFailure.java
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/CustomEventSource.java
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/EventSinkServlet.java
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/EventingSupport.java
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/EventingTestCase.java
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/NotificationTestCase.java
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/SubscriptionManagerTestCase.java
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/META-INF/
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/META-INF/application-client.xml
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/META-INF/jboss-client.xml
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/jboss-web.xml
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/web.xml
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/eventing.wsdl
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/eventing.xsd
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/wind.wsdl
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/wsaddr.xsd
Removed:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/DispatchException.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/EventSourceEndpoint.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/EventSourceEndpointImpl.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/EventingEndpointBase.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/EventingService.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/SubscriptionManagerEndpoint.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/SubscriptionManagerEndpointImpl.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/element/
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/DeliveryType.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/EndpointReference.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/FilterType.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/MetaData.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/NotificationFailure.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/ReferenceParameters.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/RenewRequest.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/RenewResponse.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/StatusRequest.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/StatusResponse.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/SubscribeRequest.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/SubscribeResponse.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/SubscriptionEndRequest.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/UnsubscribeRequest.java
Modified:
trunk/integration-jboss50/src/main/java/org/jboss/ws/integration/jboss50/ServiceObjectFactory.java
trunk/jbossws-core/src/main/java/org/jboss/ws/core/jaxrpc/CallImpl.java
trunk/jbossws-core/src/main/java/org/jboss/ws/core/jaxws/client/ClientImpl.java
trunk/jbossws-core/src/main/java/org/jboss/ws/core/jaxws/handler/HandlerResolverImpl.java
trunk/jbossws-core/src/main/java/org/jboss/ws/core/jaxws/spi/ServiceDelegateImpl.java
trunk/jbossws-core/src/main/java/org/jboss/ws/core/server/WSDLRequestHandler.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/addressing/jaxws/WSAddressingServerHandler.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/deployment/EventingEndpoint.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/deployment/EventingEndpointDI.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/DispatcherFactory.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/Filter.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/Subscription.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManager.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManagerMBean.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionTicket.java
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/builder/MetaDataBuilder.java
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/builder/jaxrpc/JAXRPCMetaDataBuilder.java
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSMetaDataBuilder.java
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSWebServiceMetaDataBuilder.java
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/config/Configurable.java
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/config/ConfigurationProvider.java
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/umdm/EndpointMetaData.java
trunk/jbossws-tests/ant-import/build-jars-jaxrpc.xml
trunk/jbossws-tests/ant-import/build-jars-jaxws.xml
trunk/jbossws-tests/build.xml
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/samples/wseventing/SysmonTestCase.java
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/samples/wseventing/SysmonUtil.java
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/wseventing/DIIClientTestCase.java
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/wseventing/EventingSupport.java
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/wseventing/EventingTestCase.java
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/wseventing/NotificationTestCase.java
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/wseventing/SubscriptionManagerTestCase.java
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/client/ServiceDelegateTestCase.java
trunk/jbossws-tests/src/main/resources/jaxrpc/samples/wseventing/META-INF/application-client.xml
trunk/jbossws-tests/src/main/resources/jaxrpc/samples/wseventing/WEB-INF/jaxrpc-mapping.xml
trunk/jbossws-tests/src/main/resources/jaxrpc/samples/wseventing/WEB-INF/web.xml
trunk/jbossws-tests/src/main/resources/jaxrpc/samples/wseventing/WEB-INF/webservices.xml
trunk/jbossws-tests/src/main/resources/jaxrpc/wseventing/META-INF/application-client.xml
trunk/jbossws-tests/src/main/resources/jaxrpc/wseventing/WEB-INF/jaxrpc-mapping.xml
trunk/jbossws-tests/src/main/resources/jaxrpc/wseventing/WEB-INF/web.xml
trunk/jbossws-tests/src/main/resources/jaxrpc/wseventing/WEB-INF/webservices.xml
trunk/jbossws-tests/src/main/resources/jaxws/jsr181/handlerchain/jaxws-handlers.xml
Log:
Eventing JAXWS, first cut. Added Support for client side reconfiguration
Modified:
trunk/integration-jboss50/src/main/java/org/jboss/ws/integration/jboss50/ServiceObjectFactory.java
===================================================================
---
trunk/integration-jboss50/src/main/java/org/jboss/ws/integration/jboss50/ServiceObjectFactory.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/integration-jboss50/src/main/java/org/jboss/ws/integration/jboss50/ServiceObjectFactory.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -137,7 +137,7 @@
cp.setConfigFile(usRef.getConfigFile());
if (usRef.getConfigName() != null)
cp.setConfigName(usRef.getConfigName());
-
+
}
if (targetClassName != null && targetClassName.equals(serviceClassName)
== false)
Modified: trunk/jbossws-core/src/main/java/org/jboss/ws/core/jaxrpc/CallImpl.java
===================================================================
--- trunk/jbossws-core/src/main/java/org/jboss/ws/core/jaxrpc/CallImpl.java 2007-01-18
12:00:15 UTC (rev 1993)
+++ trunk/jbossws-core/src/main/java/org/jboss/ws/core/jaxrpc/CallImpl.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -621,6 +621,7 @@
epMetaData.setConfigName(configName);
// Reinitialize the client handler chain
+ // TODO: is this necessary?
jaxrpcService.setupHandlerChain(epMetaData);
}
}
Added: trunk/jbossws-core/src/main/java/org/jboss/ws/core/jaxws/ServiceDecorator.java
===================================================================
--- trunk/jbossws-core/src/main/java/org/jboss/ws/core/jaxws/ServiceDecorator.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/core/jaxws/ServiceDecorator.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,121 @@
+/*
+ * 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.jaxws;
+
+import org.jboss.ws.metadata.umdm.EndpointMetaData;
+import org.jboss.ws.core.StubExt;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.EndpointReference;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebServiceFeature;
+import javax.xml.ws.spi.ServiceDelegate;
+import java.net.URL;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Acts as a wrapper between clients and the JAX-WS API.
+ * Allows additional, propriatary API to be injected and core API calls
+ * to be decorated.
+ *
+ * @author Heiko.Braun(a)jboss.org
+ * @version $Id$
+ * @since 21.12.2006
+ */
+public class ServiceDecorator extends Service {
+
+ public final static String CLIENT_CONF_NAME =
"org.jboss.ws.jaxws.client.configName";
+ public final static String CLIENT_CONF_FILE =
"org.jboss.ws.jaxws.client.configFile";
+
+ private Map<String, Object> props = new HashMap<String, Object>();
+
+ private ServiceDelegate serviceDelegate;
+
+ private Map getProps()
+ {
+ return props;
+ }
+
+ public void setProperty(String key, Object value)
+ {
+ props.put(key, value);
+ }
+
+ public Object getProperty(String key)
+ {
+ return props.get(key);
+ }
+
+ public static ServiceDecorator newInstance(URL wsdlDocumentLocation, QName
serviceName)
+ {
+ return new ServiceDecorator(wsdlDocumentLocation, serviceName);
+ }
+
+ // ----------------------------------------------------------------------------
+ // intercepted javax.xml.ws.Service invocations
+
+ protected ServiceDecorator(URL wsdlDocumentLocation, QName serviceName) {
+ super(wsdlDocumentLocation, serviceName);
+ }
+
+ public <T> T getPort(Class<T> serviceEndpointInterface) {
+ T port = super.getPort(serviceEndpointInterface);
+ decorateConfig((StubExt)port);
+ return port;
+ }
+
+ public <T> T getPort(QName portName, Class<T> serviceEndpointInterface) {
+ T port = super.getPort(portName, serviceEndpointInterface);
+ decorateConfig((StubExt)port);
+ return port;
+ }
+
+ public <T> T getPort(QName portName, Class<T> serviceEndpointInterface,
WebServiceFeature... features) {
+ T port = super.getPort(portName, serviceEndpointInterface, features);
+ decorateConfig((StubExt)port);
+ return port;
+ }
+
+ public <T> T getPort(Class<T> serviceEndpointInterface,
WebServiceFeature... features) {
+ T port = super.getPort(serviceEndpointInterface, features);
+ decorateConfig((StubExt)port);
+ return port;
+ }
+
+ public <T> T getPort(EndpointReference endpointReference, Class<T>
serviceEndpointInterface, WebServiceFeature... features) {
+ T port = super.getPort(endpointReference, serviceEndpointInterface, features);
+ decorateConfig((StubExt)port);
+ return port;
+ }
+
+ private void decorateConfig(StubExt stub) {
+
+ EndpointMetaData epMetaData = stub.getEndpointMetaData();
+
+ if(props.containsKey(CLIENT_CONF_NAME))
+ epMetaData.setConfigName((String)props.get(CLIENT_CONF_NAME));
+ if(props.containsKey(CLIENT_CONF_FILE))
+ epMetaData.setConfigFile((String)props.get(CLIENT_CONF_FILE));
+
+ }
+}
Modified: trunk/jbossws-core/src/main/java/org/jboss/ws/core/jaxws/client/ClientImpl.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/core/jaxws/client/ClientImpl.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/core/jaxws/client/ClientImpl.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -23,9 +23,20 @@
// $Id$
-import java.rmi.RemoteException;
-import java.util.List;
-import java.util.Map;
+import org.jboss.logging.Logger;
+import org.jboss.util.NotImplementedException;
+import org.jboss.ws.core.CommonBindingProvider;
+import org.jboss.ws.core.CommonClient;
+import org.jboss.ws.core.CommonMessageContext;
+import org.jboss.ws.core.jaxws.binding.BindingExt;
+import org.jboss.ws.core.jaxws.binding.BindingProviderImpl;
+import org.jboss.ws.core.jaxws.handler.*;
+import org.jboss.ws.core.soap.MessageContextAssociation;
+import org.jboss.ws.metadata.config.Configurable;
+import org.jboss.ws.metadata.config.ConfigurationProvider;
+import org.jboss.ws.metadata.umdm.EndpointMetaData;
+import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
+import org.jboss.ws.metadata.umdm.OperationMetaData;
import javax.xml.namespace.QName;
import javax.xml.ws.Binding;
@@ -39,50 +50,60 @@
import javax.xml.ws.http.HTTPException;
import javax.xml.ws.soap.SOAPBinding;
import javax.xml.ws.soap.SOAPFaultException;
+import java.rmi.RemoteException;
+import java.util.List;
+import java.util.Map;
+import java.util.Observable;
-import org.jboss.logging.Logger;
-import org.jboss.util.NotImplementedException;
-import org.jboss.ws.core.CommonBindingProvider;
-import org.jboss.ws.core.CommonClient;
-import org.jboss.ws.core.CommonMessageContext;
-import org.jboss.ws.core.StubExt;
-import org.jboss.ws.core.jaxws.binding.BindingExt;
-import org.jboss.ws.core.jaxws.binding.BindingProviderImpl;
-import org.jboss.ws.core.jaxws.handler.HandlerChainExecutor;
-import org.jboss.ws.core.jaxws.handler.MessageContextJAXWS;
-import org.jboss.ws.core.jaxws.handler.PortInfoImpl;
-import org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS;
-import org.jboss.ws.core.soap.MessageContextAssociation;
-import org.jboss.ws.metadata.umdm.EndpointMetaData;
-import org.jboss.ws.metadata.umdm.OperationMetaData;
-import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
-
-/**
+/**
* Provides support for the dynamic invocation of a service endpoint.
*
* @author Thomas.Diesler(a)jboss.org
* @since 04-Jul-2006
*/
-public class ClientImpl extends CommonClient implements BindingProvider
+public class ClientImpl extends CommonClient implements BindingProvider, Configurable
{
// provide logging
private static Logger log = Logger.getLogger(ClientImpl.class);
-
+
+ private final EndpointMetaData epMetaData;
+ private final HandlerResolver handlerResolver;
+
public ClientImpl(EndpointMetaData epMetaData, HandlerResolver handlerResolver)
{
super(epMetaData);
setTargetEndpointAddress(epMetaData.getEndpointAddress());
- initBindingHandlerChain(epMetaData, handlerResolver);
+
+ this.epMetaData = epMetaData;
+ this.handlerResolver = handlerResolver;
+
+ resetCreateBindingHandlerChain();
+
+ // The config may change at some later point in time
+ // when applications utilize the ServiceDecorator API
+ // When clients change the config-name, we need reset the handlerchain
+ ((ConfigurationProvider)epMetaData).registerConfigObserver(this);
}
- // Init the cilent handler chain in the binding
- private void initBindingHandlerChain(EndpointMetaData epMetaData, HandlerResolver
handlerResolver)
+ /**
+ * Reset or create the client handler chain in the binding.<br>
+ */
+ private void resetCreateBindingHandlerChain()
{
+ if (handlerResolver instanceof HandlerResolverImpl)
+ {
+ HandlerResolverImpl impl = (HandlerResolverImpl)handlerResolver;
+ impl.initHandlerChain(epMetaData, HandlerType.PRE);
+ impl.initHandlerChain(epMetaData, HandlerType.ENDPOINT);
+ impl.initHandlerChain(epMetaData, HandlerType.POST);
+ }
+
Binding binding = getBindingProvider().getBinding();
if (handlerResolver != null)
{
PortInfoImpl portInfo = new PortInfoImpl(epMetaData);
List<Handler> handlerChain = binding.getHandlerChain();
+ handlerChain.clear();
for (Handler handler : handlerResolver.getHandlerChain(portInfo))
{
handlerChain.add(handler);
@@ -90,6 +111,21 @@
}
}
+ /**
+ * Callback when the config-name or config-file changes.
+ * @param observable
+ * @param object
+ */
+ public void update(Observable observable, Object object) {
+ log.debug("Configuration change event received. Reconfigure handler chain:
"+object);
+
+ // reconfigure endpoint meta data handler information from config
+ ((ConfigurationProvider)epMetaData).configure(epMetaData);
+
+ // re-populate the binding handler chain
+ resetCreateBindingHandlerChain();
+ }
+
@Override
protected boolean callRequestHandlerChain(QName portName, HandlerType type)
{
@@ -123,14 +159,14 @@
CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
msgContext.setProperty(MessageContextJAXWS.MESSAGE_OUTBOUND_PROPERTY, new
Boolean(true));
}
-
+
// Invoked by the proxy invokation handler
public Object invoke(QName opName, Object[] args, Map<String, Object>
resContext) throws RemoteException
{
// Associate a message context with the current thread
SOAPMessageContextJAXWS msgContext = new SOAPMessageContextJAXWS();
MessageContextAssociation.pushMessageContext(msgContext);
-
+
// The contents of the request context are used to initialize the message context
(see section 9.4.1)
// prior to invoking any handlers (see chapter 9) for the outbound message. Each
property within the
// request context is copied to the message context with a scope of HANDLER.
@@ -174,7 +210,7 @@
// associate new context
MessageContextAssociation.pushMessageContext(responseContext);
-
+
return responseContext;
}
@@ -195,7 +231,7 @@
}
/**
- * 4.2.4 Conformance (Remote Exceptions): If an error occurs during a remote
operation invocation, an implemention
+ * 4.2.4 Conformance (Remote Exceptions): If an error occurs during a remote
operation invocation, an implemention
* MUST throw a service specific exception if possible. If the error cannot be mapped
to a service
* specific exception, an implementation MUST throw a ProtocolException or one of its
subclasses, as
* appropriate for the binding in use. See section 6.4.1 for more details.
@@ -246,7 +282,7 @@
}
return bindingProvider;
}
-
+
public Map<String, Object> getRequestContext()
{
return getBindingProvider().getRequestContext();
Modified:
trunk/jbossws-core/src/main/java/org/jboss/ws/core/jaxws/handler/HandlerResolverImpl.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/core/jaxws/handler/HandlerResolverImpl.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/core/jaxws/handler/HandlerResolverImpl.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -131,6 +131,10 @@
public void initHandlerChain(EndpointMetaData epMetaData, HandlerType type)
{
log.debug("initHandlerChain: " + type);
+
+ // clear all exisisting handler to avoid double registration
+ log.debug("Clear handler map: " +handlerMap);
+
for (HandlerMetaData handlerMetaData : epMetaData.getHandlerMetaData(type))
{
HandlerMetaDataJAXWS jaxwsMetaData = (HandlerMetaDataJAXWS)handlerMetaData;
Modified:
trunk/jbossws-core/src/main/java/org/jboss/ws/core/jaxws/spi/ServiceDelegateImpl.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/core/jaxws/spi/ServiceDelegateImpl.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/core/jaxws/spi/ServiceDelegateImpl.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -23,27 +23,6 @@
// $Id$
-import java.lang.reflect.Proxy;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import java.util.concurrent.Executor;
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.Executors;
-
-import javax.jws.WebService;
-import javax.xml.bind.JAXBContext;
-import javax.xml.namespace.QName;
-import javax.xml.ws.BindingProvider;
-import javax.xml.ws.Dispatch;
-import javax.xml.ws.EndpointReference;
-import javax.xml.ws.WebServiceException;
-import javax.xml.ws.WebServiceFeature;
-import javax.xml.ws.Service.Mode;
-import javax.xml.ws.handler.HandlerResolver;
-import javax.xml.ws.spi.ServiceDelegate;
-
import org.jboss.logging.Logger;
import org.jboss.util.NotImplementedException;
import org.jboss.ws.core.StubExt;
@@ -54,11 +33,26 @@
import org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder;
import org.jboss.ws.metadata.umdm.ClientEndpointMetaData;
import org.jboss.ws.metadata.umdm.EndpointMetaData;
+import org.jboss.ws.metadata.umdm.EndpointMetaData.Type;
import org.jboss.ws.metadata.umdm.ServiceMetaData;
import org.jboss.ws.metadata.umdm.UnifiedMetaData;
-import org.jboss.ws.metadata.umdm.EndpointMetaData.Type;
-import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
+import javax.jws.WebService;
+import javax.xml.bind.JAXBContext;
+import javax.xml.namespace.QName;
+import javax.xml.ws.*;
+import javax.xml.ws.Service.Mode;
+import javax.xml.ws.handler.HandlerResolver;
+import javax.xml.ws.spi.ServiceDelegate;
+import java.lang.reflect.Proxy;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+import java.util.concurrent.Executor;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+
/**
* Service delegates are used internally by Service objects to allow pluggability of
JAX-WS implementations.
*
@@ -299,15 +293,7 @@
private <T> T createProxy(Class<T> seiClass, EndpointMetaData epMetaData)
throws WebServiceException
{
try
- {
- if (handlerResolver instanceof HandlerResolverImpl)
- {
- HandlerResolverImpl impl = ((HandlerResolverImpl)handlerResolver);
- impl.initHandlerChain(epMetaData, HandlerType.PRE);
- impl.initHandlerChain(epMetaData, HandlerType.ENDPOINT);
- impl.initHandlerChain(epMetaData, HandlerType.POST);
- }
-
+ {
ExecutorService executor = (ExecutorService)getExecutor();
ClientProxy handler = new ClientProxy(executor, new ClientImpl(epMetaData,
handlerResolver));
ClassLoader cl = epMetaData.getClassLoader();
Modified:
trunk/jbossws-core/src/main/java/org/jboss/ws/core/server/WSDLRequestHandler.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/core/server/WSDLRequestHandler.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/core/server/WSDLRequestHandler.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -143,7 +143,7 @@
String newLocation = completeHost + reqPath +
"?wsdl&resource=" + newResourcePath;
locationAttr.setNodeValue(newLocation);
- log.debug("Mapping import from '" + orgLocation +
"' to '" + newLocation + "'");
+ log.trace("Mapping import from '" + orgLocation +
"' to '" + newLocation + "'");
}
}
}
@@ -174,7 +174,7 @@
String newLocation = completeHost + locPath;
locationAttr.setNodeValue(newLocation);
- log.debug("Mapping address from '" + orgLocation +
"' to '" + newLocation + "'");
+ log.trace("Mapping address from '" + orgLocation +
"' to '" + newLocation + "'");
}
}
}
Modified:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/addressing/jaxws/WSAddressingServerHandler.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/addressing/jaxws/WSAddressingServerHandler.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/addressing/jaxws/WSAddressingServerHandler.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -120,7 +120,7 @@
if (!isFault && !opMetaData.isOneWay())
{
- AddressingOpMetaExt addrExt =
(AddressingOpMetaExt)opMetaData.getExtension(ADDR_CONSTANTS.getNamespaceURI());
+ AddressingOpMetaExt addrExt =
(AddressingOpMetaExt)opMetaData.getExtension(ADDR_CONSTANTS.getNamespaceURI());
if (addrExt != null)
{
outProps.setAction(ADDR_BUILDER.newURI(addrExt.getOutboundAction()));
Deleted:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/DispatchException.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/DispatchException.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/DispatchException.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -1,36 +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.extensions.eventing;
-
-
-import org.jboss.ws.WSException;
-
-public class DispatchException extends WSException {
-
- public DispatchException() {
- super();
- }
-
- public DispatchException(String message) {
- super(message);
- }
-}
\ No newline at end of file
Deleted:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/EventSourceEndpoint.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/EventSourceEndpoint.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/EventSourceEndpoint.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -1,45 +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.extensions.eventing;
-
-// $Id$
-
-import java.rmi.Remote;
-import java.rmi.RemoteException;
-
-import org.jboss.ws.extensions.eventing.element.SubscribeRequest;
-import org.jboss.ws.extensions.eventing.element.SubscribeResponse;
-import org.jboss.ws.extensions.eventing.element.SubscriptionEndRequest;
-
-/**
- * Event source endpoint interface.
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 24-Nov-2005
- */
-public interface EventSourceEndpoint extends Remote
-{
-
- SubscribeResponse subscribe(SubscribeRequest subscribeRequest) throws
RemoteException;
-
- SubscriptionEndRequest subscriptionEnd() throws RemoteException;
-}
Deleted:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/EventSourceEndpointImpl.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/EventSourceEndpointImpl.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/EventSourceEndpointImpl.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -1,109 +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.extensions.eventing;
-
-// $Id$
-
-import java.rmi.RemoteException;
-
-import javax.xml.rpc.soap.SOAPFaultException;
-import javax.xml.ws.addressing.AddressingProperties;
-import javax.xml.ws.addressing.AttributedURI;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.extensions.eventing.element.EndpointReference;
-import org.jboss.ws.extensions.eventing.element.SubscribeRequest;
-import org.jboss.ws.extensions.eventing.element.SubscribeResponse;
-import org.jboss.ws.extensions.eventing.element.SubscriptionEndRequest;
-import org.jboss.ws.extensions.eventing.mgmt.Filter;
-import org.jboss.ws.extensions.eventing.mgmt.SubscriptionError;
-import org.jboss.ws.extensions.eventing.mgmt.SubscriptionManagerMBean;
-import org.jboss.ws.extensions.eventing.mgmt.SubscriptionTicket;
-
-/**
- * Event source endpoint implementation.<br>
- * Delegates to {@link org.jboss.ws.extensions.eventing.mgmt.SubscriptionManager}
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 25-Nov-2005
- */
-public class EventSourceEndpointImpl extends EventingEndpointBase
- implements EventSourceEndpoint
-{
- private static Logger log = Logger.getLogger(EventSourceEndpointImpl.class);
-
- public SubscribeResponse subscribe(SubscribeRequest request) throws RemoteException
- {
- try
- {
- // retrieve addressing headers
- AddressingProperties inProps = getAddrProperties();
- AttributedURI eventSourceURI = inProps.getTo();
- log.debug("Subscribe request for event source: " +
eventSourceURI.getURI());
-
- assertSubscriberEndpoints(request);
- EndpointReference notifyTo = request.getDelivery().getNotifyTo();
- EndpointReference endTo = request.getEndTo();
-
- // adapt filter elements
- Filter filter = null;
- if (request.getFilter() != null)
- {
- filter = new Filter(request.getFilter().getDialect(),
request.getFilter().get_value());
- }
-
- // invoke subscription manager
- SubscriptionManagerMBean subscriptionManager = getSubscriptionManager();
- SubscriptionTicket ticket =
subscriptionManager.subscribe(eventSourceURI.getURI(), notifyTo, endTo,
request.getExpires(), filter);
-
- // create the response element
- SubscribeResponse res = new SubscribeResponse();
- res.setExpires(ticket.getExpires());
- res.setSubscriptionManager(ticket.getSubscriptionManager());
-
- return res;
-
- }
- catch (SubscriptionError e)
- {
- throw new SOAPFaultException(buildFaultQName(e.getSubcode()), e.getReason(),
null, null);
- }
- }
-
- public SubscriptionEndRequest subscriptionEnd() throws RemoteException
- {
- return new SubscriptionEndRequest();
- }
-
- /**
- * Ensure that the subscriber endpoint information is supplied in request.
- * Namely NotifyTo and EndTo need to be set.
- * @param request
- */
- private void assertSubscriberEndpoints(SubscribeRequest request) {
- if(null == request.getDelivery().getNotifyTo() || null == request.getEndTo() )
- throw new SOAPFaultException(
buildFaultQName(EventingConstants.CODE_INVALID_MESSAGE) ,
- "Subcriber endpoint information missing from request",
- null, null
- );
- }
-}
Deleted:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/EventingEndpointBase.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/EventingEndpointBase.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/EventingEndpointBase.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -1,99 +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.extensions.eventing;
-
-
-// $Id$
-
-import java.net.URI;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.soap.SOAPFaultException;
-import javax.xml.ws.addressing.AddressingBuilder;
-import javax.xml.ws.addressing.AddressingProperties;
-import javax.xml.ws.addressing.JAXWSAConstants;
-
-import org.jboss.ws.Constants;
-import org.jboss.ws.core.CommonMessageContext;
-import org.jboss.ws.core.soap.MessageContextAssociation;
-import org.jboss.ws.extensions.eventing.mgmt.SubscriptionManagerFactory;
-import org.jboss.ws.extensions.eventing.mgmt.SubscriptionManagerMBean;
-
-/**
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 13-Jan-2006
- */
-public abstract class EventingEndpointBase
-{
-
- private AddressingBuilder addrBuilder;
-
- /**
- * Retrieve the addressing properties associated with the request
- * and verify them.
- */
- protected static AddressingProperties getAddrProperties()
- {
- CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
- AddressingProperties inProps =
(AddressingProperties)msgContext.getProperty(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_INBOUND);
- assertAddrProperties(inProps);
- return inProps;
- }
-
- protected void setReplyAction(URI replyAction)
- {
-
- }
-
- /**
- * Access local subscription manager service.
- */
- protected SubscriptionManagerMBean getSubscriptionManager()
- {
- SubscriptionManagerFactory factory = SubscriptionManagerFactory.getInstance();
- SubscriptionManagerMBean subscriptionManager = factory.getSubscriptionManager();
- return subscriptionManager;
- }
-
- protected AddressingBuilder getAddrBuilder()
- {
- if (null == addrBuilder)
- addrBuilder = AddressingBuilder.getAddressingBuilder();
- return addrBuilder;
- }
-
- /**
- * Ensure that all required inbound properties are supplied in request.
- * @param inProps
- * @throws javax.xml.rpc.soap.SOAPFaultException
- */
- protected static void assertAddrProperties(AddressingProperties inProps) throws
SOAPFaultException
- {
- if (null == inProps)
- throw new SOAPFaultException(Constants.SOAP11_FAULT_CODE_CLIENT,
"Addressing headers missing from request", "wse:InvalidMessage",
null);
- }
-
- public QName buildFaultQName(String elementName)
- {
- return new QName(EventingConstants.NS_EVENTING, elementName,
EventingConstants.PREFIX_EVENTING);
- }
-}
Deleted:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/EventingService.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/EventingService.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/EventingService.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -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.extensions.eventing;
-
-// $Id$
-
-import javax.xml.rpc.Service;
-
-/**
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 24-Nov-2005
- */
-public interface EventingService extends Service
-{
-}
Deleted:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/SubscriptionManagerEndpoint.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/SubscriptionManagerEndpoint.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/SubscriptionManagerEndpoint.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -1,49 +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.extensions.eventing;
-
-// $Id$
-
-import java.rmi.Remote;
-import java.rmi.RemoteException;
-
-import org.jboss.ws.extensions.eventing.element.RenewRequest;
-import org.jboss.ws.extensions.eventing.element.RenewResponse;
-import org.jboss.ws.extensions.eventing.element.StatusRequest;
-import org.jboss.ws.extensions.eventing.element.StatusResponse;
-import org.jboss.ws.extensions.eventing.element.UnsubscribeRequest;
-
-/**
- * Subscription manager endpoint interface.
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 16-Dec-2005
- */
-public interface SubscriptionManagerEndpoint extends Remote
-{
-
- StatusResponse getStatus(StatusRequest request) throws RemoteException;
-
- RenewResponse renew(RenewRequest request) throws RemoteException;
-
- void unsubscribe(UnsubscribeRequest request) throws RemoteException;
-}
Deleted:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/SubscriptionManagerEndpointImpl.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/SubscriptionManagerEndpointImpl.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/SubscriptionManagerEndpointImpl.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -1,194 +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.extensions.eventing;
-
-// $Id$
-
-import java.net.URI;
-import java.net.URISyntaxException;
-import java.rmi.RemoteException;
-import java.util.Date;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.soap.SOAPFaultException;
-import javax.xml.ws.addressing.AddressingProperties;
-import javax.xml.ws.addressing.JAXWSAConstants;
-import javax.xml.ws.addressing.ReferenceParameters;
-
-import org.jboss.ws.Constants;
-import org.jboss.ws.core.CommonMessageContext;
-import org.jboss.ws.core.soap.MessageContextAssociation;
-import org.jboss.ws.core.utils.DOMUtils;
-import org.jboss.ws.extensions.eventing.element.RenewRequest;
-import org.jboss.ws.extensions.eventing.element.RenewResponse;
-import org.jboss.ws.extensions.eventing.element.StatusRequest;
-import org.jboss.ws.extensions.eventing.element.StatusResponse;
-import org.jboss.ws.extensions.eventing.element.UnsubscribeRequest;
-import org.jboss.ws.extensions.eventing.mgmt.SubscriptionError;
-import org.w3c.dom.Element;
-
-/**
- * SubscriptionManager endpoint implementation.<br>
- * Delegates to {@link org.jboss.ws.extensions.eventing.mgmt.SubscriptionManager}
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 16-Dec-2005
- */
-public class SubscriptionManagerEndpointImpl extends EventingEndpointBase
- implements SubscriptionManagerEndpoint
-{
-
- public static final QName IDQN = new
QName("http://schemas.xmlsoap.org/ws/2004/08/eventing", "Identifier",
"ns1");
-
- /**
- * Get the status of a subscription.
- *
- * @param request
- * @return response including the lease time.
- * @throws RemoteException
- */
- public StatusResponse getStatus(StatusRequest request) throws RemoteException
- {
- URI identifier = retrieveSubscriptionId();
-
- try
- {
- Date leaseTime = getSubscriptionManager().getStatus(identifier);
- StatusResponse response = new StatusResponse();
- response.setExpires(leaseTime);
-
- return response;
- }
- catch (SubscriptionError e)
- {
- throw new SOAPFaultException(buildFaultQName(e.getSubcode()), e.getReason(),
null, null);
- }
- }
-
- /**
- * Update the expiration for a subscription.
- *
- * @param request
- * @return response inclduing the new lease time.
- * @throws RemoteException
- */
- public RenewResponse renew(RenewRequest request) throws RemoteException
- {
-
setReplyAction(EventingConstants.buildURI(EventingConstants.RENEW_RESPONSE_ACTION));
- URI identifier = retrieveSubscriptionId();
-
- try
- {
- Date newLeaseTime = getSubscriptionManager().renew(identifier,
request.getExpires());
- RenewResponse response = new RenewResponse();
- response.setExpires(newLeaseTime);
-
- return response;
- }
- catch (SubscriptionError e)
- {
- throw new SOAPFaultException(buildFaultQName(e.getSubcode()), e.getReason(),
null, null);
- }
-
- }
-
- /**
- * Explicitly delete a subscription.
- *
- * @param request
- * @throws RemoteException
- */
- public void unsubscribe(UnsubscribeRequest request) throws RemoteException
- {
-
setReplyAction(EventingConstants.buildURI(EventingConstants.UNSUBSCRIBE_RESPONSE_ACTION));
- URI identifier = retrieveSubscriptionId();
-
- try
- {
- getSubscriptionManager().unsubscribe(identifier);
- }
- catch (SubscriptionError e)
- {
- throw new SOAPFaultException(buildFaultQName(e.getSubcode()), e.getReason(),
null, null);
- }
-
- }
-
- private URI retrieveSubscriptionId()
- {
- URI subscriptionId = null;
- CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
- AddressingProperties addrProps =
(AddressingProperties)msgContext.getProperty(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_INBOUND);
-
- if (null == addrProps)
- {
- throw new SOAPFaultException(
- Constants.SOAP11_FAULT_CODE_CLIENT,
- "The message is not valid and cannot be processed:" +
- "Cannot obtain addressing properties.",
- null, null
- );
- }
-
- ReferenceParameters refParams = addrProps.getReferenceParameters();
- if (refParams != null)
- {
- for (Object obj : refParams.getElements())
- {
- if (obj instanceof Element)
- {
- Element el = (Element)obj;
- QName qname = DOMUtils.getElementQName(el);
- if (qname.equals(IDQN))
- {
- try
- {
- subscriptionId = new URI(DOMUtils.getTextContent(el));
- break;
- }
- catch (URISyntaxException e)
- {
- throw new SOAPFaultException(
- Constants.SOAP11_FAULT_CODE_CLIENT,
- "The message is not valid and cannot be processed:"
+
- "Invalid subscription id.",
- null, null
- );
- }
- }
- }
- }
- }
-
- if (null == subscriptionId)
- {
- throw new SOAPFaultException(
- buildFaultQName(EventingConstants.CODE_INVALID_MESSAGE),
- "The message is not valid and cannot be processed."
- + "Cannot obtain subscription id.",
- null, null
- );
- }
-
- return subscriptionId;
- }
-}
Copied:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/common/EventingEndpointBase.java
(from rev 1983,
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/EventingEndpointBase.java)
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/common/EventingEndpointBase.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/common/EventingEndpointBase.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,95 @@
+/*
+ * 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.extensions.eventing.common;
+
+
+// $Id$
+
+import java.net.URI;
+
+import javax.xml.namespace.QName;
+import javax.xml.rpc.soap.SOAPFaultException;
+import javax.xml.ws.addressing.AddressingBuilder;
+import javax.xml.ws.addressing.AddressingProperties;
+import javax.xml.ws.addressing.JAXWSAConstants;
+
+import org.jboss.ws.Constants;
+import org.jboss.ws.core.CommonMessageContext;
+import org.jboss.ws.core.soap.MessageContextAssociation;
+import org.jboss.ws.extensions.eventing.mgmt.SubscriptionManagerFactory;
+import org.jboss.ws.extensions.eventing.mgmt.SubscriptionManagerMBean;
+import org.jboss.ws.extensions.eventing.EventingConstants;
+
+/**
+ * @author Heiko Braun, <heiko(a)openj.net>
+ * @since 13-Jan-2006
+ */
+public abstract class EventingEndpointBase
+{
+
+ private AddressingBuilder addrBuilder;
+
+ /**
+ * Retrieve the addressing properties associated with the request
+ * and verify them.
+ */
+ protected static AddressingProperties getAddrProperties()
+ {
+ CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
+ AddressingProperties inProps =
(AddressingProperties)msgContext.getProperty(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_INBOUND);
+ assertAddrProperties(inProps);
+ return inProps;
+ }
+
+ /**
+ * Access local subscription manager service.
+ */
+ protected SubscriptionManagerMBean getSubscriptionManager()
+ {
+ SubscriptionManagerFactory factory = SubscriptionManagerFactory.getInstance();
+ SubscriptionManagerMBean subscriptionManager = factory.getSubscriptionManager();
+ return subscriptionManager;
+ }
+
+ protected AddressingBuilder getAddrBuilder()
+ {
+ if (null == addrBuilder)
+ addrBuilder = AddressingBuilder.getAddressingBuilder();
+ return addrBuilder;
+ }
+
+ /**
+ * Ensure that all required inbound properties are supplied in request.
+ * @param inProps
+ * @throws javax.xml.rpc.soap.SOAPFaultException
+ */
+ protected static void assertAddrProperties(AddressingProperties inProps) throws
SOAPFaultException
+ {
+ if (null == inProps)
+ throw new SOAPFaultException(Constants.SOAP11_FAULT_CODE_CLIENT,
"Addressing headers missing from request", "wse:InvalidMessage",
null);
+ }
+
+ public QName buildFaultQName(String elementName)
+ {
+ return new QName(EventingConstants.NS_EVENTING, elementName,
EventingConstants.PREFIX_EVENTING);
+ }
+}
Property changes on:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/common/EventingEndpointBase.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/deployment/EventingEndpoint.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/deployment/EventingEndpoint.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/deployment/EventingEndpoint.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -46,7 +46,7 @@
// create pending incomplete event source
EventingEndpointDI desc = new EventingEndpointDI(ext.getEventSourceNS(),
ext.getNotificationSchema(), ext.getNotificationRootElementNS());
desc.setEndpointAddress(epMetaData.getEndpointAddress());
- desc.setPortName(epMetaData.getPortComponentName());
+ desc.setPortName(epMetaData.getPortName());
SubscriptionManagerMBean manager = factory.getSubscriptionManager();
manager.registerEventSource(desc);
Modified:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/deployment/EventingEndpointDI.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/deployment/EventingEndpointDI.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/deployment/EventingEndpointDI.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -1,5 +1,7 @@
package org.jboss.ws.extensions.eventing.deployment;
+import javax.xml.namespace.QName;
+
/**
* Eventsource endpoint deployment info.
*
@@ -11,7 +13,7 @@
/* event source URI */
private String name;
- private String portName;
+ private QName portName;
// event source endpoint address
private String endpointAddress;
@@ -27,11 +29,11 @@
this.notificationRootElementNS = notificationRootElementNS;
}
- public String getPortName() {
+ public QName getPortName() {
return portName;
}
- public void setPortName(String portName) {
+ public void setPortName(QName portName) {
this.portName = portName;
}
Copied:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/EventSourceEndpoint.java
(from rev 1983,
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/EventSourceEndpoint.java)
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/EventSourceEndpoint.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/EventSourceEndpoint.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,45 @@
+/*
+ * 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.extensions.eventing.jaxrpc;
+
+// $Id$
+
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+
+import org.jboss.ws.extensions.eventing.jaxrpc.element.SubscribeRequest;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.SubscribeResponse;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.SubscriptionEndRequest;
+
+/**
+ * Event source endpoint interface.
+ *
+ * @author Heiko Braun, <heiko(a)openj.net>
+ * @since 24-Nov-2005
+ */
+public interface EventSourceEndpoint extends Remote
+{
+
+ SubscribeResponse subscribe(SubscribeRequest subscribeRequest) throws
RemoteException;
+
+ SubscriptionEndRequest subscriptionEnd() throws RemoteException;
+}
Property changes on:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/EventSourceEndpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Copied:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/EventSourceEndpointImpl.java
(from rev 1983,
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/EventSourceEndpointImpl.java)
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/EventSourceEndpointImpl.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/EventSourceEndpointImpl.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,111 @@
+/*
+ * 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.extensions.eventing.jaxrpc;
+
+// $Id$
+
+import java.rmi.RemoteException;
+
+import javax.xml.rpc.soap.SOAPFaultException;
+import javax.xml.ws.addressing.AddressingProperties;
+import javax.xml.ws.addressing.AttributedURI;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.EndpointReference;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.SubscribeRequest;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.SubscribeResponse;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.SubscriptionEndRequest;
+import org.jboss.ws.extensions.eventing.common.EventingEndpointBase;
+import org.jboss.ws.extensions.eventing.jaxrpc.EventSourceEndpoint;
+import org.jboss.ws.extensions.eventing.mgmt.*;
+import org.jboss.ws.extensions.eventing.EventingConstants;
+
+/**
+ * Event source endpoint implementation.<br>
+ * Delegates to {@link org.jboss.ws.extensions.eventing.mgmt.SubscriptionManager}
+ *
+ * @author Heiko Braun, <heiko(a)openj.net>
+ * @since 25-Nov-2005
+ */
+public class EventSourceEndpointImpl extends EventingEndpointBase
+ implements EventSourceEndpoint
+{
+ private static Logger log = Logger.getLogger(EventSourceEndpointImpl.class);
+
+ public SubscribeResponse subscribe(SubscribeRequest request) throws RemoteException
+ {
+ /*try
+ {
+ // retrieve addressing headers
+ AddressingProperties inProps = getAddrProperties();
+ AttributedURI eventSourceURI = inProps.getTo();
+ log.debug("Subscribe request for event source: " +
eventSourceURI.getURI());
+
+ assertSubscriberEndpoints(request);
+ EndpointReference notifyTo = request.getDelivery().getNotifyTo();
+ EndpointReference endTo = request.getEndTo();
+
+ // adapt filter elements
+ Filter filter = null;
+ if (request.getFilter() != null)
+ {
+ filter = new Filter(request.getFilter().getDialect(),
request.getFilter().get_value());
+ }
+
+ // invoke subscription manager
+ SubscriptionManagerMBean subscriptionManager = getSubscriptionManager();
+ SubscriptionTicket ticket =
subscriptionManager.subscribe(eventSourceURI.getURI(), notifyTo, endTo,
request.getExpires(), filter);
+
+ // create the response element
+ SubscribeResponse res = new SubscribeResponse();
+ res.setExpires(ticket.getExpires());
+ res.setSubscriptionManager(ticket.getSubscriptionManager());
+
+ return res;
+
+ }
+ catch (SubscriptionError e)
+ {
+ throw new SOAPFaultException(buildFaultQName(e.getSubcode()), e.getReason(),
null, null);
+ } */
+
+ return null;
+ }
+
+ public SubscriptionEndRequest subscriptionEnd() throws RemoteException
+ {
+ return new SubscriptionEndRequest();
+ }
+
+ /**
+ * Ensure that the subscriber endpoint information is supplied in request.
+ * Namely NotifyTo and EndTo need to be set.
+ * @param request
+ */
+ private void assertSubscriberEndpoints(SubscribeRequest request) {
+ if(null == request.getDelivery().getNotifyTo() || null == request.getEndTo() )
+ throw new SOAPFaultException(
buildFaultQName(EventingConstants.CODE_INVALID_MESSAGE) ,
+ "Subcriber endpoint information missing from request",
+ null, null
+ );
+ }
+}
Property changes on:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/EventSourceEndpointImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Copied:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/EventingService.java
(from rev 1983,
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/EventingService.java)
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/EventingService.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/EventingService.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -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.extensions.eventing.jaxrpc;
+
+// $Id$
+
+import javax.xml.rpc.Service;
+
+/**
+ * @author Heiko Braun, <heiko(a)openj.net>
+ * @since 24-Nov-2005
+ */
+public interface EventingService extends Service
+{
+}
Property changes on:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/EventingService.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Copied:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/SubscriptionManagerEndpoint.java
(from rev 1983,
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/SubscriptionManagerEndpoint.java)
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/SubscriptionManagerEndpoint.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/SubscriptionManagerEndpoint.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,49 @@
+/*
+ * 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.extensions.eventing.jaxrpc;
+
+// $Id$
+
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+
+import org.jboss.ws.extensions.eventing.jaxrpc.element.RenewRequest;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.RenewResponse;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.StatusRequest;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.StatusResponse;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.UnsubscribeRequest;
+
+/**
+ * Subscription manager endpoint interface.
+ *
+ * @author Heiko Braun, <heiko(a)openj.net>
+ * @since 16-Dec-2005
+ */
+public interface SubscriptionManagerEndpoint extends Remote
+{
+
+ StatusResponse getStatus(StatusRequest request) throws RemoteException;
+
+ RenewResponse renew(RenewRequest request) throws RemoteException;
+
+ void unsubscribe(UnsubscribeRequest request) throws RemoteException;
+}
Property changes on:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/SubscriptionManagerEndpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Copied:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/SubscriptionManagerEndpointImpl.java
(from rev 1983,
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/SubscriptionManagerEndpointImpl.java)
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/SubscriptionManagerEndpointImpl.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/SubscriptionManagerEndpointImpl.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,195 @@
+/*
+ * 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.extensions.eventing.jaxrpc;
+
+// $Id$
+
+import java.net.URI;
+import java.net.URISyntaxException;
+import java.rmi.RemoteException;
+import java.util.Date;
+
+import javax.xml.namespace.QName;
+import javax.xml.rpc.soap.SOAPFaultException;
+import javax.xml.ws.addressing.AddressingProperties;
+import javax.xml.ws.addressing.JAXWSAConstants;
+import javax.xml.ws.addressing.ReferenceParameters;
+
+import org.jboss.ws.Constants;
+import org.jboss.ws.core.CommonMessageContext;
+import org.jboss.ws.core.soap.MessageContextAssociation;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.RenewRequest;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.RenewResponse;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.StatusRequest;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.StatusResponse;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.UnsubscribeRequest;
+import org.jboss.ws.extensions.eventing.common.EventingEndpointBase;
+import org.jboss.ws.extensions.eventing.jaxrpc.SubscriptionManagerEndpoint;
+import org.jboss.ws.extensions.eventing.mgmt.SubscriptionError;
+import org.jboss.ws.extensions.eventing.EventingConstants;
+import org.w3c.dom.Element;
+
+/**
+ * SubscriptionManagerEndpoint endpoint implementation.<br>
+ * Delegates to {@link org.jboss.ws.extensions.eventing.mgmt.SubscriptionManager}
+ *
+ * @author Heiko Braun, <heiko(a)openj.net>
+ * @since 16-Dec-2005
+ */
+public class SubscriptionManagerEndpointImpl extends EventingEndpointBase
+ implements SubscriptionManagerEndpoint
+{
+
+ public static final QName IDQN = new
QName("http://schemas.xmlsoap.org/ws/2004/08/eventing", "Identifier",
"ns1");
+
+ /**
+ * Get the status of a subscription.
+ *
+ * @param request
+ * @return response including the lease time.
+ * @throws RemoteException
+ */
+ public StatusResponse getStatus(StatusRequest request) throws RemoteException
+ {
+ URI identifier = retrieveSubscriptionId();
+
+ try
+ {
+ Date leaseTime = getSubscriptionManager().getStatus(identifier);
+ StatusResponse response = new StatusResponse();
+ response.setExpires(leaseTime);
+
+ return response;
+ }
+ catch (SubscriptionError e)
+ {
+ throw new SOAPFaultException(buildFaultQName(e.getSubcode()), e.getReason(),
null, null);
+ }
+ }
+
+ /**
+ * Update the expiration for a subscription.
+ *
+ * @param request
+ * @return response inclduing the new lease time.
+ * @throws RemoteException
+ */
+ public RenewResponse renew(RenewRequest request) throws RemoteException
+ {
+ URI identifier = retrieveSubscriptionId();
+
+ try
+ {
+ Date newLeaseTime = getSubscriptionManager().renew(identifier,
request.getExpires());
+ RenewResponse response = new RenewResponse();
+ response.setExpires(newLeaseTime);
+
+ return response;
+ }
+ catch (SubscriptionError e)
+ {
+ throw new SOAPFaultException(buildFaultQName(e.getSubcode()), e.getReason(),
null, null);
+ }
+
+ }
+
+ /**
+ * Explicitly delete a subscription.
+ *
+ * @param request
+ * @throws RemoteException
+ */
+ public void unsubscribe(UnsubscribeRequest request) throws RemoteException
+ {
+ URI identifier = retrieveSubscriptionId();
+
+ try
+ {
+ getSubscriptionManager().unsubscribe(identifier);
+ }
+ catch (SubscriptionError e)
+ {
+ throw new SOAPFaultException(buildFaultQName(e.getSubcode()), e.getReason(),
null, null);
+ }
+
+ }
+
+ private URI retrieveSubscriptionId()
+ {
+ URI subscriptionId = null;
+ CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
+ AddressingProperties addrProps =
(AddressingProperties)msgContext.getProperty(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_INBOUND);
+
+ if (null == addrProps)
+ {
+ throw new SOAPFaultException(
+ Constants.SOAP11_FAULT_CODE_CLIENT,
+ "The message is not valid and cannot be processed:" +
+ "Cannot obtain addressing properties.",
+ null, null
+ );
+ }
+
+ ReferenceParameters refParams = addrProps.getReferenceParameters();
+ if (refParams != null)
+ {
+ for (Object obj : refParams.getElements())
+ {
+ if (obj instanceof Element)
+ {
+ Element el = (Element)obj;
+ QName qname = DOMUtils.getElementQName(el);
+ if (qname.equals(IDQN))
+ {
+ try
+ {
+ subscriptionId = new URI(DOMUtils.getTextContent(el));
+ break;
+ }
+ catch (URISyntaxException e)
+ {
+ throw new SOAPFaultException(
+ Constants.SOAP11_FAULT_CODE_CLIENT,
+ "The message is not valid and cannot be processed:"
+
+ "Invalid subscription id.",
+ null, null
+ );
+ }
+ }
+ }
+ }
+ }
+
+ if (null == subscriptionId)
+ {
+ throw new SOAPFaultException(
+ buildFaultQName(EventingConstants.CODE_INVALID_MESSAGE),
+ "The message is not valid and cannot be processed."
+ + "Cannot obtain subscription id.",
+ null, null
+ );
+ }
+
+ return subscriptionId;
+ }
+}
Property changes on:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/SubscriptionManagerEndpointImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Copied: trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element
(from rev 1983,
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/element)
Deleted:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/DeliveryType.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/element/DeliveryType.java 2007-01-16
14:29:43 UTC (rev 1983)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/DeliveryType.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -1,101 +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.extensions.eventing.element;
-
-// $Id$
-
-import java.net.URI;
-
-import javax.xml.soap.SOAPElement;
-
-/**
- * A delivery element states where and how to send notifications.
- * It can contain an EPR where the notifications should be delivered to:
- * <p/>
- * <pre>
- * <wse:Delivery>
- * <wse:NotifyTo>
- * <wsa:Address>
- *
http://www.other.example.com/OnStormWarning
- * </wsa:Address>
- * <wsa:ReferenceParameters>
- * <ew:MySubscription>2597</ew:MySubscription>
- * </wsa:ReferenceParameters>
- * </wse:NotifyTo>
- * </wse:Delivery>
- * </pre>
- * <p/>
- * NOTE: In case the NotifyTo is missing, the subscribers EPR should be used
- * (denoted by soap:Header/wsa:ReplyTo).<p>
- * <p/>
- * The specification defines single delivery mode,
- * Push Mode, which is simple asynchronous messaging.
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 24-Nov-2005
- */
-public class DeliveryType
-{
- private URI mode;
- private SOAPElement[] _any;
- public String _value;
- private EndpointReference notifyTo;
-
- public URI getMode()
- {
- return mode;
- }
-
- public void setMode(URI mode)
- {
- this.mode = mode;
- }
-
- public SOAPElement[] get_any()
- {
- return _any;
- }
-
- public void set_any(SOAPElement[] _any)
- {
- this._any = _any;
- }
-
- public EndpointReference getNotifyTo()
- {
- return notifyTo;
- }
-
- public void setNotifyTo(EndpointReference notifyTo)
- {
- this.notifyTo = notifyTo;
- }
- public String get_value()
- {
- return _value;
- }
-
- public void set_value(String _value)
- {
- this._value = _value;
- }
-}
Copied:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/DeliveryType.java
(from rev 1993,
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/element/DeliveryType.java)
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/DeliveryType.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/DeliveryType.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,101 @@
+/*
+ * 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.extensions.eventing.jaxrpc.element;
+
+// $Id$
+
+import java.net.URI;
+
+import javax.xml.soap.SOAPElement;
+
+/**
+ * A delivery element states where and how to send notifications.
+ * It can contain an EPR where the notifications should be delivered to:
+ * <p/>
+ * <pre>
+ * <wse:Delivery>
+ * <wse:NotifyTo>
+ * <wsa:Address>
+ *
http://www.other.example.com/OnStormWarning
+ * </wsa:Address>
+ * <wsa:ReferenceParameters>
+ * <ew:MySubscription>2597</ew:MySubscription>
+ * </wsa:ReferenceParameters>
+ * </wse:NotifyTo>
+ * </wse:Delivery>
+ * </pre>
+ * <p/>
+ * NOTE: In case the NotifyTo is missing, the subscribers EPR should be used
+ * (denoted by soap:Header/wsa:ReplyTo).<p>
+ * <p/>
+ * The specification defines single delivery mode,
+ * Push Mode, which is simple asynchronous messaging.
+ *
+ * @author Heiko Braun, <heiko(a)openj.net>
+ * @since 24-Nov-2005
+ */
+public class DeliveryType
+{
+ private URI mode;
+ private SOAPElement[] _any;
+ public String _value;
+ private EndpointReference notifyTo;
+
+ public URI getMode()
+ {
+ return mode;
+ }
+
+ public void setMode(URI mode)
+ {
+ this.mode = mode;
+ }
+
+ public SOAPElement[] get_any()
+ {
+ return _any;
+ }
+
+ public void set_any(SOAPElement[] _any)
+ {
+ this._any = _any;
+ }
+
+ public EndpointReference getNotifyTo()
+ {
+ return notifyTo;
+ }
+
+ public void setNotifyTo(EndpointReference notifyTo)
+ {
+ this.notifyTo = notifyTo;
+ }
+ public String get_value()
+ {
+ return _value;
+ }
+
+ public void set_value(String _value)
+ {
+ this._value = _value;
+ }
+}
Deleted:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/EndpointReference.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/element/EndpointReference.java 2007-01-16
14:29:43 UTC (rev 1983)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/EndpointReference.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -1,98 +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.extensions.eventing.element;
-
-// $Id$
-
-import java.net.URI;
-
-import javax.xml.soap.SOAPElement;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPFactory;
-
-import org.jboss.ws.core.soap.SOAPFactoryImpl;
-import org.jboss.ws.extensions.addressing.EndpointReferenceImpl;
-import org.jboss.ws.extensions.eventing.EventingConstants;
-
-/**
- * Simplified endpoint representation.
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 29-Nov-2005
- */
-public class EndpointReference
-{
- private URI address;
- private ReferenceParameters referenceParams;
- private MetaData metadata;
-
- public EndpointReference()
- {
- }
-
- public URI getAddress()
- {
- return address;
- }
-
- public void setAddress(URI address)
- {
- this.address = address;
- }
-
- public ReferenceParameters getReferenceParams()
- {
- return referenceParams;
- }
-
- public void setReferenceParams(ReferenceParameters referenceParams)
- {
- this.referenceParams = referenceParams;
- }
-
- public MetaData getMetadata()
- {
- return metadata;
- }
-
- public void setMetadata(MetaData metadata)
- {
- this.metadata = metadata;
- }
-
- public EndpointReferenceImpl toWsaEndpointReference() {
-
- try
- {
- EndpointReferenceImpl epr = new EndpointReferenceImpl(this.address);
- SOAPFactoryImpl factory = (SOAPFactoryImpl) SOAPFactory.newInstance();
- SOAPElement idEl = factory.createElement("Identifier",
"wse", EventingConstants.NS_EVENTING);
- idEl.setValue(this.referenceParams.getIdentifier().toString());
- epr.getReferenceParameters().addElement(idEl);
- return epr;
- }
- catch (SOAPException e)
- {
- throw new RuntimeException(e);
- }
- }
-}
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/EndpointReference.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/EndpointReference.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/EndpointReference.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,99 @@
+/*
+ * 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.extensions.eventing.jaxrpc.element;
+
+// $Id: EndpointReference.java 1757 2006-12-22 15:40:24Z thomas.diesler(a)jboss.com $
+
+import java.net.URI;
+
+import javax.xml.soap.SOAPElement;
+import javax.xml.soap.SOAPException;
+import javax.xml.soap.SOAPFactory;
+
+import org.jboss.ws.core.soap.SOAPFactoryImpl;
+import org.jboss.ws.extensions.addressing.EndpointReferenceImpl;
+import org.jboss.ws.extensions.eventing.EventingConstants;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.MetaData;
+
+/**
+ * Simplified endpoint representation.
+ *
+ * @author Heiko Braun, <heiko(a)openj.net>
+ * @since 29-Nov-2005
+ */
+public class EndpointReference
+{
+ private URI address;
+ private ReferenceParameters referenceParams;
+ private MetaData metadata;
+
+ public EndpointReference()
+ {
+ }
+
+ public URI getAddress()
+ {
+ return address;
+ }
+
+ public void setAddress(URI address)
+ {
+ this.address = address;
+ }
+
+ public ReferenceParameters getReferenceParams()
+ {
+ return referenceParams;
+ }
+
+ public void setReferenceParams(ReferenceParameters referenceParams)
+ {
+ this.referenceParams = referenceParams;
+ }
+
+ public MetaData getMetadata()
+ {
+ return metadata;
+ }
+
+ public void setMetadata(MetaData metadata)
+ {
+ this.metadata = metadata;
+ }
+
+ public EndpointReferenceImpl toWsaEndpointReference() {
+
+ try
+ {
+ EndpointReferenceImpl epr = new EndpointReferenceImpl(this.address);
+ SOAPFactoryImpl factory = (SOAPFactoryImpl) SOAPFactory.newInstance();
+ SOAPElement idEl = factory.createElement("Identifier",
"wse", EventingConstants.NS_EVENTING);
+ idEl.setValue(this.referenceParams.getIdentifier().toString());
+ epr.getReferenceParameters().addElement(idEl);
+ return epr;
+ }
+ catch (SOAPException e)
+ {
+ throw new RuntimeException(e);
+ }
+ }
+}
Deleted:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/FilterType.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/element/FilterType.java 2007-01-16
14:29:43 UTC (rev 1983)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/FilterType.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -1,80 +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.extensions.eventing.element;
-
-// $Id$
-
-import java.net.URI;
-
-import javax.xml.soap.SOAPElement;
-
-/**
- * A Boolean expression in some dialect,
- * either as a string or as an XML fragment. If the expression evaluates to false
- * for a notification, the notification MUST NOT be sent to the event sink.
- * <p/>
- * The value must be a XPath predicate expression (PredicateExpr).
- * <p/>
- * <br>
- * For further information see
<
code>http://www.w3.org/TR/xpath#predicates</code>.
- *
- * @see org.jboss.ws.extensions.eventing.mgmt.Filter
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 24-Nov-2005
- */
-public class FilterType
-{
- private URI dialect;
- private SOAPElement[] _any;
- public String _value;
-
- public URI getDialect()
- {
- return dialect;
- }
-
- public void setDialect(URI dialect)
- {
- this.dialect = dialect;
- }
-
- public SOAPElement[] get_any()
- {
- return _any;
- }
-
- public void set_any(SOAPElement[] _any)
- {
- this._any = _any;
- }
-
- public String get_value()
- {
- return _value;
- }
-
- public void set_value(String _value)
- {
- this._value = _value;
- }
-}
Copied:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/FilterType.java
(from rev 1993,
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/element/FilterType.java)
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/FilterType.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/FilterType.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,80 @@
+/*
+ * 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.extensions.eventing.jaxrpc.element;
+
+// $Id$
+
+import java.net.URI;
+
+import javax.xml.soap.SOAPElement;
+
+/**
+ * A Boolean expression in some dialect,
+ * either as a string or as an XML fragment. If the expression evaluates to false
+ * for a notification, the notification MUST NOT be sent to the event sink.
+ * <p/>
+ * The value must be a XPath predicate expression (PredicateExpr).
+ * <p/>
+ * <br>
+ * For further information see
<
code>http://www.w3.org/TR/xpath#predicates</code>.
+ *
+ * @see org.jboss.ws.extensions.eventing.mgmt.Filter
+ *
+ * @author Heiko Braun, <heiko(a)openj.net>
+ * @since 24-Nov-2005
+ */
+public class FilterType
+{
+ private URI dialect;
+ private SOAPElement[] _any;
+ public String _value;
+
+ public URI getDialect()
+ {
+ return dialect;
+ }
+
+ public void setDialect(URI dialect)
+ {
+ this.dialect = dialect;
+ }
+
+ public SOAPElement[] get_any()
+ {
+ return _any;
+ }
+
+ public void set_any(SOAPElement[] _any)
+ {
+ this._any = _any;
+ }
+
+ public String get_value()
+ {
+ return _value;
+ }
+
+ public void set_value(String _value)
+ {
+ this._value = _value;
+ }
+}
Deleted:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/MetaData.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/element/MetaData.java 2007-01-16
14:29:43 UTC (rev 1983)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/MetaData.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -1,47 +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.extensions.eventing.element;
-
-// $Id$
-
-import javax.xml.soap.SOAPElement;
-
-/**
- * Endpoint meta data.
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 29-Nov-2005
- */
-public class MetaData
-{
- private SOAPElement[] _any;
-
- public SOAPElement[] get_any()
- {
- return _any;
- }
-
- public void set_any(SOAPElement[] _any)
- {
- this._any = _any;
- }
-}
Copied:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/MetaData.java
(from rev 1993,
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/element/MetaData.java)
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/MetaData.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/MetaData.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -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.extensions.eventing.jaxrpc.element;
+
+// $Id$
+
+import javax.xml.soap.SOAPElement;
+
+/**
+ * Endpoint meta data.
+ *
+ * @author Heiko Braun, <heiko(a)openj.net>
+ * @since 29-Nov-2005
+ */
+public class MetaData
+{
+ private SOAPElement[] _any;
+
+ public SOAPElement[] get_any()
+ {
+ return _any;
+ }
+
+ public void set_any(SOAPElement[] _any)
+ {
+ this._any = _any;
+ }
+}
Deleted:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/NotificationFailure.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/element/NotificationFailure.java 2007-01-16
14:29:43 UTC (rev 1983)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/NotificationFailure.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -1,86 +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.extensions.eventing.element;
-
-import java.net.URI;
-
-import org.jboss.ws.core.utils.DOMWriter;
-import org.w3c.dom.Element;
-
-/**
- * Represent an error during notification.
- *
- * @author Stefano Maestri <stefano.maestri(a)javalinux.it>, Alessio Soldano
<alessio.soldano(a)javalinux.it>
- * @since 26/11/2006
- */
-
-public class NotificationFailure
-{
- private URI endTo;
- private Element event;
- private Exception exception;
-
- public NotificationFailure(URI endTo, Element event, Exception exception)
- {
- super();
- this.endTo = endTo;
- this.event = event;
- this.exception = exception;
- }
- public URI getEndTo()
- {
- return endTo;
- }
- public void setEndTo(URI endTo)
- {
- this.endTo = endTo;
- }
- public Element getEvent()
- {
- return event;
- }
- public void setEvent(Element event)
- {
- this.event = event;
- }
- public Exception getException()
- {
- return exception;
- }
- public void setException(Exception exception)
- {
- this.exception = exception;
- }
-
- public String toString() {
- StringBuffer sb = new StringBuffer();
- sb.append("endTo: ");
- sb.append(endTo);
- sb.append("\n\nevent: ");
- sb.append(DOMWriter.printNode(event, false));
- sb.append("\n\nexception: ");
- sb.append(exception);
- sb.append("\n*******************\n");
- return sb.toString();
- }
-
-}
Deleted:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/ReferenceParameters.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/element/ReferenceParameters.java 2007-01-16
14:29:43 UTC (rev 1983)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/ReferenceParameters.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -1,56 +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.extensions.eventing.element;
-
-// $Id$
-
-import java.net.URI;
-
-/**
- * A hack that makes eventing work without support for xml wildcards.
- *
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 16-Dec-2005
- */
-public class ReferenceParameters
-{
- private URI identifier;
-
- public ReferenceParameters()
- {
- }
-
- public ReferenceParameters(URI identifier)
- {
- this.identifier = identifier;
- }
-
- public URI getIdentifier()
- {
- return identifier;
- }
-
- public void setIdentifier(URI identifier)
- {
- this.identifier = identifier;
- }
-}
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/ReferenceParameters.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/ReferenceParameters.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/ReferenceParameters.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,56 @@
+/*
+ * 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.extensions.eventing.jaxrpc.element;
+
+// $Id: ReferenceParameters.java 1757 2006-12-22 15:40:24Z thomas.diesler(a)jboss.com $
+
+import java.net.URI;
+
+/**
+ * A hack that makes eventing work without support for xml wildcards.
+ *
+ * @author Heiko Braun, <heiko(a)openj.net>
+ * @since 16-Dec-2005
+ */
+public class ReferenceParameters
+{
+ private URI identifier;
+
+ public ReferenceParameters()
+ {
+ }
+
+ public ReferenceParameters(URI identifier)
+ {
+ this.identifier = identifier;
+ }
+
+ public URI getIdentifier()
+ {
+ return identifier;
+ }
+
+ public void setIdentifier(URI identifier)
+ {
+ this.identifier = identifier;
+ }
+}
Deleted:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/RenewRequest.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/element/RenewRequest.java 2007-01-16
14:29:43 UTC (rev 1983)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/RenewRequest.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -1,45 +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.extensions.eventing.element;
-
-// $Id$
-
-import java.util.Date;
-
-/**
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 02-Dec-2005
- */
-public class RenewRequest
-{
- private Date expires;
-
- public Date getExpires()
- {
- return expires;
- }
-
- public void setExpires(Date expires)
- {
- this.expires = expires;
- }
-}
Copied:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/RenewRequest.java
(from rev 1993,
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/element/RenewRequest.java)
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/RenewRequest.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/RenewRequest.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,45 @@
+/*
+ * 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.extensions.eventing.jaxrpc.element;
+
+// $Id$
+
+import java.util.Date;
+
+/**
+ * @author Heiko Braun, <heiko(a)openj.net>
+ * @since 02-Dec-2005
+ */
+public class RenewRequest
+{
+ private Date expires;
+
+ public Date getExpires()
+ {
+ return expires;
+ }
+
+ public void setExpires(Date expires)
+ {
+ this.expires = expires;
+ }
+}
Deleted:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/RenewResponse.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/element/RenewResponse.java 2007-01-16
14:29:43 UTC (rev 1983)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/RenewResponse.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -1,45 +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.extensions.eventing.element;
-
-// $Id$
-
-import java.util.Date;
-
-/**
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 19-Dec-2005
- */
-public class RenewResponse
-{
- private Date expires;
-
- public Date getExpires()
- {
- return expires;
- }
-
- public void setExpires(Date expires)
- {
- this.expires = expires;
- }
-}
Copied:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/RenewResponse.java
(from rev 1993,
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/element/RenewResponse.java)
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/RenewResponse.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/RenewResponse.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,45 @@
+/*
+ * 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.extensions.eventing.jaxrpc.element;
+
+// $Id$
+
+import java.util.Date;
+
+/**
+ * @author Heiko Braun, <heiko(a)openj.net>
+ * @since 19-Dec-2005
+ */
+public class RenewResponse
+{
+ private Date expires;
+
+ public Date getExpires()
+ {
+ return expires;
+ }
+
+ public void setExpires(Date expires)
+ {
+ this.expires = expires;
+ }
+}
Deleted:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/StatusRequest.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/element/StatusRequest.java 2007-01-16
14:29:43 UTC (rev 1983)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/StatusRequest.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -1,41 +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.extensions.eventing.element;
-
-import javax.xml.soap.SOAPElement;
-
-/**
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 19-Dec-2005
- */
-public class StatusRequest
-{
- private SOAPElement _any;
-
- public SOAPElement get_any() {
- return _any;
- }
-
- public void set_any(SOAPElement _any) {
- this._any = _any;
- }
-}
Copied:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/StatusRequest.java
(from rev 1993,
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/element/StatusRequest.java)
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/StatusRequest.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/StatusRequest.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,41 @@
+/*
+ * 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.extensions.eventing.jaxrpc.element;
+
+import javax.xml.soap.SOAPElement;
+
+/**
+ * @author Heiko Braun, <heiko(a)openj.net>
+ * @since 19-Dec-2005
+ */
+public class StatusRequest
+{
+ private SOAPElement _any;
+
+ public SOAPElement get_any() {
+ return _any;
+ }
+
+ public void set_any(SOAPElement _any) {
+ this._any = _any;
+ }
+}
Deleted:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/StatusResponse.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/element/StatusResponse.java 2007-01-16
14:29:43 UTC (rev 1983)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/StatusResponse.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -1,45 +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.extensions.eventing.element;
-
-// $Id$
-
-import java.util.Date;
-
-/**
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 19-Dec-2005
- */
-public class StatusResponse
-{
- private Date expires;
-
- public Date getExpires()
- {
- return expires;
- }
-
- public void setExpires(Date expires)
- {
- this.expires = expires;
- }
-}
Copied:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/StatusResponse.java
(from rev 1993,
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/element/StatusResponse.java)
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/StatusResponse.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/StatusResponse.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,45 @@
+/*
+ * 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.extensions.eventing.jaxrpc.element;
+
+// $Id$
+
+import java.util.Date;
+
+/**
+ * @author Heiko Braun, <heiko(a)openj.net>
+ * @since 19-Dec-2005
+ */
+public class StatusResponse
+{
+ private Date expires;
+
+ public Date getExpires()
+ {
+ return expires;
+ }
+
+ public void setExpires(Date expires)
+ {
+ this.expires = expires;
+ }
+}
Deleted:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/SubscribeRequest.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/element/SubscribeRequest.java 2007-01-16
14:29:43 UTC (rev 1983)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/SubscribeRequest.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -1,97 +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.extensions.eventing.element;
-
-// $Id$
-
-import java.util.Date;
-
-import javax.xml.soap.SOAPElement;
-
-/**
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 24-Nov-2005
- */
-public class SubscribeRequest
-{
- private EndpointReference endTo;
- private DeliveryType delivery;
- private Date expires;
- private FilterType filter;
-
- private SOAPElement[] _any;
-
- public EndpointReference getEndTo()
- {
- return endTo;
- }
-
- public void setEndTo(EndpointReference endTo)
- {
- this.endTo = endTo;
- }
-
- public org.jboss.ws.extensions.eventing.element.DeliveryType getDelivery()
- {
- return delivery;
- }
-
- public void setDelivery(DeliveryType delivery)
- {
- this.delivery = delivery;
- }
-
- public Date getExpires()
- {
- return expires;
- }
-
- public void setExpires(Date expires)
- {
- this.expires = expires;
- }
-
- public FilterType getFilter()
- {
- return filter;
- }
-
- public void setFilter(FilterType filter)
- {
- this.filter = filter;
- }
-
- public SOAPElement[] get_any()
- {
- return _any;
- }
-
- public void set_any(SOAPElement[] _any)
- {
- this._any = _any;
- }
-
- public String toString()
- {
- return "SubscribeRequest{" + "delivery=" + getDelivery() +
"}";
- }
-}
Copied:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/SubscribeRequest.java
(from rev 1993,
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/element/SubscribeRequest.java)
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/SubscribeRequest.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/SubscribeRequest.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,97 @@
+/*
+ * 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.extensions.eventing.jaxrpc.element;
+
+// $Id$
+
+import java.util.Date;
+
+import javax.xml.soap.SOAPElement;
+
+/**
+ * @author Heiko Braun, <heiko(a)openj.net>
+ * @since 24-Nov-2005
+ */
+public class SubscribeRequest
+{
+ private EndpointReference endTo;
+ private DeliveryType delivery;
+ private Date expires;
+ private FilterType filter;
+
+ private SOAPElement[] _any;
+
+ public EndpointReference getEndTo()
+ {
+ return endTo;
+ }
+
+ public void setEndTo(EndpointReference endTo)
+ {
+ this.endTo = endTo;
+ }
+
+ public org.jboss.ws.extensions.eventing.jaxrpc.element.DeliveryType getDelivery()
+ {
+ return delivery;
+ }
+
+ public void setDelivery(DeliveryType delivery)
+ {
+ this.delivery = delivery;
+ }
+
+ public Date getExpires()
+ {
+ return expires;
+ }
+
+ public void setExpires(Date expires)
+ {
+ this.expires = expires;
+ }
+
+ public FilterType getFilter()
+ {
+ return filter;
+ }
+
+ public void setFilter(FilterType filter)
+ {
+ this.filter = filter;
+ }
+
+ public SOAPElement[] get_any()
+ {
+ return _any;
+ }
+
+ public void set_any(SOAPElement[] _any)
+ {
+ this._any = _any;
+ }
+
+ public String toString()
+ {
+ return "SubscribeRequest{" + "delivery=" + getDelivery() +
"}";
+ }
+}
Deleted:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/SubscribeResponse.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/element/SubscribeResponse.java 2007-01-16
14:29:43 UTC (rev 1983)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/SubscribeResponse.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -1,57 +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.extensions.eventing.element;
-
-// $Id$
-
-import java.util.Date;
-
-/**
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 24-Nov-2005
- */
-public class SubscribeResponse
-{
- private org.jboss.ws.extensions.eventing.element.EndpointReference
subscriptionManager;
- private Date expires;
-
- public EndpointReference getSubscriptionManager()
- {
- return subscriptionManager;
- }
-
- public void setSubscriptionManager(EndpointReference subscriptionManager)
- {
- this.subscriptionManager = subscriptionManager;
- }
-
- public Date getExpires()
- {
- return expires;
- }
-
- public void setExpires(Date expires)
- {
- this.expires = expires;
- }
-
-}
Copied:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/SubscribeResponse.java
(from rev 1993,
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/element/SubscribeResponse.java)
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/SubscribeResponse.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/SubscribeResponse.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,57 @@
+/*
+ * 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.extensions.eventing.jaxrpc.element;
+
+// $Id$
+
+import java.util.Date;
+
+/**
+ * @author Heiko Braun, <heiko(a)openj.net>
+ * @since 24-Nov-2005
+ */
+public class SubscribeResponse
+{
+ private org.jboss.ws.extensions.eventing.jaxrpc.element.EndpointReference
subscriptionManager;
+ private Date expires;
+
+ public EndpointReference getSubscriptionManager()
+ {
+ return subscriptionManager;
+ }
+
+ public void setSubscriptionManager(EndpointReference subscriptionManager)
+ {
+ this.subscriptionManager = subscriptionManager;
+ }
+
+ public Date getExpires()
+ {
+ return expires;
+ }
+
+ public void setExpires(Date expires)
+ {
+ this.expires = expires;
+ }
+
+}
Deleted:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/SubscriptionEndRequest.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/element/SubscriptionEndRequest.java 2007-01-16
14:29:43 UTC (rev 1983)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/SubscriptionEndRequest.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -1,74 +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.extensions.eventing.element;
-
-// $Id$
-
-import java.net.URI;
-
-import org.jboss.ws.extensions.addressing.EndpointReferenceImpl;
-
-/**
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 25-Nov-2005
- */
-public class SubscriptionEndRequest
-{
- EndpointReferenceImpl subscriptionManager;
- URI code;
- String reason;
-
- public EndpointReferenceImpl getSubscriptionManager()
- {
- return subscriptionManager;
- }
-
- /**
- * todo: remove, since this is one-way op
- *
- * @param subscriptionManager
- */
- public void setSubscriptionManager(EndpointReferenceImpl subscriptionManager)
- {
- this.subscriptionManager = subscriptionManager;
- }
-
- public URI getCode()
- {
- return code;
- }
-
- public void setCode(URI code)
- {
- this.code = code;
- }
-
- public String getReason()
- {
- return reason;
- }
-
- public void setReason(String reason)
- {
- this.reason = reason;
- }
-}
Copied:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/SubscriptionEndRequest.java
(from rev 1993,
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/element/SubscriptionEndRequest.java)
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/SubscriptionEndRequest.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/SubscriptionEndRequest.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -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.extensions.eventing.jaxrpc.element;
+
+// $Id$
+
+import java.net.URI;
+
+import org.jboss.ws.extensions.addressing.EndpointReferenceImpl;
+
+/**
+ * @author Heiko Braun, <heiko(a)openj.net>
+ * @since 25-Nov-2005
+ */
+public class SubscriptionEndRequest
+{
+ EndpointReferenceImpl subscriptionManager;
+ URI code;
+ String reason;
+
+ public EndpointReferenceImpl getSubscriptionManager()
+ {
+ return subscriptionManager;
+ }
+
+ /**
+ * todo: remove, since this is one-way op
+ *
+ * @param subscriptionManager
+ */
+ public void setSubscriptionManager(EndpointReferenceImpl subscriptionManager)
+ {
+ this.subscriptionManager = subscriptionManager;
+ }
+
+ public URI getCode()
+ {
+ return code;
+ }
+
+ public void setCode(URI code)
+ {
+ this.code = code;
+ }
+
+ public String getReason()
+ {
+ return reason;
+ }
+
+ public void setReason(String reason)
+ {
+ this.reason = reason;
+ }
+}
Deleted:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/UnsubscribeRequest.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/element/UnsubscribeRequest.java 2007-01-16
14:29:43 UTC (rev 1983)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/UnsubscribeRequest.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -1,61 +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.extensions.eventing.element;
-
-// $Id$
-
-import java.net.URI;
-
-import javax.xml.soap.SOAPElement;
-
-/**
- * @author Heiko Braun, <heiko(a)openj.net>
- * @since 19-Dec-2005
- */
-public class UnsubscribeRequest
-{
- private URI identifier;
- private SOAPElement _any;
-
- public UnsubscribeRequest() {
- }
-
- public UnsubscribeRequest(URI identifier) {
- this.identifier = identifier;
- }
- public URI getIdentifier()
- {
- return identifier;
- }
-
- public void setIdentifier(URI identifier)
- {
- this.identifier = identifier;
- }
- public SOAPElement get_any() {
- return _any;
- }
-
- public void set_any(SOAPElement _any) {
- this._any = _any;
- }
-}
Copied:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/UnsubscribeRequest.java
(from rev 1993,
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/element/UnsubscribeRequest.java)
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/UnsubscribeRequest.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/element/UnsubscribeRequest.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -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.extensions.eventing.jaxrpc.element;
+
+// $Id$
+
+import java.net.URI;
+
+import javax.xml.soap.SOAPElement;
+
+/**
+ * @author Heiko Braun, <heiko(a)openj.net>
+ * @since 19-Dec-2005
+ */
+public class UnsubscribeRequest
+{
+ private URI identifier;
+ private SOAPElement _any;
+
+ public UnsubscribeRequest() {
+ }
+
+ public UnsubscribeRequest(URI identifier) {
+ this.identifier = identifier;
+ }
+ public URI getIdentifier()
+ {
+ return identifier;
+ }
+
+ public void setIdentifier(URI identifier)
+ {
+ this.identifier = identifier;
+ }
+ public SOAPElement get_any() {
+ return _any;
+ }
+
+ public void set_any(SOAPElement _any) {
+ this._any = _any;
+ }
+}
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/AttributedAnyType.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/AttributedAnyType.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/AttributedAnyType.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,106 @@
+/*
+ * 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.extensions.eventing.jaxws;
+
+import org.w3c.dom.Element;
+
+import javax.xml.bind.annotation.*;
+import javax.xml.namespace.QName;
+import java.util.HashMap;
+import java.util.Map;
+
+
+/**
+ * <p>Java class for AttributedAnyType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="AttributedAnyType">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <any/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "AttributedAnyType", namespace =
"http://www.w3.org/2005/08/addressing", propOrder = {
+ "any"
+})
+public class AttributedAnyType {
+
+ @XmlAnyElement(lax = true)
+ protected Object any;
+ @XmlAnyAttribute
+ private Map<QName, String> otherAttributes = new HashMap<QName,
String>();
+
+ /**
+ * Gets the value of the any property.
+ *
+ * @return
+ * possible object is
+ * {@link Element }
+ * {@link Object }
+ *
+ */
+ public Object getAny() {
+ return any;
+ }
+
+ /**
+ * Sets the value of the any property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Element }
+ * {@link Object }
+ *
+ */
+ public void setAny(Object value) {
+ this.any = value;
+ }
+
+ /**
+ * Gets a map that contains attributes that aren't bound to any typed property on
this class.
+ *
+ * <p>
+ * the map is keyed by the name of the attribute and
+ * the value is the string value of the attribute.
+ *
+ * the map returned by this method is live, and you can add new attribute
+ * by updating the map directly. Because of this design, there's no setter.
+ *
+ *
+ * @return
+ * always non-null
+ */
+ public Map<QName, String> getOtherAttributes() {
+ return otherAttributes;
+ }
+
+}
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/AttributedQNameType.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/AttributedQNameType.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/AttributedQNameType.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,99 @@
+/*
+ * 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.extensions.eventing.jaxws;
+
+import javax.xml.bind.annotation.*;
+import javax.xml.namespace.QName;
+import java.util.HashMap;
+import java.util.Map;
+
+
+/**
+ * <p>Java class for AttributedQNameType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="AttributedQNameType">
+ * <simpleContent>
+ * <extension
base="<http://www.w3.org/2001/XMLSchema>QName">
+ * </extension>
+ * </simpleContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "AttributedQNameType", namespace =
"http://www.w3.org/2005/08/addressing", propOrder = {
+ "value"
+})
+public class AttributedQNameType {
+
+ @XmlValue
+ protected QName value;
+ @XmlAnyAttribute
+ private Map<QName, String> otherAttributes = new HashMap<QName,
String>();
+
+ /**
+ * Gets the value of the value property.
+ *
+ * @return
+ * possible object is
+ * {@link QName }
+ *
+ */
+ public QName getValue() {
+ return value;
+ }
+
+ /**
+ * Sets the value of the value property.
+ *
+ * @param value
+ * allowed object is
+ * {@link QName }
+ *
+ */
+ public void setValue(QName value) {
+ this.value = value;
+ }
+
+ /**
+ * Gets a map that contains attributes that aren't bound to any typed property on
this class.
+ *
+ * <p>
+ * the map is keyed by the name of the attribute and
+ * the value is the string value of the attribute.
+ *
+ * the map returned by this method is live, and you can add new attribute
+ * by updating the map directly. Because of this design, there's no setter.
+ *
+ *
+ * @return
+ * always non-null
+ */
+ public Map<QName, String> getOtherAttributes() {
+ return otherAttributes;
+ }
+
+}
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/AttributedURIType.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/AttributedURIType.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/AttributedURIType.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,100 @@
+/*
+ * 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.extensions.eventing.jaxws;
+
+
+import javax.xml.bind.annotation.*;
+import javax.xml.namespace.QName;
+import java.util.HashMap;
+import java.util.Map;
+
+
+/**
+ * <p>Java class for AttributedURIType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="AttributedURIType">
+ * <simpleContent>
+ * <extension
base="<http://www.w3.org/2001/XMLSchema>anyURI">
+ * </extension>
+ * </simpleContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "AttributedURIType", namespace =
"http://www.w3.org/2005/08/addressing", propOrder = {
+ "value"
+})
+public class AttributedURIType {
+
+ @XmlValue
+ protected String value;
+ @XmlAnyAttribute
+ private Map<QName, String> otherAttributes = new HashMap<QName,
String>();
+
+ /**
+ * Gets the value of the value property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getValue() {
+ return value;
+ }
+
+ /**
+ * Sets the value of the value property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Gets a map that contains attributes that aren't bound to any typed property on
this class.
+ *
+ * <p>
+ * the map is keyed by the name of the attribute and
+ * the value is the string value of the attribute.
+ *
+ * the map returned by this method is live, and you can add new attribute
+ * by updating the map directly. Because of this design, there's no setter.
+ *
+ *
+ * @return
+ * always non-null
+ */
+ public Map<QName, String> getOtherAttributes() {
+ return otherAttributes;
+ }
+
+}
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/AttributedUnsignedLongType.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/AttributedUnsignedLongType.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/AttributedUnsignedLongType.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,101 @@
+/*
+ * 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.extensions.eventing.jaxws;
+
+
+import javax.xml.bind.annotation.*;
+import javax.xml.namespace.QName;
+import java.math.BigInteger;
+import java.util.HashMap;
+import java.util.Map;
+
+
+/**
+ * <p>Java class for AttributedUnsignedLongType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="AttributedUnsignedLongType">
+ * <simpleContent>
+ * <extension
base="<http://www.w3.org/2001/XMLSchema>unsignedLong"...
+ * </extension>
+ * </simpleContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "AttributedUnsignedLongType", namespace =
"http://www.w3.org/2005/08/addressing", propOrder = {
+ "value"
+})
+public class AttributedUnsignedLongType {
+
+ @XmlValue
+ protected BigInteger value;
+ @XmlAnyAttribute
+ private Map<QName, String> otherAttributes = new HashMap<QName,
String>();
+
+ /**
+ * Gets the value of the value property.
+ *
+ * @return
+ * possible object is
+ * {@link BigInteger }
+ *
+ */
+ public BigInteger getValue() {
+ return value;
+ }
+
+ /**
+ * Sets the value of the value property.
+ *
+ * @param value
+ * allowed object is
+ * {@link BigInteger }
+ *
+ */
+ public void setValue(BigInteger value) {
+ this.value = value;
+ }
+
+ /**
+ * Gets a map that contains attributes that aren't bound to any typed property on
this class.
+ *
+ * <p>
+ * the map is keyed by the name of the attribute and
+ * the value is the string value of the attribute.
+ *
+ * the map returned by this method is live, and you can add new attribute
+ * by updating the map directly. Because of this design, there's no setter.
+ *
+ *
+ * @return
+ * always non-null
+ */
+ public Map<QName, String> getOtherAttributes() {
+ return otherAttributes;
+ }
+
+}
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/DeliveryType.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/DeliveryType.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/DeliveryType.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,160 @@
+/*
+ * 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.extensions.eventing.jaxws;
+
+import org.w3c.dom.Element;
+
+import javax.xml.bind.annotation.*;
+import javax.xml.bind.JAXBElement;
+import javax.xml.namespace.QName;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+
+/**
+ * <p>Java class for DeliveryType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="DeliveryType">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <any/>
+ * </sequence>
+ * <attribute name="Mode"
type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "DeliveryType", propOrder = {
+ "content"
+})
+public class DeliveryType {
+
+ @XmlMixed
+ @XmlAnyElement(lax = true)
+ protected List<Object> content;
+ @XmlAttribute(name = "Mode")
+ protected String mode;
+ @XmlAnyAttribute
+ private Map<QName, String> otherAttributes = new HashMap<QName,
String>();
+
+ /**
+ * Gets the value of the content property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the content
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getContent().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Element }
+ * {@link String }
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getContent() {
+ if (content == null) {
+ content = new ArrayList<Object>();
+ }
+ return this.content;
+ }
+
+ /**
+ * Gets the value of the mode property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getMode() {
+ return mode;
+ }
+
+ /**
+ * Sets the value of the mode property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setMode(String value) {
+ this.mode = value;
+ }
+
+ /**
+ * Gets a map that contains attributes that aren't bound to any typed property on
this class.
+ *
+ * <p>
+ * the map is keyed by the name of the attribute and
+ * the value is the string value of the attribute.
+ *
+ * the map returned by this method is live, and you can add new attribute
+ * by updating the map directly. Because of this design, there's no setter.
+ *
+ *
+ * @return
+ * always non-null
+ */
+ public Map<QName, String> getOtherAttributes() {
+ return otherAttributes;
+ }
+
+ public void setNotifyTo(EndpointReferenceType o)
+ {
+ getContent().add(
+ new JAXBElement(
+ new
QName("http://schemas.xmlsoap.org/ws/2004/08/eventing",
"NotifyTo"),
+ EndpointReferenceType.class, o
+ )
+ );
+ }
+
+ public EndpointReferenceType getNotifyTo()
+ {
+ if(getContent().isEmpty())
+ return null;
+
+ JAXBElement<EndpointReferenceType> jaxbElement =
(JAXBElement<EndpointReferenceType>) this.content.get(0);
+ return jaxbElement.getValue();
+ }
+}
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/EndpointReferenceType.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/EndpointReferenceType.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/EndpointReferenceType.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,196 @@
+/*
+ * 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.extensions.eventing.jaxws;
+
+import org.w3c.dom.Element;
+
+import javax.xml.bind.annotation.*;
+import javax.xml.namespace.QName;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+
+/**
+ * <p>Java class for EndpointReferenceType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="EndpointReferenceType">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="Address"
type="{http://www.w3.org/2005/08/addressing}AttributedURIType"/...
+ * <element name="ReferenceParameters"
type="{http://www.w3.org/2005/08/addressing}ReferenceParametersType&...
minOccurs="0"/>
+ * <element
ref="{http://www.w3.org/2005/08/addressing}Metadata"
minOccurs="0"/>
+ * <any/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "EndpointReferenceType", namespace =
"http://www.w3.org/2005/08/addressing", propOrder = {
+ "address",
+ "referenceParameters",
+ "metadata",
+ "any"
+})
+public class EndpointReferenceType {
+
+ @XmlElement(name = "Address", namespace =
"http://www.w3.org/2005/08/addressing")
+ protected AttributedURIType address;
+ @XmlElement(name = "ReferenceParameters", namespace =
"http://www.w3.org/2005/08/addressing")
+ protected ReferenceParametersType referenceParameters;
+ @XmlElement(name = "Metadata", namespace =
"http://www.w3.org/2005/08/addressing")
+ protected MetadataType metadata;
+ @XmlAnyElement(lax = true)
+ protected List<Object> any;
+ @XmlAnyAttribute
+ private Map<QName, String> otherAttributes = new HashMap<QName,
String>();
+
+ /**
+ * Gets the value of the address property.
+ *
+ * @return
+ * possible object is
+ * {@link AttributedURIType }
+ *
+ */
+ public AttributedURIType getAddress() {
+ return address;
+ }
+
+ /**
+ * Sets the value of the address property.
+ *
+ * @param value
+ * allowed object is
+ * {@link AttributedURIType }
+ *
+ */
+ public void setAddress(AttributedURIType value) {
+ this.address = value;
+ }
+
+ /**
+ * Gets the value of the referenceParameters property.
+ *
+ * @return
+ * possible object is
+ * {@link ReferenceParametersType }
+ *
+ */
+ public ReferenceParametersType getReferenceParameters() {
+ return referenceParameters;
+ }
+
+ /**
+ * Sets the value of the referenceParameters property.
+ *
+ * @param value
+ * allowed object is
+ * {@link ReferenceParametersType }
+ *
+ */
+ public void setReferenceParameters(ReferenceParametersType value) {
+ this.referenceParameters = value;
+ }
+
+ /**
+ * Gets the value of the metadata property.
+ *
+ * @return
+ * possible object is
+ * {@link MetadataType }
+ *
+ */
+ public MetadataType getMetadata() {
+ return metadata;
+ }
+
+ /**
+ * Sets the value of the metadata property.
+ *
+ * @param value
+ * allowed object is
+ * {@link MetadataType }
+ *
+ */
+ public void setMetadata(MetadataType value) {
+ this.metadata = value;
+ }
+
+ /**
+ * Gets the value of the any property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the any
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Element }
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets a map that contains attributes that aren't bound to any typed property on
this class.
+ *
+ * <p>
+ * the map is keyed by the name of the attribute and
+ * the value is the string value of the attribute.
+ *
+ * the map returned by this method is live, and you can add new attribute
+ * by updating the map directly. Because of this design, there's no setter.
+ *
+ *
+ * @return
+ * always non-null
+ */
+ public Map<QName, String> getOtherAttributes() {
+ return otherAttributes;
+ }
+
+}
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/EventSourceEndpoint.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/EventSourceEndpoint.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/EventSourceEndpoint.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -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.extensions.eventing.jaxws;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.jws.soap.SOAPBinding.ParameterStyle;
+import javax.xml.ws.addressing.Action;
+
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.0-b26-ea3
+ * Generated source version: 2.0
+ *
+ */
+@WebService(name = "EventSource", targetNamespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing")
+@SOAPBinding(parameterStyle = ParameterStyle.WRAPPED)
+public interface EventSourceEndpoint {
+
+
+ /**
+ *
+ * @param body
+ * @return
+ * returns org.jboss.ws.extensions.eventing.jaxws.SubscribeResponse
+ */
+ @WebMethod(operationName = "SubscribeOp")
+ @WebResult(name = "SubscribeResponse", targetNamespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing", partName = "body")
+ @Action(
+ input = "http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe",
+ output =
"http://schemas.xmlsoap.org/ws/2004/08/eventing/SubscribeResponse"
+ )
+ public SubscribeResponse subscribeOp(
+ @WebParam(name = "Subscribe", targetNamespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing", partName = "body")
+ Subscribe body);
+
+}
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/EventSourceEndpointImpl.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/EventSourceEndpointImpl.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/EventSourceEndpointImpl.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,126 @@
+/*
+ * 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.extensions.eventing.jaxws;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.WSException;
+import org.jboss.ws.annotation.EndpointConfig;
+import org.jboss.ws.extensions.eventing.EventingConstants;
+import org.jboss.ws.extensions.eventing.common.EventingEndpointBase;
+import org.jboss.ws.extensions.eventing.mgmt.Filter;
+import org.jboss.ws.extensions.eventing.mgmt.SubscriptionError;
+import org.jboss.ws.extensions.eventing.mgmt.SubscriptionManagerMBean;
+import org.jboss.ws.extensions.eventing.mgmt.SubscriptionTicket;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.xml.rpc.soap.SOAPFaultException;
+import javax.xml.ws.addressing.AddressingProperties;
+import javax.xml.ws.addressing.AttributedURI;
+import javax.xml.ws.addressing.Action;
+import java.net.URI;
+import java.net.URISyntaxException;
+
+/**
+ * @author Heiko.Braun(a)jboss.org
+ * @version $Id$
+ * @since 16.01.2007
+ */
+@WebService(
+ name = "EventSource",
+ portName = "EventSourcePort",
+ targetNamespace = "http://schemas.xmlsoap.org/ws/2004/08/eventing",
+ wsdlLocation = "/WEB-INF/wsdl/wind.wsdl")
+@EndpointConfig(configName = "Standard WSAddressing Endpoint")
+public class EventSourceEndpointImpl extends EventingEndpointBase implements
EventSourceEndpoint {
+
+ private static Logger log = Logger.getLogger(EventSourceEndpointImpl.class);
+
+ @WebMethod(operationName = "SubscribeOp")
+ @WebResult(name = "SubscribeResponse", targetNamespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing", partName = "body")
+ @Action(
+ input = "http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe",
+ output =
"http://schemas.xmlsoap.org/ws/2004/08/eventing/SubscribeResponse"
+ )
+ public SubscribeResponse subscribeOp(@WebParam(name = "Subscribe",
targetNamespace = "http://schemas.xmlsoap.org/ws/2004/08/eventing", partName =
"body") Subscribe request) {
+ try
+ {
+ // retrieve addressing headers
+ AddressingProperties inProps = getAddrProperties();
+ AttributedURI eventSourceURI = inProps.getTo();
+ log.debug("Subscribe request for event source: " +
eventSourceURI.getURI());
+
+ assertSubscriberEndpoints(request);
+ EndpointReferenceType notifyTo = request.getDelivery().getNotifyTo();
+ EndpointReferenceType endTo = request.getEndTo();
+
+ // adapt filter elements
+ Filter filter = null;
+ if (request.getFilter() != null)
+ {
+ try {
+ filter = new Filter(
+ new URI(request.getFilter().getDialect()),
+ (String)request.getFilter().getContent().get(0));
+ } catch (URISyntaxException e) {
+ throw new WSException(e);
+ }
+ }
+
+ // invoke subscription manager
+ SubscriptionManagerMBean subscriptionManager = getSubscriptionManager();
+ SubscriptionTicket ticket = subscriptionManager.subscribe(
+ eventSourceURI.getURI(),
+ notifyTo, endTo,
+ request.getExpires(),
+ filter
+ );
+
+ // create the response element
+ SubscribeResponse res = new SubscribeResponse();
+ res.setExpires(ticket.getExpires());
+ res.setSubscriptionManager(ticket.getSubscriptionManager());
+
+ return res;
+
+ }
+ catch (SubscriptionError e)
+ {
+ throw new SOAPFaultException(buildFaultQName(e.getSubcode()), e.getReason(),
null, null);
+ }
+ }
+
+ /**
+ * Ensure that the subscriber endpoint information is supplied in request.
+ * Namely NotifyTo and EndTo need to be set.
+ * @param request
+ */
+ private void assertSubscriberEndpoints(Subscribe request) {
+ if(null == request.getDelivery().getNotifyTo() || null == request.getEndTo() )
+ throw new SOAPFaultException(
buildFaultQName(EventingConstants.CODE_INVALID_MESSAGE) ,
+ "Subcriber endpoint information missing from request",
+ null, null
+ );
+ }
+}
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/EventingService.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/EventingService.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/EventingService.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,86 @@
+/*
+ * 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.extensions.eventing.jaxws;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+import java.net.MalformedURLException;
+import java.net.URL;
+
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.0-b26-ea3
+ * Generated source version: 2.0
+ *
+ */
+@WebServiceClient(name = "EventingService", targetNamespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing", wsdlLocation =
"wind.wsdl")
+public class EventingService
+ extends Service
+{
+
+ private final static URL WSDL_LOCATION;
+ private final static QName EVENTINGSERVICE = new
QName("http://schemas.xmlsoap.org/ws/2004/08/eventing",
"EventingService");
+ private final static QName EVENTSOURCEPORT = new
QName("http://schemas.xmlsoap.org/ws/2004/08/eventing",
"EventSourcePort");
+ private final static QName SUBSCRIPTIONMANAGERPORT = new
QName("http://schemas.xmlsoap.org/ws/2004/08/eventing",
"SubscriptionManagerPort");
+
+ static {
+ URL url = null;
+ try {
+ url = new
URL("file:/home/hbraun/dev/prj/jbossws/trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/wind.wsdl");
+ } catch (MalformedURLException e) {
+ e.printStackTrace();
+ }
+ WSDL_LOCATION = url;
+ }
+
+ public EventingService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public EventingService() {
+ super(WSDL_LOCATION, EVENTINGSERVICE);
+ }
+
+ /**
+ *
+ * @return
+ * returns EventSource
+ */
+ @WebEndpoint(name = "EventSourcePort")
+ public EventSourceEndpoint getEventSourcePort() {
+ return (EventSourceEndpoint)super.getPort(EVENTSOURCEPORT,
EventSourceEndpoint.class);
+ }
+
+ /**
+ *
+ * @return
+ * returns SubscriptionManagerEndpoint
+ */
+ @WebEndpoint(name = "SubscriptionManagerPort")
+ public SubscriptionManagerEndpoint getSubscriptionManagerPort() {
+ return (SubscriptionManagerEndpoint)super.getPort(SUBSCRIPTIONMANAGERPORT,
SubscriptionManagerEndpoint.class);
+ }
+
+}
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/FilterType.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/FilterType.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/FilterType.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,141 @@
+/*
+ * 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.extensions.eventing.jaxws;
+
+import org.w3c.dom.Element;
+
+import javax.xml.bind.annotation.*;
+import javax.xml.namespace.QName;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+
+/**
+ * <p>Java class for FilterType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="FilterType">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <any/>
+ * </sequence>
+ * <attribute name="Dialect"
type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "FilterType", propOrder = {
+ "content"
+})
+public class FilterType {
+
+ @XmlMixed
+ @XmlAnyElement(lax = true)
+ protected List<Object> content;
+ @XmlAttribute(name = "Dialect")
+ protected String dialect;
+ @XmlAnyAttribute
+ private Map<QName, String> otherAttributes = new HashMap<QName,
String>();
+
+ /**
+ * Gets the value of the content property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the content
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getContent().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Element }
+ * {@link String }
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getContent() {
+ if (content == null) {
+ content = new ArrayList<Object>();
+ }
+ return this.content;
+ }
+
+ /**
+ * Gets the value of the dialect property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDialect() {
+ return dialect;
+ }
+
+ /**
+ * Sets the value of the dialect property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDialect(String value) {
+ this.dialect = value;
+ }
+
+ /**
+ * Gets a map that contains attributes that aren't bound to any typed property on
this class.
+ *
+ * <p>
+ * the map is keyed by the name of the attribute and
+ * the value is the string value of the attribute.
+ *
+ * the map returned by this method is live, and you can add new attribute
+ * by updating the map directly. Because of this design, there's no setter.
+ *
+ *
+ * @return
+ * always non-null
+ */
+ public Map<QName, String> getOtherAttributes() {
+ return otherAttributes;
+ }
+
+}
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/GetStatus.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/GetStatus.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/GetStatus.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -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.extensions.eventing.jaxws;
+
+import org.w3c.dom.Element;
+
+import javax.xml.bind.annotation.*;
+import javax.xml.namespace.QName;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+
+/**
+ * <p>Java class for GetStatus element declaration.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <element name="GetStatus">
+ * <complexType>
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <any/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </element>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "any"
+})
+@XmlRootElement(name = "GetStatus")
+public class GetStatus {
+
+ @XmlAnyElement(lax = true)
+ protected List<Object> any;
+ @XmlAnyAttribute
+ private Map<QName, String> otherAttributes = new HashMap<QName,
String>();
+
+ /**
+ * Gets the value of the any property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the any
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Element }
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets a map that contains attributes that aren't bound to any typed property on
this class.
+ *
+ * <p>
+ * the map is keyed by the name of the attribute and
+ * the value is the string value of the attribute.
+ *
+ * the map returned by this method is live, and you can add new attribute
+ * by updating the map directly. Because of this design, there's no setter.
+ *
+ *
+ * @return
+ * always non-null
+ */
+ public Map<QName, String> getOtherAttributes() {
+ return otherAttributes;
+ }
+
+}
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/GetStatusResponse.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/GetStatusResponse.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/GetStatusResponse.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,121 @@
+
+package org.jboss.ws.extensions.eventing.jaxws;
+
+
+import org.w3c.dom.Element;
+
+import javax.xml.bind.annotation.*;
+import javax.xml.namespace.QName;
+import java.util.*;
+
+
+/**
+ * <p>Java class for GetStatusResponse element declaration.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <element name="GetStatusResponse">
+ * <complexType>
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="Expires"
type="{http://schemas.xmlsoap.org/ws/2004/08/eventing}ExpirationType...
minOccurs="0"/>
+ * <any/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </element>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "expires",
+ "any"
+})
+@XmlRootElement(name = "GetStatusResponse")
+public class GetStatusResponse {
+
+ @XmlElement(name = "Expires", namespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing")
+ protected Date expires;
+ @XmlAnyElement(lax = true)
+ protected List<Object> any;
+ @XmlAnyAttribute
+ private Map<QName, String> otherAttributes = new HashMap<QName,
String>();
+
+ /**
+ * Gets the value of the expires property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public Date getExpires() {
+ return expires;
+ }
+
+ /**
+ * Sets the value of the expires property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setExpires(Date value) {
+ this.expires = value;
+ }
+
+ /**
+ * Gets the value of the any property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the any
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Element }
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets a map that contains attributes that aren't bound to any typed property on
this class.
+ *
+ * <p>
+ * the map is keyed by the name of the attribute and
+ * the value is the string value of the attribute.
+ *
+ * the map returned by this method is live, and you can add new attribute
+ * by updating the map directly. Because of this design, there's no setter.
+ *
+ *
+ * @return
+ * always non-null
+ */
+ public Map<QName, String> getOtherAttributes() {
+ return otherAttributes;
+ }
+
+}
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/LanguageSpecificStringType.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/LanguageSpecificStringType.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/LanguageSpecificStringType.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,126 @@
+/*
+ * 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.extensions.eventing.jaxws;
+
+import javax.xml.bind.annotation.*;
+import javax.xml.namespace.QName;
+import java.util.HashMap;
+import java.util.Map;
+
+
+/**
+ * <p>Java class for LanguageSpecificStringType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="LanguageSpecificStringType">
+ * <simpleContent>
+ * <extension
base="<http://www.w3.org/2001/XMLSchema>string">
+ * <attribute
ref="{http://www.w3.org/XML/1998/namespace}lang"/>
+ * </extension>
+ * </simpleContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "LanguageSpecificStringType", propOrder = {
+ "value"
+})
+public class LanguageSpecificStringType {
+
+ @XmlValue
+ protected String value;
+ @XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace")
+ protected String lang;
+ @XmlAnyAttribute
+ private Map<QName, String> otherAttributes = new HashMap<QName,
String>();
+
+ /**
+ * Gets the value of the value property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getValue() {
+ return value;
+ }
+
+ /**
+ * Sets the value of the value property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Gets the value of the lang property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getLang() {
+ return lang;
+ }
+
+ /**
+ * Sets the value of the lang property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setLang(String value) {
+ this.lang = value;
+ }
+
+ /**
+ * Gets a map that contains attributes that aren't bound to any typed property on
this class.
+ *
+ * <p>
+ * the map is keyed by the name of the attribute and
+ * the value is the string value of the attribute.
+ *
+ * the map returned by this method is live, and you can add new attribute
+ * by updating the map directly. Because of this design, there's no setter.
+ *
+ *
+ * @return
+ * always non-null
+ */
+ public Map<QName, String> getOtherAttributes() {
+ return otherAttributes;
+ }
+
+}
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/MetadataType.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/MetadataType.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/MetadataType.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,93 @@
+
+package org.jboss.ws.extensions.eventing.jaxws;
+
+
+import org.w3c.dom.Element;
+
+import javax.xml.bind.annotation.*;
+import javax.xml.namespace.QName;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+
+/**
+ * <p>Java class for MetadataType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="MetadataType">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <any/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "MetadataType", namespace =
"http://www.w3.org/2005/08/addressing", propOrder = {
+ "any"
+})
+public class MetadataType {
+
+ @XmlAnyElement(lax = true)
+ protected List<Object> any;
+ @XmlAnyAttribute
+ private Map<QName, String> otherAttributes = new HashMap<QName,
String>();
+
+ /**
+ * Gets the value of the any property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the any
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Element }
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets a map that contains attributes that aren't bound to any typed property on
this class.
+ *
+ * <p>
+ * the map is keyed by the name of the attribute and
+ * the value is the string value of the attribute.
+ *
+ * the map returned by this method is live, and you can add new attribute
+ * by updating the map directly. Because of this design, there's no setter.
+ *
+ *
+ * @return
+ * always non-null
+ */
+ public Map<QName, String> getOtherAttributes() {
+ return otherAttributes;
+ }
+
+}
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/ObjectFactory.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/ObjectFactory.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/ObjectFactory.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,395 @@
+/*
+ * 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.extensions.eventing.jaxws;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
+
+
+/**
+ * This object contains factory methods for each
+ * Java content interface and Java element interface
+ * generated in the org.jboss.ws.extensions.eventing package.
+ * <p>An ObjectFactory allows you to programatically
+ * construct new instances of the Java representation
+ * for XML content. The Java representation of XML
+ * content can consist of schema derived interfaces
+ * and classes representing the binding of schema
+ * type definitions, element declarations and model
+ * groups. Factory methods for each of these are
+ * provided in this class.
+ *
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+ private final static QName _Metadata_QNAME = new
QName("http://www.w3.org/2005/08/addressing", "Metadata");
+ private final static QName _ProblemHeader_QNAME = new
QName("http://www.w3.org/2005/08/addressing", "ProblemHeader");
+ private final static QName _EndpointReference_QNAME = new
QName("http://www.w3.org/2005/08/addressing", "EndpointReference");
+ private final static QName _ProblemIRI_QNAME = new
QName("http://www.w3.org/2005/08/addressing", "ProblemIRI");
+ private final static QName _FaultTo_QNAME = new
QName("http://www.w3.org/2005/08/addressing", "FaultTo");
+ private final static QName _Identifier_QNAME = new
QName("http://schemas.xmlsoap.org/ws/2004/08/eventing",
"Identifier");
+ private final static QName _SupportedDialect_QNAME = new
QName("http://schemas.xmlsoap.org/ws/2004/08/eventing",
"SupportedDialect");
+ private final static QName _MessageID_QNAME = new
QName("http://www.w3.org/2005/08/addressing", "MessageID");
+ private final static QName _RetryAfter_QNAME = new
QName("http://www.w3.org/2005/08/addressing", "RetryAfter");
+ private final static QName _RelatesTo_QNAME = new
QName("http://www.w3.org/2005/08/addressing", "RelatesTo");
+ private final static QName _ReplyTo_QNAME = new
QName("http://www.w3.org/2005/08/addressing", "ReplyTo");
+ private final static QName _SupportedDeliveryMode_QNAME = new
QName("http://schemas.xmlsoap.org/ws/2004/08/eventing",
"SupportedDeliveryMode");
+ private final static QName _Action_QNAME = new
QName("http://www.w3.org/2005/08/addressing", "Action");
+ private final static QName _ProblemHeaderQName_QNAME = new
QName("http://www.w3.org/2005/08/addressing", "ProblemHeaderQName");
+ private final static QName _To_QNAME = new
QName("http://www.w3.org/2005/08/addressing", "To");
+ private final static QName _NotifyTo_QNAME = new
QName("http://schemas.xmlsoap.org/ws/2004/08/eventing", "NotifyTo");
+ private final static QName _ProblemAction_QNAME = new
QName("http://www.w3.org/2005/08/addressing", "ProblemAction");
+ private final static QName _From_QNAME = new
QName("http://www.w3.org/2005/08/addressing", "From");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema
derived classes for package: org.jboss.ws.extensions.eventing
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link ReferenceParametersType }
+ *
+ */
+ public ReferenceParametersType createReferenceParametersType() {
+ return new ReferenceParametersType();
+ }
+
+ /**
+ * Create an instance of {@link AttributedURIType }
+ *
+ */
+ public AttributedURIType createAttributedURIType() {
+ return new AttributedURIType();
+ }
+
+ /**
+ * Create an instance of {@link SubscribeResponse }
+ *
+ */
+ public SubscribeResponse createSubscribeResponse() {
+ return new SubscribeResponse();
+ }
+
+ /**
+ * Create an instance of {@link SubscriptionEnd }
+ *
+ */
+ public SubscriptionEnd createSubscriptionEnd() {
+ return new SubscriptionEnd();
+ }
+
+ /**
+ * Create an instance of {@link RelatesToType }
+ *
+ */
+ public RelatesToType createRelatesToType() {
+ return new RelatesToType();
+ }
+
+ /**
+ * Create an instance of {@link ProblemActionType }
+ *
+ */
+ public ProblemActionType createProblemActionType() {
+ return new ProblemActionType();
+ }
+
+ /**
+ * Create an instance of {@link Renew }
+ *
+ */
+ public Renew createRenew() {
+ return new Renew();
+ }
+
+ /**
+ * Create an instance of {@link LanguageSpecificStringType }
+ *
+ */
+ public LanguageSpecificStringType createLanguageSpecificStringType() {
+ return new LanguageSpecificStringType();
+ }
+
+ /**
+ * Create an instance of {@link GetStatus }
+ *
+ */
+ public GetStatus createGetStatus() {
+ return new GetStatus();
+ }
+
+ /**
+ * Create an instance of {@link AttributedUnsignedLongType }
+ *
+ */
+ public AttributedUnsignedLongType createAttributedUnsignedLongType() {
+ return new AttributedUnsignedLongType();
+ }
+
+ /**
+ * Create an instance of {@link AttributedAnyType }
+ *
+ */
+ public AttributedAnyType createAttributedAnyType() {
+ return new AttributedAnyType();
+ }
+
+ /**
+ * Create an instance of {@link Subscribe }
+ *
+ */
+ public Subscribe createSubscribe() {
+ return new Subscribe();
+ }
+
+ /**
+ * Create an instance of {@link EndpointReferenceType }
+ *
+ */
+ public EndpointReferenceType createEndpointReferenceType() {
+ return new EndpointReferenceType();
+ }
+
+ /**
+ * Create an instance of {@link FilterType }
+ *
+ */
+ public FilterType createFilterType() {
+ return new FilterType();
+ }
+
+ /**
+ * Create an instance of {@link MetadataType }
+ *
+ */
+ public MetadataType createMetadataType() {
+ return new MetadataType();
+ }
+
+ /**
+ * Create an instance of {@link AttributedQNameType }
+ *
+ */
+ public AttributedQNameType createAttributedQNameType() {
+ return new AttributedQNameType();
+ }
+
+ /**
+ * Create an instance of {@link DeliveryType }
+ *
+ */
+ public DeliveryType createDeliveryType() {
+ return new DeliveryType();
+ }
+
+ /**
+ * Create an instance of {@link RenewResponse }
+ *
+ */
+ public RenewResponse createRenewResponse() {
+ return new RenewResponse();
+ }
+
+ /**
+ * Create an instance of {@link Unsubscribe }
+ *
+ */
+ public Unsubscribe createUnsubscribe() {
+ return new Unsubscribe();
+ }
+
+ /**
+ * Create an instance of {@link GetStatusResponse }
+ *
+ */
+ public GetStatusResponse createGetStatusResponse() {
+ return new GetStatusResponse();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link MetadataType }{@code
>}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2005/08/addressing", name =
"Metadata")
+ public JAXBElement<MetadataType> createMetadata(MetadataType value) {
+ return new JAXBElement<MetadataType>(_Metadata_QNAME, MetadataType.class,
null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AttributedAnyType
}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2005/08/addressing", name =
"ProblemHeader")
+ public JAXBElement<AttributedAnyType> createProblemHeader(AttributedAnyType
value) {
+ return new JAXBElement<AttributedAnyType>(_ProblemHeader_QNAME,
AttributedAnyType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link EndpointReferenceType
}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2005/08/addressing", name =
"EndpointReference")
+ public JAXBElement<EndpointReferenceType>
createEndpointReference(EndpointReferenceType value) {
+ return new JAXBElement<EndpointReferenceType>(_EndpointReference_QNAME,
EndpointReferenceType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AttributedURIType
}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2005/08/addressing", name =
"ProblemIRI")
+ public JAXBElement<AttributedURIType> createProblemIRI(AttributedURIType value)
{
+ return new JAXBElement<AttributedURIType>(_ProblemIRI_QNAME,
AttributedURIType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link EndpointReferenceType
}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2005/08/addressing", name =
"FaultTo")
+ public JAXBElement<EndpointReferenceType> createFaultTo(EndpointReferenceType
value) {
+ return new JAXBElement<EndpointReferenceType>(_FaultTo_QNAME,
EndpointReferenceType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code
>}}
+ *
+ */
+ @XmlElementDecl(namespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing", name =
"Identifier")
+ public JAXBElement<String> createIdentifier(String value) {
+ return new JAXBElement<String>(_Identifier_QNAME, String.class, null,
value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code
>}}
+ *
+ */
+ @XmlElementDecl(namespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing", name =
"SupportedDialect")
+ public JAXBElement<String> createSupportedDialect(String value) {
+ return new JAXBElement<String>(_SupportedDialect_QNAME, String.class, null,
value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AttributedURIType
}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2005/08/addressing", name =
"MessageID")
+ public JAXBElement<AttributedURIType> createMessageID(AttributedURIType value)
{
+ return new JAXBElement<AttributedURIType>(_MessageID_QNAME,
AttributedURIType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link
AttributedUnsignedLongType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2005/08/addressing", name =
"RetryAfter")
+ public JAXBElement<AttributedUnsignedLongType>
createRetryAfter(AttributedUnsignedLongType value) {
+ return new JAXBElement<AttributedUnsignedLongType>(_RetryAfter_QNAME,
AttributedUnsignedLongType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link RelatesToType }{@code
>}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2005/08/addressing", name =
"RelatesTo")
+ public JAXBElement<RelatesToType> createRelatesTo(RelatesToType value) {
+ return new JAXBElement<RelatesToType>(_RelatesTo_QNAME,
RelatesToType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link EndpointReferenceType
}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2005/08/addressing", name =
"ReplyTo")
+ public JAXBElement<EndpointReferenceType> createReplyTo(EndpointReferenceType
value) {
+ return new JAXBElement<EndpointReferenceType>(_ReplyTo_QNAME,
EndpointReferenceType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code
>}}
+ *
+ */
+ @XmlElementDecl(namespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing", name =
"SupportedDeliveryMode")
+ public JAXBElement<String> createSupportedDeliveryMode(String value) {
+ return new JAXBElement<String>(_SupportedDeliveryMode_QNAME, String.class,
null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AttributedURIType
}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2005/08/addressing", name =
"Action")
+ public JAXBElement<AttributedURIType> createAction(AttributedURIType value) {
+ return new JAXBElement<AttributedURIType>(_Action_QNAME,
AttributedURIType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AttributedQNameType
}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2005/08/addressing", name =
"ProblemHeaderQName")
+ public JAXBElement<AttributedQNameType>
createProblemHeaderQName(AttributedQNameType value) {
+ return new JAXBElement<AttributedQNameType>(_ProblemHeaderQName_QNAME,
AttributedQNameType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AttributedURIType
}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2005/08/addressing", name =
"To")
+ public JAXBElement<AttributedURIType> createTo(AttributedURIType value) {
+ return new JAXBElement<AttributedURIType>(_To_QNAME,
AttributedURIType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link EndpointReferenceType
}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing", name = "NotifyTo")
+ public JAXBElement<EndpointReferenceType> createNotifyTo(EndpointReferenceType
value) {
+ return new JAXBElement<EndpointReferenceType>(_NotifyTo_QNAME,
EndpointReferenceType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link ProblemActionType
}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2005/08/addressing", name =
"ProblemAction")
+ public JAXBElement<ProblemActionType> createProblemAction(ProblemActionType
value) {
+ return new JAXBElement<ProblemActionType>(_ProblemAction_QNAME,
ProblemActionType.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link EndpointReferenceType
}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.w3.org/2005/08/addressing", name =
"From")
+ public JAXBElement<EndpointReferenceType> createFrom(EndpointReferenceType
value) {
+ return new JAXBElement<EndpointReferenceType>(_From_QNAME,
EndpointReferenceType.class, null, value);
+ }
+
+}
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/ProblemActionType.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/ProblemActionType.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/ProblemActionType.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,130 @@
+/*
+ * 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.extensions.eventing.jaxws;
+
+import javax.xml.bind.annotation.*;
+import javax.xml.namespace.QName;
+import java.util.HashMap;
+import java.util.Map;
+
+
+/**
+ * <p>Java class for ProblemActionType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="ProblemActionType">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element
ref="{http://www.w3.org/2005/08/addressing}Action"
minOccurs="0"/>
+ * <element name="SoapAction"
type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "ProblemActionType", namespace =
"http://www.w3.org/2005/08/addressing", propOrder = {
+ "action",
+ "soapAction"
+})
+public class ProblemActionType {
+
+ @XmlElement(name = "Action", namespace =
"http://www.w3.org/2005/08/addressing")
+ protected AttributedURIType action;
+ @XmlElement(name = "SoapAction", namespace =
"http://www.w3.org/2005/08/addressing")
+ protected String soapAction;
+ @XmlAnyAttribute
+ private Map<QName, String> otherAttributes = new HashMap<QName,
String>();
+
+ /**
+ * Gets the value of the action property.
+ *
+ * @return
+ * possible object is
+ * {@link AttributedURIType }
+ *
+ */
+ public AttributedURIType getAction() {
+ return action;
+ }
+
+ /**
+ * Sets the value of the action property.
+ *
+ * @param value
+ * allowed object is
+ * {@link AttributedURIType }
+ *
+ */
+ public void setAction(AttributedURIType value) {
+ this.action = value;
+ }
+
+ /**
+ * Gets the value of the soapAction property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getSoapAction() {
+ return soapAction;
+ }
+
+ /**
+ * Sets the value of the soapAction property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setSoapAction(String value) {
+ this.soapAction = value;
+ }
+
+ /**
+ * Gets a map that contains attributes that aren't bound to any typed property on
this class.
+ *
+ * <p>
+ * the map is keyed by the name of the attribute and
+ * the value is the string value of the attribute.
+ *
+ * the map returned by this method is live, and you can add new attribute
+ * by updating the map directly. Because of this design, there's no setter.
+ *
+ *
+ * @return
+ * always non-null
+ */
+ public Map<QName, String> getOtherAttributes() {
+ return otherAttributes;
+ }
+
+}
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/ReferenceParametersType.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/ReferenceParametersType.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/ReferenceParametersType.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,132 @@
+/*
+ * 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.extensions.eventing.jaxws;
+/*
+ * 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.
+ */
+import org.w3c.dom.Element;
+
+import javax.xml.bind.annotation.*;
+import javax.xml.namespace.QName;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+
+/**
+ * <p>Java class for ReferenceParametersType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="ReferenceParametersType">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <any/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "ReferenceParametersType", namespace =
"http://www.w3.org/2005/08/addressing", propOrder = {
+ "any"
+})
+public class ReferenceParametersType {
+
+ @XmlAnyElement(lax = true)
+ protected List<Object> any;
+ @XmlAnyAttribute
+ private Map<QName, String> otherAttributes = new HashMap<QName,
String>();
+
+ /**
+ * Gets the value of the any property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the any
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Element }
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets a map that contains attributes that aren't bound to any typed property on
this class.
+ *
+ * <p>
+ * the map is keyed by the name of the attribute and
+ * the value is the string value of the attribute.
+ *
+ * the map returned by this method is live, and you can add new attribute
+ * by updating the map directly. Because of this design, there's no setter.
+ *
+ *
+ * @return
+ * always non-null
+ */
+ public Map<QName, String> getOtherAttributes() {
+ return otherAttributes;
+ }
+
+}
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/RelatesToType.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/RelatesToType.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/RelatesToType.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,130 @@
+/*
+ * 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.extensions.eventing.jaxws;
+
+import javax.xml.bind.annotation.*;
+import javax.xml.namespace.QName;
+import java.util.HashMap;
+import java.util.Map;
+
+
+/**
+ * <p>Java class for RelatesToType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="RelatesToType">
+ * <simpleContent>
+ * <extension
base="<http://www.w3.org/2001/XMLSchema>anyURI">
+ * <attribute name="RelationshipType"
type="{http://www.w3.org/2005/08/addressing}RelationshipTypeOpenEnum...
default="http://www.w3.org/2005/08/addressing/reply" />
+ * </extension>
+ * </simpleContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "RelatesToType", namespace =
"http://www.w3.org/2005/08/addressing", propOrder = {
+ "value"
+})
+public class RelatesToType {
+
+ @XmlValue
+ protected String value;
+ @XmlAttribute(name = "RelationshipType")
+ protected String relationshipType;
+ @XmlAnyAttribute
+ private Map<QName, String> otherAttributes = new HashMap<QName,
String>();
+
+ /**
+ * Gets the value of the value property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getValue() {
+ return value;
+ }
+
+ /**
+ * Sets the value of the value property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Gets the value of the relationshipType property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getRelationshipType() {
+ if (relationshipType == null) {
+ return "http://www.w3.org/2005/08/addressing/reply";
+ } else {
+ return relationshipType;
+ }
+ }
+
+ /**
+ * Sets the value of the relationshipType property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setRelationshipType(String value) {
+ this.relationshipType = value;
+ }
+
+ /**
+ * Gets a map that contains attributes that aren't bound to any typed property on
this class.
+ *
+ * <p>
+ * the map is keyed by the name of the attribute and
+ * the value is the string value of the attribute.
+ *
+ * the map returned by this method is live, and you can add new attribute
+ * by updating the map directly. Because of this design, there's no setter.
+ *
+ *
+ * @return
+ * always non-null
+ */
+ public Map<QName, String> getOtherAttributes() {
+ return otherAttributes;
+ }
+
+}
Added: trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/Renew.java
===================================================================
--- trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/Renew.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/Renew.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,121 @@
+
+package org.jboss.ws.extensions.eventing.jaxws;
+
+
+import org.w3c.dom.Element;
+
+import javax.xml.bind.annotation.*;
+import javax.xml.namespace.QName;
+import java.util.*;
+
+
+/**
+ * <p>Java class for Renew element declaration.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <element name="Renew">
+ * <complexType>
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="Expires"
type="{http://schemas.xmlsoap.org/ws/2004/08/eventing}ExpirationType...
minOccurs="0"/>
+ * <any/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </element>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "expires",
+ "any"
+})
+@XmlRootElement(name = "Renew")
+public class Renew {
+
+ @XmlElement(name = "Expires", namespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing")
+ protected Date expires;
+ @XmlAnyElement(lax = true)
+ protected List<Object> any;
+ @XmlAnyAttribute
+ private Map<QName, String> otherAttributes = new HashMap<QName,
String>();
+
+ /**
+ * Gets the value of the expires property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public Date getExpires() {
+ return expires;
+ }
+
+ /**
+ * Sets the value of the expires property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setExpires(Date value) {
+ this.expires = value;
+ }
+
+ /**
+ * Gets the value of the any property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the any
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Element }
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets a map that contains attributes that aren't bound to any typed property on
this class.
+ *
+ * <p>
+ * the map is keyed by the name of the attribute and
+ * the value is the string value of the attribute.
+ *
+ * the map returned by this method is live, and you can add new attribute
+ * by updating the map directly. Because of this design, there's no setter.
+ *
+ *
+ * @return
+ * always non-null
+ */
+ public Map<QName, String> getOtherAttributes() {
+ return otherAttributes;
+ }
+
+}
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/RenewResponse.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/RenewResponse.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/RenewResponse.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,140 @@
+/*
+ * 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.extensions.eventing.jaxws;
+
+import org.w3c.dom.Element;
+
+import javax.xml.bind.annotation.*;
+import javax.xml.namespace.QName;
+import java.util.*;
+
+
+/**
+ * <p>Java class for RenewResponse element declaration.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <element name="RenewResponse">
+ * <complexType>
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="Expires"
type="{http://schemas.xmlsoap.org/ws/2004/08/eventing}ExpirationType...
minOccurs="0"/>
+ * <any/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </element>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "expires",
+ "any"
+})
+@XmlRootElement(name = "RenewResponse")
+public class RenewResponse {
+
+ @XmlElement(name = "Expires", namespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing")
+ protected Date expires;
+ @XmlAnyElement(lax = true)
+ protected List<Object> any;
+ @XmlAnyAttribute
+ private Map<QName, String> otherAttributes = new HashMap<QName,
String>();
+
+ /**
+ * Gets the value of the expires property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public Date getExpires() {
+ return expires;
+ }
+
+ /**
+ * Sets the value of the expires property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setExpires(Date value) {
+ this.expires = value;
+ }
+
+ /**
+ * Gets the value of the any property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the any
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Element }
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets a map that contains attributes that aren't bound to any typed property on
this class.
+ *
+ * <p>
+ * the map is keyed by the name of the attribute and
+ * the value is the string value of the attribute.
+ *
+ * the map returned by this method is live, and you can add new attribute
+ * by updating the map directly. Because of this design, there's no setter.
+ *
+ *
+ * @return
+ * always non-null
+ */
+ public Map<QName, String> getOtherAttributes() {
+ return otherAttributes;
+ }
+
+}
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/Subscribe.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/Subscribe.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/Subscribe.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,224 @@
+/*
+ * 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.extensions.eventing.jaxws;
+
+import org.w3c.dom.Element;
+
+import javax.xml.bind.annotation.*;
+import javax.xml.namespace.QName;
+import java.util.*;
+
+
+/**
+ * <p>Java class for Subscribe element declaration.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <element name="Subscribe">
+ * <complexType>
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="EndTo"
type="{http://www.w3.org/2005/08/addressing}EndpointReferenceType"
minOccurs="0"/>
+ * <element name="Delivery"
type="{http://schemas.xmlsoap.org/ws/2004/08/eventing}DeliveryType&q...
+ * <element name="Expires"
type="{http://schemas.xmlsoap.org/ws/2004/08/eventing}ExpirationType...
minOccurs="0"/>
+ * <element name="Filter"
type="{http://schemas.xmlsoap.org/ws/2004/08/eventing}FilterType"
minOccurs="0"/>
+ * <any/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </element>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "endTo",
+ "delivery",
+ "expires",
+ "filter",
+ "any"
+})
+@XmlRootElement(name = "Subscribe")
+public class Subscribe {
+
+ @XmlElement(name = "EndTo", namespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing")
+ protected EndpointReferenceType endTo;
+ @XmlElement(name = "Delivery", namespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing")
+ protected DeliveryType delivery;
+ @XmlElement(name = "Expires", namespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing")
+ protected Date expires;
+ @XmlElement(name = "Filter", namespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing")
+ protected FilterType filter;
+ @XmlAnyElement(lax = true)
+ protected List<Object> any;
+ @XmlAnyAttribute
+ private Map<QName, String> otherAttributes = new HashMap<QName,
String>();
+
+ /**
+ * Gets the value of the endTo property.
+ *
+ * @return
+ * possible object is
+ * {@link EndpointReferenceType }
+ *
+ */
+ public EndpointReferenceType getEndTo() {
+ return endTo;
+ }
+
+ /**
+ * Sets the value of the endTo property.
+ *
+ * @param value
+ * allowed object is
+ * {@link EndpointReferenceType }
+ *
+ */
+ public void setEndTo(EndpointReferenceType value) {
+ this.endTo = value;
+ }
+
+ /**
+ * Gets the value of the delivery property.
+ *
+ * @return
+ * possible object is
+ * {@link DeliveryType }
+ *
+ */
+ public DeliveryType getDelivery() {
+ return delivery;
+ }
+
+ /**
+ * Sets the value of the delivery property.
+ *
+ * @param value
+ * allowed object is
+ * {@link DeliveryType }
+ *
+ */
+ public void setDelivery(DeliveryType value) {
+ this.delivery = value;
+ }
+
+ /**
+ * Gets the value of the expires property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public Date getExpires() {
+ return expires;
+ }
+
+ /**
+ * Sets the value of the expires property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setExpires(Date value) {
+ this.expires = value;
+ }
+
+ /**
+ * Gets the value of the filter property.
+ *
+ * @return
+ * possible object is
+ * {@link FilterType }
+ *
+ */
+ public FilterType getFilter() {
+ return filter;
+ }
+
+ /**
+ * Sets the value of the filter property.
+ *
+ * @param value
+ * allowed object is
+ * {@link FilterType }
+ *
+ */
+ public void setFilter(FilterType value) {
+ this.filter = value;
+ }
+
+ /**
+ * Gets the value of the any property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the any
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Element }
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets a map that contains attributes that aren't bound to any typed property on
this class.
+ *
+ * <p>
+ * the map is keyed by the name of the attribute and
+ * the value is the string value of the attribute.
+ *
+ * the map returned by this method is live, and you can add new attribute
+ * by updating the map directly. Because of this design, there's no setter.
+ *
+ *
+ * @return
+ * always non-null
+ */
+ public Map<QName, String> getOtherAttributes() {
+ return otherAttributes;
+ }
+
+}
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/SubscribeResponse.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/SubscribeResponse.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/SubscribeResponse.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,175 @@
+/*
+ * 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.extensions.eventing.jaxws;
+
+import org.w3c.dom.Element;
+
+import javax.xml.bind.annotation.*;
+import javax.xml.bind.JAXBElement;
+import javax.xml.namespace.QName;
+import java.util.*;
+
+
+/**
+ * <p>Java class for SubscribeResponse element declaration.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <element name="SubscribeResponse">
+ * <complexType>
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="SubscriptionManagerEndpoint"
type="{http://www.w3.org/2005/08/addressing}EndpointReferenceType&qu...
+ * <element name="Expires"
type="{http://schemas.xmlsoap.org/ws/2004/08/eventing}ExpirationType...
+ * <any/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </element>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "subscriptionManager",
+ "expires",
+ "any"
+ })
+@XmlRootElement(name = "SubscribeResponse")
+public class SubscribeResponse {
+
+ @XmlElement(name = "SubscriptionManager", namespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing")
+ protected EndpointReferenceType subscriptionManager;
+ @XmlElement(name = "Expires", namespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing")
+ protected Date expires;
+ @XmlAnyElement(lax = true)
+ protected List<Object> any;
+ @XmlAnyAttribute
+ private Map<QName, String> otherAttributes = new HashMap<QName,
String>();
+
+ /**
+ * Gets the value of the subscriptionManager property.
+ *
+ * @return
+ * possible object is
+ * {@link EndpointReferenceType }
+ *
+ */
+ public EndpointReferenceType getSubscriptionManager() {
+ return subscriptionManager;
+ }
+
+ /**
+ * Sets the value of the subscriptionManager property.
+ *
+ * @param value
+ * allowed object is
+ * {@link EndpointReferenceType }
+ *
+ */
+ public void setSubscriptionManager(EndpointReferenceType value) {
+ this.subscriptionManager = value;
+ }
+
+ /**
+ * Gets the value of the expires property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public Date getExpires() {
+ return expires;
+ }
+
+ /**
+ * Sets the value of the expires property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setExpires(Date value) {
+ this.expires = value;
+ }
+
+ /**
+ * Gets the value of the any property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the any
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Element }
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets a map that contains attributes that aren't bound to any typed property on
this class.
+ *
+ * <p>
+ * the map is keyed by the name of the attribute and
+ * the value is the string value of the attribute.
+ *
+ * the map returned by this method is live, and you can add new attribute
+ * by updating the map directly. Because of this design, there's no setter.
+ *
+ *
+ * @return
+ * always non-null
+ */
+ public Map<QName, String> getOtherAttributes() {
+ return otherAttributes;
+ }
+
+ public String getSubscriptionId()
+ {
+ JAXBElement<String> jaxbElement =
(JAXBElement<String>)getSubscriptionManager().getReferenceParameters().getAny().get(0);
+ return jaxbElement.getValue();
+ }
+
+}
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/SubscriptionEnd.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/SubscriptionEnd.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/SubscriptionEnd.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,204 @@
+/*
+ * 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.extensions.eventing.jaxws;
+
+import org.w3c.dom.Element;
+
+import javax.xml.bind.annotation.*;
+import javax.xml.namespace.QName;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+
+/**
+ * <p>Java class for SubscriptionEnd element declaration.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <element name="SubscriptionEnd">
+ * <complexType>
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="SubscriptionManagerEndpoint"
type="{http://www.w3.org/2005/08/addressing}EndpointReferenceType&qu...
+ * <element name="Code"
type="{http://schemas.xmlsoap.org/ws/2004/08/eventing}OpenSubscripti...
+ * <element name="Reason"
type="{http://schemas.xmlsoap.org/ws/2004/08/eventing}LanguageSpecif...
maxOccurs="unbounded" minOccurs="0"/>
+ * <any/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </element>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "subscriptionManager",
+ "code",
+ "reason",
+ "any"
+})
+@XmlRootElement(name = "SubscriptionEnd")
+public class SubscriptionEnd {
+
+ @XmlElement(name = "SubscriptionManager", namespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing")
+ protected EndpointReferenceType subscriptionManager;
+ @XmlElement(name = "Code", namespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing")
+ protected String code;
+ @XmlElement(name = "Reason", namespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing")
+ protected List<LanguageSpecificStringType> reason;
+ @XmlAnyElement(lax = true)
+ protected List<Object> any;
+ @XmlAnyAttribute
+ private Map<QName, String> otherAttributes = new HashMap<QName,
String>();
+
+ /**
+ * Gets the value of the subscriptionManager property.
+ *
+ * @return
+ * possible object is
+ * {@link EndpointReferenceType }
+ *
+ */
+ public EndpointReferenceType getSubscriptionManager() {
+ return subscriptionManager;
+ }
+
+ /**
+ * Sets the value of the subscriptionManager property.
+ *
+ * @param value
+ * allowed object is
+ * {@link EndpointReferenceType }
+ *
+ */
+ public void setSubscriptionManager(EndpointReferenceType value) {
+ this.subscriptionManager = value;
+ }
+
+ /**
+ * Gets the value of the code property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getCode() {
+ return code;
+ }
+
+ /**
+ * Sets the value of the code property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setCode(String value) {
+ this.code = value;
+ }
+
+ /**
+ * Gets the value of the reason property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the reason
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getReason().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link LanguageSpecificStringType }
+ *
+ *
+ */
+ public List<LanguageSpecificStringType> getReason() {
+ if (reason == null) {
+ reason = new ArrayList<LanguageSpecificStringType>();
+ }
+ return this.reason;
+ }
+
+ /**
+ * Gets the value of the any property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the any
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Element }
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets a map that contains attributes that aren't bound to any typed property on
this class.
+ *
+ * <p>
+ * the map is keyed by the name of the attribute and
+ * the value is the string value of the attribute.
+ *
+ * the map returned by this method is live, and you can add new attribute
+ * by updating the map directly. Because of this design, there's no setter.
+ *
+ *
+ * @return
+ * always non-null
+ */
+ public Map<QName, String> getOtherAttributes() {
+ return otherAttributes;
+ }
+
+}
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/SubscriptionManagerEndpoint.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/SubscriptionManagerEndpoint.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/SubscriptionManagerEndpoint.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,88 @@
+/*
+ * 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.extensions.eventing.jaxws;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.jws.soap.SOAPBinding.ParameterStyle;
+import javax.xml.ws.addressing.Action;
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.0-b26-ea3
+ * Generated source version: 2.0
+ *
+ */
+@WebService(name = "SubscriptionManager", targetNamespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing")
+@SOAPBinding(parameterStyle = ParameterStyle.WRAPPED)
+public interface SubscriptionManagerEndpoint {
+
+
+ /**
+ *
+ * @param body
+ * @return
+ * returns org.jboss.ws.extensions.eventing.GetStatusResponse
+ */
+ @WebMethod(operationName = "GetStatusOp")
+ @WebResult(name = "GetStatusResponse", targetNamespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing", partName = "body")
+ @Action(
+ input = "http://schemas.xmlsoap.org/ws/2004/08/eventing/GetStatus",
+ output =
"http://schemas.xmlsoap.org/ws/2004/08/eventing/GetStatusResponse"
+ )
+ public GetStatusResponse getStatusOp(
+ @WebParam(name = "GetStatus", targetNamespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing", partName = "body")
+ GetStatus body);
+
+ /**
+ *
+ * @param body
+ * @return
+ * returns org.jboss.ws.extensions.eventing.RenewResponse
+ */
+ @WebMethod(operationName = "RenewOp")
+ @WebResult(name = "RenewResponse", targetNamespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing", partName = "body")
+ @Action(
+ input = "http://schemas.xmlsoap.org/ws/2004/08/eventing/Renew",
+ output = "http://schemas.xmlsoap.org/ws/2004/08/eventing/RenewResponse"
+ )
+ public RenewResponse renewOp(
+ @WebParam(name = "Renew", targetNamespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing", partName = "body")
+ Renew body);
+
+ /**
+ *
+ * @param body
+ */
+ @WebMethod(operationName = "UnsubscribeOp")
+ @Action(
+ input = "http://schemas.xmlsoap.org/ws/2004/08/eventing/Unsubscribe",
+ output =
"http://schemas.xmlsoap.org/ws/2004/08/eventing/UnsubscribeResponse"
+ )
+ public void unsubscribeOp(
+ @WebParam(name = "Unsubscribe", targetNamespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing", partName = "body")
+ Unsubscribe body);
+
+}
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/SubscriptionManagerEndpointImpl.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/SubscriptionManagerEndpointImpl.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/SubscriptionManagerEndpointImpl.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,188 @@
+/*
+ * 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.extensions.eventing.jaxws;
+
+import org.jboss.ws.Constants;
+import org.jboss.ws.annotation.EndpointConfig;
+import org.jboss.ws.core.CommonMessageContext;
+import org.jboss.ws.core.soap.MessageContextAssociation;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.extensions.eventing.EventingConstants;
+import org.jboss.ws.extensions.eventing.common.EventingEndpointBase;
+import org.jboss.ws.extensions.eventing.mgmt.SubscriptionError;
+import org.w3c.dom.Element;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.xml.namespace.QName;
+import javax.xml.rpc.soap.SOAPFaultException;
+import javax.xml.ws.addressing.AddressingProperties;
+import javax.xml.ws.addressing.JAXWSAConstants;
+import javax.xml.ws.addressing.ReferenceParameters;
+import javax.xml.ws.addressing.Action;
+import java.net.URI;
+import java.net.URISyntaxException;
+import java.util.Date;
+
+/**
+ * @author Heiko.Braun(a)jboss.org
+ * @version $Id$
+ * @since 16.01.2007
+ */
+@WebService(
+ name = "SubscriptionManager",
+ portName = "SubscriptionManagerPort",
+ targetNamespace = "http://schemas.xmlsoap.org/ws/2004/08/eventing",
+ wsdlLocation = "/WEB-INF/wsdl/wind.wsdl")
+@EndpointConfig(configName = "Standard WSAddressing Endpoint")
+public class SubscriptionManagerEndpointImpl extends EventingEndpointBase implements
SubscriptionManagerEndpoint {
+
+ public static final QName IDQN = new
QName("http://schemas.xmlsoap.org/ws/2004/08/eventing", "Identifier",
"ns1");
+
+ @WebMethod(operationName = "GetStatusOp")
+ @WebResult(name = "GetStatusResponse", targetNamespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing", partName = "body")
+ @Action(
+ input = "http://schemas.xmlsoap.org/ws/2004/08/eventing/GetStatus",
+ output =
"http://schemas.xmlsoap.org/ws/2004/08/eventing/GetStatusResponse"
+ )
+ public GetStatusResponse getStatusOp(@WebParam(name = "GetStatus",
targetNamespace = "http://schemas.xmlsoap.org/ws/2004/08/eventing", partName =
"body") GetStatus body) {
+ URI identifier = retrieveSubscriptionId();
+
+ try
+ {
+ Date leaseTime = getSubscriptionManager().getStatus(identifier);
+ GetStatusResponse response = new GetStatusResponse();
+ response.setExpires(leaseTime);
+
+ return response;
+ }
+ catch (SubscriptionError e)
+ {
+ throw new SOAPFaultException(buildFaultQName(e.getSubcode()), e.getReason(),
null, null);
+ }
+ }
+
+ @WebMethod(operationName = "RenewOp")
+ @WebResult(name = "RenewResponse", targetNamespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing", partName = "body")
+ @Action(
+ input = "http://schemas.xmlsoap.org/ws/2004/08/eventing/Renew",
+ output = "http://schemas.xmlsoap.org/ws/2004/08/eventing/RenewResponse"
+ )
+ public RenewResponse renewOp(@WebParam(name = "Renew", targetNamespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing", partName = "body")
Renew request) {
+
+ URI identifier = retrieveSubscriptionId();
+
+ try
+ {
+ Date newLeaseTime = getSubscriptionManager().renew(identifier,
request.getExpires());
+ RenewResponse response = new RenewResponse();
+ response.setExpires(newLeaseTime);
+
+ return response;
+ }
+ catch (SubscriptionError e)
+ {
+ throw new SOAPFaultException(buildFaultQName(e.getSubcode()), e.getReason(),
null, null);
+ }
+ }
+
+ @WebMethod(operationName = "UnsubscribeOp")
+ @Action(
+ input = "http://schemas.xmlsoap.org/ws/2004/08/eventing/Unsubscribe",
+ output =
"http://schemas.xmlsoap.org/ws/2004/08/eventing/UnsubscribeResponse"
+ )
+ public void unsubscribeOp(@WebParam(name = "Unsubscribe", targetNamespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing", partName = "body")
Unsubscribe body) {
+
+ URI identifier = retrieveSubscriptionId();
+
+ try
+ {
+ getSubscriptionManager().unsubscribe(identifier);
+ }
+ catch (SubscriptionError e)
+ {
+ throw new SOAPFaultException(buildFaultQName(e.getSubcode()), e.getReason(),
null, null);
+ }
+
+ }
+
+ private URI retrieveSubscriptionId()
+ {
+ URI subscriptionId = null;
+ CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
+ AddressingProperties addrProps =
(AddressingProperties)msgContext.getProperty(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_INBOUND);
+
+ if (null == addrProps)
+ {
+ throw new SOAPFaultException(
+ Constants.SOAP11_FAULT_CODE_CLIENT,
+ "The message is not valid and cannot be processed: " +
+ "Cannot obtain addressing properties.",
+ null, null
+ );
+ }
+
+ ReferenceParameters refParams = addrProps.getReferenceParameters();
+ if (refParams != null)
+ {
+ for (Object obj : refParams.getElements())
+ {
+ if (obj instanceof Element)
+ {
+ Element el = (Element)obj;
+ QName qname = DOMUtils.getElementQName(el);
+ if (qname.equals(IDQN))
+ {
+ try
+ {
+ subscriptionId = new URI(DOMUtils.getTextContent(el));
+ break;
+ }
+ catch (URISyntaxException e)
+ {
+ throw new SOAPFaultException(
+ Constants.SOAP11_FAULT_CODE_CLIENT,
+ "The message is not valid and cannot be processed: " +
+ "Invalid subscription id.",
+ null, null
+ );
+ }
+ }
+ }
+ }
+ }
+
+ if (null == subscriptionId)
+ {
+ throw new SOAPFaultException(
+ buildFaultQName(EventingConstants.CODE_INVALID_MESSAGE),
+ "The message is not valid and cannot be processed: "
+ + "Cannot obtain subscription id.",
+ null, null
+ );
+ }
+
+ return subscriptionId;
+ }
+}
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/Unsubscribe.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/Unsubscribe.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/Unsubscribe.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,96 @@
+
+package org.jboss.ws.extensions.eventing.jaxws;
+
+
+import org.w3c.dom.Element;
+
+import javax.xml.bind.annotation.*;
+import javax.xml.namespace.QName;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+
+/**
+ * <p>Java class for Unsubscribe element declaration.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <element name="Unsubscribe">
+ * <complexType>
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <any/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </element>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "any"
+})
+@XmlRootElement(name = "Unsubscribe")
+public class Unsubscribe {
+
+ @XmlAnyElement(lax = true)
+ protected List<Object> any;
+ @XmlAnyAttribute
+ private Map<QName, String> otherAttributes = new HashMap<QName,
String>();
+
+ /**
+ * Gets the value of the any property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the any
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Element }
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets a map that contains attributes that aren't bound to any typed property on
this class.
+ *
+ * <p>
+ * the map is keyed by the name of the attribute and
+ * the value is the string value of the attribute.
+ *
+ * the map returned by this method is live, and you can add new attribute
+ * by updating the map directly. Because of this design, there's no setter.
+ *
+ *
+ * @return
+ * always non-null
+ */
+ public Map<QName, String> getOtherAttributes() {
+ return otherAttributes;
+ }
+
+}
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/package-info.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/package-info.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/package-info.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,2 @@
+(a)javax.xml.bind.annotation.XmlSchema(namespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing")
+package org.jboss.ws.extensions.eventing.jaxws;
Copied:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/DispatchException.java
(from rev 1983,
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/DispatchException.java)
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/DispatchException.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/DispatchException.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,36 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.ws.extensions.eventing.mgmt;
+
+
+import org.jboss.ws.WSException;
+
+public class DispatchException extends WSException {
+
+ public DispatchException() {
+ super();
+ }
+
+ public DispatchException(String message) {
+ super(message);
+ }
+}
\ No newline at end of file
Modified:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/DispatcherFactory.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/DispatcherFactory.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/DispatcherFactory.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -1,3 +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.
+ */
package org.jboss.ws.extensions.eventing.mgmt;
import java.util.Hashtable;
Modified:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/Filter.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/Filter.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/Filter.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -28,7 +28,6 @@
/**
* A local filter representation.
*
- * @see org.jboss.ws.extensions.eventing.element.FilterType
*
* @author Heiko Braun, <heiko(a)openj.net>
* @since 08-Dec-2005
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/NotificationFailure.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/NotificationFailure.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/NotificationFailure.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,92 @@
+/*
+ * 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.extensions.eventing.mgmt;
+
+import java.net.URI;
+import java.net.URISyntaxException;
+
+import org.jboss.ws.core.utils.DOMWriter;
+import org.jboss.ws.WSException;
+import org.w3c.dom.Element;
+
+/**
+ * Represent an error during notification.
+ *
+ * @author Stefano Maestri <stefano.maestri(a)javalinux.it>, Alessio Soldano
<alessio.soldano(a)javalinux.it>
+ * @since 26/11/2006
+ */
+
+public class NotificationFailure
+{
+ private URI endTo;
+ private Element event;
+ private Exception exception;
+
+ public NotificationFailure(String endTo, Element event, Exception exception)
+ {
+ super();
+ try {
+ this.endTo = new URI(endTo);
+ } catch (URISyntaxException e) {
+ throw new WSException(e);
+ }
+ this.event = event;
+ this.exception = exception;
+ }
+ public URI getEndTo()
+ {
+ return endTo;
+ }
+ public void setEndTo(URI endTo)
+ {
+ this.endTo = endTo;
+ }
+ public Element getEvent()
+ {
+ return event;
+ }
+ public void setEvent(Element event)
+ {
+ this.event = event;
+ }
+ public Exception getException()
+ {
+ return exception;
+ }
+ public void setException(Exception exception)
+ {
+ this.exception = exception;
+ }
+
+ public String toString() {
+ StringBuffer sb = new StringBuffer();
+ sb.append("endTo: ");
+ sb.append(endTo);
+ sb.append("\n\nevent: ");
+ sb.append(DOMWriter.printNode(event, false));
+ sb.append("\n\nexception: ");
+ sb.append(exception);
+ sb.append("\n*******************\n");
+ return sb.toString();
+ }
+
+}
Modified:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/Subscription.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/Subscription.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/Subscription.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -26,11 +26,13 @@
import java.io.ByteArrayInputStream;
import java.net.URI;
import java.net.URL;
+import java.net.URISyntaxException;
import java.util.Date;
import javax.xml.soap.MessageFactory;
import javax.xml.soap.SOAPMessage;
import javax.xml.transform.TransformerException;
+import javax.xml.bind.JAXBElement;
import org.apache.xpath.XPathAPI;
import org.apache.xpath.objects.XObject;
@@ -38,8 +40,8 @@
import org.jboss.ws.core.soap.SOAPConnectionImpl;
import org.jboss.ws.core.utils.DOMWriter;
import org.jboss.ws.extensions.eventing.EventingConstants;
-import org.jboss.ws.extensions.eventing.element.EndpointReference;
-import org.jboss.ws.extensions.eventing.element.NotificationFailure;
+import org.jboss.ws.extensions.eventing.jaxws.AttributedURIType;
+import org.jboss.ws.extensions.eventing.jaxws.EndpointReferenceType;
import org.w3c.dom.Element;
/**
@@ -52,23 +54,23 @@
{
final private static Logger log = Logger.getLogger(Subscription.class);
- final private EndpointReference notifyTo;
- final private EndpointReference endTo;
+ final private EndpointReferenceType notifyTo;
+ final private EndpointReferenceType endTo;
private Date expires;
final private Filter filter;
- final private EndpointReference endpointReference;
+ final private EndpointReferenceType endpointReference;
final private URI eventSourceNS;
private SubscriptionManagerFactory factory =
SubscriptionManagerFactory.getInstance();
- public Subscription(URI eventSourceNS, EndpointReference endpointReference,
EndpointReference notifyTo, EndpointReference endTo, Date expires, Filter filter)
+ public Subscription(URI eventSourceNS, EndpointReferenceType epr,
EndpointReferenceType notifyTo, EndpointReferenceType endTo, Date expires, Filter filter)
{
this.eventSourceNS = eventSourceNS;
this.notifyTo = notifyTo;
this.endTo = endTo; // is optional, can be null
this.expires = expires;
this.filter = filter;
- this.endpointReference = endpointReference;
+ this.endpointReference = epr;
}
public void notify(Element event)
@@ -96,13 +98,14 @@
sb.append("</env:Envelope>");
SOAPMessage reqMsg = msgFactory.createMessage(null, new
ByteArrayInputStream(sb.toString().getBytes()));
- URL epURL = notifyTo.getAddress().toURL();
+ URL epURL = new URL(notifyTo.getAddress().getValue());
new SOAPConnectionImpl().callOneWay(reqMsg, epURL);
}
catch (Exception e)
{
SubscriptionManagerMBean manager = factory.getSubscriptionManager();
- NotificationFailure failure = new NotificationFailure(this.endTo.getAddress(),
event, e);
+ AttributedURIType address = this.endTo.getAddress();
+ NotificationFailure failure = new NotificationFailure(address.getValue(), event,
e);
manager.addNotificationFailure(failure);
log.error("Failed to send notification message", e);
}
@@ -169,7 +172,7 @@
{
MessageFactory msgFactory = MessageFactory.newInstance();
SOAPMessage reqMsg = msgFactory.createMessage(null, new
ByteArrayInputStream(sb.toString().getBytes()));
- URL epURL = endTo.getAddress().toURL();
+ URL epURL = new URL(endTo.getAddress().getValue());
new SOAPConnectionImpl().callOneWay(reqMsg, epURL);
}
catch (Exception e)
@@ -189,12 +192,12 @@
return System.currentTimeMillis() > expires.getTime();
}
- public EndpointReference getNotifyTo()
+ public EndpointReferenceType getNotifyTo()
{
return notifyTo;
}
- public EndpointReference getEndTo()
+ public EndpointReferenceType getEndTo()
{
return endTo;
}
@@ -209,14 +212,19 @@
return filter;
}
- public EndpointReference getEndpointReference()
+ public EndpointReferenceType getEndpointReferenceType()
{
return endpointReference;
}
public URI getIdentifier()
{
- return endpointReference.getReferenceParams().getIdentifier();
+ try {
+ JAXBElement<String> jaxbElement =
(JAXBElement<String>)endpointReference.getReferenceParameters().getAny().get(0);
+ return new URI(jaxbElement.getValue());
+ } catch (URISyntaxException e) {
+ throw new RuntimeException(e);
+ }
}
public void setExpires(Date expires)
Modified:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManager.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManager.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManager.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -46,6 +46,8 @@
import javax.naming.NamingException;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;
+import javax.xml.bind.JAXBElement;
+import javax.xml.namespace.QName;
import org.jboss.logging.Logger;
import org.jboss.util.naming.Util;
@@ -55,11 +57,10 @@
import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.core.utils.DOMWriter;
import org.jboss.ws.extensions.eventing.EventingConstants;
-import org.jboss.ws.extensions.eventing.DispatchException;
+import org.jboss.ws.extensions.eventing.jaxws.EndpointReferenceType;
+import org.jboss.ws.extensions.eventing.jaxws.ReferenceParametersType;
+import org.jboss.ws.extensions.eventing.jaxws.AttributedURIType;
import org.jboss.ws.extensions.eventing.deployment.EventingEndpointDI;
-import org.jboss.ws.extensions.eventing.element.EndpointReference;
-import org.jboss.ws.extensions.eventing.element.ReferenceParameters;
-import org.jboss.ws.extensions.eventing.element.NotificationFailure;
import org.w3c.dom.Element;
import org.xml.sax.InputSource;
import org.xml.sax.SAXParseException;
@@ -67,7 +68,7 @@
import org.apache.xml.utils.DefaultErrorHandler;
/**
- * The SubscriptionManager maintains event sources and subscriptions.<br>
+ * The SubscriptionManagerEndpoint maintains event sources and subscriptions.<br>
* It is interfaced through the EventSourceEndpoint and SubscriptionManagerEndpoint SOAP
endpoints.
* <p>
* Applications can use the EventDispatcher interface to dispatch
@@ -84,9 +85,9 @@
* <p>
* Currently only event push is supported.
*
- * @see org.jboss.ws.extensions.eventing.EventSourceEndpoint
- * @see org.jboss.ws.extensions.eventing.SubscriptionManagerEndpoint
- * @see org.jboss.ws.extensions.eventing.element.FilterType
+ * @see org.jboss.ws.extensions.eventing.jaxws.EventSourceEndpoint
+ * @see org.jboss.ws.extensions.eventing.jaxws.SubscriptionManagerEndpoint
+ * @see org.jboss.ws.extensions.eventing.jaxws.FilterType
*
* @author Heiko Braun, <heiko(a)openj.net>
* @since 02-Dec-2005
@@ -257,15 +258,15 @@
}
/**
- * the of deployment info's is unknown therefore we try to
- * update the event source manager EPR anytime.
+ * When both the EventSourcePort and the SubscriptionManagerPort are registered
+ * we finally know the real SubscriptionManager EPR and update the endpoint adress.
* @param deploymentInfo
* @param eventSource
*/
private static void updateManagerAddress(EventingEndpointDI deploymentInfo,
EventSource eventSource)
{
String addr = null;
- if(deploymentInfo.getPortName().equals("SubscriptionManagerPort")) //
hackalert
+
if(deploymentInfo.getPortName().getLocalPart().equals("SubscriptionManagerPort"))
addr = deploymentInfo.getEndpointAddress();
if(addr!=null)
@@ -291,7 +292,7 @@
/**
* Subscribe to an event source.
*/
- public SubscriptionTicket subscribe(URI eventSourceNS, EndpointReference notifyTo,
EndpointReference endTo, Date expires, Filter filter) throws SubscriptionError
+ public SubscriptionTicket subscribe(URI eventSourceNS, EndpointReferenceType notifyTo,
EndpointReferenceType endTo, Date expires, Filter filter) throws SubscriptionError
{
log.debug("Subscription request for " + eventSourceNS);
@@ -333,16 +334,24 @@
}
// create subscription
- EndpointReference endpointReference = new EndpointReference();
- endpointReference.setAddress(eventSource.getManagerAddress());
- endpointReference.setReferenceParams(new
ReferenceParameters(generateSubscriptionID()));
+ EndpointReferenceType epr = new EndpointReferenceType();
+ AttributedURIType attrURI = new AttributedURIType();
+ attrURI.setValue(eventSource.getManagerAddress().toString());
+ epr.setAddress(attrURI);
+ ReferenceParametersType refParam = new ReferenceParametersType();
+ JAXBElement idqn = new JAXBElement(
+ new
QName("http://schemas.xmlsoap.org/ws/2004/08/eventing",
"Identifier"),
+ String.class, generateSubscriptionID().toString()
+ );
+ refParam.getAny().add(idqn);
+ epr.setReferenceParameters(refParam);
- Subscription subscription = new Subscription(eventSource.getNameSpace(),
endpointReference, notifyTo, endTo, expires, filter);
+ Subscription subscription = new Subscription(eventSource.getNameSpace(), epr,
notifyTo, endTo, expires, filter);
subscriptionMapping.get(eventSourceNS).add(subscription);
log.debug("Registered subscription " + subscription.getIdentifier());
- return new SubscriptionTicket(endpointReference, subscription.getExpires());
+ return new SubscriptionTicket(epr, subscription.getExpires());
}
private void assertLeaseConstraints(Date expireDate) throws SubscriptionError
Modified:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManagerMBean.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManagerMBean.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManagerMBean.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -28,8 +28,7 @@
import java.util.List;
import org.jboss.ws.extensions.eventing.deployment.EventingEndpointDI;
-import org.jboss.ws.extensions.eventing.element.EndpointReference;
-import org.jboss.ws.extensions.eventing.element.NotificationFailure;
+import org.jboss.ws.extensions.eventing.jaxws.EndpointReferenceType;
import org.w3c.dom.Element;
/**
@@ -81,8 +80,8 @@
public void setEventKeepAlive(long millies);
- // subscription endpointReference business
- SubscriptionTicket subscribe(URI eventSourceNS, EndpointReference notifyTo,
EndpointReference endTo, Date expires, Filter filter) throws SubscriptionError;
+ // subscription EndpointReferenceType business
+ SubscriptionTicket subscribe(URI eventSourceNS, EndpointReferenceType notifyTo,
EndpointReferenceType endTo, Date expires, Filter filter) throws SubscriptionError;
Date renew(URI identifier, Date lease) throws SubscriptionError;
Modified:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionTicket.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionTicket.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionTicket.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -23,25 +23,30 @@
// $Id$
+import org.jboss.ws.extensions.eventing.jaxws.EndpointReferenceType;
+
+import javax.xml.bind.JAXBElement;
import java.net.URI;
import java.util.Date;
-import org.jboss.ws.extensions.eventing.element.EndpointReference;
-
/**
* @author Heiko Braun, <heiko(a)openj.net>
* @since 02-Dec-2005
*/
public final class SubscriptionTicket
{
-
private URI identifier;
- private EndpointReference subscriptionManager;
+ private EndpointReferenceType subscriptionManager;
private Date expires;
- public SubscriptionTicket(EndpointReference subscriptionManager, Date expires)
+ public SubscriptionTicket(EndpointReferenceType subscriptionManager, Date expires)
{
- this.identifier = subscriptionManager.getReferenceParams().getIdentifier();
+ try {
+ JAXBElement<String> jaxbElement =
(JAXBElement<String>)subscriptionManager.getReferenceParameters().getAny().get(0);
+ this.identifier = new URI(jaxbElement.getValue());
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
this.subscriptionManager = subscriptionManager;
this.expires = expires;
}
@@ -51,7 +56,7 @@
return identifier;
}
- public org.jboss.ws.extensions.eventing.element.EndpointReference
getSubscriptionManager()
+ public EndpointReferenceType getSubscriptionManager()
{
return subscriptionManager;
}
@@ -59,5 +64,5 @@
public Date getExpires()
{
return expires;
- }
+ }
}
Modified:
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/builder/MetaDataBuilder.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/builder/MetaDataBuilder.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/builder/MetaDataBuilder.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -26,6 +26,12 @@
import org.jboss.logging.Logger;
import org.jboss.ws.Constants;
import org.jboss.ws.WSException;
+import org.jboss.ws.extensions.eventing.EventingUtils;
+import org.jboss.ws.extensions.eventing.EventingConstants;
+import org.jboss.ws.extensions.eventing.deployment.EventingEndpoint;
+import org.jboss.ws.extensions.eventing.metadata.EventingEpMetaExt;
+import org.jboss.ws.extensions.addressing.AddressingPropertiesImpl;
+import org.jboss.ws.extensions.addressing.metadata.AddressingOpMetaExt;
import org.jboss.ws.core.jaxrpc.Use;
import org.jboss.ws.core.server.ServiceEndpointManager;
import org.jboss.ws.core.server.ServiceEndpointManagerFactory;
@@ -36,7 +42,9 @@
import org.jboss.ws.metadata.umdm.ClientEndpointMetaData;
import org.jboss.ws.metadata.umdm.EndpointMetaData;
import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
+import org.jboss.ws.metadata.umdm.OperationMetaData;
import org.jboss.ws.metadata.wsdl.*;
+import org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel;
import org.w3c.dom.Element;
import javax.management.ObjectName;
@@ -48,6 +56,7 @@
import javax.wsdl.extensions.UnknownExtensibilityElement;
import javax.wsdl.extensions.soap.SOAPAddress;
import javax.xml.namespace.QName;
+import javax.xml.ws.addressing.AddressingProperties;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URI;
@@ -420,4 +429,82 @@
return null;
}
}
+
+ protected void processEndpointMetaDataExtensions(EndpointMetaData epMetaData,
WSDLDefinitions wsdlDefinitions)
+ {
+ for (WSDLInterface wsdlInterface : wsdlDefinitions.getInterfaces())
+ {
+ WSDLProperty eventSourceProp =
wsdlInterface.getProperty(Constants.WSDL_PROPERTY_EVENTSOURCE);
+ if (eventSourceProp != null && epMetaData instanceof
ServerEndpointMetaData)
+ {
+ ServerEndpointMetaData sepMetaData = (ServerEndpointMetaData)epMetaData;
+ String eventSourceNS = wsdlInterface.getQName().getNamespaceURI() +
"/" + wsdlInterface.getQName().getLocalPart();
+
+ // extract the schema model
+ JBossXSModel schemaModel =
WSDLUtils.getSchemaModel(wsdlDefinitions.getWsdlTypes());
+ String[] notificationSchema =
EventingUtils.extractNotificationSchema(schemaModel);
+
+ // extract the root element NS
+ String notificationRootElementNS = null;
+ WSDLInterfaceOperation wsdlInterfaceOperation =
wsdlInterface.getOperations()[0];
+ if(wsdlInterfaceOperation.getOutputs().length > 0 )
+ {
+ WSDLInterfaceOperationOutput wsdlInterfaceOperationOutput =
wsdlInterfaceOperation.getOutputs()[0];
+ notificationRootElementNS =
wsdlInterfaceOperationOutput.getElement().getNamespaceURI();
+ }
+ else
+ {
+ // WSDL operation of an WSDL interface that is marked as an event source
+ // requires to carry an output message.
+ throw new WSException("Unable to resolve eventing root element NS. No
operation output found at "+
+ wsdlInterfaceOperation.getQName());
+ }
+
+ EventingEpMetaExt ext = new
EventingEpMetaExt(EventingConstants.NS_EVENTING);
+ ext.setEventSourceNS(eventSourceNS);
+ ext.setNotificationSchema(notificationSchema);
+ ext.setNotificationRootElementNS(notificationRootElementNS);
+
+ sepMetaData.addExtension(ext);
+ sepMetaData.setManagedEndpointBean(EventingEndpoint.class.getName());
+ }
+ }
+ }
+
+ /** Process operation meta data extensions. */
+ protected void processOpMetaExtensions(OperationMetaData opMetaData,
WSDLInterfaceOperation wsdlOperation)
+ {
+
+ String tns = wsdlOperation.getQName().getNamespaceURI();
+ String portTypeName = wsdlOperation.getQName().getLocalPart();
+
+ AddressingProperties ADDR = new AddressingPropertiesImpl();
+ AddressingOpMetaExt addrExt = new AddressingOpMetaExt(ADDR.getNamespaceURI());
+
+ // inbound action
+ WSDLProperty wsaInAction =
wsdlOperation.getProperty(Constants.WSDL_PROPERTY_ACTION_IN);
+ if (wsaInAction != null)
+ {
+ addrExt.setInboundAction(wsaInAction.getValue());
+ }
+ else
+ {
+ WSDLProperty messageName =
wsdlOperation.getProperty(Constants.WSDL_PROPERTY_MESSAGE_NAME_IN);
+ addrExt.setInboundAction(tns + "/" + portTypeName + "/" +
messageName);
+ }
+
+ // outbound action
+ WSDLProperty wsaOutAction =
wsdlOperation.getProperty(Constants.WSDL_PROPERTY_ACTION_OUT);
+ if (wsaOutAction != null)
+ {
+ addrExt.setOutboundAction(wsaOutAction.getValue());
+ }
+ else
+ {
+ WSDLProperty messageName =
wsdlOperation.getProperty(Constants.WSDL_PROPERTY_MESSAGE_NAME_OUT);
+ addrExt.setOutboundAction(tns + "/" + portTypeName + "/" +
messageName);
+ }
+
+ opMetaData.addExtension(addrExt);
+ }
}
Modified:
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/builder/jaxrpc/JAXRPCMetaDataBuilder.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/builder/jaxrpc/JAXRPCMetaDataBuilder.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/builder/jaxrpc/JAXRPCMetaDataBuilder.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -945,81 +945,4 @@
}
}
- protected void processEndpointMetaDataExtensions(EndpointMetaData epMetaData,
WSDLDefinitions wsdlDefinitions)
- {
- for (WSDLInterface wsdlInterface : wsdlDefinitions.getInterfaces())
- {
- WSDLProperty eventSourceProp =
wsdlInterface.getProperty(Constants.WSDL_PROPERTY_EVENTSOURCE);
- if (eventSourceProp != null && epMetaData instanceof
ServerEndpointMetaData)
- {
- ServerEndpointMetaData sepMetaData = (ServerEndpointMetaData)epMetaData;
- String eventSourceNS = wsdlInterface.getQName().getNamespaceURI() +
"/" + wsdlInterface.getQName().getLocalPart();
-
- // extract the schema model
- JBossXSModel schemaModel =
WSDLUtils.getSchemaModel(wsdlDefinitions.getWsdlTypes());
- String[] notificationSchema =
EventingUtils.extractNotificationSchema(schemaModel);
-
- // extract the root element NS
- String notificationRootElementNS = null;
- WSDLInterfaceOperation wsdlInterfaceOperation =
wsdlInterface.getOperations()[0];
- if(wsdlInterfaceOperation.getOutputs().length > 0 )
- {
- WSDLInterfaceOperationOutput wsdlInterfaceOperationOutput =
wsdlInterfaceOperation.getOutputs()[0];
- notificationRootElementNS =
wsdlInterfaceOperationOutput.getElement().getNamespaceURI();
- }
- else
- {
- // WSDL operation of an WSDL interface that is marked as an event source
- // requires to carry an output message.
- throw new WSException("Unable to resolve eventing root element NS. No
operation output found at "+
- wsdlInterfaceOperation.getQName());
- }
-
- EventingEpMetaExt ext = new
EventingEpMetaExt(EventingConstants.NS_EVENTING);
- ext.setEventSourceNS(eventSourceNS);
- ext.setNotificationSchema(notificationSchema);
- ext.setNotificationRootElementNS(notificationRootElementNS);
-
- sepMetaData.addExtension(ext);
- sepMetaData.setManagedEndpointBean(EventingEndpoint.class.getName());
- }
- }
- }
-
- /** Process operation meta data extensions. */
- protected void processOpMetaExtensions(OperationMetaData opMetaData,
WSDLInterfaceOperation wsdlOperation)
- {
-
- String tns = wsdlOperation.getQName().getNamespaceURI();
- String portTypeName = wsdlOperation.getQName().getLocalPart();
-
- AddressingProperties ADDR = new AddressingPropertiesImpl();
- AddressingOpMetaExt addrExt = new AddressingOpMetaExt(ADDR.getNamespaceURI());
-
- // inbound action
- WSDLProperty wsaInAction =
wsdlOperation.getProperty(Constants.WSDL_PROPERTY_ACTION_IN);
- if (wsaInAction != null)
- {
- addrExt.setInboundAction(wsaInAction.getValue());
- }
- else
- {
- WSDLProperty messageName =
wsdlOperation.getProperty(Constants.WSDL_PROPERTY_MESSAGE_NAME_IN);
- addrExt.setInboundAction(tns + "/" + portTypeName + "/" +
messageName);
- }
-
- // outbound action
- WSDLProperty wsaOutAction =
wsdlOperation.getProperty(Constants.WSDL_PROPERTY_ACTION_OUT);
- if (wsaOutAction != null)
- {
- addrExt.setOutboundAction(wsaOutAction.getValue());
- }
- else
- {
- WSDLProperty messageName =
wsdlOperation.getProperty(Constants.WSDL_PROPERTY_MESSAGE_NAME_OUT);
- addrExt.setOutboundAction(tns + "/" + portTypeName + "/" +
messageName);
- }
-
- opMetaData.addExtension(addrExt);
- }
}
Modified:
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSMetaDataBuilder.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSMetaDataBuilder.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSMetaDataBuilder.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -53,6 +53,7 @@
import javax.xml.ws.ResponseWrapper;
import javax.xml.ws.WebFault;
import javax.xml.ws.addressing.AddressingProperties;
+import javax.xml.ws.addressing.Action;
import org.jboss.logging.Logger;
import org.jboss.ws.Constants;
@@ -239,7 +240,7 @@
{
if (omd.isOneWay())
throw new IllegalStateException("JSR-181 4.3.1 - A JSR-181 processor is
REQUIRED to report an error if an operation marked "
- + "@Oneway has a return value, declares any checked exceptions or has
any INOUT or OUT parameters.");
+ + "@Oneway has a return value, declares any checked exceptions or has
any INOUT or OUT parameters.");
WebFault annotation = exception.getAnnotation(WebFault.class);
@@ -445,7 +446,7 @@
if (namespace == null && (opMetaData.isDocumentBare() || header))
namespace = opMetaData.getQName().getNamespaceURI();
- // RPC body parts must have no namespace
+ // RPC body parts must have no namespace
else if (opMetaData.isRPCLiteral() && !header)
namespace = null;
@@ -480,7 +481,7 @@
if (namespace == null && (opMetaData.isDocumentBare() || header))
namespace = opMetaData.getQName().getNamespaceURI();
- // RPC body parts must have no namespace
+ // RPC body parts must have no namespace
else if (opMetaData.isRPCLiteral() && !header)
namespace = null;
@@ -494,20 +495,28 @@
/**
* Process operation meta data extensions.
*/
- private void processMetaExtensions(EndpointMetaData epMetaData, OperationMetaData
opMetaData)
+ private void processMetaExtensions(Method method, EndpointMetaData epMetaData,
OperationMetaData opMetaData)
{
- // Until there is a addressing annotion we fallback to implicit action association
- // TODO: figure out a way to assign message name instead of IN and OUT
- String tns = epMetaData.getPortName().getNamespaceURI();
- String portTypeName = epMetaData.getPortName().getLocalPart();
-
AddressingProperties ADDR = new AddressingPropertiesImpl();
AddressingOpMetaExt addrExt = new AddressingOpMetaExt(ADDR.getNamespaceURI());
- addrExt.setInboundAction(tns + "/" + portTypeName + "/IN");
- if (!opMetaData.isOneWay())
- addrExt.setOutboundAction(tns + "/" + portTypeName +
"/OUT");
+ Action anAction = method.getAnnotation(Action.class);
+ if(anAction!=null)
+ {
+ addrExt.setInboundAction(anAction.input());
+ addrExt.setOutboundAction(anAction.output());
+ }
+ else // default action values
+ {
+ // TODO: figure out a way to assign message name instead of IN and OUT
+ String tns = epMetaData.getPortName().getNamespaceURI();
+ String portTypeName = epMetaData.getPortName().getLocalPart();
+ addrExt.setInboundAction(tns + "/" + portTypeName + "/IN");
+ if (!opMetaData.isOneWay())
+ addrExt.setOutboundAction(tns + "/" + portTypeName +
"/OUT");
+ }
+
opMetaData.addExtension(addrExt);
}
@@ -722,7 +731,7 @@
addFault(opMetaData, exClass);
// process op meta data extension
- processMetaExtensions(epMetaData, opMetaData);
+ processMetaExtensions(method, epMetaData, opMetaData);
}
protected void processWebMethods(EndpointMetaData epMetaData, Class wsClass)
Modified:
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSWebServiceMetaDataBuilder.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSWebServiceMetaDataBuilder.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSWebServiceMetaDataBuilder.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -140,6 +140,9 @@
if (sepClass.isAnnotationPresent(SOAPMessageHandlers.class) ||
seiClass.isAnnotationPresent(SOAPMessageHandlers.class))
log.warn("@SOAPMessageHandlers is deprecated as of JAX-WS 2.0 with no
replacement.");
+ // process endpoint meta data extensions
+ processEndpointMetaDataExtensions(sepMetaData, wsdlDefinitions);
+
// init service endpoint id
ObjectName sepID = MetaDataBuilder.createServiceEndpointID(udi, sepMetaData);
sepMetaData.setServiceEndpointID(sepID);
Modified: trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/config/Configurable.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/config/Configurable.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/config/Configurable.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -4,6 +4,8 @@
/**
* A marker interface that identifies configurable JBossWS components.
+ * Configurables may register themselves with a {@link ConfigurationProvider} in order
+ * to get notified then the configuration changes.
*
* @author Heiko.Braun(a)jboss.org
* @version $Id$
Modified:
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/config/ConfigurationProvider.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/config/ConfigurationProvider.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/config/ConfigurationProvider.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -48,6 +48,8 @@
*/
void configure(Configurable configurable);
+ void registerConfigObserver(Configurable configurable);
+
String getConfigFile();
void setConfigFile(String configFile);
Modified:
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/umdm/EndpointMetaData.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/umdm/EndpointMetaData.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/metadata/umdm/EndpointMetaData.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -587,7 +587,7 @@
public void configure(Configurable configurable) {
// emit notificatins when the config changes
- this.configObservable.addObserver(configurable);
+ registerConfigObserver(configurable);
if(null == config)
{
@@ -619,15 +619,19 @@
log.debug("Configure EndpointMetaData");
- List<HandlerMetaData> sepHandlers =
getHandlerMetaData(HandlerType.ENDPOINT);
- clearHandlers();
+ // It's not necessarily the same instance
+ EndpointMetaData epmd = (EndpointMetaData)configurable;
+ // TODO: Why should we keep them?
+ List<HandlerMetaData> sepHandlers =
epmd.getHandlerMetaData(HandlerType.ENDPOINT);
+ epmd.clearHandlers();
+
List<HandlerMetaData> preHandlers = config.getHandlers(this,
HandlerType.PRE);
List<HandlerMetaData> postHandlers = config.getHandlers(this,
HandlerType.POST);
- addHandlers(preHandlers);
- addHandlers(sepHandlers);
- addHandlers(postHandlers);
+ epmd.addHandlers(preHandlers);
+ epmd.addHandlers(sepHandlers);
+ epmd.addHandlers(postHandlers);
log.debug("Added " + preHandlers.size() + " PRE handlers");
log.debug("Added " + postHandlers.size() + " POST
handlers");
@@ -635,6 +639,10 @@
}
+ public void registerConfigObserver(Configurable observer) {
+ this.configObservable.addObserver(observer);
+ }
+
public String getConfigFile()
{
return configFile;
@@ -656,7 +664,7 @@
this.configName = configName;
this.config = null;
- // notify obervers
+ // notify observers
log.debug("Reconfiguration forced");
this.configObservable.touch();
this.configObservable.notifyObservers(configName);
@@ -669,7 +677,7 @@
public void update(Observable observable, Object object) {
log.trace("Ingore configuration change notification");
-}
+ }
class ConfigObservable extends Observable {
public void touch()
Modified: trunk/jbossws-tests/ant-import/build-jars-jaxrpc.xml
===================================================================
--- trunk/jbossws-tests/ant-import/build-jars-jaxrpc.xml 2007-01-18 12:00:15 UTC (rev
1993)
+++ trunk/jbossws-tests/ant-import/build-jars-jaxrpc.xml 2007-01-18 12:54:34 UTC (rev
1994)
@@ -1745,7 +1745,7 @@
</jar>
<!-- jaxrpc-wseventing -->
- <war warfile="${tests.output.dir}/libs/jaxrpc-wseventing.war"
webxml="${tests.output.dir}/resources/jaxrpc/wseventing/WEB-INF/web.xml">
+ <!--war warfile="${tests.output.dir}/libs/jaxrpc-wseventing.war"
webxml="${tests.output.dir}/resources/jaxrpc/wseventing/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/classes">
<include name="org/jboss/ws/eventing/*.class"/>
<include name="org/jboss/test/ws/jaxrpc/wseventing/*.class"/>
@@ -1768,7 +1768,7 @@
<include name="application-client.xml"/>
<include name="jboss-client.xml"/>
</metainf>
- </jar>
+ </jar-->
<!-- jaxrpc-wsse-account-signup.war -->
<war warfile="${tests.output.dir}/libs/jaxrpc-wsse-account-signup.war"
webxml="${tests.output.dir}/resources/jaxrpc/wsse/account-signup/WEB-INF/web.xml">
Modified: trunk/jbossws-tests/ant-import/build-jars-jaxws.xml
===================================================================
--- trunk/jbossws-tests/ant-import/build-jars-jaxws.xml 2007-01-18 12:00:15 UTC (rev
1993)
+++ trunk/jbossws-tests/ant-import/build-jars-jaxws.xml 2007-01-18 12:54:34 UTC (rev
1994)
@@ -697,6 +697,30 @@
<!-- Please add alphabetically -->
+
+ <!-- jaxws-wseventing -->
+ <war warfile="${tests.output.dir}/libs/jaxws-wseventing.war"
+
webxml="${tests.output.dir}/resources/jaxws/wseventing/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/classes">
+ <include name="org/jboss/ws/eventing/*.class"/>
+ <include name="org/jboss/test/ws/jaxws/wseventing/*.class"/>
+ </classes>
+ <webinf
dir="${tests.output.dir}/resources/jaxws/wseventing/WEB-INF">
+ <include name="wsdl/**"/>
+ </webinf>
+ </war>
+ <!--jar
jarfile="${tests.output.dir}/libs/jaxws-wseventing-client.jar">
+ <fileset dir="${tests.output.dir}/classes">
+ <include name="org/jboss/ws/eventing/*.class"/>
+ </fileset>
+ <metainf
dir="${tests.output.dir}/resources/jaxws/wseventing/WEB-INF">
+ <include name="wsdl/**"/>
+ </metainf>
+ <metainf
dir="${tests.output.dir}/resources/jaxws/wseventing/META-INF">
+ <include name="application-client.xml"/>
+ <include name="jboss-client.xml"/>
+ </metainf>
+ </jar-->
</target>
</project>
Modified: trunk/jbossws-tests/build.xml
===================================================================
--- trunk/jbossws-tests/build.xml 2007-01-18 12:00:15 UTC (rev 1993)
+++ trunk/jbossws-tests/build.xml 2007-01-18 12:54:34 UTC (rev 1994)
@@ -204,6 +204,8 @@
<src path="${tests.java.dir}"/>
<exclude name="org/jboss/test/ws/interop/**"/>
<exclude name="org/jboss/test/ws/jaxrpc/jbws718/**"/>
+ <exclude name="org/jboss/test/ws/jaxrpc/wseventing/**"/>
+ <exclude name="org/jboss/test/ws/jaxrpc/samples/wseventing/**"/>
<exclude name="org/jboss/test/ws/jaxws/**"/>
<exclude name="org/jboss/test/ws/tools/jsr181/**"/>
<classpath refid="javac.classpath"/>
@@ -216,6 +218,8 @@
<src path="${tests.java.dir}"/>
<exclude name="org/jboss/test/ws/interop/**"/>
<exclude name="org/jboss/test/ws/jaxrpc/jbws718/**"/>
+ <exclude name="org/jboss/test/ws/jaxrpc/wseventing/**"/>
+ <exclude name="org/jboss/test/ws/jaxrpc/samples/wseventing/**"/>
<classpath refid="javac.classpath"/>
</javac>
</target>
Modified:
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/samples/wseventing/SysmonTestCase.java
===================================================================
---
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/samples/wseventing/SysmonTestCase.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/samples/wseventing/SysmonTestCase.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -47,16 +47,11 @@
import org.jboss.ws.core.jaxrpc.ServiceImpl;
import org.jboss.ws.extensions.addressing.AddressingClientUtil;
import org.jboss.ws.extensions.addressing.jaxrpc.WSAddressingClientHandler;
-import org.jboss.ws.extensions.eventing.EventSourceEndpoint;
+import org.jboss.ws.extensions.eventing.jaxrpc.EventSourceEndpoint;
import org.jboss.ws.extensions.eventing.EventingConstants;
-import org.jboss.ws.extensions.eventing.SubscriptionManagerEndpoint;
-import org.jboss.ws.extensions.eventing.element.DeliveryType;
-import org.jboss.ws.extensions.eventing.element.EndpointReference;
-import org.jboss.ws.extensions.eventing.element.FilterType;
-import org.jboss.ws.extensions.eventing.element.StatusRequest;
-import org.jboss.ws.extensions.eventing.element.SubscribeRequest;
-import org.jboss.ws.extensions.eventing.element.SubscribeResponse;
-import org.jboss.ws.extensions.eventing.element.UnsubscribeRequest;
+import org.jboss.ws.extensions.eventing.jaxrpc.SubscriptionManagerEndpoint;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.EndpointReference;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.*;
/**
* Test the eventing example service.
@@ -99,21 +94,21 @@
ServiceFactoryImpl factory = new ServiceFactoryImpl();
URL wsdlURL = new
File("resources/jaxrpc/samples/wseventing/WEB-INF/wsdl/sysmon.wsdl").toURL();
URL mappingURL = new
File("resources/jaxrpc/samples/wseventing/WEB-INF/jaxrpc-mapping.xml").toURL();
-
+
QName serviceName = new
QName("http://schemas.xmlsoap.org/ws/2004/08/eventing",
"EventingService");
QName portName1 = new
QName("http://schemas.xmlsoap.org/ws/2004/08/eventing",
"EventSourcePort");
QName portName2 = new
QName("http://schemas.xmlsoap.org/ws/2004/08/eventing",
"SubscriptionManagerPort");
-
+
ServiceImpl service = (ServiceImpl)factory.createService(wsdlURL,
serviceName, mappingURL);
HandlerRegistry registry = service.getDynamicHandlerRegistry();
List infos1 = registry.getHandlerChain(portName1);
infos1.add(new HandlerInfo(WSAddressingClientHandler.class, new HashMap(),
new QName[]{}));
registry.setHandlerChain(portName1, infos1);
-
+
List infos2 = registry.getHandlerChain(portName2);
infos2.add(new HandlerInfo(WSAddressingClientHandler.class, new HashMap(),
new QName[]{}));
registry.setHandlerChain(portName2, infos2);
-
+
subscriptionPort =
(EventSourceEndpoint)service.getPort(EventSourceEndpoint.class);
managementPort =
(SubscriptionManagerEndpoint)service.getPort(SubscriptionManagerEndpoint.class);
}
Modified:
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/samples/wseventing/SysmonUtil.java
===================================================================
---
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/samples/wseventing/SysmonUtil.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/samples/wseventing/SysmonUtil.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -11,8 +11,8 @@
import org.jboss.logging.Logger;
import org.jboss.ws.extensions.addressing.AddressingClientUtil;
-import org.jboss.ws.extensions.eventing.element.EndpointReference;
-import org.jboss.ws.extensions.eventing.element.SubscribeResponse;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.EndpointReference;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.SubscribeResponse;
/**
* Util methods that drive the SysmoneTestCase.
Modified:
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/wseventing/DIIClientTestCase.java
===================================================================
---
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/wseventing/DIIClientTestCase.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/wseventing/DIIClientTestCase.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -48,15 +48,11 @@
import org.jboss.ws.core.jaxrpc.ServiceFactoryImpl;
import org.jboss.ws.extensions.addressing.AddressingClientUtil;
import org.jboss.ws.extensions.addressing.jaxrpc.WSAddressingClientHandler;
-import org.jboss.ws.extensions.eventing.EventSourceEndpoint;
+import org.jboss.ws.extensions.eventing.jaxrpc.EventSourceEndpoint;
+import org.jboss.ws.extensions.eventing.jaxrpc.SubscriptionManagerEndpoint;
import org.jboss.ws.extensions.eventing.EventingConstants;
-import org.jboss.ws.extensions.eventing.SubscriptionManagerEndpoint;
-import org.jboss.ws.extensions.eventing.element.DeliveryType;
-import org.jboss.ws.extensions.eventing.element.EndpointReference;
-import org.jboss.ws.extensions.eventing.element.FilterType;
-import org.jboss.ws.extensions.eventing.element.SubscribeRequest;
-import org.jboss.ws.extensions.eventing.element.SubscribeResponse;
-import org.jboss.ws.extensions.eventing.element.UnsubscribeRequest;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.EndpointReference;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.*;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
Modified:
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/wseventing/EventingSupport.java
===================================================================
---
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/wseventing/EventingSupport.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/wseventing/EventingSupport.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -36,14 +36,11 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.ws.extensions.addressing.AddressingClientUtil;
-import org.jboss.ws.extensions.eventing.EventSourceEndpoint;
+import org.jboss.ws.extensions.eventing.jaxrpc.EventSourceEndpoint;
import org.jboss.ws.extensions.eventing.EventingConstants;
-import org.jboss.ws.extensions.eventing.SubscriptionManagerEndpoint;
-import org.jboss.ws.extensions.eventing.element.DeliveryType;
-import org.jboss.ws.extensions.eventing.element.EndpointReference;
-import org.jboss.ws.extensions.eventing.element.FilterType;
-import org.jboss.ws.extensions.eventing.element.SubscribeRequest;
-import org.jboss.ws.extensions.eventing.element.SubscribeResponse;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.EndpointReference;
+import org.jboss.ws.extensions.eventing.jaxrpc.SubscriptionManagerEndpoint;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.*;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
Modified:
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/wseventing/EventingTestCase.java
===================================================================
---
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/wseventing/EventingTestCase.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/wseventing/EventingTestCase.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -35,14 +35,14 @@
import org.jboss.test.ws.JBossWSTestSetup;
import org.jboss.ws.extensions.addressing.AddressingClientUtil;
import org.jboss.ws.extensions.eventing.EventingConstants;
-import org.jboss.ws.extensions.eventing.element.DeliveryType;
-import org.jboss.ws.extensions.eventing.element.RenewRequest;
-import org.jboss.ws.extensions.eventing.element.RenewResponse;
-import org.jboss.ws.extensions.eventing.element.StatusRequest;
-import org.jboss.ws.extensions.eventing.element.StatusResponse;
-import org.jboss.ws.extensions.eventing.element.SubscribeRequest;
-import org.jboss.ws.extensions.eventing.element.SubscribeResponse;
-import org.jboss.ws.extensions.eventing.element.UnsubscribeRequest;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.DeliveryType;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.RenewRequest;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.RenewResponse;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.StatusRequest;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.StatusResponse;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.SubscribeRequest;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.SubscribeResponse;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.UnsubscribeRequest;
/**
* Test the eventing endpoints.
Modified:
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/wseventing/NotificationTestCase.java
===================================================================
---
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/wseventing/NotificationTestCase.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/wseventing/NotificationTestCase.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -30,7 +30,7 @@
import org.jboss.test.ws.JBossWSTestSetup;
import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.extensions.eventing.EventingConstants;
-import org.jboss.ws.extensions.eventing.element.SubscribeResponse;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.SubscribeResponse;
import org.jboss.ws.extensions.eventing.mgmt.EventDispatcher;
import org.w3c.dom.Element;
Modified:
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/wseventing/SubscriptionManagerTestCase.java
===================================================================
---
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/wseventing/SubscriptionManagerTestCase.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/wseventing/SubscriptionManagerTestCase.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -29,15 +29,15 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.extensions.eventing.EventingConstants;
+import org.jboss.ws.extensions.eventing.jaxrpc.element.EndpointReference;
import org.jboss.ws.extensions.eventing.deployment.EventingEndpointDI;
-import org.jboss.ws.extensions.eventing.element.EndpointReference;
import org.jboss.ws.extensions.eventing.mgmt.Filter;
import org.jboss.ws.extensions.eventing.mgmt.SubscriptionManager;
import org.jboss.ws.extensions.eventing.mgmt.SubscriptionTicket;
import org.w3c.dom.Element;
/**
- * SubscriptionManager unit tests.
+ * SubscriptionManagerEndpoint unit tests.
*
* @author Heiko Braun, <heiko(a)openj.net>
* @since 02-Dec-2005
Modified:
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/client/ServiceDelegateTestCase.java
===================================================================
---
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/client/ServiceDelegateTestCase.java 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/client/ServiceDelegateTestCase.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -1,3 +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.
+ */
package org.jboss.test.ws.jaxws.client;
import junit.framework.TestCase;
Added:
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/CustomEventSource.java
===================================================================
---
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/CustomEventSource.java
(rev 0)
+++
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/CustomEventSource.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wseventing;
+
+/**
+ * @author Heiko.Braun(a)jboss.org
+ * @version $Id$
+ * @since 16.01.2007
+ */
+public class CustomEventSource {
+
+}
Added:
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/EventSinkServlet.java
===================================================================
---
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/EventSinkServlet.java
(rev 0)
+++
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/EventSinkServlet.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,72 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wseventing;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.core.utils.DOMWriter;
+import org.w3c.dom.Element;
+
+/**
+ * Simulates an eventsink endpoint.
+ *
+ * @author Heiko Braun, <heiko(a)openj.net>
+ * @since 05-Jan-2006
+ */
+public class EventSinkServlet extends HttpServlet {
+
+ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws
ServletException, IOException {
+ doRequest(request,response);
+ }
+
+ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws
ServletException, IOException {
+ doRequest(request,response);
+ }
+
+ protected void doRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
+
+ StringBuffer sb = new StringBuffer();
+ BufferedReader reader = request.getReader();
+
+ String s = reader.readLine();
+ sb.append( s );
+ while(s!=null)
+ {
+ s = reader.readLine();
+ if(s!=null)
+ sb.append(s);
+ }
+
+ reader.close();
+
+ Element soapEl = DOMUtils.parse(sb.toString());
+ String pretty = DOMWriter.printNode(soapEl, true);
+ getServletContext().log("EventSink received: \n" + pretty);
+ }
+}
Added:
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/EventingSupport.java
===================================================================
---
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/EventingSupport.java
(rev 0)
+++
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/EventingSupport.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,245 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wseventing;
+
+import org.jboss.test.ws.JBossWSTest;
+import org.jboss.ws.core.StubExt;
+import org.jboss.ws.core.soap.SOAPElementImpl;
+import org.jboss.ws.extensions.addressing.AddressingClientUtil;
+import org.jboss.ws.extensions.eventing.EventingConstants;
+import org.jboss.ws.extensions.eventing.jaxws.*;
+import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
+import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
+
+import javax.xml.namespace.QName;
+import javax.xml.rpc.Stub;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Service;
+import javax.xml.ws.addressing.AddressingBuilder;
+import javax.xml.ws.addressing.AddressingProperties;
+import javax.xml.ws.addressing.EndpointReference;
+import javax.xml.ws.addressing.JAXWSAConstants;
+import java.net.MalformedURLException;
+import java.net.URI;
+import java.net.URISyntaxException;
+import java.net.URL;
+
+/**
+ * Eventing test case support.
+ *
+ * @author Heiko Braun, <heiko(a)openj.net>
+ * @since 17-Jan-2006
+ */
+public class EventingSupport extends JBossWSTest
+{
+
+ EventSourceEndpoint eventSourcePort;
+
+ SubscriptionManagerEndpoint managerPort;
+
+ protected URI eventSourceURI = null;
+
+ private static int msgId = 0;
+
+ URL wsdlLocation;
+
+ protected String eventString =
+ "<WindReport type='critical'>\n" +
+ " <Date>030701</Date>\n" +
+ " <Time>0041</Time>\n" +
+ " <Speed>65</Speed>\n" +
+ " <Location>BRADENTON BEACH</Location>\n" +
+ " <County>MANATEE</County>\n" +
+ " <State>FL</State>\n" +
+ " <Lat>2746</Lat>\n" +
+ " <Long>8270</Long>\n" +
+ " <Comments xml:lang='en-US' >\n" +
+ " WINDS 55 WITH GUSTS TO 65. ROOF TORN OFF BOAT HOUSE. REPORTED\n"
+
+ " BY STORM SPOTTER. (TBW)\n" +
+ " </Comments>\n" +
+ "</WindReport>";
+
+ protected static AddressingBuilder addrBuilder =
AddressingBuilder.getAddressingBuilder();
+
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+
+ eventSourceURI = new
URI("http://schemas.xmlsoap.org/ws/2004/08/eventing/Warnings");
+ wsdlLocation = new URL("http://" + getServerHost() +
":8080/jaxws-wseventing/subscribe?wsdl");
+
+ if (eventSourcePort == null)
+ {
+ Service service = Service.create(wsdlLocation, new
QName("","EventingService"));
+ eventSourcePort =
(EventSourceEndpoint)service.getPort(EventSourceEndpoint.class);
+ managerPort =
(SubscriptionManagerEndpoint)service.getPort(SubscriptionManagerEndpoint.class);
+
+ ((StubExt)eventSourcePort).setConfigName("Standard WSAddressing
Client");
+ ((StubExt)managerPort).setConfigName("Standard WSAddressing Client");
+
+ }
+ }
+
+ protected void tearDown() throws Exception
+ {
+
+ super.tearDown();
+
+ // remove event source
+ /*ObjectName oname = EventingConstants.getSubscriptionManagerName();
+ getServer().invoke(oname, "removeEventSource", new Object[] { new
URI(eventSourceURI) }, new String[] { "java.net.URI" });
+ */
+ }
+
+ // ----------------------------------------------------------------------------
+ protected SubscribeResponse doSubscribe()
+ {
+
+ try
+ {
+ // append message correlation headers
+ AddressingProperties requestProps = AddressingClientUtil.createDefaultProps(
+ EventingConstants.SUBSCRIBE_ACTION, eventSourceURI.toString()
+ );
+ requestProps.setMessageID(AddressingClientUtil.createMessageID());
+ setRequestProperties((BindingProvider) eventSourcePort, requestProps);
+
+ // subscription
+ Subscribe request = new Subscribe();
+
+ DeliveryType delivery = getDefaultDelivery();
+ request.setDelivery(delivery);
+ request.setEndTo(delivery.getNotifyTo());
+ request.setFilter(getDefaultFilter());
+ //request.setExpires(new Date());
+
+ SubscribeResponse subscribeResponse = eventSourcePort.subscribeOp(request);
+ assertNotNull(subscribeResponse);
+
+ AddressingProperties responseProps =
getResponseProperties((BindingProvider)eventSourcePort);
+ assertEquals(EventingConstants.SUBSCRIBE_RESPONSE_ACTION,
responseProps.getAction().getURI().toString());
+
+ return subscribeResponse;
+ }
+ catch (Exception e)
+ {
+ throw new RuntimeException("Failed to create subscription: ", e);
+ }
+
+ }
+
+ protected DeliveryType getDefaultDelivery()
+ {
+ try
+ {
+ DeliveryType delivery = new DeliveryType();
+ delivery.setMode(EventingConstants.getDeliveryPush().toString());
+ EndpointReferenceType notifyEPR = new EndpointReferenceType();
+ AttributedURIType attURI = new AttributedURIType();
+ attURI.setValue("http://" + getServerHost() +
":8080/jaxws-wseventing/eventSink");
+ notifyEPR.setAddress(attURI);
+ delivery.setNotifyTo(notifyEPR);
+ return delivery;
+ }
+ catch (Exception e)
+ {
+ throw new IllegalStateException("Failed to create delivery payload",
e);
+ }
+ }
+
+ protected FilterType getDefaultFilter()
+ {
+ FilterType filter = new FilterType();
+ filter.setDialect(EventingConstants.getDialectXPath().toString());
+ filter.getContent().add("/WindReport/State/text()='FL'");
+ return filter;
+ }
+
+ public static void setSubscriptionId(Stub stub, URI identifier)
+ {
+ stub._setProperty("subscriptionId", identifier);
+ }
+
+ public static URI setMessageId(Stub stub) throws Exception
+ {
+ URI messageId = new
URI("http://www.example.org/eventSink/message#" +
(msgId++));
+ //stub._setProperty(SOAPClientHandler.CLIENT_ADDRESSING_REQUEST_MESSAGE_ID,
messageId);
+ return messageId;
+ }
+
+ protected void assertReplyAction(Stub stub, URI expectedAction) throws Exception
+ {
+ // see AddrConstraintsHandler
+ stub._setProperty("wsa:expectedReplyAction", expectedAction);
+ }
+
+ protected void assertRelatesTo(Stub stub, URI expectedRelatesTo) throws Exception
+ {
+ // see AddrConstraintsHandler
+ stub._setProperty("wsa:expectedRelatesTo", expectedRelatesTo);
+ }
+
+ protected void assertWSDLAccess() throws MalformedURLException
+ {
+ WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
+ WSDLDefinitions wsdlDefinitions = factory.parse(wsdlLocation);
+ assertNotNull(wsdlDefinitions);
+ }
+
+ public static void setRequestProperties(BindingProvider provider, AddressingProperties
props) {
+
provider.getRequestContext().put(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND,
props);
+ }
+
+ protected AddressingProperties getResponseProperties(BindingProvider provider) {
+ return
(AddressingProperties)provider.getResponseContext().get(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_INBOUND);
+ }
+
+ public static AddressingProperties buildFollowupProperties(SubscribeResponse response,
String wsaAction, String wsaTo) {
+ try
+ {
+ AddressingProperties followupProps = addrBuilder.newAddressingProperties();
+
+ //followupProps.setTo(addrBuilder.newURI(wsaTo));
+ followupProps.setAction(addrBuilder.newURI(wsaAction));
+ followupProps.setMessageID(AddressingClientUtil.createMessageID());
+
+ // necessary in order to parse ref params
+ EndpointReference epr = addrBuilder.newEndpointReference(new URI(wsaTo));
+
+ String subscriptionID = response.getSubscriptionId();
+ SOAPElementImpl element = new SOAPElementImpl(
+ "Identifier",
+ "wse", "http://schemas.xmlsoap.org/ws/2004/08/eventing"
+ );
+ element.setValue(subscriptionID);
+ epr.getReferenceParameters().addElement(element);
+
+ followupProps.initializeAsDestination(epr);
+
+ return followupProps;
+ }
+ catch (URISyntaxException e)
+ {
+ throw new IllegalArgumentException(e.getMessage());
+ }
+ }
+}
Added:
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/EventingTestCase.java
===================================================================
---
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/EventingTestCase.java
(rev 0)
+++
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/EventingTestCase.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,248 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wseventing;
+
+// $Id: EventingTestCase.java 1757 2006-12-22 15:40:24Z thomas.diesler(a)jboss.com $
+
+import junit.framework.Test;
+import org.jboss.test.ws.JBossWSTestSetup;
+import org.jboss.ws.extensions.addressing.AddressingClientUtil;
+import org.jboss.ws.extensions.eventing.EventingConstants;
+import org.jboss.ws.extensions.eventing.jaxws.*;
+
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.addressing.AddressingProperties;
+import java.net.URI;
+import java.util.Date;
+
+/**
+ * Test the eventing endpoints.
+ *
+ * @author heiko(a)openj.net
+ * @since 29-Apr-2005
+ */
+public class EventingTestCase extends EventingSupport {
+
+ public static Test suite()
+ {
+ return JBossWSTestSetup.newTestSetup(EventingTestCase.class,
"jaxws-wseventing.war");
+ }
+
+ // ----------------------------------------------------------------------------
+
+ public void testExpireDateInPast() throws Exception
+ {
+ assertWSDLAccess();
+
+ //
+ // If the expiration time is either a zero duration or a specific time that occurs
in
+ // the past according to the event source, then the request MUST fail,
+ // and the event source MAY generate a wse:InvalidExpirationTime fault indicating
+ // that an invalid expiration time was requested.
+ //
+
+ AddressingProperties requestProps = AddressingClientUtil.createDefaultProps(
+ EventingConstants.SUBSCRIBE_ACTION, eventSourceURI.toString()
+ );
+ requestProps.setMessageID(AddressingClientUtil.createMessageID());
+ setRequestProperties((BindingProvider)eventSourcePort, requestProps);
+
+ Subscribe request = new Subscribe();
+ DeliveryType delivery = getDefaultDelivery();
+ request.setDelivery(delivery);
+ request.setEndTo(delivery.getNotifyTo());
+ request.setExpires(new Date(System.currentTimeMillis() - 1000 * 60 * 60)); //
invalid lease time
+ request.setFilter(getDefaultFilter());
+
+ try
+ {
+ SubscribeResponse subscribeResponse = eventSourcePort.subscribeOp(request);
+ fail("Subscription should fail due to invalid lease time");
+ }
+ catch (Exception e)
+ {
+ // ignore expected exception
+ }
+ catch(Throwable t) {
+ fail(t.getMessage()); // can be thrown by AddrConstraintsHandler
+ }
+ }
+
+ public void testExpireDatePastMax() throws Exception
+ {
+ assertWSDLAccess();
+
+ //
+ // If such a source receives a Subscribe request containing a specific time
expiration,
+ // then the request MAY fail; if so, the event source MAY generate a
+ // wse:UnsupportedExpirationType fault indicating that an unsupported expiration
type was requested.
+ //
+
+ AddressingProperties requestProps = AddressingClientUtil.createDefaultProps(
+ EventingConstants.SUBSCRIBE_ACTION, eventSourceURI.toString()
+ );
+ requestProps.setMessageID(AddressingClientUtil.createMessageID());
+ setRequestProperties((BindingProvider)eventSourcePort, requestProps);
+
+ Subscribe request = new Subscribe();
+ DeliveryType delivery = getDefaultDelivery();
+ request.setDelivery(delivery);
+ request.setEndTo(delivery.getNotifyTo());
+ request.setExpires(new Date(System.currentTimeMillis() +
EventingConstants.MAX_LEASE_TIME + 1000));
+ request.setFilter(getDefaultFilter());
+
+ try
+ {
+ SubscribeResponse subscribeResponse = eventSourcePort.subscribeOp(request);
+ fail("Subscription should fail due to exceedd max lease time");
+ }
+ catch (Exception e)
+ {
+ // ignore expected exception
+ }
+ catch(Throwable t) {
+ fail(t.getMessage()); // can be thrown by AddrConstraintsHandler
+ }
+ }
+
+ public void testRenewal() throws Exception {
+ assertWSDLAccess();
+
+ //
+ // To update the expiration for a subscription,
+ // subscription managers MUST support requests to renew subscriptions.
+ //
+ SubscribeResponse response = doSubscribe();
+
+ AddressingProperties requestProps =
+ buildFollowupProperties(response, EventingConstants.RENEW_ACTION,
eventSourceURI.toString());
+ setRequestProperties((BindingProvider)managerPort, requestProps);
+
+ Date oldLeaseTime = response.getExpires();
+ Renew renewRequest = new Renew();
+ RenewResponse renewResponse = managerPort.renewOp(renewRequest);
+ assertNotNull(renewResponse);
+ assertNotNull(renewResponse.getExpires());
+ AddressingProperties responseProps =
getResponseProperties((BindingProvider)managerPort);
+ assertEquals(responseProps.getAction().getURI().toString(),
EventingConstants.RENEW_RESPONSE_ACTION);
+ assertTrue("Lease time not increased", oldLeaseTime.getTime() <
renewResponse.getExpires().getTime());
+ }
+
+ public void testSubscriptionStatus() throws Exception
+ {
+ //
+ // If the subscription is valid and has not expired,
+ // the subscription manager MUST reply with the actual lease time.
+ //
+ SubscribeResponse response = doSubscribe();
+
+ AddressingProperties requestProps =
+ buildFollowupProperties(response, EventingConstants.GET_STATUS_ACTION,
eventSourceURI.toString());
+ setRequestProperties((BindingProvider)managerPort, requestProps);
+
+ Date expectedLeaseTime = response.getExpires();
+ GetStatusResponse statusResponse = managerPort.getStatusOp(new GetStatus());
+
+ assertNotNull(statusResponse);
+ assertNotNull(statusResponse.getExpires());
+
+ AddressingProperties responseProps =
getResponseProperties((BindingProvider)managerPort);
+ assertEquals(responseProps.getAction().getURI().toString(),
EventingConstants.GET_STATUS_RESPONSE_ACTION);
+ assertEquals("Incorrect lease time", expectedLeaseTime,
statusResponse.getExpires());
+ }
+
+ public void testUnsubscribe() throws Exception
+ {
+ assertWSDLAccess();
+
+ // Though subscriptions expire eventually, to minimize resources,
+ // the subscribing event sink SHOULD explicitly delete a subscription
+ // when it no longer wants notifications associated with the subscription.
+ SubscribeResponse response = doSubscribe();
+
+ AddressingProperties requestProps =
+ buildFollowupProperties(response, EventingConstants.UNSUBSCRIBE_ACTION,
eventSourceURI.toString());
+ setRequestProperties((BindingProvider)managerPort, requestProps);
+
+ Unsubscribe unsubscribeRequest = new Unsubscribe();
+ managerPort.unsubscribeOp(unsubscribeRequest);
+
+ AddressingProperties responseProps =
getResponseProperties((BindingProvider)managerPort);
+ assertEquals(responseProps.getAction().getURI().toString(),
EventingConstants.UNSUBSCRIBE_RESPONSE_ACTION);
+
+ try
+ {
+
+ AddressingProperties renewProps =
+ buildFollowupProperties(response, EventingConstants.RENEW_ACTION,
eventSourceURI.toString());
+ setRequestProperties((BindingProvider)managerPort, requestProps);
+
+ Renew renewRequest = new Renew();
+ managerPort.renewOp(renewRequest); // this should fail
+
+ fail("Subscription not removed");
+ }
+ catch (Exception e)
+ {
+ //
+ }
+ }
+
+ // Header/wsa:RelatesTo MUST be the value of the wsa:MessageID of the corresponding
request.
+ public void testMessageCorrelation()
+ {
+ // this is actually tested within subscribe operations.
+ // look for usage of assertRelatesTo()
+ }
+
+ //
+ // "http://schemas.xmlsoap.org/ws/2004/08/eventing/DeliveryFailure"
+ // This value MUST be used if the event source terminated the subscription
+ // because of problems delivering notifications.
+ //
+ public void testSubscriptionEndMessage()
+ {
+ System.out.println("FIXME: [JBWS-798] Complete EventingTestCase");
+ }
+
+ //
+ // "http://schemas.xmlsoap.org/ws/2004/08/eventing/SourceShuttingDown"
+ // This value MUST be used if the event source terminated the subscription
+ // because the source is being shut down in a controlled manner;
+ // that is, if the event source is being shut down but has the opportunity
+ // to send a SubscriptionEnd message before it exits.
+ //
+ public void testShutdownMessage()
+ {
+ System.out.println("FIXME: [JBWS-798] Complete EventingTestCase");
+ }
+
+ //
+ // "http://schemas.xmlsoap.org/ws/2004/08/eventing/SourceCanceling"
+ // This value MUST be used if the event source terminated the subscription
+ // for some other reason before it expired.
+ //
+ public void testCancelMessage()
+ {
+ System.out.println("FIXME: [JBWS-798] Complete EventingTestCase");
+ }
+}
Added:
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/NotificationTestCase.java
===================================================================
---
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/NotificationTestCase.java
(rev 0)
+++
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/NotificationTestCase.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -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.test.ws.jaxws.wseventing;
+
+// $Id: NotificationTestCase.java 1757 2006-12-22 15:40:24Z thomas.diesler(a)jboss.com $
+
+import javax.naming.InitialContext;
+
+import junit.framework.Test;
+
+import org.jboss.test.ws.JBossWSTestSetup;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.extensions.eventing.EventingConstants;
+import org.jboss.ws.extensions.eventing.jaxws.SubscribeResponse;
+import org.jboss.ws.extensions.eventing.mgmt.EventDispatcher;
+import org.w3c.dom.Element;
+
+/**
+ * Test the notification delivery.
+ *
+ * @author heiko(a)openj.net
+ * @since 29-Apr-2005
+ */
+public class NotificationTestCase extends EventingSupport
+{
+ public static Test suite()
+ {
+ return JBossWSTestSetup.newTestSetup(NotificationTestCase.class,
"jaxws-wseventing.war");
+ }
+
+ public void testNotification() throws Exception {
+
+ SubscribeResponse response = doSubscribe();
+
+ Element payload = DOMUtils.parse(eventString);
+ try
+ {
+ InitialContext iniCtx = getInitialContext();
+ EventDispatcher delegate = (EventDispatcher)
+ iniCtx.lookup(EventingConstants.DISPATCHER_JNDI_NAME);
+ delegate.dispatch(eventSourceURI, payload);
+ Thread.sleep(3000);
+ }
+ catch (Exception e)
+ {
+ throw e;
+ }
+ }
+
+}
Added:
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/SubscriptionManagerTestCase.java
===================================================================
---
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/SubscriptionManagerTestCase.java
(rev 0)
+++
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/SubscriptionManagerTestCase.java 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,204 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wseventing;
+
+// $Id: SubscriptionManagerTestCase.java 1971 2007-01-15 16:31:58Z heiko.braun(a)jboss.com
$
+
+import java.net.URI;
+import java.util.Date;
+
+import org.jboss.test.ws.JBossWSTest;
+import org.jboss.ws.core.utils.DOMUtils;
+import org.jboss.ws.extensions.eventing.EventingConstants;
+import org.jboss.ws.extensions.eventing.jaxws.EndpointReferenceType;
+import org.jboss.ws.extensions.eventing.jaxws.AttributedURIType;
+import org.jboss.ws.extensions.eventing.deployment.EventingEndpointDI;
+import org.jboss.ws.extensions.eventing.mgmt.Filter;
+import org.jboss.ws.extensions.eventing.mgmt.SubscriptionManager;
+import org.jboss.ws.extensions.eventing.mgmt.SubscriptionTicket;
+import org.w3c.dom.Element;
+
+import javax.xml.namespace.QName;
+
+/**
+ * SubscriptionManagerEndpoint unit tests.
+ *
+ * @author Heiko Braun, <heiko(a)openj.net>
+ * @since 02-Dec-2005
+ */
+public class SubscriptionManagerTestCase extends JBossWSTest
+{
+
+ private SubscriptionManager subscriptionManager;
+ private URI eventSourceNS;
+ private EndpointReferenceType eventSinkEndpoint;
+
+ private String eventString =
+ "<WindReport type='critical'>\n" +
+ " <Date>030701</Date>\n" +
+ " <Time>0041</Time>\n" +
+ " <Speed>65</Speed>\n" +
+ " <Location>BRADENTON BEACH</Location>\n" +
+ " <County>MANATEE</County>\n" +
+ " <State>FL</State>\n" +
+ " <Lat>2746</Lat>\n" +
+ " <Long>8270</Long>\n" +
+ " <Comments xml:lang='en-US' >\n" +
+ " WINDS 55 WITH GUSTS TO 65. ROOF TORN OFF BOAT HOUSE. REPORTED\n"
+
+ " BY STORM SPOTTER. (TBW)\n" +
+ " </Comments>\n" +
+ "</WindReport>";
+
+ /**
+ * see
http://www.w3.org/TR/xpath
+ */
+ private String filterExpr = "/WindReport/State/text()='FL'";
+
+ protected void setUp() throws Exception {
+ super.setUp();
+ init();
+ }
+
+ private void init()
+ {
+ try
+ {
+ EventingEndpointDI deploymentInfo = new
EventingEndpointDI("http://schemas.xmlsoap.org/ws/2004/08/eventing/W...;,
null, null);
+
deploymentInfo.setEndpointAddress("http://localhost:8080/jaxws-wseventing/manage");
+ deploymentInfo.setPortName(new
QName("http://schemas.xmlsoap.org/ws/2004/08/eventing","Su...);
+
+ subscriptionManager = new SubscriptionManager();
+ subscriptionManager.registerEventSource(deploymentInfo);
+ subscriptionManager.registerEventSource(deploymentInfo);
+ subscriptionManager.start();
+
+ eventSinkEndpoint = new EndpointReferenceType();
+ AttributedURIType attrURI = new AttributedURIType();
+
attrURI.setValue("http://www.other.example.com/OnStormWarning");
+ eventSinkEndpoint.setAddress(attrURI);
+
+ eventSourceNS = new
URI("http://schemas.xmlsoap.org/ws/2004/08/eventing/Warnings");
+
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ throw new IllegalStateException(e.getMessage());
+ }
+ }
+
+ public void testSimpleSubscription() throws Exception
+ {
+ SubscriptionTicket subscriptionTicket = subscriptionManager.subscribe(
+ eventSourceNS, eventSinkEndpoint, eventSinkEndpoint, null, null
+ );
+
+ assertNotNull(subscriptionTicket.getIdentifier());
+ assertNotNull(subscriptionTicket.getExpires());
+ assertTrue(subscriptionTicket.getExpires().getTime() >
System.currentTimeMillis());
+ assertNotNull(subscriptionTicket.getSubscriptionManager());
+ }
+
+ /**
+ * If the expiration time is either a zero duration or a specific time that occurs in
+ * the past according to the event source, then the request MUST fail,
+ * and the event source MAY generate a wse:InvalidExpirationTime fault indicating
+ * that an invalid expiration time was requested.
+ */
+
+ public void testInvalidLeasetime() throws Exception
+ {
+ try
+ {
+ Date expires = new Date(System.currentTimeMillis() - 5000);
+ subscriptionManager.subscribe(eventSourceNS, eventSinkEndpoint,
eventSinkEndpoint, expires, null);
+ fail("Expiration time was invalid");
+ }
+ catch (Exception e)
+ {
+ // ignore expected exception
+ }
+ }
+
+ public void testExceedsMaxLeaseTime() throws Exception
+ {
+ try
+ {
+ Date expires = new Date(System.currentTimeMillis() +
EventingConstants.MAX_LEASE_TIME + 5000);
+ subscriptionManager.subscribe(eventSourceNS, eventSinkEndpoint,
eventSinkEndpoint, expires, null);
+ fail("Expiration time exceeds lease limit");
+ }
+ catch (Exception e)
+ {
+ // ignore expected exception
+ }
+ }
+
+ /**
+ * If the expression evaluates to false for a notification,
+ * the notification MUST NOT be sent to the event sink.
+ * Implied value is an expression that always returns true.
+ * If the event source does not support filtering, then a request that specifies a
filter MUST fail,
+ * and the event source MAY generate a wse:FilteringNotSupported fault indicating that
filtering is not supported.
+ * If the event source supports filtering but cannot honor the requested filtering,
+ * the request MUST fail, and the event source MAY generate a
wse:FilteringRequestedUnavailable
+ * fault indicating that the requested filter dialect is not supported.
+ */
+
+ public void testFilterConstraints() throws Exception
+ {
+ try
+ {
+ Filter filter = new Filter(new
URI("http://example.org/unkownFilter"),
filterExpr);
+ Date expires = new Date(System.currentTimeMillis() + 5000);
+ subscriptionManager.subscribe(eventSourceNS, eventSinkEndpoint,
eventSinkEndpoint, expires, filter);
+ fail("Filtering should not be available");
+ }
+ catch (Exception e)
+ {
+ // ignore expected exception
+ }
+ }
+
+ public void testDispatch() throws Exception
+ {
+ for (int i = 0; i < 5; i++)
+ {
+ Date expires = new Date(System.currentTimeMillis() + 5000);
+ subscriptionManager.subscribe(eventSourceNS, eventSinkEndpoint,
eventSinkEndpoint, expires, null);
+ }
+
+ Element payload = DOMUtils.parse(eventString);
+ subscriptionManager.dispatch(eventSourceNS, payload);
+ }
+
+ public void testXPathFilter() throws Exception
+ {
+
+ Date expires = new Date(System.currentTimeMillis() + 5000);
+ Filter filter = new Filter(new
URI("http://www.w3.org/TR/1999/REC-xpath-19991116"), filterExpr);
+ subscriptionManager.subscribe(eventSourceNS, eventSinkEndpoint, eventSinkEndpoint,
expires, filter);
+
+ Element event = DOMUtils.parse(eventString);
+ subscriptionManager.dispatch(eventSourceNS, event);
+ }
+}
Modified:
trunk/jbossws-tests/src/main/resources/jaxrpc/samples/wseventing/META-INF/application-client.xml
===================================================================
---
trunk/jbossws-tests/src/main/resources/jaxrpc/samples/wseventing/META-INF/application-client.xml 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-tests/src/main/resources/jaxrpc/samples/wseventing/META-INF/application-client.xml 2007-01-18
12:54:34 UTC (rev 1994)
@@ -8,16 +8,16 @@
<service-ref>
<service-ref-name>service/SysmonService</service-ref-name>
-
<service-interface>org.jboss.ws.extensions.eventing.EventingService</service-interface>
+
<service-interface>org.jboss.ws.extensions.eventing.jaxrpc.EventingService</service-interface>
<wsdl-file>META-INF/wsdl/sysmon.wsdl</wsdl-file>
<jaxrpc-mapping-file>META-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
<port-component-ref>
-
<service-endpoint-interface>org.jboss.ws.extensions.eventing.EventSourceEndpoint</service-endpoint-interface>
+
<service-endpoint-interface>org.jboss.ws.extensions.eventing.jaxrpc.EventSourceEndpoint</service-endpoint-interface>
</port-component-ref>
<port-component-ref>
-
<service-endpoint-interface>org.jboss.ws.extensions.eventing.SubscriptionManagerEndpoint</service-endpoint-interface>
+
<service-endpoint-interface>org.jboss.ws.extensions.eventing.jaxrpc.SubscriptionManagerEndpoint</service-endpoint-interface>
</port-component-ref>
<handler>
Modified:
trunk/jbossws-tests/src/main/resources/jaxrpc/samples/wseventing/WEB-INF/jaxrpc-mapping.xml
===================================================================
---
trunk/jbossws-tests/src/main/resources/jaxrpc/samples/wseventing/WEB-INF/jaxrpc-mapping.xml 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-tests/src/main/resources/jaxrpc/samples/wseventing/WEB-INF/jaxrpc-mapping.xml 2007-01-18
12:54:34 UTC (rev 1994)
@@ -8,14 +8,14 @@
</package-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.SubscribeRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.SubscribeRequest</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:Subscribe</root-type-qname>
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.SubscribeRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.SubscribeRequest</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>Subscribe</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
@@ -42,7 +42,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.FilterType</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.FilterType</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:FilterType</root-type-qname>
<qname-scope>complexType</qname-scope>
@@ -57,7 +57,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.DeliveryType</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.DeliveryType</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:DeliveryType</root-type-qname>
<qname-scope>complexType</qname-scope>
@@ -76,14 +76,14 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.SubscriptionEndRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.SubscriptionEndRequest</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:SubscriptionEnd</root-type-qname>
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.SubscriptionEndRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.SubscriptionEndRequest</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>SubscriptionEnd</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
@@ -102,14 +102,14 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.SubscribeResponse</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.SubscribeResponse</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:SubscribeResponse</root-type-qname>
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.SubscribeResponse</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.SubscribeResponse</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>SubscribeResponse</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
@@ -124,13 +124,13 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.EndpointReference</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.EndpointReference</java-type>
<root-type-qname
xmlns:typeNS="http://www.w3.org/2005/08/addressing">typeNS:E...
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.EndpointReference</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.EndpointReference</java-type>
<root-type-qname
xmlns:typeNS="http://www.w3.org/2005/08/addressing">
typeNS:EndpointReferenceType</root-type-qname>
<qname-scope>complexType</qname-scope>
@@ -149,13 +149,13 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.MetaData</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.MetaData</java-type>
<root-type-qname
xmlns:typeNS="http://www.w3.org/2005/08/addressing">typeNS:M...
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<!--java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.MetaData</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.MetaData</java-type>
<root-type-qname
xmlns:typeNS="http://www.w3.org/2005/08/addressing">typeNS:M...
<qname-scope>complexType</qname-scope>
<variable-mapping>
@@ -165,13 +165,13 @@
</java-xml-type-mapping-->
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.RenewRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.RenewRequest</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"&g...
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.RenewRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.RenewRequest</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>Renew</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
@@ -182,14 +182,14 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.RenewResponse</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.RenewResponse</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:RenewResponse</root-type-qname>
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.RenewResponse</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.RenewResponse</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>RenewResponse</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
@@ -200,7 +200,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.StatusRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.StatusRequest</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:GetStatus</root-type-qname>
<qname-scope>element</qname-scope>
@@ -211,21 +211,21 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.StatusRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.StatusRequest</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>GetStatus</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.StatusResponse</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.StatusResponse</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:GetStatusResponse</root-type-qname>
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.StatusResponse</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.StatusResponse</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>GetStatusResponse</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
@@ -236,7 +236,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.UnsubscribeRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.UnsubscribeRequest</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:Unsubscribe</root-type-qname>
<qname-scope>element</qname-scope>
@@ -247,14 +247,14 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.UnsubscribeRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.UnsubscribeRequest</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>Unsubscribe</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
</java-xml-type-mapping>
<service-interface-mapping>
-
<service-interface>org.jboss.ws.extensions.eventing.EventingService</service-interface>
+
<service-interface>org.jboss.ws.extensions.eventing.jaxrpc.EventingService</service-interface>
<wsdl-service-name
xmlns:serviceNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
serviceNS:EventingService</wsdl-service-name>
<port-mapping>
@@ -268,7 +268,7 @@
</service-interface-mapping>
<service-endpoint-interface-mapping>
-
<service-endpoint-interface>org.jboss.ws.extensions.eventing.EventSourceEndpoint</service-endpoint-interface>
+
<service-endpoint-interface>org.jboss.ws.extensions.eventing.jaxrpc.EventSourceEndpoint</service-endpoint-interface>
<wsdl-port-type
xmlns:portTypeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing&quo...
portTypeNS:EventSource</wsdl-port-type>
<wsdl-binding
xmlns:bindingNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
@@ -278,7 +278,7 @@
<wsdl-operation>SubscribeOp</wsdl-operation>
<method-param-parts-mapping>
<param-position>0</param-position>
-
<param-type>org.jboss.ws.extensions.eventing.element.SubscribeRequest</param-type>
+
<param-type>org.jboss.ws.extensions.eventing.jaxrpc.element.SubscribeRequest</param-type>
<wsdl-message-mapping>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:SubscribeMsg</wsdl-message>
@@ -287,7 +287,7 @@
</wsdl-message-mapping>
</method-param-parts-mapping>
<wsdl-return-value-mapping>
-
<method-return-value>org.jboss.ws.extensions.eventing.element.SubscribeResponse</method-return-value>
+
<method-return-value>org.jboss.ws.extensions.eventing.jaxrpc.element.SubscribeResponse</method-return-value>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:SubscribeResponseMsg</wsdl-message>
<wsdl-message-part-name>body</wsdl-message-part-name>
@@ -298,7 +298,7 @@
<java-method-name>subscriptionEnd</java-method-name>
<wsdl-operation>SubscriptionEnd</wsdl-operation>
<wsdl-return-value-mapping>
-
<method-return-value>org.jboss.ws.extensions.eventing.element.SubscriptionEndRequest</method-return-value>
+
<method-return-value>org.jboss.ws.extensions.eventing.jaxrpc.element.SubscriptionEndRequest</method-return-value>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:SubscriptionEnd</wsdl-message>
<wsdl-message-part-name>body</wsdl-message-part-name>
@@ -308,7 +308,7 @@
</service-endpoint-interface-mapping>
<service-endpoint-interface-mapping>
-
<service-endpoint-interface>org.jboss.ws.extensions.eventing.SubscriptionManagerEndpoint</service-endpoint-interface>
+
<service-endpoint-interface>org.jboss.ws.extensions.eventing.jaxrpc.SubscriptionManagerEndpoint</service-endpoint-interface>
<wsdl-port-type
xmlns:portTypeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing&quo...
portTypeNS:SubscriptionManager</wsdl-port-type>
@@ -320,7 +320,7 @@
<wsdl-operation>GetStatusOp</wsdl-operation>
<method-param-parts-mapping>
<param-position>0</param-position>
-
<param-type>org.jboss.ws.extensions.eventing.element.StatusRequest</param-type>
+
<param-type>org.jboss.ws.extensions.eventing.jaxrpc.element.StatusRequest</param-type>
<wsdl-message-mapping>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:GetStatusMsg</wsdl-message>
@@ -329,7 +329,7 @@
</wsdl-message-mapping>
</method-param-parts-mapping>
<wsdl-return-value-mapping>
-
<method-return-value>org.jboss.ws.extensions.eventing.element.StatusResponse</method-return-value>
+
<method-return-value>org.jboss.ws.extensions.eventing.jaxrpc.element.StatusResponse</method-return-value>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:GetStatusResponseMsg</wsdl-message>
<wsdl-message-part-name>body</wsdl-message-part-name>
@@ -341,7 +341,7 @@
<wsdl-operation>RenewOp</wsdl-operation>
<method-param-parts-mapping>
<param-position>0</param-position>
-
<param-type>org.jboss.ws.extensions.eventing.element.RenewRequest</param-type>
+
<param-type>org.jboss.ws.extensions.eventing.jaxrpc.element.RenewRequest</param-type>
<wsdl-message-mapping>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:RenewMsg</wsdl-message>
@@ -350,7 +350,7 @@
</wsdl-message-mapping>
</method-param-parts-mapping>
<wsdl-return-value-mapping>
-
<method-return-value>org.jboss.ws.extensions.eventing.element.RenewResponse</method-return-value>
+
<method-return-value>org.jboss.ws.extensions.eventing.jaxrpc.element.RenewResponse</method-return-value>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:RenewResponseMsg</wsdl-message>
<wsdl-message-part-name>body</wsdl-message-part-name>
@@ -362,7 +362,7 @@
<wsdl-operation>UnsubscribeOp</wsdl-operation>
<method-param-parts-mapping>
<param-position>0</param-position>
-
<param-type>org.jboss.ws.extensions.eventing.element.UnsubscribeRequest</param-type>
+
<param-type>org.jboss.ws.extensions.eventing.jaxrpc.element.UnsubscribeRequest</param-type>
<wsdl-message-mapping>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:UnsubscribeMsg</wsdl-message>
Modified:
trunk/jbossws-tests/src/main/resources/jaxrpc/samples/wseventing/WEB-INF/web.xml
===================================================================
---
trunk/jbossws-tests/src/main/resources/jaxrpc/samples/wseventing/WEB-INF/web.xml 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-tests/src/main/resources/jaxrpc/samples/wseventing/WEB-INF/web.xml 2007-01-18
12:54:34 UTC (rev 1994)
@@ -6,11 +6,11 @@
<servlet>
<servlet-name>EventSourceServlet</servlet-name>
-
<servlet-class>org.jboss.ws.extensions.eventing.EventSourceEndpointImpl</servlet-class>
+
<servlet-class>org.jboss.ws.extensions.eventing.jaxrpc.EventSourceEndpointImpl</servlet-class>
</servlet>
<servlet>
<servlet-name>SubscriptionManagerServlet</servlet-name>
-
<servlet-class>org.jboss.ws.extensions.eventing.SubscriptionManagerEndpointImpl</servlet-class>
+
<servlet-class>org.jboss.ws.extensions.eventing.jaxrpc.SubscriptionManagerEndpointImpl</servlet-class>
</servlet>
<servlet-mapping>
Modified:
trunk/jbossws-tests/src/main/resources/jaxrpc/samples/wseventing/WEB-INF/webservices.xml
===================================================================
---
trunk/jbossws-tests/src/main/resources/jaxrpc/samples/wseventing/WEB-INF/webservices.xml 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-tests/src/main/resources/jaxrpc/samples/wseventing/WEB-INF/webservices.xml 2007-01-18
12:54:34 UTC (rev 1994)
@@ -15,7 +15,7 @@
<port-component>
<port-component-name>SubscriptionManagerPort</port-component-name>
<wsdl-port>wsdl:SubscriptionManagerPort</wsdl-port>
-
<service-endpoint-interface>org.jboss.ws.extensions.eventing.SubscriptionManagerEndpoint</service-endpoint-interface>
+
<service-endpoint-interface>org.jboss.ws.extensions.eventing.jaxrpc.SubscriptionManagerEndpoint</service-endpoint-interface>
<service-impl-bean>
<servlet-link>SubscriptionManagerServlet</servlet-link>
</service-impl-bean>
@@ -30,7 +30,7 @@
<port-component>
<port-component-name>EventSourcePort</port-component-name>
<wsdl-port>wsdl:EventSourcePort</wsdl-port>
-
<service-endpoint-interface>org.jboss.ws.extensions.eventing.EventSourceEndpoint</service-endpoint-interface>
+
<service-endpoint-interface>org.jboss.ws.extensions.eventing.jaxrpc.EventSourceEndpoint</service-endpoint-interface>
<service-impl-bean>
<servlet-link>EventSourceServlet</servlet-link>
</service-impl-bean>
Modified:
trunk/jbossws-tests/src/main/resources/jaxrpc/wseventing/META-INF/application-client.xml
===================================================================
---
trunk/jbossws-tests/src/main/resources/jaxrpc/wseventing/META-INF/application-client.xml 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-tests/src/main/resources/jaxrpc/wseventing/META-INF/application-client.xml 2007-01-18
12:54:34 UTC (rev 1994)
@@ -8,16 +8,16 @@
<service-ref>
<service-ref-name>service/EventingService</service-ref-name>
-
<service-interface>org.jboss.ws.extensions.eventing.EventingService</service-interface>
+
<service-interface>org.jboss.ws.extensions.eventing.jaxrpc.EventingService</service-interface>
<wsdl-file>META-INF/wsdl/wind.wsdl</wsdl-file>
<jaxrpc-mapping-file>META-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
<port-component-ref>
-
<service-endpoint-interface>org.jboss.ws.extensions.eventing.EventSourceEndpoint</service-endpoint-interface>
+
<service-endpoint-interface>org.jboss.ws.extensions.eventing.jaxrpc.EventSourceEndpoint</service-endpoint-interface>
</port-component-ref>
<port-component-ref>
-
<service-endpoint-interface>org.jboss.ws.extensions.eventing.SubscriptionManagerEndpoint</service-endpoint-interface>
+
<service-endpoint-interface>org.jboss.ws.extensions.eventing.jaxrpc.SubscriptionManagerEndpoint</service-endpoint-interface>
</port-component-ref>
<handler>
Modified:
trunk/jbossws-tests/src/main/resources/jaxrpc/wseventing/WEB-INF/jaxrpc-mapping.xml
===================================================================
---
trunk/jbossws-tests/src/main/resources/jaxrpc/wseventing/WEB-INF/jaxrpc-mapping.xml 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-tests/src/main/resources/jaxrpc/wseventing/WEB-INF/jaxrpc-mapping.xml 2007-01-18
12:54:34 UTC (rev 1994)
@@ -8,14 +8,14 @@
</package-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.SubscribeRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.SubscribeRequest</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:Subscribe</root-type-qname>
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.SubscribeRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.SubscribeRequest</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>Subscribe</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
@@ -42,7 +42,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.FilterType</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.FilterType</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:FilterType</root-type-qname>
<qname-scope>complexType</qname-scope>
@@ -57,7 +57,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.DeliveryType</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.DeliveryType</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:DeliveryType</root-type-qname>
<qname-scope>complexType</qname-scope>
@@ -76,14 +76,14 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.SubscriptionEndRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.SubscriptionEndRequest</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:SubscriptionEnd</root-type-qname>
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.SubscriptionEndRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.SubscriptionEndRequest</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>SubscriptionEnd</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
@@ -102,14 +102,14 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.SubscribeResponse</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.SubscribeResponse</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:SubscribeResponse</root-type-qname>
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.SubscribeResponse</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.SubscribeResponse</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>SubscribeResponse</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
@@ -124,13 +124,13 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.EndpointReference</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.EndpointReference</java-type>
<root-type-qname
xmlns:typeNS="http://www.w3.org/2005/08/addressing">typeNS:E...
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.EndpointReference</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.EndpointReference</java-type>
<root-type-qname
xmlns:typeNS="http://www.w3.org/2005/08/addressing">
typeNS:EndpointReferenceType</root-type-qname>
<qname-scope>complexType</qname-scope>
@@ -149,13 +149,13 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.MetaData</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.MetaData</java-type>
<root-type-qname
xmlns:typeNS="http://www.w3.org/2005/08/addressing">typeNS:M...
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<!--java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.MetaData</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.MetaData</java-type>
<root-type-qname
xmlns:typeNS="http://www.w3.org/2005/08/addressing">typeNS:M...
<qname-scope>complexType</qname-scope>
<variable-mapping>
@@ -165,13 +165,13 @@
</java-xml-type-mapping-->
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.RenewRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.RenewRequest</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"&g...
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.RenewRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.RenewRequest</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>Renew</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
@@ -182,14 +182,14 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.RenewResponse</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.RenewResponse</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:RenewResponse</root-type-qname>
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.RenewResponse</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.RenewResponse</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>RenewResponse</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
@@ -200,7 +200,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.StatusRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.StatusRequest</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:GetStatus</root-type-qname>
<qname-scope>element</qname-scope>
@@ -211,21 +211,21 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.StatusRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.StatusRequest</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>GetStatus</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.StatusResponse</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.StatusResponse</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:GetStatusResponse</root-type-qname>
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.StatusResponse</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.StatusResponse</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>GetStatusResponse</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
@@ -236,7 +236,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.UnsubscribeRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.UnsubscribeRequest</java-type>
<root-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:Unsubscribe</root-type-qname>
<qname-scope>element</qname-scope>
@@ -247,14 +247,14 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
-
<java-type>org.jboss.ws.extensions.eventing.element.UnsubscribeRequest</java-type>
+
<java-type>org.jboss.ws.extensions.eventing.jaxrpc.element.UnsubscribeRequest</java-type>
<anonymous-type-qname
xmlns:typeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing">
typeNS:>Unsubscribe</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
</java-xml-type-mapping>
<service-interface-mapping>
-
<service-interface>org.jboss.ws.extensions.eventing.EventingService</service-interface>
+
<service-interface>org.jboss.ws.extensions.eventing.jaxrpc.EventingService</service-interface>
<wsdl-service-name
xmlns:serviceNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
serviceNS:EventingService</wsdl-service-name>
<port-mapping>
@@ -268,7 +268,7 @@
</service-interface-mapping>
<service-endpoint-interface-mapping>
-
<service-endpoint-interface>org.jboss.ws.extensions.eventing.EventSourceEndpoint</service-endpoint-interface>
+
<service-endpoint-interface>org.jboss.ws.extensions.eventing.jaxrpc.EventSourceEndpoint</service-endpoint-interface>
<wsdl-port-type
xmlns:portTypeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing&quo...
portTypeNS:EventSource</wsdl-port-type>
<wsdl-binding
xmlns:bindingNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
@@ -278,7 +278,7 @@
<wsdl-operation>SubscribeOp</wsdl-operation>
<method-param-parts-mapping>
<param-position>0</param-position>
-
<param-type>org.jboss.ws.extensions.eventing.element.SubscribeRequest</param-type>
+
<param-type>org.jboss.ws.extensions.eventing.jaxrpc.element.SubscribeRequest</param-type>
<wsdl-message-mapping>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:SubscribeMsg</wsdl-message>
@@ -287,7 +287,7 @@
</wsdl-message-mapping>
</method-param-parts-mapping>
<wsdl-return-value-mapping>
-
<method-return-value>org.jboss.ws.extensions.eventing.element.SubscribeResponse</method-return-value>
+
<method-return-value>org.jboss.ws.extensions.eventing.jaxrpc.element.SubscribeResponse</method-return-value>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:SubscribeResponseMsg</wsdl-message>
<wsdl-message-part-name>body</wsdl-message-part-name>
@@ -298,7 +298,7 @@
<java-method-name>subscriptionEnd</java-method-name>
<wsdl-operation>SubscriptionEnd</wsdl-operation>
<wsdl-return-value-mapping>
-
<method-return-value>org.jboss.ws.extensions.eventing.element.SubscriptionEndRequest</method-return-value>
+
<method-return-value>org.jboss.ws.extensions.eventing.jaxrpc.element.SubscriptionEndRequest</method-return-value>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:SubscriptionEnd</wsdl-message>
<wsdl-message-part-name>body</wsdl-message-part-name>
@@ -308,7 +308,7 @@
</service-endpoint-interface-mapping>
<service-endpoint-interface-mapping>
-
<service-endpoint-interface>org.jboss.ws.extensions.eventing.SubscriptionManagerEndpoint</service-endpoint-interface>
+
<service-endpoint-interface>org.jboss.ws.extensions.eventing.jaxrpc.SubscriptionManagerEndpoint</service-endpoint-interface>
<wsdl-port-type
xmlns:portTypeNS="http://schemas.xmlsoap.org/ws/2004/08/eventing&quo...
portTypeNS:SubscriptionManager</wsdl-port-type>
@@ -320,7 +320,7 @@
<wsdl-operation>GetStatusOp</wsdl-operation>
<method-param-parts-mapping>
<param-position>0</param-position>
-
<param-type>org.jboss.ws.extensions.eventing.element.StatusRequest</param-type>
+
<param-type>org.jboss.ws.extensions.eventing.jaxrpc.element.StatusRequest</param-type>
<wsdl-message-mapping>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:GetStatusMsg</wsdl-message>
@@ -329,7 +329,7 @@
</wsdl-message-mapping>
</method-param-parts-mapping>
<wsdl-return-value-mapping>
-
<method-return-value>org.jboss.ws.extensions.eventing.element.StatusResponse</method-return-value>
+
<method-return-value>org.jboss.ws.extensions.eventing.jaxrpc.element.StatusResponse</method-return-value>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:GetStatusResponseMsg</wsdl-message>
<wsdl-message-part-name>body</wsdl-message-part-name>
@@ -341,7 +341,7 @@
<wsdl-operation>RenewOp</wsdl-operation>
<method-param-parts-mapping>
<param-position>0</param-position>
-
<param-type>org.jboss.ws.extensions.eventing.element.RenewRequest</param-type>
+
<param-type>org.jboss.ws.extensions.eventing.jaxrpc.element.RenewRequest</param-type>
<wsdl-message-mapping>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:RenewMsg</wsdl-message>
@@ -350,7 +350,7 @@
</wsdl-message-mapping>
</method-param-parts-mapping>
<wsdl-return-value-mapping>
-
<method-return-value>org.jboss.ws.extensions.eventing.element.RenewResponse</method-return-value>
+
<method-return-value>org.jboss.ws.extensions.eventing.jaxrpc.element.RenewResponse</method-return-value>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:RenewResponseMsg</wsdl-message>
<wsdl-message-part-name>body</wsdl-message-part-name>
@@ -362,7 +362,7 @@
<wsdl-operation>UnsubscribeOp</wsdl-operation>
<method-param-parts-mapping>
<param-position>0</param-position>
-
<param-type>org.jboss.ws.extensions.eventing.element.UnsubscribeRequest</param-type>
+
<param-type>org.jboss.ws.extensions.eventing.jaxrpc.element.UnsubscribeRequest</param-type>
<wsdl-message-mapping>
<wsdl-message
xmlns:wsdlMsgNS="http://schemas.xmlsoap.org/ws/2004/08/eventing"...
wsdlMsgNS:UnsubscribeMsg</wsdl-message>
Modified: trunk/jbossws-tests/src/main/resources/jaxrpc/wseventing/WEB-INF/web.xml
===================================================================
--- trunk/jbossws-tests/src/main/resources/jaxrpc/wseventing/WEB-INF/web.xml 2007-01-18
12:00:15 UTC (rev 1993)
+++ trunk/jbossws-tests/src/main/resources/jaxrpc/wseventing/WEB-INF/web.xml 2007-01-18
12:54:34 UTC (rev 1994)
@@ -6,7 +6,7 @@
<display-name>Eventing Service App</display-name>
<servlet>
<servlet-name>EventSourceServlet</servlet-name>
-
<servlet-class>org.jboss.ws.extensions.eventing.EventSourceEndpointImpl</servlet-class>
+
<servlet-class>org.jboss.ws.extensions.eventing.jaxrpc.EventSourceEndpointImpl</servlet-class>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
@@ -16,7 +16,7 @@
<servlet>
<servlet-name>SubscriptionManagerServlet</servlet-name>
-
<servlet-class>org.jboss.ws.extensions.eventing.SubscriptionManagerEndpointImpl</servlet-class>
+
<servlet-class>org.jboss.ws.extensions.eventing.jaxrpc.SubscriptionManagerEndpointImpl</servlet-class>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
Modified:
trunk/jbossws-tests/src/main/resources/jaxrpc/wseventing/WEB-INF/webservices.xml
===================================================================
---
trunk/jbossws-tests/src/main/resources/jaxrpc/wseventing/WEB-INF/webservices.xml 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-tests/src/main/resources/jaxrpc/wseventing/WEB-INF/webservices.xml 2007-01-18
12:54:34 UTC (rev 1994)
@@ -15,7 +15,7 @@
<port-component>
<port-component-name>SubscriptionManagerPort</port-component-name>
<wsdl-port>wsdl:SubscriptionManagerPort</wsdl-port>
-
<service-endpoint-interface>org.jboss.ws.extensions.eventing.SubscriptionManagerEndpoint</service-endpoint-interface>
+
<service-endpoint-interface>org.jboss.ws.extensions.eventing.jaxrpc.SubscriptionManagerEndpoint</service-endpoint-interface>
<service-impl-bean>
<servlet-link>SubscriptionManagerServlet</servlet-link>
</service-impl-bean>
@@ -30,7 +30,7 @@
<port-component>
<port-component-name>EventSourcePort</port-component-name>
<wsdl-port>wsdl:EventSourcePort</wsdl-port>
-
<service-endpoint-interface>org.jboss.ws.extensions.eventing.EventSourceEndpoint</service-endpoint-interface>
+
<service-endpoint-interface>org.jboss.ws.extensions.eventing.jaxrpc.EventSourceEndpoint</service-endpoint-interface>
<service-impl-bean>
<servlet-link>EventSourceServlet</servlet-link>
</service-impl-bean>
Modified:
trunk/jbossws-tests/src/main/resources/jaxws/jsr181/handlerchain/jaxws-handlers.xml
===================================================================
---
trunk/jbossws-tests/src/main/resources/jaxws/jsr181/handlerchain/jaxws-handlers.xml 2007-01-18
12:00:15 UTC (rev 1993)
+++
trunk/jbossws-tests/src/main/resources/jaxws/jsr181/handlerchain/jaxws-handlers.xml 2007-01-18
12:54:34 UTC (rev 1994)
@@ -1,27 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<handler-chains
xmlns="http://java.sun.com/xml/ns/javaee"
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
javaee_web_services_1_2.xsd">
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
javaee_web_services_1_2.xsd">
- <handler-chain>
- <protocol-bindings>##SOAP11_HTTP</protocol-bindings>
- <handler>
- <handler-name> LogHandler </handler-name>
- <handler-class> org.jboss.test.ws.jaxws.jsr181.handlerchain.LogHandler
</handler-class>
- <init-param>
- <param-name>logCategory</param-name>
- <param-value>MyService</param-value>
- </init-param>
- </handler>
- <handler>
- <handler-name> AuthorizationHandler </handler-name>
- <handler-class>
org.jboss.test.ws.jaxws.jsr181.handlerchain.AuthorizationHandler </handler-class>
- <soap-role>SecurityProvider</soap-role>
- </handler>
- <handler>
- <handler-name> RoutingHandler </handler-name>
- <handler-class> org.jboss.test.ws.jaxws.jsr181.handlerchain.RoutingHandler
</handler-class>
- </handler>
- </handler-chain>
+ <handler-chain>
+ <protocol-bindings>##SOAP11_HTTP</protocol-bindings>
+ <handler>
+ <handler-name> LogHandler </handler-name>
+ <handler-class> org.jboss.test.ws.jaxws.jsr181.handlerchain.LogHandler
</handler-class>
+ <init-param>
+ <param-name>logCategory</param-name>
+ <param-value>MyService</param-value>
+ </init-param>
+ </handler>
+ <handler>
+ <handler-name> AuthorizationHandler </handler-name>
+ <handler-class>
org.jboss.test.ws.jaxws.jsr181.handlerchain.AuthorizationHandler </handler-class>
+ <soap-role>SecurityProvider</soap-role>
+ </handler>
+ <handler>
+ <handler-name> RoutingHandler </handler-name>
+ <handler-class> org.jboss.test.ws.jaxws.jsr181.handlerchain.RoutingHandler
</handler-class>
+ </handler>
+ </handler-chain>
</handler-chains>
\ No newline at end of file
Added:
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/META-INF/application-client.xml
===================================================================
---
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/META-INF/application-client.xml
(rev 0)
+++
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/META-INF/application-client.xml 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<application-client version="1.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/application-client_1_4.xsd">
+
+ <display-name>Eventing Service test</display-name>
+
+ <service-ref>
+ <service-ref-name>service/EventingService</service-ref-name>
+
<service-interface>org.jboss.ws.extensions.eventing.jaxrpc.EventingService</service-interface>
+ <wsdl-file>META-INF/wsdl/wind.wsdl</wsdl-file>
+
<jaxrpc-mapping-file>META-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
+
+ <port-component-ref>
+
<service-endpoint-interface>org.jboss.ws.extensions.eventing.jaxrpc.EventSourceEndpoint</service-endpoint-interface>
+ </port-component-ref>
+
+ <port-component-ref>
+
<service-endpoint-interface>org.jboss.ws.extensions.eventing.jaxrpc.SubscriptionManagerEndpoint</service-endpoint-interface>
+ </port-component-ref>
+
+ <handler>
+ <handler-name>SOAPOutboundHandler</handler-name>
+
<handler-class>org.jboss.ws.extensions.addressing.jaxrpc.WSAddressingClientHandler</handler-class>
+ </handler>
+
+ </service-ref>
+</application-client>
+
Added: trunk/jbossws-tests/src/main/resources/jaxws/wseventing/META-INF/jboss-client.xml
===================================================================
--- trunk/jbossws-tests/src/main/resources/jaxws/wseventing/META-INF/jboss-client.xml
(rev 0)
+++
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/META-INF/jboss-client.xml 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,14 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+
+<!DOCTYPE jboss-client PUBLIC "-//JBoss//DTD Application Client 4.0//EN"
"http://www.jboss.org/j2ee/dtd/jboss-client_4_0.dtd">
+
+<jboss-client>
+ <jndi-name>jbossws-client</jndi-name>
+
+ <service-ref>
+ <service-ref-name>service/EventingService</service-ref-name>
+
<wsdl-override>http://@jbosstest.host.name@:8080/jaxrpc-wseventing/subscribe?wsdl</wsdl-override>
+ </service-ref>
+
+</jboss-client>
+
Added: trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/jboss-web.xml
===================================================================
--- trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/jboss-web.xml
(rev 0)
+++
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/jboss-web.xml 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN"
"http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
+
+<jboss-web>
+ <context-root>/jbossws-test-eventing</context-root>
+</jboss-web>
\ No newline at end of file
Added: trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/web.xml
===================================================================
--- trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/web.xml
(rev 0)
+++ trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/web.xml 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+
+ <display-name>Eventing Service App</display-name>
+
+ <servlet>
+ <servlet-name>EventSinkServlet</servlet-name>
+
<servlet-class>org.jboss.test.ws.jaxws.wseventing.EventSinkServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>EventSinkServlet</servlet-name>
+ <url-pattern>/eventSink</url-pattern>
+ </servlet-mapping>
+
+ <servlet>
+ <servlet-name>EventSource</servlet-name>
+
<servlet-class>org.jboss.ws.extensions.eventing.jaxws.EventSourceEndpointImpl</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>EventSource</servlet-name>
+ <url-pattern>/subscribe</url-pattern>
+ </servlet-mapping>
+
+ <servlet>
+ <servlet-name>SubscriptionManager</servlet-name>
+
<servlet-class>org.jboss.ws.extensions.eventing.jaxws.SubscriptionManagerEndpointImpl</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>SubscriptionManager</servlet-name>
+ <url-pattern>/manage</url-pattern>
+ </servlet-mapping>
+
+ <session-config>
+ <session-timeout>54</session-timeout>
+ </session-config>
+</web-app>
\ No newline at end of file
Added: trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/eventing.wsdl
===================================================================
--- trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/eventing.wsdl
(rev 0)
+++
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/eventing.wsdl 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,133 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<wsdl:definitions
+
targetNamespace='http://schemas.xmlsoap.org/ws/2004/08/eventing'
+
xmlns:wse='http://schemas.xmlsoap.org/ws/2004/08/eventing'
+
xmlns:wsa10='http://www.w3.org/2005/08/addressing'
+
xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'
+
xmlns:xs='http://www.w3.org/2001/XMLSchema'
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
+
+ <wsdl:types>
+ <xs:schema
targetNamespace='http://schemas.xmlsoap.org/ws/2004/08/eventing'>
+ <xs:include schemaLocation='eventing.xsd'/>
+ </xs:schema>
+ </wsdl:types>
+
+ <wsdl:message name='SubscribeMsg'>
+ <wsdl:part name='body' element='wse:Subscribe'/>
+ </wsdl:message>
+ <wsdl:message name='SubscribeResponseMsg'>
+ <wsdl:part name='body' element='wse:SubscribeResponse'/>
+ </wsdl:message>
+
+ <wsdl:message name='RenewMsg'>
+ <wsdl:part name='body' element='wse:Renew'/>
+ </wsdl:message>
+ <wsdl:message name='RenewResponseMsg'>
+ <wsdl:part name='body' element='wse:RenewResponse'/>
+ </wsdl:message>
+
+ <wsdl:message name='GetStatusMsg'>
+ <wsdl:part name='body' element='wse:GetStatus'/>
+ </wsdl:message>
+ <wsdl:message name='GetStatusResponseMsg'>
+ <wsdl:part name='body' element='wse:GetStatusResponse'/>
+ </wsdl:message>
+
+ <wsdl:message name='UnsubscribeMsg'>
+ <wsdl:part name='body' element='wse:Unsubscribe'/>
+ </wsdl:message>
+ <wsdl:message name='UnsubscribeResponseMsg'/>
+
+ <wsdl:message name='SubscriptionEnd'>
+ <wsdl:part name='body' element='wse:SubscriptionEnd'/>
+ </wsdl:message>
+
+ <wsdl:portType name='EventSource'>
+ <wsdl:operation name='SubscribeOp'>
+ <wsdl:input message='wse:SubscribeMsg'
wsa10:Action='http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscrib...
+ <wsdl:output message='wse:SubscribeResponseMsg'
wsa10:Action='http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscrib...
+ </wsdl:operation>
+ <!--wsdl:operation name='SubscriptionEnd'>
+ <wsdl:output message='wse:SubscriptionEnd'/>
+ </wsdl:operation-->
+ </wsdl:portType>
+
+ <wsdl:portType name='SubscriptionManager'>
+ <wsdl:operation name='RenewOp'>
+ <wsdl:input message='wse:RenewMsg'
wsa10:Action='http://schemas.xmlsoap.org/ws/2004/08/eventing/Renew...
+ <wsdl:output message='wse:RenewResponseMsg'
wsa10:Action='http://schemas.xmlsoap.org/ws/2004/08/eventing/RenewRes...
+ </wsdl:operation>
+ <wsdl:operation name='GetStatusOp'>
+ <wsdl:input message='wse:GetStatusMsg'
wsa10:Action='http://schemas.xmlsoap.org/ws/2004/08/eventing/GetStatu...
+ <wsdl:output message='wse:GetStatusResponseMsg'
wsa10:Action='http://schemas.xmlsoap.org/ws/2004/08/eventing/GetStatu...
+ </wsdl:operation>
+ <wsdl:operation name='UnsubscribeOp'>
+ <wsdl:input message='wse:UnsubscribeMsg'
wsa10:Action='http://schemas.xmlsoap.org/ws/2004/08/eventing/Unsubscr...
+ <wsdl:output message='wse:UnsubscribeResponseMsg'
wsa10:Action='http://schemas.xmlsoap.org/ws/2004/08/eventing/Unsubscr...
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="EventSourceBinding"
type="wse:EventSource">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="SubscribeOp">
+ <soap:operation soapAction=""/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <!--wsdl:operation name="SubscriptionEnd">
+ <soap:operation soapAction=""/>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation-->
+ </wsdl:binding>
+
+ <wsdl:binding name="SubscriptionManagerBinding"
type="wse:SubscriptionManager">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="GetStatusOp">
+ <soap:operation soapAction=""/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+
+ <wsdl:operation name="RenewOp">
+ <soap:operation soapAction=""/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+
+ <wsdl:operation name="UnsubscribeOp">
+ <soap:operation soapAction=""/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+
+ <wsdl:service name="EventingService">
+ <wsdl:port name="EventSourcePort"
binding="wse:EventSourceBinding">
+ <soap:address
location="http://@jbosstest.host.name@:8080/jaxrpc-wseventing/ws4ee/EventSourcePortType"/>
+ </wsdl:port>
+ <wsdl:port name="SubscriptionManagerPort"
binding="wse:SubscriptionManagerBinding">
+ <soap:address
location="http://@jbosstest.host.name@:8080/jaxrpc-wseventing/ws4ee/SubscriptionManagerPortType"/>
+ </wsdl:port>
+ </wsdl:service>
+
+</wsdl:definitions>
Added: trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/eventing.xsd
===================================================================
--- trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/eventing.xsd
(rev 0)
+++
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/eventing.xsd 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,185 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+(c) 2004 BEA Systems Inc., Computer Associates International, Inc., International
Business Machines Corporation, Microsoft Corporation, Inc, Sun Microsystems, Inc., and
TIBCO Software Inc. All rights reserved.
+
+BEA Systems Inc., Computer Associates International, Inc., International Business
Machines Corporation, Microsoft Corporation, Inc, Sun Microsystems, Inc, and TIBCO
Software Inc (collectively, the "Authors") hereby grant you permission to copy
and display the WS-Eventing Specification (the "Specification", which includes
WSDL and schema documents), in any medium without fee or royalty, provided that you
include the following on ALL copies of the Specification, that you make:
+
+1. A link or URL to the WS-Eventing Specification at one of the Authors' websites
+2. The copyright notice as shown in the WS-Eventing Specification.
+
+BEA, CA, IBM, Microsoft, Sun and TIBCO (collectively, the "Authors") each agree
to grant you a license, under royalty-free and otherwise reasonable, non-discriminatory
terms and conditions, to their respective essential patent claims that they deem necessary
to implement the Specification.
+
+THE SPECIFICATION IS PROVIDED "AS IS," AND THE AUTHORS MAKE NO REPRESENTATIONS
OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE
CONTENTS OF THE SPECIFICATION ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF
SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER
RIGHTS.
+
+THE AUTHORS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF OR RELATING TO ANY USE OR DISTRIBUTION OF THE
SPECIFICATION.
+
+The name and trademarks of the Authors may NOT be used in any manner, including
advertising or publicity pertaining to the Specification or its contents without specific,
written prior permission. Title to copyright in the Specification will at all times remain
with the Authors.
+
+No other rights are granted by implication, estoppel or otherwise.
+-->
+<xs:schema
targetNamespace="http://schemas.xmlsoap.org/ws/2004/08/eventing"
+
xmlns:tns="http://schemas.xmlsoap.org/ws/2004/08/eventing"
+
xmlns:wsa="http://www.w3.org/2005/08/addressing"
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="qualified"
+ blockDefault="#all">
+
+ <xs:import
namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/xml.xsd"/>
+
+ <xs:import
namespace="http://www.w3.org/2005/08/addressing"
schemaLocation="wsaddr.xsd"/>
+
+ <!-- Types and global elements -->
+ <xs:complexType name="DeliveryType" mixed="true">
+ <xs:sequence>
+ <xs:any namespace="##any" processContents="lax"
minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:attribute name="Mode" type="xs:anyURI"
use="optional"/>
+ <xs:anyAttribute namespace="##other"
processContents="lax"/>
+ </xs:complexType>
+
+ <xs:element name="NotifyTo"
type="wsa:EndpointReferenceType"/>
+
+ <xs:simpleType name="NonNegativeDurationType">
+ <xs:restriction base="xs:duration">
+ <xs:minInclusive value="P0Y0M0DT0H0M0S"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:simpleType name="ExpirationType">
+ <xs:union memberTypes="xs:dateTime tns:NonNegativeDurationType"/>
+ </xs:simpleType>
+
+ <xs:complexType name="FilterType" mixed="true">
+ <xs:sequence>
+ <xs:any namespace="##other" processContents="lax"
minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:attribute name="Dialect" type="xs:anyURI"
use="optional"/>
+ <xs:anyAttribute namespace="##other"
processContents="lax"/>
+ </xs:complexType>
+
+ <xs:complexType name="LanguageSpecificStringType">
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute ref="xml:lang"/>
+ <xs:anyAttribute namespace="##other"
processContents="lax"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+
+ <!-- Subscribe request -->
+ <xs:element name="Subscribe">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="EndTo" type="wsa:EndpointReferenceType"
minOccurs="0"/>
+ <xs:element name="Delivery" type="tns:DeliveryType"/>
+ <xs:element name="Expires" type="tns:ExpirationType"
minOccurs="0"/>
+ <xs:element name="Filter" type="tns:FilterType"
minOccurs="0"/>
+ <xs:any namespace="##other" processContents="lax"
minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:anyAttribute namespace="##other"
processContents="lax"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="Identifier" type="xs:anyURI"/>
+
+ <!-- Subscribe response -->
+ <xs:element name="SubscribeResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="SubscriptionManager"
type="wsa:EndpointReferenceType"/>
+ <xs:element name="Expires" type="tns:ExpirationType"/>
+ <xs:any namespace="##other" processContents="lax"
minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:anyAttribute namespace="##other"
processContents="lax"/>
+ </xs:complexType>
+ </xs:element>
+
+ <!-- Used in a fault if there's an unsupported dialect -->
+ <xs:element name="SupportedDialect" type="xs:anyURI"/>
+
+ <!-- Used in a fault if there's an unsupported delivery mode -->
+ <xs:element name="SupportedDeliveryMode" type="xs:anyURI"/>
+
+ <!-- Renew request -->
+ <xs:element name="Renew">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="Expires" type="tns:ExpirationType"
minOccurs="0"/>
+ <xs:any namespace="##other" processContents="lax"
minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:anyAttribute namespace="##other"
processContents="lax"/>
+ </xs:complexType>
+ </xs:element>
+
+ <!-- Renew response -->
+ <xs:element name="RenewResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="Expires" type="tns:ExpirationType"
minOccurs="0"/>
+ <xs:any namespace="##other" processContents="lax"
minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:anyAttribute namespace="##other"
processContents="lax"/>
+ </xs:complexType>
+ </xs:element>
+
+ <!-- GetStatus request -->
+ <xs:element name="GetStatus">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:any namespace="##other" processContents="lax"
minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:anyAttribute namespace="##other"
processContents="lax"/>
+ </xs:complexType>
+ </xs:element>
+
+ <!-- GetStatus response -->
+ <xs:element name="GetStatusResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="Expires" type="tns:ExpirationType"
minOccurs="0"/>
+ <xs:any namespace="##other" processContents="lax"
minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:anyAttribute namespace="##other"
processContents="lax"/>
+ </xs:complexType>
+ </xs:element>
+
+ <!-- Unsubscribe request -->
+ <xs:element name="Unsubscribe">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:any namespace="##other" processContents="lax"
minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:anyAttribute namespace="##other"
processContents="lax"/>
+ </xs:complexType>
+ </xs:element>
+
+ <!-- count(/s:Envelope/s:Body/*) = 0 for Unsubscribe response -->
+
+ <!-- SubscriptionEnd message -->
+ <xs:element name="SubscriptionEnd">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="SubscriptionManager"
type="wsa:EndpointReferenceType"/>
+ <xs:element name="Code"
type="tns:OpenSubscriptionEndCodeType"/>
+ <xs:element name="Reason"
type="tns:LanguageSpecificStringType" minOccurs="0"
maxOccurs="unbounded"/>
+ <xs:any namespace="##other" processContents="lax"
minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:anyAttribute namespace="##other"
processContents="lax"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:simpleType name="SubscriptionEndCodeType">
+ <xs:restriction base="xs:QName">
+ <xs:enumeration value="tns:DeliveryFailure"/>
+ <xs:enumeration value="tns:SourceShuttingDown"/>
+ <xs:enumeration value="tns:SourceCancelling"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:simpleType name="OpenSubscriptionEndCodeType">
+ <xs:union memberTypes="tns:SubscriptionEndCodeType xs:QName"/>
+ </xs:simpleType>
+
+ <xs:attribute name="EventSource" type="xs:boolean"/>
+
+</xs:schema>
\ No newline at end of file
Added: trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/wind.wsdl
===================================================================
--- trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/wind.wsdl
(rev 0)
+++
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/wind.wsdl 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,174 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<wsdl:definitions
+
targetNamespace="http://schemas.xmlsoap.org/ws/2004/08/eventing"
+
xmlns:tns="http://schemas.xmlsoap.org/ws/2004/08/eventing"
+
xmlns:wse='http://schemas.xmlsoap.org/ws/2004/08/eventing'
+
xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'
+
xmlns:wsa10='http://www.w3.org/2005/08/addressing'
+
xmlns:xs='http://www.w3.org/2001/XMLSchema'
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
+
+ <wsdl:types>
+
+ <xs:schema
targetNamespace='http://schemas.xmlsoap.org/ws/2004/08/eventing'>
+
+ <xs:include schemaLocation='eventing.xsd'/>
+
+ <xs:element name="WindReport">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="Date" type="xs:string"/>
+ <xs:element name="Time" type="xs:string"/>
+ <xs:element name="Speed" type="xs:string"/>
+ <xs:element name="Location"
type="xs:string"/>
+ <xs:element name="County" type="xs:string"/>
+ <xs:element name="State" type="xs:string"/>
+ <xs:element name="Lat" type="xs:string"/>
+ <xs:element name="Long" type="xs:string"/>
+ <xs:element name="Comments"
type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ </xs:schema>
+
+ </wsdl:types>
+
+ <wsdl:message name='SubscribeMsg'>
+ <wsdl:part name='body' element='wse:Subscribe'/>
+ </wsdl:message>
+ <wsdl:message name='SubscribeResponseMsg'>
+ <wsdl:part name='body' element='wse:SubscribeResponse'/>
+ </wsdl:message>
+
+ <wsdl:message name='RenewMsg'>
+ <wsdl:part name='body' element='wse:Renew'/>
+ </wsdl:message>
+ <wsdl:message name='RenewResponseMsg'>
+ <wsdl:part name='body' element='wse:RenewResponse'/>
+ </wsdl:message>
+
+ <wsdl:message name='GetStatusMsg'>
+ <wsdl:part name='body' element='wse:GetStatus'/>
+ </wsdl:message>
+ <wsdl:message name='GetStatusResponseMsg'>
+ <wsdl:part name='body' element='wse:GetStatusResponse'/>
+ </wsdl:message>
+
+ <wsdl:message name='UnsubscribeMsg'>
+ <wsdl:part name='body' element='wse:Unsubscribe'/>
+ </wsdl:message>
+ <wsdl:message name='UnsubscribeResponseMsg'/>
+
+ <wsdl:message name='SubscriptionEnd'>
+ <wsdl:part name='body' element='wse:SubscriptionEnd'/>
+ </wsdl:message>
+
+ <wsdl:message name='WindMsg'>
+ <wsdl:part name='body' element='tns:WindReport'/>
+ </wsdl:message>
+
+ <wsdl:portType name='EventSource'>
+ <wsdl:operation name='SubscribeOp'>
+ <wsdl:input message='wse:SubscribeMsg'
wsa10:Action='http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscrib...
+ <wsdl:output message='wse:SubscribeResponseMsg'
wsa10:Action='http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscrib...
+ </wsdl:operation>
+ <!--wsdl:operation name='SubscriptionEnd'>
+ <wsdl:output message='wse:SubscriptionEnd'/>
+ </wsdl:operation-->
+ </wsdl:portType>
+
+ <wsdl:portType name='SubscriptionManager'>
+ <wsdl:operation name='RenewOp'>
+ <wsdl:input message='wse:RenewMsg'
wsa10:Action='http://schemas.xmlsoap.org/ws/2004/08/eventing/Renew...
+ <wsdl:output message='wse:RenewResponseMsg'
wsa10:Action='http://schemas.xmlsoap.org/ws/2004/08/eventing/RenewRes...
+ </wsdl:operation>
+ <wsdl:operation name='GetStatusOp'>
+ <wsdl:input message='wse:GetStatusMsg'
wsa10:Action='http://schemas.xmlsoap.org/ws/2004/08/eventing/GetStatu...
+ <wsdl:output message='wse:GetStatusResponseMsg'
wsa10:Action='http://schemas.xmlsoap.org/ws/2004/08/eventing/GetStatu...
+ </wsdl:operation>
+ <wsdl:operation name='UnsubscribeOp'>
+ <wsdl:input message='wse:UnsubscribeMsg'
wsa10:Action='http://schemas.xmlsoap.org/ws/2004/08/eventing/Unsubscr...
+ <wsdl:output message='wse:UnsubscribeResponseMsg'
wsa10:Action='http://schemas.xmlsoap.org/ws/2004/08/eventing/Unsubscr...
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:portType name='Warnings' wse:EventSource='true'>
+ <wsdl:operation name='WindOp'>
+ <wsdl:output message='tns:WindMsg'/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="WarningsBinding" type="tns:Warnings">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="WindOp">
+ <soap:operation soapAction=""/>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+
+ <wsdl:binding name="EventSourceBinding"
type="wse:EventSource">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="SubscribeOp">
+ <soap:operation soapAction=""/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <!--wsdl:operation name="SubscriptionEnd">
+ <soap:operation soapAction=""/>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation-->
+ </wsdl:binding>
+
+ <wsdl:binding name="SubscriptionManagerBinding"
type="wse:SubscriptionManager">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="GetStatusOp">
+ <soap:operation soapAction=""/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+
+ <wsdl:operation name="RenewOp">
+ <soap:operation soapAction=""/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+
+ <wsdl:operation name="UnsubscribeOp">
+ <soap:operation soapAction=""/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+
+ <wsdl:service name="EventingService">
+ <wsdl:port name="EventSourcePort"
binding="wse:EventSourceBinding">
+ <soap:address
location="http://@jbosstest.host.name@:8080/jaxrpc-wseventing/ws4ee/EventSourcePortType"/>
+ </wsdl:port>
+ <wsdl:port name="SubscriptionManagerPort"
binding="wse:SubscriptionManagerBinding">
+ <soap:address
location="http://@jbosstest.host.name@:8080/jaxrpc-wseventing/ws4ee/SubscriptionManagerPortType"/>
+ </wsdl:port>
+ </wsdl:service>
+
+</wsdl:definitions>
Added: trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/wsaddr.xsd
===================================================================
--- trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/wsaddr.xsd
(rev 0)
+++
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/wsaddr.xsd 2007-01-18
12:54:34 UTC (rev 1994)
@@ -0,0 +1,151 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN"
"http://www.w3.org/2001/XMLSchema.dtd">
+<!--
+ W3C XML Schema defined in the Web Services Addressing 1.0 specification
+
http://www.w3.org/TR/ws-addr-core
+
+ Copyright © 2005 World Wide Web Consortium,
+
+ (Massachusetts Institute of Technology, European Research Consortium for
+ Informatics and Mathematics, Keio University). All Rights Reserved. This
+ work is distributed under the W3C® Software License [1] 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.
+
+ [1]
http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
+
+ $Id: ws-addr.xsd,v 1.3 2005/08/09 13:17:35 hugo Exp $
+-->
+<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
+
xmlns:tns="http://www.w3.org/2005/08/addressing"
+
targetNamespace="http://www.w3.org/2005/08/addressing"
+ blockDefault="#all"
+ elementFormDefault="qualified"
+ finalDefault=""
+ attributeFormDefault="unqualified">
+
+ <!-- Constructs from the WS-Addressing Core -->
+
+ <xs:element name="EndpointReference"
type="tns:EndpointReferenceType"/>
+ <xs:complexType name="EndpointReferenceType" mixed="false">
+ <xs:sequence>
+ <xs:element name="Address" type="tns:AttributedURIType"/>
+ <xs:element name="ReferenceParameters"
type="tns:ReferenceParametersType" minOccurs="0"/>
+ <xs:element ref="tns:Metadata" minOccurs="0"/>
+ <xs:any namespace="##other" processContents="lax"
minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:complexType>
+
+ <xs:complexType name="ReferenceParametersType" mixed="false">
+ <xs:sequence>
+ <xs:any namespace="##any" processContents="lax"
minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:complexType>
+
+ <xs:element name="Metadata" type="tns:MetadataType"/>
+ <xs:complexType name="MetadataType" mixed="false">
+ <xs:sequence>
+ <xs:any namespace="##any" processContents="lax"
minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:complexType>
+
+ <xs:element name="MessageID" type="tns:AttributedURIType"/>
+ <xs:element name="RelatesTo" type="tns:RelatesToType"/>
+ <xs:complexType name="RelatesToType" mixed="false">
+ <xs:simpleContent>
+ <xs:extension base="xs:anyURI">
+ <xs:attribute name="RelationshipType"
type="tns:RelationshipTypeOpenEnum" use="optional"
default="http://www.w3.org/2005/08/addressing/reply"/>
+ <xs:anyAttribute namespace="##other"
processContents="lax"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+
+ <xs:simpleType name="RelationshipTypeOpenEnum">
+ <xs:union memberTypes="tns:RelationshipType xs:anyURI"/>
+ </xs:simpleType>
+
+ <xs:simpleType name="RelationshipType">
+ <xs:restriction base="xs:anyURI">
+ <xs:enumeration
value="http://www.w3.org/2005/08/addressing/reply"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:element name="ReplyTo" type="tns:EndpointReferenceType"/>
+ <xs:element name="From" type="tns:EndpointReferenceType"/>
+ <xs:element name="FaultTo" type="tns:EndpointReferenceType"/>
+ <xs:element name="To" type="tns:AttributedURIType"/>
+ <xs:element name="Action" type="tns:AttributedURIType"/>
+
+ <xs:complexType name="AttributedURIType" mixed="false">
+ <xs:simpleContent>
+ <xs:extension base="xs:anyURI">
+ <xs:anyAttribute namespace="##other"
processContents="lax"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+
+ <!-- Constructs from the WS-Addressing SOAP binding -->
+
+ <xs:attribute name="IsReferenceParameter" type="xs:boolean"/>
+
+ <xs:simpleType name="FaultCodesOpenEnumType">
+ <xs:union memberTypes="tns:FaultCodesType xs:QName"/>
+ </xs:simpleType>
+
+ <xs:simpleType name="FaultCodesType">
+ <xs:restriction base="xs:QName">
+ <xs:enumeration value="tns:InvalidAddressingHeader"/>
+ <xs:enumeration value="tns:InvalidAddress"/>
+ <xs:enumeration value="tns:InvalidEPR"/>
+ <xs:enumeration value="tns:InvalidCardinality"/>
+ <xs:enumeration value="tns:MissingAddressInEPR"/>
+ <xs:enumeration value="tns:DuplicateMessageID"/>
+ <xs:enumeration value="tns:ActionMismatch"/>
+ <xs:enumeration value="tns:MessageAddressingHeaderRequired"/>
+ <xs:enumeration value="tns:DestinationUnreachable"/>
+ <xs:enumeration value="tns:ActionNotSupported"/>
+ <xs:enumeration value="tns:EndpointUnavailable"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:element name="RetryAfter"
type="tns:AttributedUnsignedLongType"/>
+ <xs:complexType name="AttributedUnsignedLongType"
mixed="false">
+ <xs:simpleContent>
+ <xs:extension base="xs:unsignedLong">
+ <xs:anyAttribute namespace="##other"
processContents="lax"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+
+ <xs:element name="ProblemHeaderQName"
type="tns:AttributedQNameType"/>
+ <xs:complexType name="AttributedQNameType" mixed="false">
+ <xs:simpleContent>
+ <xs:extension base="xs:QName">
+ <xs:anyAttribute namespace="##other"
processContents="lax"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+
+ <xs:element name="ProblemHeader"
type="tns:AttributedAnyType"/>
+ <xs:complexType name="AttributedAnyType" mixed="false">
+ <xs:sequence>
+ <xs:any namespace="##any" processContents="lax"
minOccurs="1" maxOccurs="1"/>
+ </xs:sequence>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:complexType>
+
+ <xs:element name="ProblemIRI" type="tns:AttributedURIType"/>
+
+ <xs:element name="ProblemAction"
type="tns:ProblemActionType"/>
+ <xs:complexType name="ProblemActionType" mixed="false">
+ <xs:sequence>
+ <xs:element ref="tns:Action" minOccurs="0"/>
+ <xs:element name="SoapAction" minOccurs="0"
type="xs:anyURI"/>
+ </xs:sequence>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:complexType>
+
+</xs:schema>
\ No newline at end of file