Author: heiko.braun(a)jboss.com
Date: 2007-01-18 08:58:21 -0500 (Thu, 18 Jan 2007)
New Revision: 1995
Added:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/AbstractEventSourceEndpoint.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/AbstractSubscriptionManagerEndpoint.java
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/CustomSubscriptionManager.java
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/windreport.wsdl
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/ws-addr.xsd
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/ws-eventing.wsdl
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/ws-eventing.xsd
Removed:
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/SubscriptionManagerEndpointImpl.java
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
Modified:
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/jaxws/EventSourceEndpoint.java
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/SubscriptionManagerEndpoint.java
trunk/jbossws-core/src/main/resources/schema/ws-addr.xsd
trunk/jbossws-core/src/main/resources/schema/ws-eventing.xsd
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/EventingSupport.java
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/web.xml
Log:
Eventing endpoints have now become an abstract impl.
Modified:
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/EventSourceEndpointImpl.java 2007-01-18
12:54:34 UTC (rev 1994)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxrpc/EventSourceEndpointImpl.java 2007-01-18
13:58:21 UTC (rev 1995)
@@ -26,17 +26,13 @@
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;
/**
Copied:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/AbstractEventSourceEndpoint.java
(from rev 1994,
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/AbstractEventSourceEndpoint.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/AbstractEventSourceEndpoint.java 2007-01-18
13:58:21 UTC (rev 1995)
@@ -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 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 abstract class AbstractEventSourceEndpoint extends EventingEndpointBase implements
EventSourceEndpoint {
+
+ @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();
+ getLogger().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
+ );
+ }
+
+ /**
+ * Subsclasses need to provide a logger for this endpoint
+ * @return a custom {@link org.jboss.logging.Logger} instance
+ */
+ protected abstract Logger getLogger();
+}
Copied:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/AbstractSubscriptionManagerEndpoint.java
(from rev 1994,
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/AbstractSubscriptionManagerEndpoint.java
(rev 0)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/AbstractSubscriptionManagerEndpoint.java 2007-01-18
13:58:21 UTC (rev 1995)
@@ -0,0 +1,202 @@
+/*
+ * 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.jboss.logging.Logger;
+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 abstract class AbstractSubscriptionManagerEndpoint 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();
+
+ getLogger().debug("GetStatus request for subscriptionID: " +
identifier);
+
+ 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();
+
+ getLogger().debug("Renew request for subscriptionID: " + identifier);
+
+ 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();
+
+ getLogger().debug("Unsubscribe request for subscriptionID: " +
identifier);
+
+ 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;
+ }
+
+ /**
+ * Subsclasses need to provide a logger for this endpoint
+ * @return a custom {@link org.jboss.logging.Logger} instance
+ */
+ protected abstract Logger getLogger();
+}
Modified:
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 2007-01-18
12:54:34 UTC (rev 1994)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/EventSourceEndpoint.java 2007-01-18
13:58:21 UTC (rev 1995)
@@ -37,7 +37,7 @@
*
*/
@WebService(name = "EventSource", targetNamespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing")
-@SOAPBinding(parameterStyle = ParameterStyle.WRAPPED)
+@SOAPBinding(parameterStyle = ParameterStyle.BARE)
public interface EventSourceEndpoint {
Deleted:
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 2007-01-18
12:54:34 UTC (rev 1994)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/EventSourceEndpointImpl.java 2007-01-18
13:58:21 UTC (rev 1995)
@@ -1,126 +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.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
- );
- }
-}
Modified:
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 2007-01-18
12:54:34 UTC (rev 1994)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/SubscriptionManagerEndpoint.java 2007-01-18
13:58:21 UTC (rev 1995)
@@ -36,7 +36,7 @@
*
*/
@WebService(name = "SubscriptionManager", targetNamespace =
"http://schemas.xmlsoap.org/ws/2004/08/eventing")
-@SOAPBinding(parameterStyle = ParameterStyle.WRAPPED)
+@SOAPBinding(parameterStyle = ParameterStyle.BARE)
public interface SubscriptionManagerEndpoint {
Deleted:
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 2007-01-18
12:54:34 UTC (rev 1994)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/eventing/jaxws/SubscriptionManagerEndpointImpl.java 2007-01-18
13:58:21 UTC (rev 1995)
@@ -1,188 +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.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;
- }
-}
Modified: trunk/jbossws-core/src/main/resources/schema/ws-addr.xsd
===================================================================
--- trunk/jbossws-core/src/main/resources/schema/ws-addr.xsd 2007-01-18 12:54:34 UTC (rev
1994)
+++ trunk/jbossws-core/src/main/resources/schema/ws-addr.xsd 2007-01-18 13:58:21 UTC (rev
1995)
@@ -1,156 +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">
+<?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,
+ 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
+ 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$
-->
<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">
+ blockDefault="#all"
+ elementFormDefault="qualified"
+ finalDefault=""
+ attributeFormDefault="unqualified">
- <!-- Constructs from the WS-Addressing Core -->
+ <!-- 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="xs:anyURI"/>
+ <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>
- <!-- [hb] was not working
- 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:complexType name="ReferenceParametersType"
mixed="false">
- <xs:sequence>
- <!--xs:any namespace="##any" processContents="lax"
minOccurs="0" maxOccurs="unbounded"/-->
- <!--
- [hb] workaround for missing wilcard support
- -->
- <xs:element name="Identifier" type="xs:anyURI"
minOccurs="0"/>
- </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="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: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="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: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: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>
- <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 -->
- <!-- Constructs from the WS-Addressing SOAP binding -->
+ <xs:attribute name="IsReferenceParameter" type="xs:boolean"/>
- <xs:attribute name="IsReferenceParameter"
type="xs:boolean"/>
+ <xs:simpleType name="FaultCodesOpenEnumType">
+ <xs:union memberTypes="tns:FaultCodesType xs:QName"/>
+ </xs:simpleType>
- <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: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="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="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="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="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: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>
+</xs:schema>
\ No newline at end of file
Modified: trunk/jbossws-core/src/main/resources/schema/ws-eventing.xsd
===================================================================
--- trunk/jbossws-core/src/main/resources/schema/ws-eventing.xsd 2007-01-18 12:54:34 UTC
(rev 1994)
+++ trunk/jbossws-core/src/main/resources/schema/ws-eventing.xsd 2007-01-18 13:58:21 UTC
(rev 1995)
@@ -1,189 +1,186 @@
<?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.
-<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"
- attributeFormDefault="unqualified"
- blockDefault="#all">
+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:
- <xs:import
namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/xml.xsd"/>
+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.
- <xs:import
namespace="http://www.w3.org/2005/08/addressing"
schemaLocation="http://www.w3.org/2005/08/addressing/ws-addr.xsd&quo...
+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.
- <!-- Types and global elements -->
- <xs:complexType name="DeliveryType" mixed="true">
- <xs:sequence>
- <!--xs:any namespace="##any" processContents="lax"
- minOccurs="0" maxOccurs="unbounded" /-->
- <xs:element name="NotifyTo"
type="wsa:EndpointReferenceType" minOccurs="0"
maxOccurs="1"/>
- </xs:sequence>
- <xs:attribute name="Mode" type="xs:anyURI"
use="optional"/>
- <!--xs:anyAttribute namespace="##other"
processContents="lax" /-->
- </xs:complexType>
+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.
- <!--xs:element name="NotifyTo"
type="wsa:EndpointReferenceType" /-->
+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.
- <xs:simpleType name="NonNegativeDurationType">
- <xs:restriction base="xs:duration">
- <xs:minInclusive value="P0Y0M0DT0H0M0S"/>
- </xs:restriction>
- </xs:simpleType>
+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.
- <xs:simpleType name="ExpirationType">
- <xs:union memberTypes="xs:dateTime
tns:NonNegativeDurationType"/>
- </xs:simpleType>
+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:complexType name="FilterType" mixed="true">
- <!--xs:sequence>
- <xs:any namespace="##other" processContents="lax"
- minOccurs="0" maxOccurs="unbounded" />
- </xs:sequence-->
- <xs:simpleContent>
- <xs:extension base="xs:string">
- <xs:attribute name="Dialect" type="xs:anyURI"
use="optional"/>
- </xs:extension>
- </xs:simpleContent>
+ <xs:import
namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/xml.xsd"/>
- <!--xs:anyAttribute namespace="##other"
processContents="lax" /-->
- </xs:complexType>
+ <!--xs:import
namespace="http://www.w3.org/2005/08/addressing"
schemaLocation="wsaddr.xsd"/-->
+ <xs:import
namespace="http://www.w3.org/2005/08/addressing"/>
- <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>
+ <!-- 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="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="xs:dateTime"
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="NotifyTo"
type="wsa:EndpointReferenceType"/>
- <xs:element name="Identifier" type="xs:anyURI"/>
+ <xs:simpleType name="NonNegativeDurationType">
+ <xs:restriction base="xs:duration">
+ <xs:minInclusive value="P0Y0M0DT0H0M0S"/>
+ </xs:restriction>
+ </xs:simpleType>
- <xs:element name="SubscribeResponse">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="SubscriptionManager"
- type="wsa:EndpointReferenceType"/>
- <xs:element name="Expires"
type="xs:dateTime"/>
+ <xs:simpleType name="ExpirationType">
+ <xs:union memberTypes="xs:dateTime tns:NonNegativeDurationType"/>
+ </xs:simpleType>
- <!--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>
+ <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>
- <!-- Used in a fault if there's an unsupported dialect -->
- <xs:element name="SupportedDialect" type="xs:anyURI"/>
+ <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>
- <!-- Used in a fault if there's an unsupported delivery mode -->
- <xs:element name="SupportedDeliveryMode"
type="xs:anyURI"/>
+ <!-- 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>
- <!-- Renew request -->
- <xs:element name="Renew">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="Expires" type="xs:dateTime"
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"/>
- <!-- Renew response -->
- <xs:element name="RenewResponse">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="Expires" type="xs:dateTime"
minOccurs="0"/>
- <!--xs:any namespace="##other"
processContents="lax"
- minOccurs="0" maxOccurs="unbounded" /-->
- </xs:sequence>
- <!--xs:anyAttribute namespace="##other"
processContents="lax" /-->
- </xs:complexType>
- </xs:element>
+ <!-- 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>
- <!-- 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>
+ <!-- Used in a fault if there's an unsupported dialect -->
+ <xs:element name="SupportedDialect" type="xs:anyURI"/>
- <!-- GetStatus response -->
- <xs:element name="GetStatusResponse">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="Expires" type="xs:dateTime"
minOccurs="0"/>
- <!--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 delivery mode -->
+ <xs:element name="SupportedDeliveryMode" type="xs:anyURI"/>
- <!-- 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>
+ <!-- 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>
- <!-- 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>
+ <!-- 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>
- <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>
+ <!-- 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>
- <xs:simpleType name="OpenSubscriptionEndCodeType">
- <xs:union memberTypes="tns:SubscriptionEndCodeType xs:QName"/>
- </xs:simpleType>
+ <!-- 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>
- <xs:attribute name="EventSource" type="xs:boolean"/>
+ <!-- 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>
-</xs:schema>
+ <!-- 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
Modified:
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 2007-01-18
12:54:34 UTC (rev 1994)
+++
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/CustomEventSource.java 2007-01-18
13:58:21 UTC (rev 1995)
@@ -21,11 +21,32 @@
*/
package org.jboss.test.ws.jaxws.wseventing;
+import org.jboss.ws.extensions.eventing.jaxws.AbstractEventSourceEndpoint;
+import org.jboss.ws.annotation.EndpointConfig;
+import org.jboss.logging.Logger;
+
+import javax.jws.WebService;
+
/**
* @author Heiko.Braun(a)jboss.org
* @version $Id$
* @since 16.01.2007
*/
-public class CustomEventSource {
+@WebService(
+ name = "EventSource",
+ portName = "EventSourcePort",
+ targetNamespace = "http://schemas.xmlsoap.org/ws/2004/08/eventing",
+ wsdlLocation = "/WEB-INF/wsdl/windreport.wsdl",
+ endpointInterface =
"org.jboss.ws.extensions.eventing.jaxws.EventSourceEndpoint")
+@EndpointConfig(configName = "Standard WSAddressing Endpoint")
+public class CustomEventSource extends AbstractEventSourceEndpoint {
+ private static final Logger log = Logger.getLogger(CustomEventSource.class);
+
+ protected Logger getLogger()
+ {
+ return log;
+ }
+
+
}
Added:
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/CustomSubscriptionManager.java
===================================================================
---
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/CustomSubscriptionManager.java
(rev 0)
+++
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/CustomSubscriptionManager.java 2007-01-18
13:58:21 UTC (rev 1995)
@@ -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.test.ws.jaxws.wseventing;
+
+import org.jboss.ws.extensions.eventing.jaxws.AbstractSubscriptionManagerEndpoint;
+import org.jboss.ws.annotation.EndpointConfig;
+import org.jboss.logging.Logger;
+
+import javax.jws.WebService;
+
+/**
+ * @author Heiko.Braun(a)jboss.org
+ * @version $Id$
+ * @since 18.01.2007
+ */
+@WebService(
+ name = "SubscriptionManager",
+ portName = "SubscriptionManagerPort",
+ targetNamespace = "http://schemas.xmlsoap.org/ws/2004/08/eventing",
+ wsdlLocation = "/WEB-INF/wsdl/windreport.wsdl",
+ endpointInterface =
"org.jboss.ws.extensions.eventing.jaxws.SubscriptionManagerEndpoint")
+@EndpointConfig(configName = "Standard WSAddressing Endpoint")
+public class CustomSubscriptionManager extends AbstractSubscriptionManagerEndpoint {
+
+ private static final Logger log = Logger.getLogger(CustomSubscriptionManager.class);
+
+ protected Logger getLogger() {
+ return log;
+ }
+}
Modified:
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 2007-01-18
12:54:34 UTC (rev 1994)
+++
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/wseventing/EventingSupport.java 2007-01-18
13:58:21 UTC (rev 1995)
@@ -80,11 +80,14 @@
protected static AddressingBuilder addrBuilder =
AddressingBuilder.getAddressingBuilder();
+ // an event source name is build from the TNS+PortType name
+ private static final String EVENT_SOURCE_NAME =
"http://www.jboss.org/wind/Warnings";
+
protected void setUp() throws Exception
{
super.setUp();
- eventSourceURI = new
URI("http://schemas.xmlsoap.org/ws/2004/08/eventing/Warnings");
+ eventSourceURI = new URI(EVENT_SOURCE_NAME);
wsdlLocation = new URL("http://" + getServerHost() +
":8080/jaxws-wseventing/subscribe?wsdl");
if (eventSourcePort == null)
Modified: trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/web.xml
===================================================================
--- trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/web.xml 2007-01-18
12:54:34 UTC (rev 1994)
+++ trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/web.xml 2007-01-18
13:58:21 UTC (rev 1995)
@@ -17,7 +17,7 @@
<servlet>
<servlet-name>EventSource</servlet-name>
-
<servlet-class>org.jboss.ws.extensions.eventing.jaxws.EventSourceEndpointImpl</servlet-class>
+
<servlet-class>org.jboss.test.ws.jaxws.wseventing.CustomEventSource</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>EventSource</servlet-name>
@@ -26,7 +26,7 @@
<servlet>
<servlet-name>SubscriptionManager</servlet-name>
-
<servlet-class>org.jboss.ws.extensions.eventing.jaxws.SubscriptionManagerEndpointImpl</servlet-class>
+
<servlet-class>org.jboss.test.ws.jaxws.wseventing.CustomSubscriptionManager</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>SubscriptionManager</servlet-name>
Deleted:
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 2007-01-18
12:54:34 UTC (rev 1994)
+++
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/eventing.wsdl 2007-01-18
13:58:21 UTC (rev 1995)
@@ -1,133 +0,0 @@
-<?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>
Deleted:
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 2007-01-18
12:54:34 UTC (rev 1994)
+++
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/eventing.xsd 2007-01-18
13:58:21 UTC (rev 1995)
@@ -1,185 +0,0 @@
-<?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
Deleted: 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 2007-01-18
12:54:34 UTC (rev 1994)
+++
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/wind.wsdl 2007-01-18
13:58:21 UTC (rev 1995)
@@ -1,174 +0,0 @@
-<?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/windreport.wsdl
===================================================================
--- trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/windreport.wsdl
(rev 0)
+++
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/windreport.wsdl 2007-01-18
13:58:21 UTC (rev 1995)
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<wsdl:definitions
+
targetNamespace="http://www.jboss.org/wind"
+
xmlns:tns="http://www.jboss.org/wind"
+
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:import
+
namespace='http://schemas.xmlsoap.org/ws/2004/08/eventing'
+ location='ws-eventing.wsdl' />
+ <wsdl:types>
+
+ <xs:schema
targetNamespace='http://schemas.xmlsoap.org/ws/2004/08/eventing'>
+ <xs:include schemaLocation='ws-eventing.xsd'/>
+ </xs:schema>
+
+ <xs:schema
+
targetNamespace="http://www.jboss.org/wind"
+ elementFormDefault="qualified"
+ blockDefault="#all">
+
+ <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='WindMsg'>
+ <wsdl:part name='body' element='tns:WindReport'/>
+ </wsdl:message>
+
+ <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:definitions>
\ No newline at end of file
Copied: trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/ws-addr.xsd
(from rev 1994,
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/wsaddr.xsd)
===================================================================
--- trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/ws-addr.xsd
(rev 0)
+++
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/ws-addr.xsd 2007-01-18
13:58:21 UTC (rev 1995)
@@ -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
Added:
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/ws-eventing.wsdl
===================================================================
--- trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/ws-eventing.wsdl
(rev 0)
+++
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/ws-eventing.wsdl 2007-01-18
13:58:21 UTC (rev 1995)
@@ -0,0 +1,132 @@
+<?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:import
namespace="http://schemas.xmlsoap.org/ws/2004/08/eventing"
schemaLocation="http://schemas.xmlsoap.org/ws/2004/08/eventing/event...
+ </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-samples-wseventing/subscribe"/>
+ </wsdl:port>
+ <wsdl:port name="SubscriptionManagerPort"
binding="wse:SubscriptionManagerBinding">
+ <soap:address
location="http://@jbosstest.host.name@:8080/jaxrpc-samples-wseventing/manage"/>
+ </wsdl:port>
+ </wsdl:service>
+
+
+</wsdl:definitions>
\ No newline at end of file
Copied:
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/ws-eventing.xsd (from
rev 1994,
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/eventing.xsd)
===================================================================
--- trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/ws-eventing.xsd
(rev 0)
+++
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/ws-eventing.xsd 2007-01-18
13:58:21 UTC (rev 1995)
@@ -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="ws-addr.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
Deleted: 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 2007-01-18
12:54:34 UTC (rev 1994)
+++
trunk/jbossws-tests/src/main/resources/jaxws/wseventing/WEB-INF/wsdl/wsaddr.xsd 2007-01-18
13:58:21 UTC (rev 1995)
@@ -1,151 +0,0 @@
-<?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