JBossWS SVN: r1306 - branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing
by jbossws-commits@lists.jboss.org
Author: heiko.braun(a)jboss.com
Date: 2006-10-25 07:01:59 -0400 (Wed, 25 Oct 2006)
New Revision: 1306
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/EventingTestCase.java
Log:
Handle expiration times gracefully
Modified: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/EventingTestCase.java
===================================================================
--- branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/EventingTestCase.java 2006-10-25 10:55:58 UTC (rev 1305)
+++ branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/EventingTestCase.java 2006-10-25 11:01:59 UTC (rev 1306)
@@ -97,43 +97,6 @@
}
}
- public void testExpireDatePastMax() throws Exception
- {
- assertWSDLAccess();
-
- //
- // If such a source receives a Subscribe request containing a specific time expiration,
- // then the request MAY fail; if so, the event source MAY generate a
- // wse:UnsupportedExpirationType fault indicating that an unsupported expiration type was requested.
- //
-
- AddressingProperties requestProps = AddressingClientUtil.createDefaultProps(
- EventingConstants.SUBSCRIBE_ACTION, eventSourceURI.toString()
- );
- requestProps.setMessageID(AddressingClientUtil.createMessageID());
- setRequestProperties((StubExt)eventSourcePort, requestProps);
-
- SubscribeRequest request = new SubscribeRequest();
- DeliveryType delivery = getDefaultDelivery();
- request.setDelivery(delivery);
- request.setEndTo(delivery.getNotifyTo());
- request.setExpires(new Date(System.currentTimeMillis() + EventingConstants.MAX_LEASE_TIME + 1000));
- request.setFilter(getDefaultFilter());
-
- try
- {
- SubscribeResponse subscribeResponse = eventSourcePort.subscribe(request);
- fail("Subscription should fail due to exceedd max lease time");
- }
- catch (RemoteException e)
- {
- // ignore expected exception
- }
- catch(Throwable t) {
- fail(t.getMessage()); // can be thrown by AddrConstraintsHandler
- }
- }
-
public void testRenewal() throws Exception {
assertWSDLAccess();
18 years, 2 months
JBossWS SVN: r1305 - in branches/jbossws-1.0/src/main/java/org/jboss/ws/eventing: . mgmt
by jbossws-commits@lists.jboss.org
Author: heiko.braun(a)jboss.com
Date: 2006-10-25 06:55:58 -0400 (Wed, 25 Oct 2006)
New Revision: 1305
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/eventing/EventingConstants.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/eventing/mgmt/SubscriptionManager.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/eventing/mgmt/SubscriptionManagerMBean.java
Log:
Added Stefano Maestri contribution
Modified: branches/jbossws-1.0/src/main/java/org/jboss/ws/eventing/EventingConstants.java
===================================================================
--- branches/jbossws-1.0/src/main/java/org/jboss/ws/eventing/EventingConstants.java 2006-10-25 10:55:06 UTC (rev 1304)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/eventing/EventingConstants.java 2006-10-25 10:55:58 UTC (rev 1305)
@@ -79,8 +79,6 @@
// default config
public final static String DISPATCHER_JNDI_NAME = "EventDispatcher";
- public final static long MAX_LEASE_TIME = 1000 * 60 * 10L;
- public final static long DEFAULT_LEASE = 1000 * 60 * 5L;
private static URI DELIVERY_PUSH_URI = null;
private static URI DIALECT_XPATH_URI = null;
Modified: branches/jbossws-1.0/src/main/java/org/jboss/ws/eventing/mgmt/SubscriptionManager.java
===================================================================
--- branches/jbossws-1.0/src/main/java/org/jboss/ws/eventing/mgmt/SubscriptionManager.java 2006-10-25 10:55:06 UTC (rev 1304)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/eventing/mgmt/SubscriptionManager.java 2006-10-25 10:55:58 UTC (rev 1305)
@@ -23,25 +23,6 @@
// $Id$
-import java.io.PrintWriter;
-import java.io.StringWriter;
-import java.net.URI;
-import java.net.URISyntaxException;
-import java.util.Date;
-import java.util.List;
-import java.util.ArrayList;
-import java.util.concurrent.BlockingQueue;
-import java.util.concurrent.ConcurrentHashMap;
-import java.util.concurrent.ConcurrentMap;
-import java.util.concurrent.CopyOnWriteArrayList;
-import java.util.concurrent.LinkedBlockingQueue;
-import java.util.concurrent.ThreadPoolExecutor;
-import java.util.concurrent.TimeUnit;
-
-import javax.naming.InitialContext;
-import javax.naming.NamingException;
-import javax.management.*;
-
import org.jboss.logging.Logger;
import org.jboss.util.naming.Util;
import org.jboss.ws.WSException;
@@ -49,10 +30,24 @@
import org.jboss.ws.eventing.deployment.EventingEndpointDI;
import org.jboss.ws.eventing.element.EndpointReference;
import org.jboss.ws.eventing.element.ReferenceParameters;
+import org.jboss.ws.utils.ObjectNameFactory;
import org.jboss.ws.utils.UUIDGenerator;
-import org.jboss.ws.utils.ObjectNameFactory;
import org.w3c.dom.Element;
+import javax.management.MBeanServer;
+import javax.management.MBeanServerFactory;
+import javax.management.ObjectName;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+import java.io.PrintWriter;
+import java.io.StringWriter;
+import java.net.URI;
+import java.net.URISyntaxException;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+import java.util.concurrent.*;
+
/**
* The SubscriptionManager maintains event sources and subscriptions.<br>
* It is interfaced through the EventSourceEndpoint and SubscriptionManagerEndpoint SOAP endpoints.
@@ -80,11 +75,12 @@
*/
public class SubscriptionManager implements SubscriptionManagerMBean, EventDispatcher
{
-
private static final Logger log = Logger.getLogger(SubscriptionManager.class);
+ private long MAX_LEASE_TIME = 1000 * 60 * 10L;
+ public long DEFAULT_LEASE = 1000 * 60 * 5L;
public static final ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss.ws:service=SubscriptionManager,module=eventing");
-
+
/**
* Maps event source namespaces to event source instances.
*/
@@ -137,31 +133,31 @@
public void start() throws Exception
{
log.debug("Start subscription manager");
-
+
// setup thread pool
threadPool = new ThreadPoolExecutor(5, 15, // core/max num threads
- 5000, TimeUnit.MILLISECONDS, // 5 seconds keepalive
- eventQueue);
+ 5000, TimeUnit.MILLISECONDS, // 5 seconds keepalive
+ eventQueue);
// start the subscription watchdog
watchDog = new WatchDog(subscriptionMapping);
watchDog.startup();
}
- public void stop()
+ public void stop()
{
log.debug("Stop subscription manager");
try
{
// remove event dispatcher
Util.unbind(new InitialContext(), EventingConstants.DISPATCHER_JNDI_NAME);
-
+
// stop thread pool
threadPool.shutdown();
-
+
// stop the watchdog
watchDog.shutdown();
-
+
for (URI eventSourceNS : eventSourceMapping.keySet())
{
removeEventSource(eventSourceNS);
@@ -171,7 +167,7 @@
{
//log.warn("Cannot unbind event dispatcher: " + e.toString());
// Ignore
- }
+ }
}
private static URI generateSubscriptionID()
@@ -283,7 +279,7 @@
}
else
{
- expires = new Date((System.currentTimeMillis() + EventingConstants.DEFAULT_LEASE));
+ expires = new Date((System.currentTimeMillis() + DEFAULT_LEASE));
}
// filter constraints
@@ -324,8 +320,14 @@
private void assertLeaseConstraints(Date expireDate) throws SubscriptionError
{
long expires = expireDate.getTime() - System.currentTimeMillis();
- if (expires < 0 || EventingConstants.MAX_LEASE_TIME < expires)
+ if (expires <= 0 ) {
throw new SubscriptionError(EventingConstants.CODE_INVALID_EXPIRATION_TIME, "The expiration time requested is invalid: " + expires + "ms");
+ }
+ if (MAX_LEASE_TIME < expires) {
+ expireDate.setTime((System.currentTimeMillis() + MAX_LEASE_TIME));
+
+ }
+
}
/**
@@ -344,7 +346,7 @@
if (lease != null)
assertLeaseConstraints(lease);
- else lease = new Date((System.currentTimeMillis() + EventingConstants.DEFAULT_LEASE));
+ else lease = new Date((System.currentTimeMillis() + DEFAULT_LEASE));
subscription.setExpires(lease);
return lease;
@@ -489,6 +491,11 @@
threadPool.setCorePoolSize(corePoolSize);
}
+ public int getMaxPoolSize()
+ {
+ return threadPool.getMaximumPoolSize();
+ }
+
public void setMaxPoolSize(int maxPoolSize)
{
threadPool.setMaximumPoolSize(maxPoolSize);
@@ -499,6 +506,27 @@
threadPool.setKeepAliveTime(millies, TimeUnit.MILLISECONDS);
}
+ public long getEventKeepAlive() {
+ return threadPool.getKeepAliveTime(TimeUnit.MILLISECONDS);
+ }
+
+ public void setDefaultLeaseTimeMins(int mins) {
+ this.DEFAULT_LEASE = mins * 60 * 1000L;
+ }
+
+ public int getDefaultLeaseTimeMins() {
+ return (int) this.DEFAULT_LEASE/60/1000;
+ }
+
+ public void setMaxLeaseTimeMins(int mins) {
+ this.MAX_LEASE_TIME = mins * 60 * 1000L;
+ }
+
+ public int getMaxLeaseTimeMins() {
+ return (int) this.MAX_LEASE_TIME/60/1000;
+ }
+
+
/**
* The watchdog maintains subscription expirations.
*/
Modified: branches/jbossws-1.0/src/main/java/org/jboss/ws/eventing/mgmt/SubscriptionManagerMBean.java
===================================================================
--- branches/jbossws-1.0/src/main/java/org/jboss/ws/eventing/mgmt/SubscriptionManagerMBean.java 2006-10-25 10:55:06 UTC (rev 1304)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/eventing/mgmt/SubscriptionManagerMBean.java 2006-10-25 10:55:58 UTC (rev 1305)
@@ -32,26 +32,44 @@
/**
* @author Heiko Braun, <heiko(a)openj.net>
+ * @author Stefano Maestri
* @since 12-Dec-2005
*/
public interface SubscriptionManagerMBean
{
public static final String BEAN_NAME = "SubscriptionManager";
+ // ----------------------------------------------------------------------------
+ // Read/Write attributes
+
/**
* Returns the core number of threads.
*
* @return long
*/
- int getCorePoolSize();
+ public int getCorePoolSize();
+ public void setCorePoolSize(int corePoolSize);
/**
* Returns the maximum allowed number of threads.
*
* @return int
*/
- int getMaximumPoolSize();
+ public int getMaxPoolSize();
+ public void setMaxPoolSize(int maxPoolSize);
+ public long getEventKeepAlive();
+ public void setEventKeepAlive(long millies);
+
+ public void setMaxLeaseTimeMins(int mins);
+ public int getMaxLeaseTimeMins();
+
+ public void setDefaultLeaseTimeMins(int mins);
+ public int getDefaultLeaseTimeMins();
+
+ // ----------------------------------------------------------------------------
+ // Read only attributes
+
/**
* Returns the largest number of threads that have ever simultaneously been in the pool.
*
@@ -73,12 +91,7 @@
*/
long getCompletedTaskCount();
- public void setCorePoolSize(int corePoolSize);
-
- public void setMaxPoolSize(int maxPoolSize);
-
- public void setEventKeepAlive(long millies);
-
+ // ----------------------------------------------------------------------------
// subscription endpointReference business
SubscriptionTicket subscribe(URI eventSourceNS, EndpointReference notifyTo, EndpointReference endTo, Date expires, Filter filter) throws SubscriptionError;
18 years, 2 months
JBossWS SVN: r1304 - branches/jbossws-1.0/src/main/resources/jbossws.beans/META-INF
by jbossws-commits@lists.jboss.org
Author: heiko.braun(a)jboss.com
Date: 2006-10-25 06:55:06 -0400 (Wed, 25 Oct 2006)
New Revision: 1304
Modified:
branches/jbossws-1.0/src/main/resources/jbossws.beans/META-INF/jboss-beans.xml
Log:
Added Stefano Maestri contribution
Modified: branches/jbossws-1.0/src/main/resources/jbossws.beans/META-INF/jboss-beans.xml
===================================================================
--- branches/jbossws-1.0/src/main/resources/jbossws.beans/META-INF/jboss-beans.xml 2006-10-25 10:23:24 UTC (rev 1303)
+++ branches/jbossws-1.0/src/main/resources/jbossws.beans/META-INF/jboss-beans.xml 2006-10-25 10:55:06 UTC (rev 1304)
@@ -4,34 +4,34 @@
xsi:schemaLocation="urn:jboss:bean-deployer bean-deployer_1_0.xsd"
xmlns="urn:jboss:bean-deployer">
- <bean name="ServiceEndpointManager" class="org.jboss.ws.server.ServiceEndpointManager">
- <!--
- The WSDL, that is a required deployment artifact for an endpoint, has a <soap:address>
- element which points to the location of the endpoint. JBoss supports rewriting of that SOAP address.
-
- If the content of <soap:address> is a valid URL, JBossWS will not rewrite it unless 'alwaysModifySOAPAddress' is true.
+ <bean name="ServiceEndpointManager" class="org.jboss.ws.server.ServiceEndpointManager">
+ <!--
+ The WSDL, that is a required deployment artifact for an endpoint, has a <soap:address>
+ element which points to the location of the endpoint. JBoss supports rewriting of that SOAP address.
+
+ If the content of <soap:address> is a valid URL, JBossWS will not rewrite it unless 'alwaysModifySOAPAddress' is true.
If the content of <soap:address> is not a valid URL, JBossWS will rewrite it using the attribute values given below.
If 'webServiceHost' is an empty string, JBossWS uses requesters host when rewriting the <soap:address>.
- -->
+ -->
<property name="webServiceHost">${jboss.bind.address}</property>
<!-- If these two properties are not set the ports will be identified by querying the -->
<!-- list of installed connectors, if multiple connectors are found the port of the -->
- <!-- first connector is used. -->
- <!--<property name="webServiceSecurePort">8443</property>-->
+ <!-- first connector is used. -->
+ <!--<property name="webServiceSecurePort">8443</property>-->
<!--<property name="webServicePort">8080</property>-->
-
- <property name="alwaysModifySOAPAddress">true</property>
-
- <property name="serviceEndpointInvokerJSE">org.jboss.ws.server.ServiceEndpointInvokerJSE</property>
- <property name="serviceEndpointInvokerEJB21">org.jboss.ws.integration.jboss.ServiceEndpointInvokerEJB21</property>
- <property name="serviceEndpointInvokerEJB3">org.jboss.ws.integration.jboss.ServiceEndpointInvokerEJB3</property>
- <property name="serviceEndpointInvokerMDB">org.jboss.ws.integration.jboss.ServiceEndpointInvokerMDB</property>
+
+ <property name="alwaysModifySOAPAddress">true</property>
+
+ <property name="serviceEndpointInvokerJSE">org.jboss.ws.server.ServiceEndpointInvokerJSE</property>
+ <property name="serviceEndpointInvokerEJB21">org.jboss.ws.integration.jboss.ServiceEndpointInvokerEJB21</property>
+ <property name="serviceEndpointInvokerEJB3">org.jboss.ws.integration.jboss.ServiceEndpointInvokerEJB3</property>
+ <property name="serviceEndpointInvokerMDB">org.jboss.ws.integration.jboss.ServiceEndpointInvokerMDB</property>
</bean>
- <bean name="ServiceEndpointDeployer" class="org.jboss.ws.deployment.ServiceEndpointDeployer">
- <property name="serviceEndpointManager"><inject bean="ServiceEndpointManager"/></property>
+ <bean name="ServiceEndpointDeployer" class="org.jboss.ws.deployment.ServiceEndpointDeployer">
+ <property name="serviceEndpointManager"><inject bean="ServiceEndpointManager"/></property>
</bean>
<bean name="ServiceEndpointPublisher" class="org.jboss.ws.integration.jboss.JBossServiceEndpointPublisher">
@@ -40,7 +40,10 @@
</bean>
<!-- A subscription manager for WS-Eventing -->
- <bean name="SubscriptionManager" class="org.jboss.ws.eventing.mgmt.SubscriptionManager"/>
+ <bean name="SubscriptionManager" class="org.jboss.ws.eventing.mgmt.SubscriptionManager">
+ <property name="maxLeaseTimeMins">10</property>
+ <property name="defaultLeaseTimeMins">5</property>
+ </bean>
<bean name="ServerConfig" class="org.jboss.ws.integration.jboss.ServerConfigImpl"/>
18 years, 2 months
JBossWS SVN: r1303 - in trunk/src: main/java/org/jboss/ws/integration/jboss test/java/org/jboss/test/ws/jaxws/webserviceref
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2006-10-25 06:23:24 -0400 (Wed, 25 Oct 2006)
New Revision: 1303
Modified:
trunk/src/main/java/org/jboss/ws/integration/jboss/WebServiceRefDeployer.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ApplicationClient.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Client.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ServletClient.java
Log:
Implement @WebServiceRefs
Modified: trunk/src/main/java/org/jboss/ws/integration/jboss/WebServiceRefDeployer.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/integration/jboss/WebServiceRefDeployer.java 2006-10-25 06:35:39 UTC (rev 1302)
+++ trunk/src/main/java/org/jboss/ws/integration/jboss/WebServiceRefDeployer.java 2006-10-25 10:23:24 UTC (rev 1303)
@@ -24,6 +24,7 @@
// $Id$
import javax.naming.Context;
+import javax.xml.ws.Service;
import javax.xml.ws.WebServiceRef;
import org.jboss.logging.Logger;
@@ -51,10 +52,14 @@
Class serviceType = ref.value();
if (serviceType == Object.class)
{
- serviceType = targetType;
+ if (targetType != null)
+ serviceType = targetType;
+ else
+ serviceType = Service.class;
}
- Util.bind(ctx, jndiName, new ServiceReferenceable(serviceType.getName(), targetType.getName(), ref.wsdlLocation()));
- log.debug("WebServiceRef bound [jndi=" + jndiName + ",type=" + targetType.getName() + "]");
+ String targetTypeName = (targetType != null ? targetType.getName() : null);
+ Util.bind(ctx, jndiName, new ServiceReferenceable(serviceType.getName(), targetTypeName, ref.wsdlLocation()));
+ log.debug("WebServiceRef bound [jndi=" + jndiName + ",type=" + targetTypeName + "]");
}
}
Modified: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ApplicationClient.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ApplicationClient.java 2006-10-25 06:35:39 UTC (rev 1302)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ApplicationClient.java 2006-10-25 10:23:24 UTC (rev 1303)
@@ -23,21 +23,27 @@
import java.util.ArrayList;
+import javax.naming.InitialContext;
import javax.xml.ws.WebServiceException;
import javax.xml.ws.WebServiceRef;
+import javax.xml.ws.WebServiceRefs;
import org.jboss.logging.Logger;
+@WebServiceRef(name = "service1", value = TestEndpointService.class, wsdlLocation = "META-INF/wsdl/TestEndpoint.wsdl")
+@WebServiceRefs( {
+ @WebServiceRef(name = "service2", value = TestEndpointService.class, wsdlLocation = "META-INF/wsdl/TestEndpoint.wsdl"),
+ @WebServiceRef(name = "port1", value = TestEndpointService.class, type = TestEndpoint.class, wsdlLocation = "META-INF/wsdl/TestEndpoint.wsdl") })
public class ApplicationClient
{
// Provide logging
private static Logger log = Logger.getLogger(ApplicationClient.class);
@WebServiceRef (name ="TestEndpointService", wsdlLocation ="META-INF/wsdl/TestEndpoint.wsdl")
- public static TestEndpointService service;
+ public static TestEndpointService service3;
@WebServiceRef (value = TestEndpointService.class, wsdlLocation ="META-INF/wsdl/TestEndpoint.wsdl")
- public static TestEndpoint port;
+ public static TestEndpoint port2;
public static String retStr;
@@ -47,8 +53,19 @@
log.info("echo: " + inStr);
ArrayList<TestEndpoint> ports = new ArrayList<TestEndpoint>();
- ports.add((TestEndpoint)service.getPort(TestEndpoint.class));
- ports.add(port);
+ try
+ {
+ InitialContext iniCtx = new InitialContext();
+ //ports.add(((TestEndpointService)iniCtx.lookup("java:comp/env/service1")).getTestEndpointPort());
+ //ports.add(((TestEndpointService)iniCtx.lookup("java:comp/env/service2")).getTestEndpointPort());
+ ports.add((TestEndpoint)service3.getPort(TestEndpoint.class));
+ //ports.add((TestEndpoint)iniCtx.lookup("java:comp/env/port1"));
+ ports.add(port2);
+ }
+ catch (Exception ex)
+ {
+ throw new WebServiceException(ex);
+ }
for (TestEndpoint port : ports)
{
Modified: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Client.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Client.java 2006-10-25 06:35:39 UTC (rev 1302)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Client.java 2006-10-25 10:23:24 UTC (rev 1303)
@@ -1,32 +1,34 @@
/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
+ * 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.webserviceref;
import java.util.ArrayList;
import javax.ejb.Remote;
import javax.ejb.Stateless;
+import javax.naming.InitialContext;
import javax.xml.ws.WebServiceException;
import javax.xml.ws.WebServiceRef;
+import javax.xml.ws.WebServiceRefs;
import org.jboss.annotation.ejb.RemoteBinding;
import org.jboss.logging.Logger;
@@ -35,32 +37,48 @@
@Remote(EJB3Remote.class)
@RemoteBinding(jndiBinding = "/ejb3/EJB3Client")
@Stateless
+
+@WebServiceRef(name = "service1", value = TestEndpointService.class, wsdlLocation = "META-INF/wsdl/TestEndpoint.wsdl")
+@WebServiceRefs( {
+ @WebServiceRef(name = "service2", value = TestEndpointService.class, wsdlLocation = "META-INF/wsdl/TestEndpoint.wsdl"),
+ @WebServiceRef(name = "port1", value = TestEndpointService.class, type = TestEndpoint.class, wsdlLocation = "META-INF/wsdl/TestEndpoint.wsdl") })
public class EJB3Client implements EJB3Remote
{
// Provide logging
private static Logger log = Logger.getLogger(EJB3Client.class);
-
- @WebServiceRef (name ="TestEndpointService", wsdlLocation ="META-INF/wsdl/TestEndpoint.wsdl")
- public TestEndpointService service;
-
- @WebServiceRef (value = TestEndpointService.class, wsdlLocation ="META-INF/wsdl/TestEndpoint.wsdl")
- public TestEndpoint port;
-
+
+ @WebServiceRef(name = "TestEndpointService", wsdlLocation = "META-INF/wsdl/TestEndpoint.wsdl")
+ public TestEndpointService service3;
+
+ @WebServiceRef(value = TestEndpointService.class, wsdlLocation = "META-INF/wsdl/TestEndpoint.wsdl")
+ public TestEndpoint port2;
+
public String echo(String inStr)
{
log.info("echo: " + inStr);
-
+
ArrayList<TestEndpoint> ports = new ArrayList<TestEndpoint>();
- ports.add((TestEndpoint)service.getPort(TestEndpoint.class));
- ports.add(port);
-
+ try
+ {
+ InitialContext iniCtx = new InitialContext();
+ //ports.add(((TestEndpointService)iniCtx.lookup("java:comp/env/service1")).getTestEndpointPort());
+ //ports.add(((TestEndpointService)iniCtx.lookup("java:comp/env/service2")).getTestEndpointPort());
+ ports.add((TestEndpoint)service3.getPort(TestEndpoint.class));
+ //ports.add((TestEndpoint)iniCtx.lookup("java:comp/env/port1"));
+ ports.add(port2);
+ }
+ catch (Exception ex)
+ {
+ throw new WebServiceException(ex);
+ }
+
for (TestEndpoint port : ports)
{
String outStr = port.echo(inStr);
if (inStr.equals(outStr) == false)
throw new WebServiceException("Invalid echo return: " + inStr);
}
-
+
return inStr;
}
}
Modified: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ServletClient.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ServletClient.java 2006-10-25 06:35:39 UTC (rev 1302)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ServletClient.java 2006-10-25 10:23:24 UTC (rev 1303)
@@ -24,25 +24,31 @@
import java.io.IOException;
import java.util.ArrayList;
+import javax.naming.InitialContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.xml.ws.WebServiceException;
import javax.xml.ws.WebServiceRef;
+import javax.xml.ws.WebServiceRefs;
import org.jboss.logging.Logger;
+@WebServiceRef(name = "service1", value = TestEndpointService.class, wsdlLocation = "WEB-INF/wsdl/TestEndpoint.wsdl")
+@WebServiceRefs( {
+ @WebServiceRef(name = "service2", value = TestEndpointService.class, wsdlLocation = "WEB-INF/wsdl/TestEndpoint.wsdl"),
+ @WebServiceRef(name = "port1", value = TestEndpointService.class, type = TestEndpoint.class, wsdlLocation = "WEB-INF/wsdl/TestEndpoint.wsdl") })
public class ServletClient extends HttpServlet
{
// Provide logging
private static Logger log = Logger.getLogger(ServletClient.class);
@WebServiceRef (name ="TestEndpointService", wsdlLocation ="WEB-INF/wsdl/TestEndpoint.wsdl")
- public TestEndpointService service;
+ public TestEndpointService service3;
@WebServiceRef (value = TestEndpointService.class, wsdlLocation ="WEB-INF/wsdl/TestEndpoint.wsdl")
- public TestEndpoint port;
+ public TestEndpoint port2;
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
@@ -51,8 +57,19 @@
log.info("doGet: " + inStr);
ArrayList<TestEndpoint> ports = new ArrayList<TestEndpoint>();
- ports.add((TestEndpoint)service.getPort(TestEndpoint.class));
- ports.add(port);
+ try
+ {
+ InitialContext iniCtx = new InitialContext();
+ //ports.add(((TestEndpointService)iniCtx.lookup("java:comp/env/service1")).getTestEndpointPort());
+ //ports.add(((TestEndpointService)iniCtx.lookup("java:comp/env/service2")).getTestEndpointPort());
+ ports.add((TestEndpoint)service3.getPort(TestEndpoint.class));
+ //ports.add((TestEndpoint)iniCtx.lookup("java:comp/env/port1"));
+ ports.add(port2);
+ }
+ catch (Exception ex)
+ {
+ throw new WebServiceException(ex);
+ }
for (TestEndpoint port : ports)
{
18 years, 2 months
JBossWS SVN: r1302 - in trunk: . src/ant src/main/etc src/main/java/javax/jws src/main/java/javax/jws/soap src/main/java/javax/xml/rpc src/main/java/javax/xml/rpc/encoding src/main/java/javax/xml/rpc/handler src/main/java/javax/xml/rpc/handler/soap src/main/java/javax/xml/rpc/holders src/main/java/javax/xml/rpc/server src/main/java/javax/xml/rpc/soap src/main/java/javax/xml/soap src/main/java/javax/xml/ws src/main/java/javax/xml/ws/addressing src/main/java/javax/xml/ws/handler src/main/jav
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2006-10-25 02:35:39 -0400 (Wed, 25 Oct 2006)
New Revision: 1302
Added:
trunk/src/main/java/javax/xml/ws/WebServiceRefs.java
trunk/src/main/java/org/jboss/ws/integration/jboss/WebServiceRefDeployer.java
trunk/src/main/java/org/jboss/ws/jaxws/ServiceObjectFactory.java
trunk/src/main/java/org/jboss/ws/jaxws/ServiceReferenceable.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ApplicationClient.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Client.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Remote.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/Echo.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EchoResponse.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ObjectFactory.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ServletClient.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpoint.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointImpl.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointService.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefClientTestCase.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefEJB3TestCase.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefServletTestCase.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/package-info.java
trunk/src/test/resources/jaxws/webserviceref/
trunk/src/test/resources/jaxws/webserviceref/META-INF/
trunk/src/test/resources/jaxws/webserviceref/META-INF/application-client.xml
trunk/src/test/resources/jaxws/webserviceref/META-INF/jboss-client.xml
trunk/src/test/resources/jaxws/webserviceref/META-INF/wsdl/
trunk/src/test/resources/jaxws/webserviceref/META-INF/wsdl/TestEndpoint.wsdl
trunk/src/test/resources/jaxws/webserviceref/WEB-INF/
trunk/src/test/resources/jaxws/webserviceref/WEB-INF/web.xml
trunk/src/test/resources/jaxws/webserviceref/servlet-client/
trunk/src/test/resources/jaxws/webserviceref/servlet-client/WEB-INF/
trunk/src/test/resources/jaxws/webserviceref/servlet-client/WEB-INF/web.xml
Removed:
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ApplicationClient.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Client.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Remote.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/Echo.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EchoResponse.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ObjectFactory.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ServletClient.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpoint.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointImpl.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointService.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefClientTestCase.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefEJB3TestCase.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefServletTestCase.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/package-info.java
trunk/src/test/resources/jaxws/webserviceref/META-INF/
trunk/src/test/resources/jaxws/webserviceref/META-INF/application-client.xml
trunk/src/test/resources/jaxws/webserviceref/META-INF/jboss-client.xml
trunk/src/test/resources/jaxws/webserviceref/META-INF/wsdl/
trunk/src/test/resources/jaxws/webserviceref/META-INF/wsdl/TestEndpoint.wsdl
trunk/src/test/resources/jaxws/webserviceref/WEB-INF/
trunk/src/test/resources/jaxws/webserviceref/WEB-INF/web.xml
trunk/src/test/resources/jaxws/webserviceref/servlet-client/
trunk/src/test/resources/jaxws/webserviceref/servlet-client/WEB-INF/
trunk/src/test/resources/jaxws/webserviceref/servlet-client/WEB-INF/web.xml
Modified:
trunk/build.xml
trunk/src/ant/build-thirdparty.xml
trunk/src/main/etc/jbossws-component-info.xml
trunk/src/main/etc/jbossws14-component-info.xml
trunk/src/main/java/javax/jws/HandlerChain.java
trunk/src/main/java/javax/jws/Oneway.java
trunk/src/main/java/javax/jws/WebMethod.java
trunk/src/main/java/javax/jws/WebParam.java
trunk/src/main/java/javax/jws/WebResult.java
trunk/src/main/java/javax/jws/soap/InitParam.java
trunk/src/main/java/javax/jws/soap/SOAPBinding.java
trunk/src/main/java/javax/jws/soap/SOAPMessageHandler.java
trunk/src/main/java/javax/jws/soap/SOAPMessageHandlers.java
trunk/src/main/java/javax/xml/rpc/Call.java
trunk/src/main/java/javax/xml/rpc/JAXRPCException.java
trunk/src/main/java/javax/xml/rpc/ParameterMode.java
trunk/src/main/java/javax/xml/rpc/Service.java
trunk/src/main/java/javax/xml/rpc/ServiceException.java
trunk/src/main/java/javax/xml/rpc/ServiceFactory.java
trunk/src/main/java/javax/xml/rpc/encoding/DeserializationContext.java
trunk/src/main/java/javax/xml/rpc/encoding/Deserializer.java
trunk/src/main/java/javax/xml/rpc/encoding/DeserializerFactory.java
trunk/src/main/java/javax/xml/rpc/encoding/SerializationContext.java
trunk/src/main/java/javax/xml/rpc/encoding/Serializer.java
trunk/src/main/java/javax/xml/rpc/encoding/SerializerFactory.java
trunk/src/main/java/javax/xml/rpc/encoding/TypeMapping.java
trunk/src/main/java/javax/xml/rpc/encoding/TypeMappingRegistry.java
trunk/src/main/java/javax/xml/rpc/encoding/XMLType.java
trunk/src/main/java/javax/xml/rpc/handler/GenericHandler.java
trunk/src/main/java/javax/xml/rpc/handler/Handler.java
trunk/src/main/java/javax/xml/rpc/handler/HandlerChain.java
trunk/src/main/java/javax/xml/rpc/handler/HandlerInfo.java
trunk/src/main/java/javax/xml/rpc/handler/HandlerRegistry.java
trunk/src/main/java/javax/xml/rpc/handler/MessageContext.java
trunk/src/main/java/javax/xml/rpc/handler/soap/SOAPMessageContext.java
trunk/src/main/java/javax/xml/rpc/holders/BigDecimalHolder.java
trunk/src/main/java/javax/xml/rpc/holders/BigIntegerHolder.java
trunk/src/main/java/javax/xml/rpc/holders/BooleanHolder.java
trunk/src/main/java/javax/xml/rpc/holders/BooleanWrapperHolder.java
trunk/src/main/java/javax/xml/rpc/holders/ByteArrayHolder.java
trunk/src/main/java/javax/xml/rpc/holders/ByteHolder.java
trunk/src/main/java/javax/xml/rpc/holders/ByteWrapperHolder.java
trunk/src/main/java/javax/xml/rpc/holders/CalendarHolder.java
trunk/src/main/java/javax/xml/rpc/holders/DoubleHolder.java
trunk/src/main/java/javax/xml/rpc/holders/DoubleWrapperHolder.java
trunk/src/main/java/javax/xml/rpc/holders/FloatHolder.java
trunk/src/main/java/javax/xml/rpc/holders/FloatWrapperHolder.java
trunk/src/main/java/javax/xml/rpc/holders/Holder.java
trunk/src/main/java/javax/xml/rpc/holders/IntHolder.java
trunk/src/main/java/javax/xml/rpc/holders/IntegerWrapperHolder.java
trunk/src/main/java/javax/xml/rpc/holders/LongHolder.java
trunk/src/main/java/javax/xml/rpc/holders/LongWrapperHolder.java
trunk/src/main/java/javax/xml/rpc/holders/ObjectHolder.java
trunk/src/main/java/javax/xml/rpc/holders/QNameHolder.java
trunk/src/main/java/javax/xml/rpc/holders/ShortHolder.java
trunk/src/main/java/javax/xml/rpc/holders/ShortWrapperHolder.java
trunk/src/main/java/javax/xml/rpc/holders/StringHolder.java
trunk/src/main/java/javax/xml/rpc/server/ServiceLifecycle.java
trunk/src/main/java/javax/xml/rpc/server/ServletEndpointContext.java
trunk/src/main/java/javax/xml/rpc/soap/SOAPFaultException.java
trunk/src/main/java/javax/xml/soap/AttachmentPart.java
trunk/src/main/java/javax/xml/soap/Detail.java
trunk/src/main/java/javax/xml/soap/DetailEntry.java
trunk/src/main/java/javax/xml/soap/MessageFactory.java
trunk/src/main/java/javax/xml/soap/MimeHeader.java
trunk/src/main/java/javax/xml/soap/MimeHeaders.java
trunk/src/main/java/javax/xml/soap/Name.java
trunk/src/main/java/javax/xml/soap/Node.java
trunk/src/main/java/javax/xml/soap/SOAPBody.java
trunk/src/main/java/javax/xml/soap/SOAPBodyElement.java
trunk/src/main/java/javax/xml/soap/SOAPConnection.java
trunk/src/main/java/javax/xml/soap/SOAPConnectionFactory.java
trunk/src/main/java/javax/xml/soap/SOAPConstants.java
trunk/src/main/java/javax/xml/soap/SOAPElement.java
trunk/src/main/java/javax/xml/soap/SOAPElementFactory.java
trunk/src/main/java/javax/xml/soap/SOAPEnvelope.java
trunk/src/main/java/javax/xml/soap/SOAPException.java
trunk/src/main/java/javax/xml/soap/SOAPFactory.java
trunk/src/main/java/javax/xml/soap/SOAPFault.java
trunk/src/main/java/javax/xml/soap/SOAPFaultElement.java
trunk/src/main/java/javax/xml/soap/SOAPHeader.java
trunk/src/main/java/javax/xml/soap/SOAPHeaderElement.java
trunk/src/main/java/javax/xml/soap/SOAPMessage.java
trunk/src/main/java/javax/xml/soap/SOAPPart.java
trunk/src/main/java/javax/xml/soap/Text.java
trunk/src/main/java/javax/xml/ws/AsyncHandler.java
trunk/src/main/java/javax/xml/ws/Binding.java
trunk/src/main/java/javax/xml/ws/BindingProvider.java
trunk/src/main/java/javax/xml/ws/BindingType.java
trunk/src/main/java/javax/xml/ws/Dispatch.java
trunk/src/main/java/javax/xml/ws/Endpoint.java
trunk/src/main/java/javax/xml/ws/Holder.java
trunk/src/main/java/javax/xml/ws/LogicalMessage.java
trunk/src/main/java/javax/xml/ws/ProtocolException.java
trunk/src/main/java/javax/xml/ws/Provider.java
trunk/src/main/java/javax/xml/ws/RequestWrapper.java
trunk/src/main/java/javax/xml/ws/Response.java
trunk/src/main/java/javax/xml/ws/ResponseWrapper.java
trunk/src/main/java/javax/xml/ws/ServiceMode.java
trunk/src/main/java/javax/xml/ws/WebEndpoint.java
trunk/src/main/java/javax/xml/ws/WebFault.java
trunk/src/main/java/javax/xml/ws/WebServiceClient.java
trunk/src/main/java/javax/xml/ws/WebServiceContext.java
trunk/src/main/java/javax/xml/ws/WebServiceException.java
trunk/src/main/java/javax/xml/ws/WebServicePermission.java
trunk/src/main/java/javax/xml/ws/WebServiceProvider.java
trunk/src/main/java/javax/xml/ws/WebServiceRef.java
trunk/src/main/java/javax/xml/ws/addressing/Action.java
trunk/src/main/java/javax/xml/ws/addressing/AddressingBuilder.java
trunk/src/main/java/javax/xml/ws/addressing/AddressingConstants.java
trunk/src/main/java/javax/xml/ws/addressing/EndpointReference.java
trunk/src/main/java/javax/xml/ws/addressing/FaultAction.java
trunk/src/main/java/javax/xml/ws/handler/MessageContext.java
trunk/src/main/java/javax/xml/ws/soap/SOAPBinding.java
trunk/src/main/java/javax/xml/ws/spi/Provider.java
trunk/src/main/java/org/jboss/ws/deployment/AnnotationsMetaDataBuilder.java
trunk/src/main/java/org/jboss/ws/deployment/JAXWSClientMetaDataBuilder.java
trunk/src/main/java/org/jboss/ws/deployment/JSR109ClientMetaDataBuilder.java
trunk/src/main/java/org/jboss/ws/deployment/JSR109ServerMetaDataBuilder.java
trunk/src/main/java/org/jboss/ws/deployment/JSR181MetaDataBuilder.java
trunk/src/main/java/org/jboss/ws/jaxrpc/ParameterWrapping.java
trunk/src/main/java/org/jboss/ws/jaxrpc/ServiceImpl.java
trunk/src/main/java/org/jboss/ws/jaxws/client/DispatchImpl.java
trunk/src/main/java/org/jboss/ws/jaxws/handler/HandlerDelegateJAXWS.java
trunk/src/main/java/org/jboss/ws/jaxws/handler/HandlerResolverImpl.java
trunk/src/main/java/org/jboss/ws/jaxws/handler/PortInfoImpl.java
trunk/src/main/java/org/jboss/ws/jaxws/spi/ServiceDelegateImpl.java
trunk/src/main/java/org/jboss/ws/metadata/ServiceMetaData.java
trunk/src/main/java/org/jboss/ws/tools/helpers/JavaToWSDLHelper.java
trunk/src/main/java/org/jboss/ws/tools/jaxws/WSDLGenerator.java
trunk/src/test/ant/build-jars-jaxws.xml
trunk/src/test/build.xml
trunk/version.properties
Log:
Implement @WebServiceRef
Modified: trunk/build.xml
===================================================================
--- trunk/build.xml 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/build.xml 2006-10-25 06:35:39 UTC (rev 1302)
@@ -222,6 +222,7 @@
<fileset dir="${build.classes.dir}">
<include name="javax/jws/**"/>
<include name="javax/xml/ws/**"/>
+ <include name="org/jboss/ws/integration/jboss/WebServiceRefDeployer.class"/>
</fileset>
</jar>
@@ -231,7 +232,6 @@
<fileset dir="${build.classes.dir}">
<include name="org/jboss/ws/**"/>
<exclude name="org/jboss/ws/integration/**"/>
- <exclude name="org/jboss/ws/server/ServiceEndpointInterceptor.class"/>
</fileset>
<fileset dir="${build.resources.dir}">
<include name="schema/**"/>
@@ -244,7 +244,6 @@
<fileset dir="${build.classes.dir}">
<include name="org/jboss/ws/integration/*.class"/>
<include name="org/jboss/ws/integration/jboss/**"/>
- <include name="org/jboss/ws/server/ServiceEndpointInterceptor.class"/>
</fileset>
</jar>
@@ -357,7 +356,6 @@
<fileset dir="${build.classes14.dir}">
<include name="org/jboss/ws/**"/>
<exclude name="org/jboss/ws/integration/**"/>
- <exclude name="org/jboss/ws/server/ServiceEndpointInterceptor.class"/>
</fileset>
<fileset dir="${build.resources.dir}">
<include name="schema/**"/>
@@ -370,7 +368,6 @@
<fileset dir="${build.classes14.dir}">
<include name="org/jboss/ws/integration/*.class"/>
<include name="org/jboss/ws/integration/jboss/**"/>
- <include name="org/jboss/ws/server/ServiceEndpointInterceptor.class"/>
</fileset>
</jar>
Modified: trunk/src/ant/build-thirdparty.xml
===================================================================
--- trunk/src/ant/build-thirdparty.xml 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/ant/build-thirdparty.xml 2006-10-25 06:35:39 UTC (rev 1302)
@@ -31,6 +31,7 @@
<get src="${jboss.repository}/apache-xerces/${apache-xerces}/lib/xercesImpl.jar" dest="${thirdparty.dir}/xercesImpl.jar" usetimestamp="true" verbose="true"/>
<get src="${jboss.repository}/apache-xerces/${apache-xerces}/lib/xml-apis.jar" dest="${thirdparty.dir}/xml-apis.jar" usetimestamp="true" verbose="true"/>
<get src="${jboss.repository}/apache-xmlsec/${apache-xmlsec}/lib/xmlsec.jar" dest="${thirdparty.dir}/xmlsec.jar" usetimestamp="true" verbose="true"/>
+ <get src="${jboss.repository}/hibernate/${hibernate}/lib/hibernate3.jar" dest="${thirdparty.dir}/hibernate3.jar" usetimestamp="true" verbose="true"/>
<get src="${jboss.repository}/ibm-wsdl4j/${ibm-wsdl4j}/lib/wsdl4j.jar" dest="${thirdparty.dir}/wsdl4j.jar" usetimestamp="true" verbose="true"/>
<get src="${jboss.repository}/javassist/${javassist}/lib/javassist.jar" dest="${thirdparty.dir}/javassist.jar" usetimestamp="true" verbose="true"/>
<get src="${jboss.repository}/jboss/backport-concurrent/${jboss-backport-concurrent}/lib/jboss-backport-concurrent.jar" dest="${thirdparty.dir}/jboss-backport-concurrent.jar" usetimestamp="true" verbose="true"/>
@@ -65,6 +66,7 @@
<pathelement location="${thirdparty.dir}/javassist.jar"/>
<pathelement location="${thirdparty.dir}/concurrent.jar"/>
<pathelement location="${thirdparty.dir}/log4j.jar"/>
+ <pathelement location="${thirdparty.dir}/hibernate3.jar"/>
<pathelement location="${thirdparty.dir}/jaxb-api.jar"/>
<pathelement location="${thirdparty.dir}/jaxb-impl.jar"/>
<pathelement location="${thirdparty.dir}/jaxb-xjc.jar"/>
Modified: trunk/src/main/etc/jbossws-component-info.xml
===================================================================
--- trunk/src/main/etc/jbossws-component-info.xml 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/etc/jbossws-component-info.xml 2006-10-25 06:35:39 UTC (rev 1302)
@@ -5,8 +5,11 @@
version="@repository.id@"
description="JBossWS an implementation of J2EE Web Services">
+ <artifact id="jboss-jaxrpc.jar"/>
+ <artifact id="jboss-jaxws.jar"/>
+ <artifact id="jboss-saaj.jar"/>
+ <artifact id="jbossws-client.jar"/>
<artifact id="jbossws.sar"/>
- <artifact id="jbossws-client.jar"/>
<import componentref="apache-xmlsec">
<compatible version="@apache-xmlsec@"/>
@@ -25,8 +28,11 @@
</import>
<export>
+ <include input="jboss-jaxrpc.jar"/>
+ <include input="jboss-jaxws.jar"/>
+ <include input="jboss-saaj.jar"/>
+ <include input="jbossws-client.jar"/>
<include input="jbossws.sar"/>
- <include input="jbossws-client.jar"/>
</export>
</component>
Modified: trunk/src/main/etc/jbossws14-component-info.xml
===================================================================
--- trunk/src/main/etc/jbossws14-component-info.xml 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/etc/jbossws14-component-info.xml 2006-10-25 06:35:39 UTC (rev 1302)
@@ -5,8 +5,11 @@
version="@repository.id@"
description="JBossWS an implementation of J2EE Web Services">
+ <artifact id="jboss-jaxrpc.jar"/>
+ <artifact id="jboss-jaxws.jar"/>
+ <artifact id="jboss-saaj.jar"/>
+ <artifact id="jbossws14-client.jar"/>
<artifact id="jbossws14.sar"/>
- <artifact id="jbossws14-client.jar"/>
<import componentref="apache-xmlsec">
<compatible version="@apache-xmlsec@"/>
@@ -28,8 +31,11 @@
</import>
<export>
+ <include input="jboss-jaxrpc.jar"/>
+ <include input="jboss-jaxws.jar"/>
+ <include input="jboss-saaj.jar"/>
+ <include input="jbossws14-client.jar"/>
<include input="jbossws14.sar"/>
- <include input="jbossws14-client.jar"/>
</export>
</component>
Modified: trunk/src/main/java/javax/jws/HandlerChain.java
===================================================================
--- trunk/src/main/java/javax/jws/HandlerChain.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/jws/HandlerChain.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -41,7 +41,7 @@
*/
@Retention(value = RetentionPolicy.RUNTIME)
@Target(value = { ElementType.TYPE })
-public @interface HandlerChain
+public @interface HandlerChain
{
/**
Modified: trunk/src/main/java/javax/jws/Oneway.java
===================================================================
--- trunk/src/main/java/javax/jws/Oneway.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/jws/Oneway.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.jws;
// $Id$
@@ -38,7 +38,7 @@
* @since 26-Apr-2005
*/
@Retention(value = RetentionPolicy.RUNTIME)
- @Target(value = {ElementType.METHOD})
- public @interface Oneway
+@Target(value = { ElementType.METHOD })
+public @interface Oneway
{
}
Modified: trunk/src/main/java/javax/jws/WebMethod.java
===================================================================
--- trunk/src/main/java/javax/jws/WebMethod.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/jws/WebMethod.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.jws;
// $Id$
@@ -38,7 +38,7 @@
* @since 26-Apr-2005
*/
@Retention(value = RetentionPolicy.RUNTIME)
-(a)Target({ElementType.METHOD})
+@Target( { ElementType.METHOD })
public @interface WebMethod
{
@@ -52,6 +52,4 @@
* The action for this operation. For SOAP bindings, this determines the value of the SOAPAction header.
*/
String action() default "";
-}
-
-;
+};
Modified: trunk/src/main/java/javax/jws/WebParam.java
===================================================================
--- trunk/src/main/java/javax/jws/WebParam.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/jws/WebParam.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -65,7 +65,7 @@
* This is only used if the operation is rpc style, or if the operation is document style and the parameter style is BARE.
*/
String partName() default "";
-
+
/**
* The XML namespace for the parameter.
*
Modified: trunk/src/main/java/javax/jws/WebResult.java
===================================================================
--- trunk/src/main/java/javax/jws/WebResult.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/jws/WebResult.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -42,7 +42,7 @@
* If true, the result is pulled from a message header rather then the message body.
*/
boolean header() default false;
-
+
/**
* If the operation is rpc style and @WebResult.partName has not been specified, this is the name of the wsdl:part representing the return value.
* If the operation is document style or the return value maps to a header, this is the local name of the XML element representing the return value.
Modified: trunk/src/main/java/javax/jws/soap/InitParam.java
===================================================================
--- trunk/src/main/java/javax/jws/soap/InitParam.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/jws/soap/InitParam.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.jws.soap;
// $Id$
@@ -40,7 +40,4 @@
* Value of the initialization parameter
*/
String value();
-}
-
-;
-
+};
Modified: trunk/src/main/java/javax/jws/soap/SOAPBinding.java
===================================================================
--- trunk/src/main/java/javax/jws/soap/SOAPBinding.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/jws/soap/SOAPBinding.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -36,7 +36,8 @@
*/
@Retention(value = RetentionPolicy.RUNTIME)
@Target(value = { ElementType.TYPE })
-public @interface SOAPBinding {
+public @interface SOAPBinding
+{
/**
* The SOAP binding style
Modified: trunk/src/main/java/javax/jws/soap/SOAPMessageHandler.java
===================================================================
--- trunk/src/main/java/javax/jws/soap/SOAPMessageHandler.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/jws/soap/SOAPMessageHandler.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.jws.soap;
// $Id$
@@ -59,8 +59,4 @@
* documentation for javax.xml.namespace.QName.valueOf(String qNameAsString)
*/
String[] headers() default {};
-}
-
-;
-
-
+};
Modified: trunk/src/main/java/javax/jws/soap/SOAPMessageHandlers.java
===================================================================
--- trunk/src/main/java/javax/jws/soap/SOAPMessageHandlers.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/jws/soap/SOAPMessageHandlers.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.jws.soap;
// $Id$
@@ -39,11 +39,9 @@
* @deprecated
*/
@Retention(value = RetentionPolicy.RUNTIME)
- @Target(value = {ElementType.TYPE})
- public @interface SOAPMessageHandlers
+@Target(value = { ElementType.TYPE })
+public @interface SOAPMessageHandlers
{
SOAPMessageHandler[] value();
-}
-
-;
+};
Modified: trunk/src/main/java/javax/xml/rpc/Call.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/Call.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/Call.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -21,12 +21,13 @@
*/
package javax.xml.rpc;
-import javax.xml.namespace.QName;
import java.rmi.RemoteException;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
+import javax.xml.namespace.QName;
+
/** The javax.xml.rpc.Call interface provides support for the dynamic invocation of a service endpoint.
* The javax.xml.rpc.Service interface acts as a factory for the creation of Call instances.
*
@@ -199,35 +200,35 @@
public Iterator getPropertyNames();
/** Invokes a specific operation using a synchronous request-response interaction mode.
- *
- * @param inputParams Object[]--Parameters for this invocation. This includes only the input params
- * @return Returns the return value or null
- * @throws RemoteException if there is any error in the remote method invocation
- * @throws javax.xml.rpc.soap.SOAPFaultException Indicates a SOAP fault
- * @throws JAXRPCException
- * <ul>
- * <li>If there is an error in the configuration of the Call object
- * <li> If inputParams do not match the required parameter set (as specified through the addParameter invocations or in the corresponding WSDL)
- * <li> If parameters and return type are incorrectly specified
- * </ul>
- */
- public Object invoke(Object[] inputParams) throws RemoteException;
+ *
+ * @param inputParams Object[]--Parameters for this invocation. This includes only the input params
+ * @return Returns the return value or null
+ * @throws RemoteException if there is any error in the remote method invocation
+ * @throws javax.xml.rpc.soap.SOAPFaultException Indicates a SOAP fault
+ * @throws JAXRPCException
+ * <ul>
+ * <li>If there is an error in the configuration of the Call object
+ * <li> If inputParams do not match the required parameter set (as specified through the addParameter invocations or in the corresponding WSDL)
+ * <li> If parameters and return type are incorrectly specified
+ * </ul>
+ */
+ public Object invoke(Object[] inputParams) throws RemoteException;
- /** Invokes a specific operation using a synchronous request-response interaction mode.
- *
- * @param operationName QName of the operation
- * @param inputParams Object[]--Parameters for this invocation. This includes only the input params.
- * @return Return value or null
- * @throws RemoteException if there is any error in the remote method invocation.
- * @throws javax.xml.rpc.soap.SOAPFaultException - Indicates a SOAP fault
- * @throws JAXRPCException
- * <ul>
- * <li> If there is an error in the configuration of the Call object
- * <li> If inputParams do not match the required parameter set (as specified through the addParameter invocations or in the corresponding WSDL)
- * <li> If parameters and return type are incorrectly specified
- * </ul>
- */
- public Object invoke(QName operationName, Object[] inputParams) throws RemoteException;
+ /** Invokes a specific operation using a synchronous request-response interaction mode.
+ *
+ * @param operationName QName of the operation
+ * @param inputParams Object[]--Parameters for this invocation. This includes only the input params.
+ * @return Return value or null
+ * @throws RemoteException if there is any error in the remote method invocation.
+ * @throws javax.xml.rpc.soap.SOAPFaultException - Indicates a SOAP fault
+ * @throws JAXRPCException
+ * <ul>
+ * <li> If there is an error in the configuration of the Call object
+ * <li> If inputParams do not match the required parameter set (as specified through the addParameter invocations or in the corresponding WSDL)
+ * <li> If parameters and return type are incorrectly specified
+ * </ul>
+ */
+ public Object invoke(QName operationName, Object[] inputParams) throws RemoteException;
/** Invokes a remote method using the one-way interaction mode.
* The client thread does not normally block waiting for the completion of the server processing for this
@@ -251,9 +252,9 @@
public Map getOutputParams();
/** Returns a List values for the output parameters of the last invoked operation.
- *
- * @return java.util.List Values for the output parameters. An empty List is returned if there are no output values.
- * @throws JAXRPCException If this method is invoked for a one-way operation or is invoked before any invoke method has been called.
- */
- public List getOutputValues();
+ *
+ * @return java.util.List Values for the output parameters. An empty List is returned if there are no output values.
+ * @throws JAXRPCException If this method is invoked for a one-way operation or is invoked before any invoke method has been called.
+ */
+ public List getOutputValues();
}
Modified: trunk/src/main/java/javax/xml/rpc/JAXRPCException.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/JAXRPCException.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/JAXRPCException.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc;
import org.jboss.util.id.SerialVersion;
@@ -35,8 +35,7 @@
{
if (SerialVersion.version == SerialVersion.LEGACY)
serialVersionUID = 2012915834079496799L;
- else
- serialVersionUID = 5213579554532711730L;
+ else serialVersionUID = 5213579554532711730L;
}
public JAXRPCException()
Modified: trunk/src/main/java/javax/xml/rpc/ParameterMode.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/ParameterMode.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/ParameterMode.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc;
/** A type-safe enumeration for parameter passing modes.
Modified: trunk/src/main/java/javax/xml/rpc/Service.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/Service.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/Service.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -21,13 +21,14 @@
*/
package javax.xml.rpc;
-import javax.xml.namespace.QName;
-import javax.xml.rpc.encoding.TypeMappingRegistry;
-import javax.xml.rpc.handler.HandlerRegistry;
import java.net.URL;
import java.rmi.Remote;
import java.util.Iterator;
+import javax.xml.namespace.QName;
+import javax.xml.rpc.encoding.TypeMappingRegistry;
+import javax.xml.rpc.handler.HandlerRegistry;
+
/** Service class acts as a factory for:
* <ul>
* <li>Dynamic proxy for the target service endpoint.
Modified: trunk/src/main/java/javax/xml/rpc/ServiceException.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/ServiceException.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/ServiceException.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc;
import org.jboss.util.id.SerialVersion;
@@ -35,8 +35,7 @@
{
if (SerialVersion.version == SerialVersion.LEGACY)
serialVersionUID = -4042547292194127311L;
- else
- serialVersionUID = -6582148924441189775L;
+ else serialVersionUID = -6582148924441189775L;
}
public ServiceException()
Modified: trunk/src/main/java/javax/xml/rpc/ServiceFactory.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/ServiceFactory.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/ServiceFactory.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -55,7 +55,7 @@
public static final String SERVICEFACTORY_PROPERTY = "javax.xml.rpc.ServiceFactory";
private static final String DEFAULT_SERVICE_FACTORY = "org.jboss.ws.jaxrpc.ServiceFactoryImpl";
- private static final String[] alternativeFactories = new String[] { };
+ private static final String[] alternativeFactories = new String[] {};
protected ServiceFactory()
{
Modified: trunk/src/main/java/javax/xml/rpc/encoding/DeserializationContext.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/encoding/DeserializationContext.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/encoding/DeserializationContext.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.encoding;
/** A deserializer uses this interface to access and maintain context
Modified: trunk/src/main/java/javax/xml/rpc/encoding/Deserializer.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/encoding/Deserializer.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/encoding/Deserializer.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.encoding;
import java.io.Serializable;
@@ -30,8 +30,7 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public interface Deserializer
- extends Serializable
+public interface Deserializer extends Serializable
{
public String getMechanismType();
}
Modified: trunk/src/main/java/javax/xml/rpc/encoding/DeserializerFactory.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/encoding/DeserializerFactory.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/encoding/DeserializerFactory.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.encoding;
import java.io.Serializable;
Modified: trunk/src/main/java/javax/xml/rpc/encoding/SerializationContext.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/encoding/SerializationContext.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/encoding/SerializationContext.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.encoding;
/** This interface is implemented by the JAX-RPC runtime system in an XML
Modified: trunk/src/main/java/javax/xml/rpc/encoding/Serializer.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/encoding/Serializer.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/encoding/Serializer.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.encoding;
import java.io.Serializable;
@@ -31,8 +31,7 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public interface Serializer
- extends Serializable
+public interface Serializer extends Serializable
{
public String getMechanismType();
}
Modified: trunk/src/main/java/javax/xml/rpc/encoding/SerializerFactory.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/encoding/SerializerFactory.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/encoding/SerializerFactory.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.encoding;
import java.io.Serializable;
Modified: trunk/src/main/java/javax/xml/rpc/encoding/TypeMapping.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/encoding/TypeMapping.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/encoding/TypeMapping.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.encoding;
import javax.xml.namespace.QName;
Modified: trunk/src/main/java/javax/xml/rpc/encoding/TypeMappingRegistry.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/encoding/TypeMappingRegistry.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/encoding/TypeMappingRegistry.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.encoding;
import java.io.Serializable;
Modified: trunk/src/main/java/javax/xml/rpc/encoding/XMLType.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/encoding/XMLType.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/encoding/XMLType.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.encoding;
import javax.xml.namespace.QName;
@@ -30,7 +30,7 @@
*/
public class XMLType
{
- public static final QName SOAP_ARRAY = QName.valueOf("{SOAP-ENC}Array");
+ public static final QName SOAP_ARRAY = QName.valueOf("{SOAP-ENC}Array");
public static final QName SOAP_BASE64 = QName.valueOf("{SOAP-ENC}base64");
public static final QName SOAP_BOOLEAN = QName.valueOf("{SOAP-ENC}boolean");
public static final QName SOAP_BYTE = QName.valueOf("{SOAP-ENC}byte");
Modified: trunk/src/main/java/javax/xml/rpc/handler/GenericHandler.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/handler/GenericHandler.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/handler/GenericHandler.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.handler;
import javax.xml.namespace.QName;
@@ -37,8 +37,7 @@
* @author Rahul Sharma (javadoc)
* @version $Revision$
*/
-public abstract class GenericHandler
- implements Handler
+public abstract class GenericHandler implements Handler
{
/** Default constructor. */
protected GenericHandler()
Modified: trunk/src/main/java/javax/xml/rpc/handler/Handler.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/handler/Handler.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/handler/Handler.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.handler;
import javax.xml.namespace.QName;
Modified: trunk/src/main/java/javax/xml/rpc/handler/HandlerChain.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/handler/HandlerChain.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/handler/HandlerChain.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,30 +1,31 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * 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 javax.xml.rpc.handler;
-import javax.xml.rpc.JAXRPCException;
import java.util.List;
import java.util.Map;
+import javax.xml.rpc.JAXRPCException;
+
/** This interface represents a list of handlers. All elements in the
* HandlerChain are of the type javax.xml.rpc.handler.Handler.
*
@@ -35,8 +36,7 @@
* @author Rahul Sharma (javadoc)
* @version $Revision$
*/
-public interface HandlerChain
- extends List
+public interface HandlerChain extends List
{
/**
* Initializes the configuration for a HandlerChain.
Modified: trunk/src/main/java/javax/xml/rpc/handler/HandlerInfo.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/handler/HandlerInfo.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/handler/HandlerInfo.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,32 +1,32 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.handler;
import java.io.Serializable;
-import java.util.Map;
-import java.util.HashMap;
-import java.util.ArrayList;
import java.util.Arrays;
+import java.util.HashMap;
import java.util.List;
+import java.util.Map;
+
import javax.xml.namespace.QName;
/** This represents information about a handler in the HandlerChain. A
@@ -36,8 +36,7 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public class HandlerInfo
- implements Serializable
+public class HandlerInfo implements Serializable
{
private static final long serialVersionUID = -6735139577513563610L;
Modified: trunk/src/main/java/javax/xml/rpc/handler/HandlerRegistry.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/handler/HandlerRegistry.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/handler/HandlerRegistry.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,28 +1,29 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.handler;
import java.io.Serializable;
import java.util.List;
+
import javax.xml.namespace.QName;
/** This interface provides support for the programmatic configuration of
@@ -39,9 +40,9 @@
* @author Rahul Sharma (javadoc)
* @version $Revision$
*/
-public interface HandlerRegistry
- extends Serializable
+public interface HandlerRegistry extends Serializable
{
public List getHandlerChain(QName portName);
+
public void setHandlerChain(QName portName, List chain);
}
Modified: trunk/src/main/java/javax/xml/rpc/handler/MessageContext.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/handler/MessageContext.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/handler/MessageContext.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.handler;
import java.util.Iterator;
Modified: trunk/src/main/java/javax/xml/rpc/handler/soap/SOAPMessageContext.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/handler/soap/SOAPMessageContext.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/handler/soap/SOAPMessageContext.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,28 +1,28 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.handler.soap;
+import javax.xml.rpc.handler.MessageContext;
import javax.xml.soap.SOAPMessage;
-import javax.xml.rpc.handler.MessageContext;
/** This interface provides access to the SOAP message for either RPC request
* or response. The javax.xml.soap.SOAPMessage specifies the standard Java API
@@ -32,10 +32,10 @@
* @author Rahul Sharma (javadoc)
* @version $Revision$
*/
-public interface SOAPMessageContext
- extends MessageContext
+public interface SOAPMessageContext extends MessageContext
{
public SOAPMessage getMessage();
+
public void setMessage(SOAPMessage message);
public String[] getRoles();
Modified: trunk/src/main/java/javax/xml/rpc/holders/BigDecimalHolder.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/holders/BigDecimalHolder.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/holders/BigDecimalHolder.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
import java.math.BigDecimal;
@@ -28,15 +28,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class BigDecimalHolder
- implements Holder
+public final class BigDecimalHolder implements Holder
{
public BigDecimal value;
public BigDecimalHolder()
{
-
- }
+
+ }
+
public BigDecimalHolder(BigDecimal value)
{
this.value = value;
Modified: trunk/src/main/java/javax/xml/rpc/holders/BigIntegerHolder.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/holders/BigIntegerHolder.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/holders/BigIntegerHolder.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
import java.math.BigInteger;
@@ -28,15 +28,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class BigIntegerHolder
- implements Holder
+public final class BigIntegerHolder implements Holder
{
public BigInteger value;
public BigIntegerHolder()
{
-
- }
+
+ }
+
public BigIntegerHolder(BigInteger value)
{
this.value = value;
Modified: trunk/src/main/java/javax/xml/rpc/holders/BooleanHolder.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/holders/BooleanHolder.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/holders/BooleanHolder.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for booleans.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class BooleanHolder
- implements Holder
+public final class BooleanHolder implements Holder
{
public boolean value;
public BooleanHolder()
{
-
- }
+
+ }
+
public BooleanHolder(boolean value)
{
this.value = value;
Modified: trunk/src/main/java/javax/xml/rpc/holders/BooleanWrapperHolder.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/holders/BooleanWrapperHolder.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/holders/BooleanWrapperHolder.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for Booleans.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class BooleanWrapperHolder
- implements Holder
+public final class BooleanWrapperHolder implements Holder
{
public Boolean value;
public BooleanWrapperHolder()
{
-
- }
+
+ }
+
public BooleanWrapperHolder(Boolean value)
{
this.value = value;
Modified: trunk/src/main/java/javax/xml/rpc/holders/ByteArrayHolder.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/holders/ByteArrayHolder.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/holders/ByteArrayHolder.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for byte[]s.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class ByteArrayHolder
- implements Holder
+public final class ByteArrayHolder implements Holder
{
public byte[] value;
public ByteArrayHolder()
{
-
- }
+
+ }
+
public ByteArrayHolder(byte[] value)
{
this.value = value;
Modified: trunk/src/main/java/javax/xml/rpc/holders/ByteHolder.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/holders/ByteHolder.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/holders/ByteHolder.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for bytes.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class ByteHolder
- implements Holder
+public final class ByteHolder implements Holder
{
public byte value;
public ByteHolder()
{
-
- }
+
+ }
+
public ByteHolder(byte value)
{
this.value = value;
Modified: trunk/src/main/java/javax/xml/rpc/holders/ByteWrapperHolder.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/holders/ByteWrapperHolder.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/holders/ByteWrapperHolder.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for Bytes.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class ByteWrapperHolder
- implements Holder
+public final class ByteWrapperHolder implements Holder
{
public Byte value;
public ByteWrapperHolder()
{
-
- }
+
+ }
+
public ByteWrapperHolder(Byte value)
{
this.value = value;
Modified: trunk/src/main/java/javax/xml/rpc/holders/CalendarHolder.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/holders/CalendarHolder.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/holders/CalendarHolder.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
import java.util.Calendar;
@@ -28,15 +28,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class CalendarHolder
- implements Holder
+public final class CalendarHolder implements Holder
{
public Calendar value;
public CalendarHolder()
{
-
- }
+
+ }
+
public CalendarHolder(Calendar value)
{
this.value = value;
Modified: trunk/src/main/java/javax/xml/rpc/holders/DoubleHolder.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/holders/DoubleHolder.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/holders/DoubleHolder.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for doubles.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class DoubleHolder
- implements Holder
+public final class DoubleHolder implements Holder
{
public double value;
public DoubleHolder()
{
-
- }
+
+ }
+
public DoubleHolder(double value)
{
this.value = value;
Modified: trunk/src/main/java/javax/xml/rpc/holders/DoubleWrapperHolder.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/holders/DoubleWrapperHolder.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/holders/DoubleWrapperHolder.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for Doubles.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class DoubleWrapperHolder
- implements Holder
+public final class DoubleWrapperHolder implements Holder
{
public Double value;
public DoubleWrapperHolder()
{
-
- }
+
+ }
+
public DoubleWrapperHolder(Double value)
{
this.value = value;
Modified: trunk/src/main/java/javax/xml/rpc/holders/FloatHolder.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/holders/FloatHolder.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/holders/FloatHolder.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for floats.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class FloatHolder
- implements Holder
+public final class FloatHolder implements Holder
{
public float value;
public FloatHolder()
{
-
- }
+
+ }
+
public FloatHolder(float value)
{
this.value = value;
Modified: trunk/src/main/java/javax/xml/rpc/holders/FloatWrapperHolder.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/holders/FloatWrapperHolder.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/holders/FloatWrapperHolder.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for Floats.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class FloatWrapperHolder
- implements Holder
+public final class FloatWrapperHolder implements Holder
{
public Float value;
public FloatWrapperHolder()
{
-
- }
+
+ }
+
public FloatWrapperHolder(Float value)
{
this.value = value;
Modified: trunk/src/main/java/javax/xml/rpc/holders/Holder.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/holders/Holder.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/holders/Holder.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** This interface represents the base interface for both standard and generated
Modified: trunk/src/main/java/javax/xml/rpc/holders/IntHolder.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/holders/IntHolder.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/holders/IntHolder.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for ints.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class IntHolder
- implements Holder
+public final class IntHolder implements Holder
{
public int value;
public IntHolder()
{
-
- }
+
+ }
+
public IntHolder(int value)
{
this.value = value;
Modified: trunk/src/main/java/javax/xml/rpc/holders/IntegerWrapperHolder.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/holders/IntegerWrapperHolder.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/holders/IntegerWrapperHolder.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for Integers.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class IntegerWrapperHolder
- implements Holder
+public final class IntegerWrapperHolder implements Holder
{
public Integer value;
public IntegerWrapperHolder()
{
-
- }
+
+ }
+
public IntegerWrapperHolder(Integer value)
{
this.value = value;
Modified: trunk/src/main/java/javax/xml/rpc/holders/LongHolder.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/holders/LongHolder.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/holders/LongHolder.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for longs.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class LongHolder
- implements Holder
+public final class LongHolder implements Holder
{
public long value;
public LongHolder()
{
-
- }
+
+ }
+
public LongHolder(long value)
{
this.value = value;
Modified: trunk/src/main/java/javax/xml/rpc/holders/LongWrapperHolder.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/holders/LongWrapperHolder.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/holders/LongWrapperHolder.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for Longs.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class LongWrapperHolder
- implements Holder
+public final class LongWrapperHolder implements Holder
{
public Long value;
public LongWrapperHolder()
{
-
- }
+
+ }
+
public LongWrapperHolder(Long value)
{
this.value = value;
Modified: trunk/src/main/java/javax/xml/rpc/holders/ObjectHolder.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/holders/ObjectHolder.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/holders/ObjectHolder.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for Objects.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class ObjectHolder
- implements Holder
+public final class ObjectHolder implements Holder
{
public Object value;
public ObjectHolder()
{
-
- }
+
+ }
+
public ObjectHolder(Object value)
{
this.value = value;
Modified: trunk/src/main/java/javax/xml/rpc/holders/QNameHolder.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/holders/QNameHolder.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/holders/QNameHolder.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
import javax.xml.namespace.QName;
@@ -28,15 +28,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class QNameHolder
- implements Holder
+public final class QNameHolder implements Holder
{
public QName value;
public QNameHolder()
{
-
- }
+
+ }
+
public QNameHolder(QName value)
{
this.value = value;
Modified: trunk/src/main/java/javax/xml/rpc/holders/ShortHolder.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/holders/ShortHolder.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/holders/ShortHolder.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for shorts.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class ShortHolder
- implements Holder
+public final class ShortHolder implements Holder
{
public short value;
public ShortHolder()
{
-
- }
+
+ }
+
public ShortHolder(short value)
{
this.value = value;
Modified: trunk/src/main/java/javax/xml/rpc/holders/ShortWrapperHolder.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/holders/ShortWrapperHolder.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/holders/ShortWrapperHolder.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for Shorts.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class ShortWrapperHolder
- implements Holder
+public final class ShortWrapperHolder implements Holder
{
public Short value;
public ShortWrapperHolder()
{
-
- }
+
+ }
+
public ShortWrapperHolder(Short value)
{
this.value = value;
Modified: trunk/src/main/java/javax/xml/rpc/holders/StringHolder.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/holders/StringHolder.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/holders/StringHolder.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.holders;
/** A holder for Strings.
@@ -26,15 +26,15 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public final class StringHolder
- implements Holder
+public final class StringHolder implements Holder
{
public String value;
public StringHolder()
{
-
- }
+
+ }
+
public StringHolder(String value)
{
this.value = value;
Modified: trunk/src/main/java/javax/xml/rpc/server/ServiceLifecycle.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/server/ServiceLifecycle.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/server/ServiceLifecycle.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.rpc.server;
import javax.xml.rpc.ServiceException;
Modified: trunk/src/main/java/javax/xml/rpc/server/ServletEndpointContext.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/server/ServletEndpointContext.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/server/ServletEndpointContext.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,30 +1,31 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * 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 javax.xml.rpc.server;
+import java.security.Principal;
+
import javax.servlet.ServletContext;
import javax.servlet.http.HttpSession;
import javax.xml.rpc.handler.MessageContext;
-import java.security.Principal;
/**
* This interface provides an endpoint context maintained by the underlying
Modified: trunk/src/main/java/javax/xml/rpc/soap/SOAPFaultException.java
===================================================================
--- trunk/src/main/java/javax/xml/rpc/soap/SOAPFaultException.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/rpc/soap/SOAPFaultException.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -21,13 +21,14 @@
*/
package javax.xml.rpc.soap;
-import java.io.ObjectStreamField;
+import java.io.IOException;
import java.io.ObjectInputStream;
-import java.io.IOException;
import java.io.ObjectOutputStream;
+import java.io.ObjectStreamField;
+
+import javax.xml.namespace.QName;
import javax.xml.soap.Detail;
import javax.xml.soap.Name;
-import javax.xml.namespace.QName;
import org.jboss.logging.Logger;
import org.jboss.util.id.SerialVersion;
Modified: trunk/src/main/java/javax/xml/soap/AttachmentPart.java
===================================================================
--- trunk/src/main/java/javax/xml/soap/AttachmentPart.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/soap/AttachmentPart.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,29 +1,30 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.soap;
-import javax.activation.DataHandler;
import java.util.Iterator;
+import javax.activation.DataHandler;
+
/**
* A single attachment to a SOAPMessage object. A SOAPMessage object may contain zero, one, or many AttachmentPart objects.
* Each AttachmentPart object consists of two parts, application-specific content and associated MIME headers.
Modified: trunk/src/main/java/javax/xml/soap/Detail.java
===================================================================
--- trunk/src/main/java/javax/xml/soap/Detail.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/soap/Detail.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.soap;
import java.util.Iterator;
@@ -38,18 +38,18 @@
* of all the DetailEntry objects in d. The code also creates a Name object to
* pass to the method addDetailEntry. The variable se, used to create the Name
* object, is a SOAPEnvelope object.
- Detail d = sf.getDetail();
- Name name = se.createName("GetLastTradePrice", "WOMBAT",
- "http://www.wombat.org/trader");
- d.addDetailEntry(name);
- Iterator it = d.getDetailEntries();
+ Detail d = sf.getDetail();
+ Name name = se.createName("GetLastTradePrice", "WOMBAT",
+ "http://www.wombat.org/trader");
+ d.addDetailEntry(name);
+ Iterator it = d.getDetailEntries();
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public interface Detail
- extends SOAPFaultElement
+public interface Detail extends SOAPFaultElement
{
public DetailEntry addDetailEntry(Name name) throws SOAPException;
+
public Iterator getDetailEntries();
}
Modified: trunk/src/main/java/javax/xml/soap/DetailEntry.java
===================================================================
--- trunk/src/main/java/javax/xml/soap/DetailEntry.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/soap/DetailEntry.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.soap;
/** The content for a Detail object, giving details for a SOAPFault object. A
@@ -28,7 +28,6 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public interface DetailEntry
- extends SOAPElement
+public interface DetailEntry extends SOAPElement
{
}
Modified: trunk/src/main/java/javax/xml/soap/MessageFactory.java
===================================================================
--- trunk/src/main/java/javax/xml/soap/MessageFactory.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/soap/MessageFactory.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,33 +1,33 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.soap;
-import org.jboss.logging.Logger;
-
import java.io.IOException;
import java.io.InputStream;
import java.security.AccessController;
import java.security.PrivilegedAction;
+import org.jboss.logging.Logger;
+
/**
* A factory for creating SOAPMessage objects.
*
@@ -63,9 +63,7 @@
private static Logger log = Logger.getLogger(MessageFactory.class);
private static final String DEFAULT_MESSAGE_FACTORY = "org.jboss.ws.soap.MessageFactoryImpl";
- private static final String[] alternativeFactories = new String[]{
- "org.jboss.axis.soap.MessageFactoryImpl"
- };
+ private static final String[] alternativeFactories = new String[] { "org.jboss.axis.soap.MessageFactoryImpl" };
/** Creates a new MessageFactory object that is an instance of the default implementation.
*/
Modified: trunk/src/main/java/javax/xml/soap/MimeHeader.java
===================================================================
--- trunk/src/main/java/javax/xml/soap/MimeHeader.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/soap/MimeHeader.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,27 +1,26 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.soap;
-
/** An object that stores a MIME header name and its value. One or more
* MimeHeader objects may be contained in a MimeHeaders object.
*
@@ -33,7 +32,7 @@
private String name;
private String value;
- public MimeHeader(String name, String value)
+ public MimeHeader(String name, String value)
{
this.name = name;
this.value = value;
@@ -53,14 +52,15 @@
{
return toString().hashCode();
}
-
+
public boolean equals(Object obj)
{
- if (!(obj instanceof MimeHeader)) return false;
+ if (!(obj instanceof MimeHeader))
+ return false;
MimeHeader other = (MimeHeader)obj;
return toString().equals(other.toString());
}
-
+
public String toString()
{
return "[" + name + "=" + value + "]";
Modified: trunk/src/main/java/javax/xml/soap/MimeHeaders.java
===================================================================
--- trunk/src/main/java/javax/xml/soap/MimeHeaders.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/soap/MimeHeaders.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.soap;
import java.util.ArrayList;
@@ -42,7 +42,7 @@
private LinkedList headers = new LinkedList();
public MimeHeaders()
- {
+ {
}
/**
@@ -50,11 +50,10 @@
* @param name
* @param value
* @throws IllegalArgumentException - if name is null or empty.
- */
- public void addHeader(String name, String value)
- throws IllegalArgumentException
+ */
+ public void addHeader(String name, String value) throws IllegalArgumentException
{
- if( name == null || name.length() == 0 )
+ if (name == null || name.length() == 0)
throw new IllegalArgumentException("Invalid null or empty header name");
MimeHeader header = new MimeHeader(name, value);
headers.add(header);
@@ -69,18 +68,18 @@
*
* @param name
* @return All matching header values if found, null otherwise
- */
+ */
public String[] getHeader(String name)
{
ArrayList tmp = new ArrayList();
- for(int n = 0; n < headers.size(); n ++)
+ for (int n = 0; n < headers.size(); n++)
{
- MimeHeader mh = (MimeHeader) headers.get(n);
- if( mh.getName().equalsIgnoreCase(name) )
+ MimeHeader mh = (MimeHeader)headers.get(n);
+ if (mh.getName().equalsIgnoreCase(name))
tmp.add(mh.getValue());
}
String[] values = null;
- if( tmp.size() > 0 )
+ if (tmp.size() > 0)
{
values = new String[tmp.size()];
tmp.toArray(values);
@@ -91,13 +90,13 @@
public Iterator getMatchingHeaders(String[] names)
{
MatchingIter iter = new MatchingIter(headers, names, true);
- return iter;
+ return iter;
}
public Iterator getNonMatchingHeaders(String[] names)
{
MatchingIter iter = new MatchingIter(headers, names, false);
- return iter;
+ return iter;
}
public void removeAllHeaders()
@@ -108,10 +107,10 @@
public void removeHeader(String name)
{
Iterator iter = headers.iterator();
- while( iter.hasNext() )
+ while (iter.hasNext())
{
- MimeHeader mh = (MimeHeader) iter.next();
- if( mh.getName().equalsIgnoreCase(name) )
+ MimeHeader mh = (MimeHeader)iter.next();
+ if (mh.getName().equalsIgnoreCase(name))
iter.remove();
}
}
@@ -121,19 +120,19 @@
* header name matches. This method also removes all matching headers after
* the first one.
*
- */
+ */
public void setHeader(String name, String value)
{
boolean didSet = false;
- for(int n = 0; n < headers.size(); n ++)
+ for (int n = 0; n < headers.size(); n++)
{
- MimeHeader mh = (MimeHeader) headers.get(n);
- if( mh.getName().equalsIgnoreCase(name) )
+ MimeHeader mh = (MimeHeader)headers.get(n);
+ if (mh.getName().equalsIgnoreCase(name))
{
- if( didSet == true )
+ if (didSet == true)
{
headers.remove(n);
- n --;
+ n--;
}
else
{
@@ -144,7 +143,7 @@
}
}
- if( didSet == false )
+ if (didSet == false)
{
this.addHeader(name, value);
}
@@ -163,7 +162,7 @@
this.headers = headers;
this.index = 0;
this.names = new HashSet();
- for(int n = 0; n < names.length; n ++)
+ for (int n = 0; n < names.length; n++)
this.names.add(names[n].toLowerCase());
this.match = match;
}
@@ -171,12 +170,12 @@
public boolean hasNext()
{
boolean hasNext = index < headers.size();
- while( hasNext == true )
+ while (hasNext == true)
{
- mh = (MimeHeader) headers.get(index);
- index ++;
+ mh = (MimeHeader)headers.get(index);
+ index++;
String name = mh.getName().toLowerCase();
- if( names.contains(name) == match )
+ if (names.contains(name) == match)
break;
hasNext = index < headers.size();
}
@@ -190,7 +189,7 @@
public void remove()
{
- headers.remove(index-1);
+ headers.remove(index - 1);
}
}
}
Modified: trunk/src/main/java/javax/xml/soap/Name.java
===================================================================
--- trunk/src/main/java/javax/xml/soap/Name.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/soap/Name.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.soap;
/** A representation of an XML name. This interface provides methods for
@@ -65,7 +65,6 @@
*/
public String getLocalName();
-
/** Returns the prefix that was specified when this Name object was initialized.
* This prefix is associated with the namespace for the XML name that this Name object represents.
*
Modified: trunk/src/main/java/javax/xml/soap/Node.java
===================================================================
--- trunk/src/main/java/javax/xml/soap/Node.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/soap/Node.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.soap;
/** A representation of a node (element) in an XML document. This interface
@@ -31,7 +31,7 @@
*/
public interface Node extends org.w3c.dom.Node
{
-
+
/**
* Removes this Node object from the tree.
*/
@@ -74,6 +74,6 @@
* Notifies the implementation that this Node object is no longer being used by the application and that the
* implementation is free to reuse this object for nodes that may be created later.
* Calling the method recycleNode implies that the method detachNode has been called previously.
- */
+ */
public void recycleNode();
}
Modified: trunk/src/main/java/javax/xml/soap/SOAPBody.java
===================================================================
--- trunk/src/main/java/javax/xml/soap/SOAPBody.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/soap/SOAPBody.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,30 +1,30 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.soap;
-import org.w3c.dom.Document;
-
import java.util.Locale;
+import org.w3c.dom.Document;
+
/** An object that represents the contents of the SOAP body element in a SOAP
* message. A SOAP body element consists of XML data that affects the way the
* application-specific content is processed.
@@ -36,8 +36,7 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public interface SOAPBody
- extends SOAPElement
+public interface SOAPBody extends SOAPElement
{
/** Creates a new SOAPBodyElement object with the specified name and adds it to this SOAPBody object.
*
Modified: trunk/src/main/java/javax/xml/soap/SOAPBodyElement.java
===================================================================
--- trunk/src/main/java/javax/xml/soap/SOAPBodyElement.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/soap/SOAPBodyElement.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.soap;
/** A SOAPBodyElement object represents the contents in a SOAPBody object.
@@ -28,12 +28,11 @@
* with the SOAPBody method addBodyElement. In the following line of code, sb
* is a SOAPBody object, and myName is a Name object.
- SOAPBodyElement sbe = sb.addBodyElement(myName);
+ SOAPBodyElement sbe = sb.addBodyElement(myName);
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public interface SOAPBodyElement
- extends SOAPElement
+public interface SOAPBodyElement extends SOAPElement
{
}
Modified: trunk/src/main/java/javax/xml/soap/SOAPConnection.java
===================================================================
--- trunk/src/main/java/javax/xml/soap/SOAPConnection.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/soap/SOAPConnection.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.soap;
/** A point-to-point connection that a client can use for sending messages directly to a remote
Modified: trunk/src/main/java/javax/xml/soap/SOAPConnectionFactory.java
===================================================================
--- trunk/src/main/java/javax/xml/soap/SOAPConnectionFactory.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/soap/SOAPConnectionFactory.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,31 +1,31 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * 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 javax.xml.soap;
-import org.jboss.logging.Logger;
-
import java.security.AccessController;
import java.security.PrivilegedAction;
+import org.jboss.logging.Logger;
+
/** A factory for creating SOAPConnection objects. Implementation of this class
* is optional. If SOAPConnectionFactory.newInstance() throws an
* UnsupportedOperationException then the implementation does not support the
@@ -43,10 +43,8 @@
private static Logger log = Logger.getLogger(SOAPConnectionFactory.class);
private static final String DEFAULT_SOAP_CONNECTION_FACTORY = "org.jboss.ws.soap.SOAPConnectionFactoryImpl";
- private static final String[] alternativeFactories = new String[]{
- "org.jboss.webservice.soap.SOAPConnectionFactoryImpl",
- "org.jboss.axis.soap.SOAPConnectionFactoryImpl"
- };
+ private static final String[] alternativeFactories = new String[] { "org.jboss.webservice.soap.SOAPConnectionFactoryImpl",
+ "org.jboss.axis.soap.SOAPConnectionFactoryImpl" };
/** Creates an instance of the default SOAPConnectionFactory object.
*
Modified: trunk/src/main/java/javax/xml/soap/SOAPConstants.java
===================================================================
--- trunk/src/main/java/javax/xml/soap/SOAPConstants.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/soap/SOAPConstants.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,27 +1,26 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.soap;
-
/** The definition of constants pertaining to the SOAP 1.1 protocol.
* @author Scott.Stark(a)jboss.org
* @version $Revision$
Modified: trunk/src/main/java/javax/xml/soap/SOAPElement.java
===================================================================
--- trunk/src/main/java/javax/xml/soap/SOAPElement.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/soap/SOAPElement.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.soap;
import java.util.Iterator;
Modified: trunk/src/main/java/javax/xml/soap/SOAPElementFactory.java
===================================================================
--- trunk/src/main/java/javax/xml/soap/SOAPElementFactory.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/soap/SOAPElementFactory.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.soap;
/** SOAPElementFactory is a factory for XML fragments that will eventually end
@@ -40,21 +40,23 @@
*
* @return
* @throws SOAPException
- */
+ */
public static SOAPElementFactory newInstance() throws SOAPException
{
SOAPFactory factory = SOAPFactory.newInstance();
return new SOAPElementFactory(factory);
}
+
/**
* @deprecated Use javax.xml.soap.SOAPFactory.createElement(javax.xml.soap.Name)
* @return
* @throws SOAPException
- */
- public SOAPElement create(String localName) throws SOAPException
+ */
+ public SOAPElement create(String localName) throws SOAPException
{
return soapFactory.createElement(localName);
}
+
/**
* @deprecated Use javax.xml.soap.SOAPFactory.createElement(String localName, String prefix, String uri) instead
* @param localName
@@ -62,19 +64,19 @@
* @param uri
* @return
* @throws SOAPException
- */
- public SOAPElement create(String localName, String prefix, String uri)
- throws SOAPException
+ */
+ public SOAPElement create(String localName, String prefix, String uri) throws SOAPException
{
- return soapFactory.createElement(localName, prefix, uri);
+ return soapFactory.createElement(localName, prefix, uri);
}
+
/**
* @deprecated Use javax.xml.soap.SOAPFactory.createElement(javax.xml.soap.Name)
* @param name
* @return
* @throws SOAPException
- */
- public SOAPElement create(Name name) throws SOAPException
+ */
+ public SOAPElement create(Name name) throws SOAPException
{
return soapFactory.createElement(name);
}
Modified: trunk/src/main/java/javax/xml/soap/SOAPEnvelope.java
===================================================================
--- trunk/src/main/java/javax/xml/soap/SOAPEnvelope.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/soap/SOAPEnvelope.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,61 +1,64 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * 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 javax.xml.soap;
/** The container for the SOAPHeader and SOAPBody portions of a SOAPPart object. By default, a SOAPMessage object is created with a SOAPPart object that has a SOAPEnvelope object. The SOAPEnvelope object by default has an empty SOAPBody object and an empty SOAPHeader object. The SOAPBody object is required, and the SOAPHeader object, though optional, is used in the majority of cases. If the SOAPHeader object is not needed, it can be deleted, which is shown later.
-A client can access the SOAPHeader and SOAPBody objects by calling the methods SOAPEnvelope.getHeader and SOAPEnvelope.getBody. The following lines of code use these two methods after starting with the SOAPMessage object message to get the SOAPPart object sp, which is then used to get the SOAPEnvelope object se.
- SOAPPart sp = message.getSOAPPart();
- SOAPEnvelope se = sp.getEnvelope();
- SOAPHeader sh = se.getHeader();
- SOAPBody sb = se.getBody();
+ A client can access the SOAPHeader and SOAPBody objects by calling the methods SOAPEnvelope.getHeader and SOAPEnvelope.getBody. The following lines of code use these two methods after starting with the SOAPMessage object message to get the SOAPPart object sp, which is then used to get the SOAPEnvelope object se.
+ SOAPPart sp = message.getSOAPPart();
+ SOAPEnvelope se = sp.getEnvelope();
+ SOAPHeader sh = se.getHeader();
+ SOAPBody sb = se.getBody();
-It is possible to change the body or header of a SOAPEnvelope object by retrieving the current one, deleting it, and then adding a new body or header. The javax.xml.soap.Node method deleteNode deletes the XML element (node) on which it is called. For example, the following line of code deletes the SOAPBody object that is retrieved by the method getBody.
- se.getBody().detachNode();
+ It is possible to change the body or header of a SOAPEnvelope object by retrieving the current one, deleting it, and then adding a new body or header. The javax.xml.soap.Node method deleteNode deletes the XML element (node) on which it is called. For example, the following line of code deletes the SOAPBody object that is retrieved by the method getBody.
+ se.getBody().detachNode();
-To create a SOAPHeader object to replace the one that was removed, a client uses the method SOAPEnvelope.addHeader, which creates a new header and adds it to the SOAPEnvelope object. Similarly, the method addBody creates a new SOAPBody object and adds it to the SOAPEnvelope object. The following code fragment retrieves the current header, removes it, and adds a new one. Then it retrieves the current body, removes it, and adds a new one.
- SOAPPart sp = message.getSOAPPart();
- SOAPEnvelope se = sp.getEnvelope();
- se.getHeader().detachNode();
- SOAPHeader sh = se.addHeader();
- se.getBody().detachNode();
- SOAPBody sb = se.addBody();
+ To create a SOAPHeader object to replace the one that was removed, a client uses the method SOAPEnvelope.addHeader, which creates a new header and adds it to the SOAPEnvelope object. Similarly, the method addBody creates a new SOAPBody object and adds it to the SOAPEnvelope object. The following code fragment retrieves the current header, removes it, and adds a new one. Then it retrieves the current body, removes it, and adds a new one.
+ SOAPPart sp = message.getSOAPPart();
+ SOAPEnvelope se = sp.getEnvelope();
+ se.getHeader().detachNode();
+ SOAPHeader sh = se.addHeader();
+ se.getBody().detachNode();
+ SOAPBody sb = se.addBody();
-It is an error to add a SOAPBody or SOAPHeader object if one already exists.
-The SOAPEnvelope interface provides three methods for creating Name objects. One method creates Name objects with a local name, a namespace prefix, and a namesapce URI. The second method creates Name objects with a local name and a namespace prefix, and the third creates Name objects with just a local name. The following line of code, in which se is a SOAPEnvelope object, creates a new Name object with all three.
- Name name = se.createName("GetLastTradePrice", "WOMBAT",
- "http://www.wombat.org/trader");
+ It is an error to add a SOAPBody or SOAPHeader object if one already exists.
+ The SOAPEnvelope interface provides three methods for creating Name objects. One method creates Name objects with a local name, a namespace prefix, and a namesapce URI. The second method creates Name objects with a local name and a namespace prefix, and the third creates Name objects with just a local name. The following line of code, in which se is a SOAPEnvelope object, creates a new Name object with all three.
+ Name name = se.createName("GetLastTradePrice", "WOMBAT",
+ "http://www.wombat.org/trader");
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public interface SOAPEnvelope
- extends SOAPElement
+public interface SOAPEnvelope extends SOAPElement
{
public abstract SOAPBody addBody() throws SOAPException;
+
public abstract SOAPHeader addHeader() throws SOAPException;
+
public abstract Name createName(String localName) throws SOAPException;
- public abstract Name createName(String localName, String prefix, String uri)
- throws SOAPException;
+
+ public abstract Name createName(String localName, String prefix, String uri) throws SOAPException;
+
public abstract SOAPBody getBody() throws SOAPException;
+
public abstract SOAPHeader getHeader() throws SOAPException;
}
Modified: trunk/src/main/java/javax/xml/soap/SOAPException.java
===================================================================
--- trunk/src/main/java/javax/xml/soap/SOAPException.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/soap/SOAPException.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.soap;
import org.jboss.util.id.SerialVersion;
@@ -27,8 +27,7 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public class SOAPException
- extends Exception
+public class SOAPException extends Exception
{
/** @since 4.0.2 */
static final long serialVersionUID;
@@ -36,8 +35,7 @@
{
if (SerialVersion.version == SerialVersion.LEGACY)
serialVersionUID = -4385552115225336830L;
- else
- serialVersionUID = 5083961510786058130L;
+ else serialVersionUID = 5083961510786058130L;
}
public SOAPException()
Modified: trunk/src/main/java/javax/xml/soap/SOAPFactory.java
===================================================================
--- trunk/src/main/java/javax/xml/soap/SOAPFactory.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/soap/SOAPFactory.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.soap;
// $Id$
@@ -44,10 +44,8 @@
// provide logging
private static Logger log = Logger.getLogger(SOAPFactory.class);
- private static final String DEFAULT_SOAP_FACTORY = "org.jboss.ws.soap.SOAPFactoryImpl";
- private static final String[] alternativeFactories = new String[]{
- "org.jboss.axis.soap.SOAPFactoryImpl"
- };
+ private static final String DEFAULT_SOAP_FACTORY = "org.jboss.ws.soap.SOAPFactoryImpl";
+ private static final String[] alternativeFactories = new String[] { "org.jboss.axis.soap.SOAPFactoryImpl" };
/** Creates a new instance of SOAPFactory.
*
Modified: trunk/src/main/java/javax/xml/soap/SOAPFault.java
===================================================================
--- trunk/src/main/java/javax/xml/soap/SOAPFault.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/soap/SOAPFault.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.soap;
import java.util.Locale;
@@ -151,7 +151,6 @@
*/
public void setFaultString(String faultString) throws SOAPException;
-
/**
* Sets the fault string for this SOAPFault object to the given string and localized to the given locale.
*
Modified: trunk/src/main/java/javax/xml/soap/SOAPFaultElement.java
===================================================================
--- trunk/src/main/java/javax/xml/soap/SOAPFaultElement.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/soap/SOAPFaultElement.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.soap;
/** A representation of the contents in a SOAPFault object. The Detail
@@ -30,7 +30,6 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public interface SOAPFaultElement
- extends SOAPElement
+public interface SOAPFaultElement extends SOAPElement
{
}
Modified: trunk/src/main/java/javax/xml/soap/SOAPHeader.java
===================================================================
--- trunk/src/main/java/javax/xml/soap/SOAPHeader.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/soap/SOAPHeader.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.soap;
import java.util.Iterator;
Modified: trunk/src/main/java/javax/xml/soap/SOAPHeaderElement.java
===================================================================
--- trunk/src/main/java/javax/xml/soap/SOAPHeaderElement.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/soap/SOAPHeaderElement.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.soap;
/** An object representing the contents in the SOAP header part of the SOAP
@@ -30,27 +30,26 @@
* @author Scott.Stark(a)jboss.org
* @version $Revision$
*/
-public interface SOAPHeaderElement
- extends SOAPElement
+public interface SOAPHeaderElement extends SOAPElement
{
/** Returns the uri of the actor associated with this SOAPHeaderElement object.
*
* @return a String giving the URI of the actor
*/
- public String getActor();
+ public String getActor();
/** Returns whether the mustUnderstand attribute for this SOAPHeaderElement object is turned on.
*
* @return true if the mustUnderstand attribute of this SOAPHeaderElement object is turned on; false otherwise
*/
- public boolean getMustUnderstand();
+ public boolean getMustUnderstand();
/** Sets the actor associated with this SOAPHeaderElement object to the specified actor.
* The default value of an actor is: SOAPConstants.URI_SOAP_ACTOR_NEXT
*
* @param actorURI a String giving the URI of the actor to set
*/
- public void setActor(String actorURI);
+ public void setActor(String actorURI);
/** Sets the mustUnderstand attribute for this SOAPHeaderElement object to be on or off.
*
@@ -60,5 +59,5 @@
*
* @param mustUnderstand true to set the mustUnderstand attribute on; false to turn if off
*/
- public void setMustUnderstand(boolean mustUnderstand);
+ public void setMustUnderstand(boolean mustUnderstand);
}
Modified: trunk/src/main/java/javax/xml/soap/SOAPMessage.java
===================================================================
--- trunk/src/main/java/javax/xml/soap/SOAPMessage.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/soap/SOAPMessage.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,32 +1,33 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.soap;
-import javax.activation.DataHandler;
import java.io.IOException;
import java.io.OutputStream;
import java.util.HashMap;
import java.util.Iterator;
+import javax.activation.DataHandler;
+
/** The root class for all SOAP messages. As transmitted on the "wire", a SOAP message is an XML document or a
* MIME message whose first body part is an XML/SOAP document.
*
@@ -130,8 +131,7 @@
* @return the value associated with the named property or null if no such property exists.
* @throws SOAPException if the property name is not recognized.
*/
- public Object getProperty(String property)
- throws SOAPException
+ public Object getProperty(String property) throws SOAPException
{
return properties.get(property);
}
Modified: trunk/src/main/java/javax/xml/soap/SOAPPart.java
===================================================================
--- trunk/src/main/java/javax/xml/soap/SOAPPart.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/soap/SOAPPart.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.soap;
import java.util.Iterator;
Modified: trunk/src/main/java/javax/xml/soap/Text.java
===================================================================
--- trunk/src/main/java/javax/xml/soap/Text.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/soap/Text.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.soap;
/** A representation of a node whose value is text. A Text object may represent
Modified: trunk/src/main/java/javax/xml/ws/AsyncHandler.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/AsyncHandler.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/AsyncHandler.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -31,5 +31,11 @@
*/
public interface AsyncHandler<T>
{
- void handleResponse(Response<T> response);
-}
\ No newline at end of file
+
+ /** Called when the response to an asynchronous operation is available.
+ *
+ * @param res The response to the operation invocation.
+ *
+ **/
+ void handleResponse(Response<T> res);
+}
Modified: trunk/src/main/java/javax/xml/ws/Binding.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/Binding.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/Binding.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -21,10 +21,6 @@
*/
package javax.xml.ws;
-import java.util.List;
-
-import javax.xml.ws.handler.Handler;
-
/**
* The Binding interface is the base interface for JAX-WS protocol bindings.
*
@@ -34,12 +30,23 @@
public interface Binding
{
- /**
- * Gets a copy of the handler chain for a protocol binding instance.
- * If the returned chain is modified a call to setHandlerChain
+ /** Gets a copy of the handler chain for a protocol binding instance.
+ * If the returned chain is modified a call to <code>setHandlerChain</code>
* is required to configure the binding instance with the new chain.
- */
- List<Handler> getHandlerChain();
+ *
+ * @return java.util.List<javax.xml.ws.handler.HandlerInfo> Handler chain
+ **/
+ public java.util.List<javax.xml.ws.handler.Handler> getHandlerChain();
- void setHandlerChain(List<Handler> list);
-}
\ No newline at end of file
+ /** Sets the handler chain for the protocol binding instance.
+ *
+ * @param chain A List of handler configuration entries
+ * @throws WebServiceException On an error in the configuration of
+ * the handler chain
+ * @throws java.lang.UnsupportedOperationException If this
+ * operation is not supported. This may be done to
+ * avoid any overriding of a pre-configured handler
+ * chain.
+ **/
+ public void setHandlerChain(java.util.List<javax.xml.ws.handler.Handler> chain);
+}
Modified: trunk/src/main/java/javax/xml/ws/BindingProvider.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/BindingProvider.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/BindingProvider.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -32,31 +32,75 @@
*/
public interface BindingProvider
{
- // REQUIRED: The address of the service endpoint as a protocol specific URI. The URI scheme must match the protocol binding in use.
- public static final String ENDPOINT_ADDRESS_PROPERTY = "javax.xml.ws.service.endpoint.address";
-
- // REQUIRED: Username for HTTP basic authentication.
+ /** Standard property: User name for authentication.
+ * <p>Type: java.lang.String
+ **/
public static final String USERNAME_PROPERTY = "javax.xml.ws.security.auth.username";
- // REQUIRED: Password for HTTP basic password authentication.
+ /** Standard property: Password for authentication.
+ * <p>Type: java.lang.String
+ **/
public static final String PASSWORD_PROPERTY = "javax.xml.ws.security.auth.password";
- // REQUIRED: Used by a client to indicate whether it is prepared to participate in a service endpoint initiated session.
- // Default value is false.
+ /** Standard property: Target service endpoint address. The
+ * URI scheme for the endpoint address specification must
+ * correspond to the protocol/transport binding for the
+ * binding in use.
+ * <p>Type: java.lang.String
+ **/
+ public static final String ENDPOINT_ADDRESS_PROPERTY = "javax.xml.ws.service.endpoint.address";
+
+ /** Standard property: This boolean property is used by a service
+ * client to indicate whether or not it wants to participate in
+ * a session with a service endpoint. If this property is set to
+ * true, the service client indicates that it wants the session
+ * to be maintained. If set to false, the session is not maintained.
+ * The default value for this property is false.
+ * <p>Type: java.lang.Boolean
+ **/
public static final String SESSION_MAINTAIN_PROPERTY = "javax.xml.ws.session.maintain";
- // OPTIONAL: Controls whether the SOAPAction HTTP header is used in SOAP/HTTP requests.
- // Default value is false.
+ /** Standard property for SOAPAction. This boolean property
+ * indicates whether or not SOAPAction is to be used. The
+ * default value of this property is false indicating that
+ * the SOAPAction is not used.
+ * <p>Type: <code>java.lang.Boolean</code>
+ **/
public static final String SOAPACTION_USE_PROPERTY = "javax.xml.ws.soap.http.soapaction.use";
- // OPTIONAL: The value of the SOAPAction HTTP uri header if the use property is set to true.
- // Default value is an empty string.
+ /** Standard property for SOAPAction. Indicates the SOAPAction
+ * URI if the <code>javax.xml.ws.soap.http.soapaction.use</code>
+ * property is set to <code>true</code>.
+ * <p>Type: <code>java.lang.String</code>
+ **/
public static final String SOAPACTION_URI_PROPERTY = "javax.xml.ws.soap.http.soapaction.uri";
+ /** Get the context that is used to initialize the message context
+ * for request messages.
+ *
+ * Modifications to the request context do not affect the message context of
+ * either synchronous or asynchronous operations that have already been
+ * started.
+ *
+ * @return The context that is used in processing request messages.
+ **/
Map<String, Object> getRequestContext();
+ /** Get the context that resulted from processing a response message.
+ *
+ * The returned context is for the most recently completed synchronous
+ * operation. Subsequent synchronous operation invocations overwrite the
+ * response context. Asynchronous operations return their response context
+ * via the Response interface.
+ *
+ * @return The context that resulted from processing the latest
+ * response messages.
+ **/
Map<String, Object> getResponseContext();
+ /** Get the Binding for this binding provider.
+ *
+ * @return The Binding for this binding provider.
+ **/
Binding getBinding();
-
-}
\ No newline at end of file
+}
Modified: trunk/src/main/java/javax/xml/ws/BindingType.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/BindingType.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/BindingType.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -21,6 +21,7 @@
*/
package javax.xml.ws;
+import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@@ -36,16 +37,22 @@
* @author Thomas.Diesler(a)jboss.com
* @since 03-May-2006
*/
-@Target( { ElementType.TYPE })
-@Retention(value = RetentionPolicy.RUNTIME)
+(a)Target(ElementType.TYPE)
+(a)Retention(RetentionPolicy.RUNTIME)
+@Documented
public @interface BindingType
{
-
- /** A binding identifier (a URI).
+ /**
+ * A binding identifier (a URI).
* If not specified, the default is the SOAP 1.1 / HTTP binding.
- *
- * See the SOAPBinding and HTTPBinding for the definition of the standard
- * binding identifiers.
+ * <p>
+ * See the <code>SOAPBinding</code> and <code>HTTPBinding</code>
+ * for the definition of the standard binding identifiers.
+ *
+ * @see javax.xml.ws.Binding
+ * @see javax.xml.ws.soap.SOAPBinding#SOAP11HTTP_BINDING
+ * @see javax.xml.ws.soap.SOAPBinding#SOAP12HTTP_BINDING
+ * @see javax.xml.ws.http.HTTPBinding#HTTP_BINDING
*/
String value() default "";
-}
\ No newline at end of file
+}
Modified: trunk/src/main/java/javax/xml/ws/Dispatch.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/Dispatch.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/Dispatch.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -33,11 +33,81 @@
*/
public interface Dispatch<T> extends BindingProvider
{
- Object invoke(Object obj);
- Response invokeAsync(Object obj);
+ /** Invoke a service operation synchronously.
+ *
+ * The client is responsible for ensuring that the <code>msg</code> object
+ * when marshalled is formed according to the requirements of the protocol
+ * binding in use.
+ *
+ * @param msg An object that will form the message or payload of
+ * the message used to invoke the operation.
+ * @return The response message or message payload to the
+ * operation invocation.
+ * @throws WebServiceException If a fault occurs during communication with
+ * the service
+ * @throws WebServiceException If there is any error in the configuration of
+ * the <code>Dispatch</code> instance
+ **/
+ public T invoke(T msg);
- Future invokeAsync(Object obj, AsyncHandler asynchandler);
+ /** Invoke a service operation asynchronously. The
+ * method returns without waiting for the response to the operation
+ * invocation, the results of the operation are obtained by polling the
+ * returned <code>Response</code>.
+ *
+ * The client is responsible for ensuring that the <code>msg</code> object
+ * when marshalled is formed according to the requirements of the protocol
+ * binding in use.
+ *
+ * @param msg An object that will form the message or payload of
+ * the message used to invoke the operation.
+ * @return The response message or message payload to the
+ * operation invocation.
+ * @throws WebServiceException If there is any error in the configuration of
+ * the <code>Dispatch</code> instance
+ **/
+ public Response<T> invokeAsync(T msg);
- void invokeOneWay(Object obj);
-}
\ No newline at end of file
+ /** Invoke a service operation asynchronously. The
+ * method returns without waiting for the response to the operation
+ * invocation, the results of the operation are communicated to the client
+ * via the passed in handler.
+ *
+ * The client is responsible for ensuring that the <code>msg</code> object
+ * when marshalled is formed according to the requirements of the protocol
+ * binding in use.
+ *
+ * @param msg An object that will form the message or payload of
+ * the message used to invoke the operation.
+ * @param handler The handler object that will receive the
+ * response to the operation invocation.
+ * @return A <code>Future</code> object that may be used to check the status
+ * of the operation invocation. This object must not be used to try to
+ * obtain the results of the operation - the object returned from
+ * <code>Future<?>.get()</code> is implementation dependent
+ * and any use of it will result in non-portable behaviour.
+ * @throws WebServiceException If there is any error in the configuration of
+ * the <code>Dispatch</code> instance
+ **/
+ public Future<?> invokeAsync(T msg, AsyncHandler<T> handler);
+
+ /** Invokes a service operation using the one-way
+ * interaction mode. The operation invocation is logically non-blocking,
+ * subject to the capabilities of the underlying protocol, no results
+ * are returned. When
+ * the protocol in use is SOAP/HTTP, this method must block until
+ * an HTTP response code has been received or an error occurs.
+ *
+ * The client is responsible for ensuring that the <code>msg</code> object
+ * when marshalled is formed according to the requirements of the protocol
+ * binding in use.
+ *
+ * @param msg An object that will form the message or payload of
+ * the message used to invoke the operation.
+ * @throws WebServiceException If there is any error in the configuration of
+ * the <code>Dispatch</code> instance or if an error occurs during the
+ * invocation.
+ **/
+ public void invokeOneWay(T msg);
+}
Modified: trunk/src/main/java/javax/xml/ws/Endpoint.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/Endpoint.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/Endpoint.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -62,7 +62,7 @@
*/
public abstract class Endpoint
{
-
+
public static final String WSDL_SERVICE = "javax.xml.ws.wsdl.service";
public static final String WSDL_PORT = "javax.xml.ws.wsdl.port";
@@ -124,7 +124,7 @@
String bindingId = getBindingFromAddress(address);
Endpoint endpoint = Endpoint.create(bindingId, implementor);
endpoint.publish(address);
-
+
return endpoint;
}
Modified: trunk/src/main/java/javax/xml/ws/Holder.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/Holder.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/Holder.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -29,15 +29,26 @@
*/
public final class Holder<T>
{
+
+ /**
+ * The value contained in the holder.
+ **/
public T value;
+ /**
+ * Creates a new holder with a <code>null</code> value.
+ **/
public Holder()
{
}
+ /**
+ * Create a new holder with the specified value.
+ *
+ * @param value The value to be stored in the holder.
+ **/
public Holder(T value)
{
this.value = value;
}
-
-}
\ No newline at end of file
+}
Modified: trunk/src/main/java/javax/xml/ws/LogicalMessage.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/LogicalMessage.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/LogicalMessage.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -34,32 +34,56 @@
public interface LogicalMessage
{
- /**
- * Gets the message payload as an XML source, may be called multiple times on the same LogicalMessage instance,
- * always returns a new Source that may be used to retrieve the entire message payload.
- *
- * If the returned Source is an instance of DOMSource, then modifications to the encapsulated DOM tree change
- * the message payload in-place, there is no need to susequently call setPayload. Other types of Source provide
- * only read access to the message payload.
- *
- * @return The contained message payload; returns null if no payload is present in this message.
- */
- Source getPayload();
+ /** Gets the message payload as an XML source, may be called
+ * multiple times on the same LogicalMessage instance, always
+ * returns a new Source that may be used to retrieve the entire
+ * message payload.
+ *
+ * <p>If the returned Source is an instance of DOMSource, then
+ * modifications to the encapsulated DOM tree change the message
+ * payload in-place, there is no need to susequently call
+ * <code>setPayload</code>. Other types of Source provide only
+ * read access to the message payload.
+ *
+ * @return The contained message payload; returns null if no
+ * payload is present in this message.
+ **/
+ public Source getPayload();
- /**
- * Sets the message payload
- */
- void setPayload(Source source);
+ /** Sets the message payload
+ *
+ * @param payload message payload
+ * @throws WebServiceException If any error during the setting
+ * of the payload in this message
+ * @throws java.lang.UnsupportedOperationException If this
+ * operation is not supported
+ **/
+ public void setPayload(Source payload);
- /**
- * Gets the message payload as a JAXB object.
- * Note that there is no connection between the returned object and the message payload,
- * changes to the payload require calling setPayload
- */
- Object getPayload(JAXBContext jaxbcontext);
+ /** Gets the message payload as a JAXB object. Note that there is no
+ * connection between the returned object and the message payload,
+ * changes to the payload require calling <code>setPayload</code>.
+ *
+ * @param context The JAXBContext that should be used to unmarshall
+ * the message payload
+ * @return The contained message payload; returns null if no
+ * payload is present in this message
+ * @throws WebServiceException If an error occurs when using a supplied
+ * JAXBContext to unmarshall the payload. The cause of
+ * the WebServiceException is the original JAXBException.
+ **/
+ public Object getPayload(JAXBContext context);
- /**
- * Sets the message payload
- */
- void setPayload(Object obj, JAXBContext jaxbContext);
-}
\ No newline at end of file
+ /** Sets the message payload
+ *
+ * @param payload message payload
+ * @param context The JAXBContext that should be used to marshall
+ * the payload
+ * @throws java.lang.UnsupportedOperationException If this
+ * operation is not supported
+ * @throws WebServiceException If an error occurs when using the supplied
+ * JAXBContext to marshall the payload. The cause of
+ * the WebServiceException is the original JAXBException.
+ **/
+ public void setPayload(Object payload, JAXBContext context);
+}
Modified: trunk/src/main/java/javax/xml/ws/ProtocolException.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/ProtocolException.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/ProtocolException.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -32,23 +32,60 @@
*/
public class ProtocolException extends WebServiceException
{
-
+ /**
+ * Constructs a new protocol exception with null as its detail message. The
+ * cause is not initialized, and may subsequently be initialized by a call
+ * to Throwable.initCause(java.lang.Throwable).
+ */
public ProtocolException()
{
+ super();
}
+ /**
+ * Constructs a new protocol exception with the specified detail message.
+ * The cause is not initialized, and may subsequently be initialized by a
+ * call to Throwable.initCause(java.lang.Throwable).
+ *
+ * @param message the detail message. The detail message is saved for later
+ * retrieval by the Throwable.getMessage() method.
+ */
public ProtocolException(String message)
{
super(message);
}
+ /**
+ * Constructs a new runtime exception with the specified detail message and
+ * cause.
+ *
+ * Note that the detail message associated with cause is not automatically
+ * incorporated in this runtime exception's detail message.
+ *
+ * @param message the detail message (which is saved for later retrieval by
+ * the Throwable.getMessage() method).
+ * @param cause the cause (which is saved for later retrieval by the
+ * Throwable.getCause() method). (A null value is permitted, and indicates
+ * that the cause is nonexistent or unknown.)
+ */
public ProtocolException(String message, Throwable cause)
{
super(message, cause);
}
+ /**
+ * Constructs a new runtime exception with the specified cause and a detail
+ * message of (cause==null ? null : cause.toString()) (which typically
+ * contains the class and detail message of cause). This constructor is
+ * useful for runtime exceptions that are little more than wrappers for
+ * other throwables.
+ *
+ * @param cause the cause (which is saved for later retrieval by the
+ * Throwable.getCause() method). (A null value is permitted, and indicates
+ * that the cause is nonexistent or unknown.)
+ */
public ProtocolException(Throwable cause)
{
super(cause);
}
-}
\ No newline at end of file
+}
Modified: trunk/src/main/java/javax/xml/ws/Provider.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/Provider.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/Provider.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -32,6 +32,19 @@
*/
public interface Provider<T>
{
- /** Invokes an operation occording to the contents of the request message. */
- public abstract T invoke(T request);
-}
\ No newline at end of file
+
+ /** Invokes an operation occording to the contents of the request
+ * message.
+ *
+ * @param request The request message or message payload.
+ * @return The response message or message payload. May be null if
+ there is no response.
+ * @throws WebServiceException if there is an error processing request.
+ * The cause of the WebServiceException may be set to a subclass
+ * of ProtocolException to control the protocol level
+ * representation of the exception.
+ * @see javax.xml.ws.handler.MessageContext
+ * @see javax.xml.ws.ProtocolException
+ **/
+ public T invoke(T request);
+}
Modified: trunk/src/main/java/javax/xml/ws/RequestWrapper.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/RequestWrapper.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/RequestWrapper.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -21,6 +21,7 @@
*/
package javax.xml.ws;
+import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@@ -38,14 +39,24 @@
* @author Thomas.Diesler(a)jboss.com
* @since 03-May-2006
*/
-@Target( { ElementType.METHOD })
-@Retention(value = RetentionPolicy.RUNTIME)
+(a)Target(ElementType.METHOD)
+(a)Retention(RetentionPolicy.RUNTIME)
+@Documented
public @interface RequestWrapper
{
+ /**
+ * Elements local name.
+ **/
+ public String localName() default "";
- String localName() default "";
+ /**
+ * Elements namespace name.
+ **/
+ public String targetNamespace() default "";
- String targetNamespace() default "";
+ /**
+ * Request wrapper bean name.
+ **/
+ public String className() default "";
- String className() default "";
-}
\ No newline at end of file
+}
Modified: trunk/src/main/java/javax/xml/ws/Response.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/Response.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/Response.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -36,11 +36,13 @@
* @author Thomas.Diesler(a)jboss.com
* @since 03-May-2006
*/
-public interface Response<T> extends Future
+public interface Response<T> extends Future<T>
{
- /**
- * Gets the contained response context.
- * @return The contained response context. May be null if a response is not yet available.
- */
- public abstract Map<String, Object> getContext();
-}
\ No newline at end of file
+ /** Gets the contained response context.
+ *
+ * @return The contained response context. May be <code>null</code> if a
+ * response is not yet available.
+ *
+ **/
+ Map<String, Object> getContext();
+}
Modified: trunk/src/main/java/javax/xml/ws/ResponseWrapper.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/ResponseWrapper.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/ResponseWrapper.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -21,6 +21,7 @@
*/
package javax.xml.ws;
+import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@@ -38,13 +39,24 @@
* @author Thomas.Diesler(a)jboss.com
* @since 03-May-2006
*/
-@Target( { ElementType.METHOD })
-@Retention(value = RetentionPolicy.RUNTIME)
+(a)Target(ElementType.METHOD)
+(a)Retention(RetentionPolicy.RUNTIME)
+@Documented
public @interface ResponseWrapper
{
- String localName() default "";
- String targetNamespace() default "";
+ /**
+ * Elements local name.
+ **/
+ public String localName() default "";
- String className() default "";
-}
\ No newline at end of file
+ /**
+ * Elements namespace name.
+ **/
+ public String targetNamespace() default "";
+
+ /**
+ * Response wrapper bean name.
+ **/
+ public String className() default "";
+}
Modified: trunk/src/main/java/javax/xml/ws/ServiceMode.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/ServiceMode.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/ServiceMode.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -21,6 +21,7 @@
*/
package javax.xml.ws;
+import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
@@ -34,10 +35,17 @@
* @author Thomas.Diesler(a)jboss.com
* @since 03-May-2006
*/
+@Target( { ElementType.TYPE })
+(a)Retention(RetentionPolicy.RUNTIME)
@Inherited
-@Target( { ElementType.TYPE })
-@Retention(value = RetentionPolicy.RUNTIME)
+@Documented
public @interface ServiceMode
{
- Service.Mode value() default Service.Mode.PAYLOAD;
-}
\ No newline at end of file
+ /**
+ * Service mode. PAYLOAD indicates that the Provider implementation
+ * wishes to work with protocol message payloads only. MESSAGE indicates
+ * that the Provider implementation wishes to work with entire protocol
+ * messages.
+ **/
+ public Service.Mode value() default Service.Mode.PAYLOAD;
+}
Modified: trunk/src/main/java/javax/xml/ws/WebEndpoint.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/WebEndpoint.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/WebEndpoint.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -21,6 +21,7 @@
*/
package javax.xml.ws;
+import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@@ -39,9 +40,12 @@
* @since 03-May-2006
*/
@Target( { ElementType.METHOD })
-@Retention(value = RetentionPolicy.RUNTIME)
+(a)Retention(RetentionPolicy.RUNTIME)
+@Documented
public @interface WebEndpoint
{
-
+ /**
+ * The local name of the endpoint.
+ **/
String name() default "";
-}
\ No newline at end of file
+}
Modified: trunk/src/main/java/javax/xml/ws/WebFault.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/WebFault.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/WebFault.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -21,6 +21,7 @@
*/
package javax.xml.ws;
+import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@@ -34,13 +35,22 @@
* @since 03-May-2006
*/
@Target( { ElementType.TYPE })
-@Retention(value = RetentionPolicy.RUNTIME)
+(a)Retention(RetentionPolicy.RUNTIME)
+@Documented
public @interface WebFault
{
+ /**
+ * Elements local name.
+ **/
+ public String name() default "";
- public abstract String name() default "";
+ /**
+ * Elements namespace name.
+ **/
+ public String targetNamespace() default "";
- public abstract String targetNamespace() default "";
-
- public abstract String faultBean() default "";
-}
\ No newline at end of file
+ /**
+ * Fault bean name.
+ **/
+ public String faultBean() default "";
+}
Modified: trunk/src/main/java/javax/xml/ws/WebServiceClient.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/WebServiceClient.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/WebServiceClient.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -21,6 +21,7 @@
*/
package javax.xml.ws;
+import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@@ -39,13 +40,22 @@
* @since 03-May-2006
*/
@Target( { ElementType.TYPE })
-@Retention(value = RetentionPolicy.RUNTIME)
+(a)Retention(RetentionPolicy.RUNTIME)
+@Documented
public @interface WebServiceClient
{
-
+ /**
+ * The local name of the Web service.
+ **/
String name() default "";
+ /**
+ * The namespace for the Web service.
+ **/
String targetNamespace() default "";
+ /**
+ * The location of the WSDL document for the service (a URL).
+ **/
String wsdlLocation() default "";
-}
\ No newline at end of file
+}
Modified: trunk/src/main/java/javax/xml/ws/WebServiceContext.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/WebServiceContext.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/WebServiceContext.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -37,9 +37,54 @@
public interface WebServiceContext
{
- MessageContext getMessageContext();
+ /**
+ * Returns the MessageContext for the request being served
+ * at the time this method is called. Only properties with
+ * APPLICATION scope will be visible to the application.
+ *
+ * @return MessageContext The message context.
+ *
+ * @throws IllegalStateException This exception is thrown
+ * if the method is called while no request is
+ * being serviced.
+ *
+ * @see javax.xml.ws.handler.MessageContext
+ * @see javax.xml.ws.handler.MessageContext.Scope
+ * @see java.lang.IllegalStateException
+ **/
+ public MessageContext getMessageContext();
- Principal getUserPrincipal();
+ /**
+ * Returns the Principal that identifies the sender
+ * of the request currently being serviced. If the
+ * sender has not been authenticated, the method
+ * returns <code>null</code>.
+ *
+ * @return Principal The principal object.
+ *
+ * @throws IllegalStateException This exception is thrown
+ * if the method is called while no request is
+ * being serviced.
+ *
+ * @see java.security.Principal
+ * @see java.lang.IllegalStateException
+ **/
+ public Principal getUserPrincipal();
- boolean isUserInRole(String s);
-}
\ No newline at end of file
+ /**
+ * Returns a boolean indicating whether the
+ * authenticated user is included in the specified
+ * logical role. If the user has not been
+ * authenticated, the method returns </code>false</code>.
+ *
+ * @param role A <code>String</code> specifying the name of the role
+ *
+ * @return a <code>boolean</code> indicating whether
+ * the sender of the request belongs to a given role
+ *
+ * @throws IllegalStateException This exception is thrown
+ * if the method is called while no request is
+ * being serviced.
+ **/
+ public boolean isUserInRole(String role);
+}
Modified: trunk/src/main/java/javax/xml/ws/WebServiceException.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/WebServiceException.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/WebServiceException.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -32,22 +32,50 @@
*/
public class WebServiceException extends RuntimeException
{
+ /** Constructs a new exception with <code>null</code> as its
+ * detail message. The cause is not initialized.
+ **/
public WebServiceException()
{
+ super();
}
+ /** Constructs a new exception with the specified detail
+ * message. The cause is not initialized.
+ * @param message The detail message which is later
+ * retrieved using the getMessage method
+ **/
public WebServiceException(String message)
{
super(message);
}
- public WebServiceException(Throwable cause)
+ /** Constructs a new exception with the specified detail
+ * message and cause.
+ *
+ * @param message The detail message which is later retrieved
+ * using the getMessage method
+ * @param cause The cause which is saved for the later
+ * retrieval throw by the getCause method
+ **/
+ public WebServiceException(String message, Throwable cause)
{
- super(cause);
+ super(message, cause);
}
- public WebServiceException(String message, Throwable cause)
+ /** Constructs a new WebServiceException with the specified cause
+ * and a detail message of <tt>(cause==null ? null :
+ * cause.toString())</tt> (which typically contains the
+ * class and detail message of <tt>cause</tt>).
+ *
+ * @param cause The cause which is saved for the later
+ * retrieval throw by the getCause method.
+ * (A <tt>null</tt> value is permitted, and
+ * indicates that the cause is nonexistent or
+ * unknown.)
+ **/
+ public WebServiceException(Throwable cause)
{
- super(message, cause);
+ super(cause);
}
}
Modified: trunk/src/main/java/javax/xml/ws/WebServicePermission.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/WebServicePermission.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/WebServicePermission.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -24,7 +24,22 @@
import java.security.BasicPermission;
/**
- *
+ * This class defines web service permissions.
+ * <p>
+ * Web service Permissions are identified by name (also referred to as
+ * a "target name") alone. There are no actions associated
+ * with them.
+ * <p>
+ * The following permission target name is defined:
+ * <p>
+ * <dl>
+ * <dt>publishEndpoint
+ * </dl>
+ * <p>
+ * The <code>publishEndpoint</code> permission allows publishing a
+ * web service endpoint using the <code>publish</code> methods
+ * defined by the <code>javax.xml.ws.Endpoint</code> class.
+ *
* @author Thomas.Diesler(a)jboss.com
* @since 03-May-2006
*/
@@ -32,13 +47,27 @@
{
private static final long serialVersionUID = 0xfdf79e1746fde514L;
+ /**
+ * Creates a new permission with the specified name.
+ *
+ * @param name the name of the <code>WebServicePermission</code>
+ */
public WebServicePermission(String name)
{
super(name);
}
+ /**
+ * Creates a new permission with the specified name and actions.
+ *
+ * The <code>actions</code> parameter is currently unused and
+ * it should be <code>null</code>.
+ *
+ * @param name the name of the <code>WebServicePermission</code>
+ * @param actions should be <code>null</code>
+ */
public WebServicePermission(String name, String actions)
{
super(name, actions);
}
-}
\ No newline at end of file
+}
Modified: trunk/src/main/java/javax/xml/ws/WebServiceProvider.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/WebServiceProvider.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/WebServiceProvider.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -21,6 +21,7 @@
*/
package javax.xml.ws;
+import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@@ -32,16 +33,28 @@
* @author Thomas.Diesler(a)jboss.com
* @since 03-May-2006
*/
-@Target( { ElementType.TYPE })
-@Retention(value = RetentionPolicy.RUNTIME)
+(a)Target(ElementType.TYPE)
+(a)Retention(RetentionPolicy.RUNTIME)
+@Documented
public @interface WebServiceProvider
{
-
+ /**
+ * Location of the WSDL description for the service.
+ */
String wsdlLocation() default "";
+ /**
+ * Service name.
+ */
String serviceName() default "";
+ /**
+ * Target namespace for the service
+ */
String targetNamespace() default "";
+ /**
+ * Port name.
+ */
String portName() default "";
-}
\ No newline at end of file
+}
Modified: trunk/src/main/java/javax/xml/ws/WebServiceRef.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/WebServiceRef.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/WebServiceRef.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -21,6 +21,7 @@
*/
package javax.xml.ws;
+import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@@ -36,17 +37,56 @@
* @since 03-May-2006
*/
@Target( { ElementType.TYPE, ElementType.METHOD, ElementType.FIELD })
-@Retention(value = RetentionPolicy.RUNTIME)
+(a)Retention(RetentionPolicy.RUNTIME)
+@Documented
public @interface WebServiceRef
{
+ /**
+ * The JNDI name of the resource. For field annotations,
+ * the default is the field name. For method annotations,
+ * the default is the JavaBeans property name corresponding
+ * to the method. For class annotations, there is no default
+ * and this must be specified.
+ */
+ String name() default "";
- public abstract String name() default "";
+ /**
+ * The Java type of the resource. For field annotations,
+ * the default is the type of the field. For method annotations,
+ * the default is the type of the JavaBeans property.
+ * For class annotations, there is no default and this must be
+ * specified.
+ */
+ Class type() default Object.class;
- public abstract Class type() default Object.class;
+ /**
+ * A product specific name that this resource should be mapped to.
+ * The name of this resource, as defined by the <code>name</code>
+ * element or defaulted, is a name that is local to the application
+ * component using the resource. (It's a name in the JNDI
+ * <code>java:comp/env</code> namespace.) Many application servers
+ * provide a way to map these local names to names of resources
+ * known to the application server. This mapped name is often a
+ * <i>global</i> JNDI name, but may be a name of any form. <p>
+ *
+ * Application servers are not required to support any particular
+ * form or type of mapped name, nor the ability to use mapped names.
+ * The mapped name is product-dependent and often installation-dependent.
+ * No use of a mapped name is portable.
+ */
+ String mappedName() default "";
- public abstract String mappedName() default "";
+ /**
+ * The service class, always a type extending
+ * <code>javax.xml.ws.Service</code>. This element must be specified
+ * whenever the type of the reference is a service endpoint interface.
+ */
+ Class value() default Object.class;
- public abstract Class value() default Object.class;
-
- public abstract String wsdlLocation() default "";
-}
\ No newline at end of file
+ /**
+ * A URL pointing to the WSDL document for the web service.
+ * If not specified, the WSDL location specified by annotations
+ * on the resource type is used instead.
+ */
+ String wsdlLocation() default "";
+}
Added: trunk/src/main/java/javax/xml/ws/WebServiceRefs.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/WebServiceRefs.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/WebServiceRefs.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -0,0 +1,47 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package javax.xml.ws;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Target;
+import java.lang.annotation.Retention;
+import static java.lang.annotation.ElementType.*;
+import static java.lang.annotation.RetentionPolicy.*;
+
+/**
+ * The <code>WebServiceRefs</code> annotation allows
+ * multiple web service references to be declared at the
+ * class level.
+ *
+ * @author Thomas.Diesler(a)jboss.com
+ * @since 03-May-2006
+ */
+@Documented
+@Retention(RUNTIME)
+@Target(TYPE)
+public @interface WebServiceRefs
+{
+ /**
+ * Array used for multiple web service reference declarations.
+ */
+ WebServiceRef[] value();
+}
Property changes on: trunk/src/main/java/javax/xml/ws/WebServiceRefs.java
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: trunk/src/main/java/javax/xml/ws/addressing/Action.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/addressing/Action.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/addressing/Action.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,24 +1,24 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package javax.xml.ws.addressing;
//$Id$
@@ -29,15 +29,15 @@
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
-
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
-public @interface Action {
+public @interface Action
+{
- String input() default "##default";
+ String input() default "##default";
- String output() default "##default";
+ String output() default "##default";
- String[] fault() default "##default";
+ String[] fault() default "##default";
}
Modified: trunk/src/main/java/javax/xml/ws/addressing/AddressingBuilder.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/addressing/AddressingBuilder.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/addressing/AddressingBuilder.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -70,7 +70,6 @@
log.warn("Could not create and instance of " + name + " trying " + DEFAULT_ADDRESSING_BUILDER);
}
-
// default builder
return newInstance(DEFAULT_ADDRESSING_BUILDER, classLoader);
}
@@ -99,7 +98,7 @@
throw new AddressingException("Provider " + className + " could not be instantiated: " + x, x);
}
}
-
+
public abstract AttributedURI newURI(URI uri);
public abstract AttributedURI newURI(String uri) throws URISyntaxException;
Modified: trunk/src/main/java/javax/xml/ws/addressing/AddressingConstants.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/addressing/AddressingConstants.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/addressing/AddressingConstants.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -63,7 +63,7 @@
// [TODO] Add this method
QName getReferenceParametersQName();
-
+
QName getMetadataQName();
QName getAddressQName();
Modified: trunk/src/main/java/javax/xml/ws/addressing/EndpointReference.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/addressing/EndpointReference.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/addressing/EndpointReference.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -21,7 +21,6 @@
*/
package javax.xml.ws.addressing;
-
//$Id$
public interface EndpointReference extends AddressingType, AttributeExtensible, ElementExtensible
Modified: trunk/src/main/java/javax/xml/ws/addressing/FaultAction.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/addressing/FaultAction.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/addressing/FaultAction.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -29,11 +29,11 @@
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
-
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
-public @interface FaultAction {
+public @interface FaultAction
+{
Class className();
Modified: trunk/src/main/java/javax/xml/ws/handler/MessageContext.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/handler/MessageContext.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/handler/MessageContext.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -54,7 +54,7 @@
public static final String SERVLET_CONTEXT = "javax.xml.ws.servlet.context";
public static final String QUERY_STRING = "javax.xml.ws.http.request.querystring";
public static final String PATH_INFO = "javax.xml.ws.http.request.pathinfo";
-
+
public enum Scope
{
APPLICATION, HANDLER;
Modified: trunk/src/main/java/javax/xml/ws/soap/SOAPBinding.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/soap/SOAPBinding.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/soap/SOAPBinding.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -38,7 +38,7 @@
{
/** A constant representing the identity of the SOAP 1.1 over HTTP binding. */
public static String SOAP11HTTP_BINDING = "http://schemas.xmlsoap.org/wsdl/soap/http";
-
+
/** A constant representing the identity of the SOAP 1.2 over HTTP binding. */
public static String SOAP12HTTP_BINDING = "http://www.w3.org/2003/05/soap/bindings/HTTP/";
Modified: trunk/src/main/java/javax/xml/ws/spi/Provider.java
===================================================================
--- trunk/src/main/java/javax/xml/ws/spi/Provider.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/javax/xml/ws/spi/Provider.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -67,7 +67,7 @@
}
}
- public abstract ServiceDelegate createServiceDelegate(URL url, QName qname, Class class1);
+ public abstract ServiceDelegate createServiceDelegate(URL url, QName serviceName, Class class1);
/**
* Creates an endpoint object with the provided binding and implementation object.
Modified: trunk/src/main/java/org/jboss/ws/deployment/AnnotationsMetaDataBuilder.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/deployment/AnnotationsMetaDataBuilder.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/org/jboss/ws/deployment/AnnotationsMetaDataBuilder.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -82,7 +82,7 @@
{
UnifiedMetaData wsMetaData = serviceMetaData.getUnifiedMetaData();
Thread.currentThread().setContextClassLoader(wsMetaData.getClassLoader());
- String serviceName = serviceMetaData.getQName().getLocalPart();
+ String serviceName = serviceMetaData.getServiceName().getLocalPart();
JavaToWSDL javaToWSDL = new JavaToWSDL(Constants.NS_WSDL11);
javaToWSDL.setUnifiedMetaData(wsMetaData);
Modified: trunk/src/main/java/org/jboss/ws/deployment/JAXWSClientMetaDataBuilder.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/deployment/JAXWSClientMetaDataBuilder.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/org/jboss/ws/deployment/JAXWSClientMetaDataBuilder.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -71,19 +71,19 @@
/** Build from WSDL and jaxrpc-mapping.xml
*/
- public ServiceMetaData buildMetaData(QName serviceQName, URL wsdlURL)
+ public ServiceMetaData buildMetaData(QName serviceName, URL wsdlURL)
{
if (wsdlURL == null)
throw new IllegalArgumentException("Invalid wsdlURL: " + wsdlURL);
- log.debug("START buildMetaData: [service=" + serviceQName + "]");
+ log.debug("START buildMetaData: [service=" + serviceName + "]");
try
{
UnifiedMetaData wsMetaData = new UnifiedMetaData();
wsMetaData.setResourceLoader(resourceLoader);
wsMetaData.setClassLoader(classLoader);
- ServiceMetaData serviceMetaData = new ServiceMetaData(wsMetaData, serviceQName);
+ ServiceMetaData serviceMetaData = new ServiceMetaData(wsMetaData, serviceName);
wsMetaData.addService(serviceMetaData);
serviceMetaData.setWsdlFile(wsdlURL.toExternalForm());
@@ -111,24 +111,24 @@
private void buildMetaDataInternal(ServiceMetaData serviceMetaData, WSDLDefinitions wsdlDefinitions) throws IOException
{
- QName serviceQName = serviceMetaData.getQName();
+ QName serviceName = serviceMetaData.getServiceName();
// Get the WSDL service
WSDLService wsdlService = null;
- if (serviceQName == null)
+ if (serviceName == null)
{
if (wsdlDefinitions.getServices().length != 1)
throw new IllegalArgumentException("Expected a single service element");
wsdlService = wsdlDefinitions.getServices()[0];
- serviceMetaData.setQName(wsdlService.getQName());
+ serviceMetaData.setServiceName(wsdlService.getQName());
}
else
{
- wsdlService = wsdlDefinitions.getService(new NCName(serviceQName.getLocalPart()));
+ wsdlService = wsdlDefinitions.getService(new NCName(serviceName.getLocalPart()));
}
if (wsdlService == null)
- throw new IllegalArgumentException("Cannot obtain wsdl service: " + serviceQName);
+ throw new IllegalArgumentException("Cannot obtain wsdl service: " + serviceName);
// Build endpoint meta data
for (WSDLEndpoint wsdlEndpoint : wsdlService.getEndpoints())
Modified: trunk/src/main/java/org/jboss/ws/deployment/JSR109ClientMetaDataBuilder.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/deployment/JSR109ClientMetaDataBuilder.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/org/jboss/ws/deployment/JSR109ClientMetaDataBuilder.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -148,7 +148,7 @@
private void buildMetaDataInternal(ServiceMetaData serviceMetaData, WSDLDefinitions wsdlDefinitions, JavaWsdlMapping javaWsdlMapping,
UnifiedServiceRefMetaData serviceRefMetaData) throws IOException
{
- QName serviceQName = serviceMetaData.getQName();
+ QName serviceQName = serviceMetaData.getServiceName();
// Get the WSDL service
WSDLService wsdlService = null;
@@ -158,7 +158,7 @@
throw new IllegalArgumentException("Expected a single service element");
wsdlService = wsdlDefinitions.getServices()[0];
- serviceMetaData.setQName(wsdlService.getQName());
+ serviceMetaData.setServiceName(wsdlService.getQName());
}
else
{
Modified: trunk/src/main/java/org/jboss/ws/deployment/JSR109ServerMetaDataBuilder.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/deployment/JSR109ServerMetaDataBuilder.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/org/jboss/ws/deployment/JSR109ServerMetaDataBuilder.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -126,7 +126,7 @@
throw new WSException("Cannot find port in wsdl: " + portName);
// set service name
- serviceMetaData.setQName(wsdlEndpoint.getWsdlService().getQName());
+ serviceMetaData.setServiceName(wsdlEndpoint.getWsdlService().getQName());
QName interfaceQName = wsdlEndpoint.getInterface().getQName();
ServerEndpointMetaData sepMetaData = new ServerEndpointMetaData(serviceMetaData, portName, interfaceQName, Type.JAXRPC);
Modified: trunk/src/main/java/org/jboss/ws/deployment/JSR181MetaDataBuilder.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/deployment/JSR181MetaDataBuilder.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/org/jboss/ws/deployment/JSR181MetaDataBuilder.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -884,7 +884,7 @@
{
try
{
- String serviceName = serviceMetaData.getQName().getLocalPart();
+ String serviceName = serviceMetaData.getServiceName().getLocalPart();
WSDLGenerator generator = new JAXBWSDLGenerator(getJAXBContext(epMetaData));
WSDLDefinitions wsdlDefinitions = generator.generate(serviceMetaData);
Copied: trunk/src/main/java/org/jboss/ws/integration/jboss/WebServiceRefDeployer.java (from rev 1301, branches/tdiesler/trunk/src/main/java/org/jboss/ws/integration/jboss/WebServiceRefDeployer.java)
Modified: trunk/src/main/java/org/jboss/ws/jaxrpc/ParameterWrapping.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/jaxrpc/ParameterWrapping.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/org/jboss/ws/jaxrpc/ParameterWrapping.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -292,7 +292,7 @@
if (wrappedParameters == null)
throw new WSException("Cannot generate a type when their is no wrapped parameters");
- String serviceName = serviceMetaData.getQName().getLocalPart();
+ String serviceName = serviceMetaData.getServiceName().getLocalPart();
String parameterName = pmd.getXmlName().getLocalPart();
String endpointName = endpointMetaData.getQName().getLocalPart();
String packageName = endpointMetaData.getServiceEndpointInterface().getPackage().getName();
Modified: trunk/src/main/java/org/jboss/ws/jaxrpc/ServiceImpl.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/jaxrpc/ServiceImpl.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/org/jboss/ws/jaxrpc/ServiceImpl.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -135,7 +135,7 @@
*/
public QName getServiceName()
{
- return serviceMetaData.getQName();
+ return serviceMetaData.getServiceName();
}
/**
Copied: trunk/src/main/java/org/jboss/ws/jaxws/ServiceObjectFactory.java (from rev 1301, branches/tdiesler/trunk/src/main/java/org/jboss/ws/jaxws/ServiceObjectFactory.java)
Copied: trunk/src/main/java/org/jboss/ws/jaxws/ServiceReferenceable.java (from rev 1301, branches/tdiesler/trunk/src/main/java/org/jboss/ws/jaxws/ServiceReferenceable.java)
Modified: trunk/src/main/java/org/jboss/ws/jaxws/client/DispatchImpl.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/jaxws/client/DispatchImpl.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/org/jboss/ws/jaxws/client/DispatchImpl.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -97,12 +97,12 @@
initDispatch();
}
- public Object invoke(Object obj)
+ public T invoke(T obj)
{
- Object retObj = null;
+ T retObj = null;
try
{
- retObj = invokeInternal(obj, getResponseContext());
+ retObj = (T)invokeInternal(obj, getResponseContext());
}
catch (Exception ex)
{
@@ -129,7 +129,7 @@
return response;
}
- public Future invokeAsync(Object obj, AsyncHandler handler)
+ public Future invokeAsync(T obj, AsyncHandler<T> handler)
{
ResponseImpl response = new ResponseImpl();
Runnable task = new AsyncRunnable(response, handler, obj);
Modified: trunk/src/main/java/org/jboss/ws/jaxws/handler/HandlerDelegateJAXWS.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/jaxws/handler/HandlerDelegateJAXWS.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/org/jboss/ws/jaxws/handler/HandlerDelegateJAXWS.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -135,7 +135,7 @@
private PortInfo getPortInfo(EndpointMetaData epMetaData)
{
- QName serviceName = epMetaData.getServiceMetaData().getQName();
+ QName serviceName = epMetaData.getServiceMetaData().getServiceName();
QName portName = epMetaData.getQName();
String bindingId = epMetaData.getBindingId();
PortInfo info = new PortInfoImpl(serviceName, portName, bindingId);
Modified: trunk/src/main/java/org/jboss/ws/jaxws/handler/HandlerResolverImpl.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/jaxws/handler/HandlerResolverImpl.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/org/jboss/ws/jaxws/handler/HandlerResolverImpl.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -206,7 +206,7 @@
UnifiedMetaData wsMetaData = epMetaData.getServiceMetaData().getUnifiedMetaData();
for (ServiceMetaData smd : wsMetaData.getServices())
{
- QName qname = smd.getQName();
+ QName qname = smd.getServiceName();
String nsURI = qname.getNamespaceURI();
String localPart = qname.getLocalPart();
if (nsURI.equals(namespaceURI) && localPart.startsWith(localPattern))
@@ -220,7 +220,7 @@
UnifiedMetaData wsMetaData = epMetaData.getServiceMetaData().getUnifiedMetaData();
for (ServiceMetaData smd : wsMetaData.getServices())
{
- QName qname = smd.getQName();
+ QName qname = smd.getServiceName();
if (services.equals(qname))
{
infos.add(new PortInfoImpl(qname, null, null));
Modified: trunk/src/main/java/org/jboss/ws/jaxws/handler/PortInfoImpl.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/jaxws/handler/PortInfoImpl.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/org/jboss/ws/jaxws/handler/PortInfoImpl.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -45,7 +45,7 @@
public PortInfoImpl(EndpointMetaData epMetaData)
{
- this.serviceName = epMetaData.getServiceMetaData().getQName();
+ this.serviceName = epMetaData.getServiceMetaData().getServiceName();
this.portName = epMetaData.getQName();
this.bindingID = epMetaData.getBindingId();
}
Modified: trunk/src/main/java/org/jboss/ws/jaxws/spi/ServiceDelegateImpl.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/jaxws/spi/ServiceDelegateImpl.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/org/jboss/ws/jaxws/spi/ServiceDelegateImpl.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -86,9 +86,6 @@
public ServiceDelegateImpl(URL wsdlURL, QName serviceName)
{
- if (serviceName == null)
- throw new IllegalArgumentException("Illegal null service name");
-
JAXWSClientMetaDataBuilder builder = new JAXWSClientMetaDataBuilder();
ClassLoader ctxClassLoader = Thread.currentThread().getContextClassLoader();
@@ -223,7 +220,7 @@
@Override
public QName getServiceName()
{
- return serviceMetaData.getQName();
+ return serviceMetaData.getServiceName();
}
/** Returns an Iterator for the list of QNames of service endpoints grouped by this service */
Modified: trunk/src/main/java/org/jboss/ws/metadata/ServiceMetaData.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/metadata/ServiceMetaData.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/org/jboss/ws/metadata/ServiceMetaData.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -68,7 +68,7 @@
// The service endpoints
private Map<QName, EndpointMetaData> endpoints = new LinkedHashMap<QName, EndpointMetaData>();
- private QName qname;
+ private QName serviceName;
private String wsdName;
private String wsdlFile;
private String jaxrpcMappingFile;
@@ -88,10 +88,10 @@
// The security configuration
private WSSecurityConfiguration securityConfiguration;
- public ServiceMetaData(UnifiedMetaData wsMetaData, QName name)
+ public ServiceMetaData(UnifiedMetaData wsMetaData, QName serviceName)
{
this.wsMetaData = wsMetaData;
- this.qname = name;
+ this.serviceName = serviceName;
this.types = new TypesMetaData(this);
}
@@ -100,14 +100,14 @@
return wsMetaData;
}
- public void setQName(QName name)
+ public void setServiceName(QName serviceName)
{
- this.qname = name;
+ this.serviceName = serviceName;
}
- public QName getQName()
+ public QName getServiceName()
{
- return qname;
+ return serviceName;
}
public String getWebserviceDescriptionName()
@@ -371,14 +371,14 @@
/** Assert that the given namespace is the WSDL's target namespace */
public void assertTargetNamespace(String targetNS)
{
- if (getQName().getNamespaceURI().equals(targetNS) == false)
+ if (getServiceName().getNamespaceURI().equals(targetNS) == false)
throw new WSException("Requested namespace is not WSDL target namespace: " + targetNS);
}
public String toString()
{
StringBuilder buffer = new StringBuilder("\nServiceMetaData:");
- buffer.append("\n qname=" + qname);
+ buffer.append("\n qname=" + serviceName);
buffer.append("\n wsdName=" + wsdName);
buffer.append("\n wsdlFile=" + wsdlFile);
buffer.append("\n jaxrpcFile=" + jaxrpcMappingFile);
Modified: trunk/src/main/java/org/jboss/ws/tools/helpers/JavaToWSDLHelper.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/tools/helpers/JavaToWSDLHelper.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/org/jboss/ws/tools/helpers/JavaToWSDLHelper.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -195,7 +195,7 @@
*/
private void buildServiceMapping(EndpointMetaData endpoint)
{
- QName origQName = endpoint.getServiceMetaData().getQName();
+ QName origQName = endpoint.getServiceMetaData().getServiceName();
String serviceInterfaceName = endpoint.getServiceEndpointInterface().getPackage().getName() + "." + origQName.getLocalPart();
QName serviceQName = new QName(origQName.getNamespaceURI(), origQName.getLocalPart(), "serviceNS");
Modified: trunk/src/main/java/org/jboss/ws/tools/jaxws/WSDLGenerator.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/tools/jaxws/WSDLGenerator.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/main/java/org/jboss/ws/tools/jaxws/WSDLGenerator.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -278,8 +278,8 @@
{
WSDLService wsdlService = new WSDLService(wsdl);
- wsdlService.setQName(service.getQName());
- wsdlService.setName(new NCName(service.getQName().getLocalPart()));
+ wsdlService.setQName(service.getServiceName());
+ wsdlService.setName(new NCName(service.getServiceName().getLocalPart()));
wsdl.addService(wsdlService);
EndpointMetaData endpoint = null;
@@ -309,7 +309,7 @@
wsdl.setWsdlNamespace(Constants.NS_WSDL11);
// One WSDL per service
- String ns = service.getQName().getNamespaceURI();
+ String ns = service.getServiceName().getNamespaceURI();
wsdl.setTargetNamespace(ns);
wsdl.registerNamespaceURI(ns, "tns");
wsdl.registerNamespaceURI(Constants.NS_SOAP11, "soap");
Modified: trunk/src/test/ant/build-jars-jaxws.xml
===================================================================
--- trunk/src/test/ant/build-jars-jaxws.xml 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/test/ant/build-jars-jaxws.xml 2006-10-25 06:35:39 UTC (rev 1302)
@@ -402,6 +402,55 @@
</metainf>
</jar>
+ <!-- jaxws-webserviceref -->
+ <war warfile="${build.test.dir}/libs/jaxws-webserviceref.war" webxml="${build.test.dir}/resources/jaxws/webserviceref/WEB-INF/web.xml">
+ <classes dir="${build.test.dir}/classes">
+ <include name="org/jboss/test/ws/jaxws/webserviceref/TestEndpointImpl.class"/>
+ </classes>
+ </war>
+ <jar destfile="${build.test.dir}/libs/jaxws-webserviceref-client.jar">
+ <fileset dir="${build.test.dir}/classes">
+ <include name="org/jboss/test/ws/jaxws/webserviceref/ApplicationClient.class"/>
+ <include name="org/jboss/test/ws/jaxws/webserviceref/TestEndpointService.class"/>
+ <include name="org/jboss/test/ws/jaxws/webserviceref/TestEndpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/webserviceref/EchoResponse.class"/>
+ <include name="org/jboss/test/ws/jaxws/webserviceref/Echo.class"/>
+ </fileset>
+ <metainf dir="${build.test.dir}/resources/jaxws/webserviceref/META-INF">
+ <include name="application-client.xml"/>
+ <include name="jboss-client.xml"/>
+ <include name="wsdl/**"/>
+ </metainf>
+ <manifest>
+ <attribute name="main-class" value="org.jboss.test.ws.jaxws.webserviceref.ApplicationClient"/>
+ </manifest>
+ </jar>
+ <war destfile="${build.test.dir}/libs/jaxws-webserviceref-servlet-client.war" webxml="${build.test.dir}/resources/jaxws/webserviceref/servlet-client/WEB-INF/web.xml">
+ <classes dir="${build.test.dir}/classes">
+ <include name="org/jboss/test/ws/jaxws/webserviceref/ServletClient.class"/>
+ <include name="org/jboss/test/ws/jaxws/webserviceref/TestEndpointService.class"/>
+ <include name="org/jboss/test/ws/jaxws/webserviceref/TestEndpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/webserviceref/EchoResponse.class"/>
+ <include name="org/jboss/test/ws/jaxws/webserviceref/Echo.class"/>
+ </classes>
+ <webinf dir="${build.test.dir}/resources/jaxws/webserviceref/META-INF">
+ <include name="wsdl/**"/>
+ </webinf>
+ </war>
+ <jar destfile="${build.test.dir}/libs/jaxws-webserviceref-ejb3-client.ejb3">
+ <fileset dir="${build.test.dir}/classes">
+ <include name="org/jboss/test/ws/jaxws/webserviceref/EJB3Client.class"/>
+ <include name="org/jboss/test/ws/jaxws/webserviceref/EJB3Remote.class"/>
+ <include name="org/jboss/test/ws/jaxws/webserviceref/TestEndpointService.class"/>
+ <include name="org/jboss/test/ws/jaxws/webserviceref/TestEndpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/webserviceref/EchoResponse.class"/>
+ <include name="org/jboss/test/ws/jaxws/webserviceref/Echo.class"/>
+ </fileset>
+ <metainf dir="${build.test.dir}/resources/jaxws/webserviceref/META-INF">
+ <include name="wsdl/**"/>
+ </metainf>
+ </jar>
+
<!-- jaxws-wsaddressing-action -->
<war warfile="${build.test.dir}/libs/jaxws-wsaddressing-action-rpc.war" webxml="${build.test.dir}/resources/jaxws/wsaddressing/action/WEB-INF/web.xml">
<classes dir="${build.test.dir}/classes">
Modified: trunk/src/test/build.xml
===================================================================
--- trunk/src/test/build.xml 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/test/build.xml 2006-10-25 06:35:39 UTC (rev 1302)
@@ -175,8 +175,10 @@
<pathelement location="${build.lib.dir}/${jbossws.build}-jboss-integration.jar"/>
<pathelement location="${build.lib.dir}/${jbossws.build}-tomcat-integration.jar"/>
<pathelement location="${jboss.client}/jboss-aop-jdk50-client.jar"/>
+ <pathelement location="${jboss.client}/jboss-ejb3-client.jar"/>
<pathelement location="${jboss.lib}/jboss-system.jar"/>
<pathelement location="${jboss.server.lib}/jboss.jar"/>
+ <pathelement location="${thirdparty.dir}/hibernate3.jar"/>
<pathelement location="${thirdparty.dir}/qdox.jar"/>
<pathelement location="${thirdparty.dir}/xmlunit1.0.jar"/>
<pathelement location="${thirdparty.dir}/policy-1.0.jar"/>
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref (from rev 1301, branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref)
Deleted: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ApplicationClient.java
===================================================================
--- branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ApplicationClient.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ApplicationClient.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,62 +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.test.ws.jaxws.webserviceref;
-
-import java.util.ArrayList;
-
-import javax.xml.ws.WebServiceException;
-import javax.xml.ws.WebServiceRef;
-
-import org.jboss.logging.Logger;
-
-public class ApplicationClient
-{
- // Provide logging
- private static Logger log = Logger.getLogger(ApplicationClient.class);
-
- @WebServiceRef (name ="TestEndpointService", wsdlLocation ="META-INF/wsdl/TestEndpoint.wsdl")
- public static TestEndpointService service;
-
- @WebServiceRef (value = TestEndpointService.class, wsdlLocation ="META-INF/wsdl/TestEndpoint.wsdl")
- public static TestEndpoint port;
-
- public static String retStr;
-
- public static void main(String[] args)
- {
- String inStr = args[0];
- log.info("echo: " + inStr);
-
- ArrayList<TestEndpoint> ports = new ArrayList<TestEndpoint>();
- ports.add((TestEndpoint)service.getPort(TestEndpoint.class));
- ports.add(port);
-
- for (TestEndpoint port : ports)
- {
- String outStr = port.echo(inStr);
- if (inStr.equals(outStr) == false)
- throw new WebServiceException("Invalid echo return: " + inStr);
- }
-
- retStr = inStr;
- }
-}
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ApplicationClient.java (from rev 1301, branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ApplicationClient.java)
Deleted: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Client.java
===================================================================
--- branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Client.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Client.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,66 +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.test.ws.jaxws.webserviceref;
-
-import java.util.ArrayList;
-
-import javax.ejb.Remote;
-import javax.ejb.Stateless;
-import javax.xml.ws.WebServiceException;
-import javax.xml.ws.WebServiceRef;
-
-import org.jboss.annotation.ejb.RemoteBinding;
-import org.jboss.logging.Logger;
-
-// standard EJB3 annotations
-(a)Remote(EJB3Remote.class)
-@RemoteBinding(jndiBinding = "/ejb3/EJB3Client")
-@Stateless
-public class EJB3Client implements EJB3Remote
-{
- // Provide logging
- private static Logger log = Logger.getLogger(EJB3Client.class);
-
- @WebServiceRef (name ="TestEndpointService", wsdlLocation ="META-INF/wsdl/TestEndpoint.wsdl")
- public TestEndpointService service;
-
- @WebServiceRef (value = TestEndpointService.class, wsdlLocation ="META-INF/wsdl/TestEndpoint.wsdl")
- public TestEndpoint port;
-
- public String echo(String inStr)
- {
- log.info("echo: " + inStr);
-
- ArrayList<TestEndpoint> ports = new ArrayList<TestEndpoint>();
- ports.add((TestEndpoint)service.getPort(TestEndpoint.class));
- ports.add(port);
-
- for (TestEndpoint port : ports)
- {
- String outStr = port.echo(inStr);
- if (inStr.equals(outStr) == false)
- throw new WebServiceException("Invalid echo return: " + inStr);
- }
-
- return inStr;
- }
-}
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Client.java (from rev 1301, branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Client.java)
Deleted: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Remote.java
===================================================================
--- branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Remote.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Remote.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,27 +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.test.ws.jaxws.webserviceref;
-
-public interface EJB3Remote
-{
- String echo(String input);
-}
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Remote.java (from rev 1301, branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Remote.java)
Deleted: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/Echo.java
===================================================================
--- branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/Echo.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/Echo.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,62 +0,0 @@
-
-package org.jboss.test.ws.jaxws.webserviceref;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- * <p>Java class for echo complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="echo">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="arg0" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-(a)XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "echo", propOrder = {
- "arg0"
-})
-public class Echo {
-
- @XmlElement(namespace = "http://org.jboss.ws/wsref")
- protected String arg0;
-
- /**
- * Gets the value of the arg0 property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getArg0() {
- return arg0;
- }
-
- /**
- * Sets the value of the arg0 property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setArg0(String value) {
- this.arg0 = value;
- }
-
-}
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/Echo.java (from rev 1301, branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/Echo.java)
Deleted: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EchoResponse.java
===================================================================
--- branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EchoResponse.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EchoResponse.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,62 +0,0 @@
-
-package org.jboss.test.ws.jaxws.webserviceref;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- * <p>Java class for echoResponse complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="echoResponse">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="return" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-(a)XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "echoResponse", propOrder = {
- "_return"
-})
-public class EchoResponse {
-
- @XmlElement(name = "return", namespace = "http://org.jboss.ws/wsref")
- protected String _return;
-
- /**
- * Gets the value of the return property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getReturn() {
- return _return;
- }
-
- /**
- * Sets the value of the return property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setReturn(String value) {
- this._return = value;
- }
-
-}
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EchoResponse.java (from rev 1301, branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EchoResponse.java)
Deleted: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ObjectFactory.java
===================================================================
--- branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ObjectFactory.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ObjectFactory.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,71 +0,0 @@
-
-package org.jboss.test.ws.jaxws.webserviceref;
-
-import javax.xml.bind.JAXBElement;
-import javax.xml.bind.annotation.XmlElementDecl;
-import javax.xml.bind.annotation.XmlRegistry;
-import javax.xml.namespace.QName;
-
-
-/**
- * This object contains factory methods for each
- * Java content interface and Java element interface
- * generated in the org.jboss.test.ws.jaxws.webserviceref package.
- * <p>An ObjectFactory allows you to programatically
- * construct new instances of the Java representation
- * for XML content. The Java representation of XML
- * content can consist of schema derived interfaces
- * and classes representing the binding of schema
- * type definitions, element declarations and model
- * groups. Factory methods for each of these are
- * provided in this class.
- *
- */
-@XmlRegistry
-public class ObjectFactory {
-
- private final static QName _EchoResponse_QNAME = new QName("http://org.jboss.ws/wsref", "echoResponse");
- private final static QName _Echo_QNAME = new QName("http://org.jboss.ws/wsref", "echo");
-
- /**
- * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jboss.test.ws.jaxws.webserviceref
- *
- */
- public ObjectFactory() {
- }
-
- /**
- * Create an instance of {@link EchoResponse }
- *
- */
- public EchoResponse createEchoResponse() {
- return new EchoResponse();
- }
-
- /**
- * Create an instance of {@link Echo }
- *
- */
- public Echo createEcho() {
- return new Echo();
- }
-
- /**
- * Create an instance of {@link JAXBElement }{@code <}{@link EchoResponse }{@code >}}
- *
- */
- @XmlElementDecl(namespace = "http://org.jboss.ws/wsref", name = "echoResponse")
- public JAXBElement<EchoResponse> createEchoResponse(EchoResponse value) {
- return new JAXBElement<EchoResponse>(_EchoResponse_QNAME, EchoResponse.class, null, value);
- }
-
- /**
- * Create an instance of {@link JAXBElement }{@code <}{@link Echo }{@code >}}
- *
- */
- @XmlElementDecl(namespace = "http://org.jboss.ws/wsref", name = "echo")
- public JAXBElement<Echo> createEcho(Echo value) {
- return new JAXBElement<Echo>(_Echo_QNAME, Echo.class, null, value);
- }
-
-}
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ObjectFactory.java (from rev 1301, branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ObjectFactory.java)
Deleted: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ServletClient.java
===================================================================
--- branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ServletClient.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ServletClient.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,66 +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.test.ws.jaxws.webserviceref;
-
-import java.io.IOException;
-import java.util.ArrayList;
-
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import javax.xml.ws.WebServiceException;
-import javax.xml.ws.WebServiceRef;
-
-import org.jboss.logging.Logger;
-
-public class ServletClient extends HttpServlet
-{
- // Provide logging
- private static Logger log = Logger.getLogger(ServletClient.class);
-
- @WebServiceRef (name ="TestEndpointService", wsdlLocation ="WEB-INF/wsdl/TestEndpoint.wsdl")
- public TestEndpointService service;
-
- @WebServiceRef (value = TestEndpointService.class, wsdlLocation ="WEB-INF/wsdl/TestEndpoint.wsdl")
- public TestEndpoint port;
-
- @Override
- protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
- {
- String inStr = req.getParameter("echo");
- log.info("doGet: " + inStr);
-
- ArrayList<TestEndpoint> ports = new ArrayList<TestEndpoint>();
- ports.add((TestEndpoint)service.getPort(TestEndpoint.class));
- ports.add(port);
-
- for (TestEndpoint port : ports)
- {
- String outStr = port.echo(inStr);
- if (inStr.equals(outStr) == false)
- throw new WebServiceException("Invalid echo return: " + inStr);
- }
-
- res.getWriter().print(inStr);
- }
-}
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ServletClient.java (from rev 1301, branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ServletClient.java)
Deleted: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpoint.java
===================================================================
--- branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpoint.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpoint.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,36 +0,0 @@
-
-package org.jboss.test.ws.jaxws.webserviceref;
-
-import javax.jws.WebMethod;
-import javax.jws.WebParam;
-import javax.jws.WebResult;
-import javax.jws.WebService;
-import javax.xml.ws.RequestWrapper;
-import javax.xml.ws.ResponseWrapper;
-
-
-/**
- * This class was generated by the JAXWS SI.
- * JAX-WS RI 2.0_01-b59-fcs
- * Generated source version: 2.0
- *
- */
-@WebService(name = "TestEndpoint", targetNamespace = "http://org.jboss.ws/wsref")
-public interface TestEndpoint {
-
-
- /**
- *
- * @param arg0
- * @return
- * returns java.lang.String
- */
- @WebMethod
- @WebResult(targetNamespace = "http://org.jboss.ws/wsref")
- @RequestWrapper(localName = "echo", targetNamespace = "http://org.jboss.ws/wsref", className = "org.jboss.test.ws.jaxws.webserviceref.Echo")
- @ResponseWrapper(localName = "echoResponse", targetNamespace = "http://org.jboss.ws/wsref", className = "org.jboss.test.ws.jaxws.webserviceref.EchoResponse")
- public String echo(
- @WebParam(name = "arg0", targetNamespace = "http://org.jboss.ws/wsref")
- String arg0);
-
-}
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpoint.java (from rev 1301, branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpoint.java)
Deleted: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointImpl.java
===================================================================
--- branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointImpl.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointImpl.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,47 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.webserviceref;
-
-import javax.jws.WebMethod;
-import javax.jws.WebService;
-
-import org.jboss.logging.Logger;
-
-/**
- * Test the JAXWS annotation: javax.jws.WebServiceRef
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 23-Oct-2006
- */
-@WebService(name = "TestEndpoint", targetNamespace = "http://org.jboss.ws/wsref")
-public class TestEndpointImpl
-{
- // Provide logging
- private static Logger log = Logger.getLogger(TestEndpointImpl.class);
-
- @WebMethod
- public String echo(String input)
- {
- log.info(input);
- return input;
- }
-}
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointImpl.java (from rev 1301, branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointImpl.java)
Deleted: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointService.java
===================================================================
--- branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointService.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointService.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,53 +0,0 @@
-
-package org.jboss.test.ws.jaxws.webserviceref;
-
-import java.net.MalformedURLException;
-import java.net.URL;
-import javax.xml.namespace.QName;
-import javax.xml.ws.Service;
-import javax.xml.ws.WebEndpoint;
-import javax.xml.ws.WebServiceClient;
-
-
-/**
- * This class was generated by the JAXWS SI.
- * JAX-WS RI 2.0_01-b59-fcs
- * Generated source version: 2.0
- *
- */
-@WebServiceClient(name = "TestEndpointService", targetNamespace = "http://org.jboss.ws/wsref", wsdlLocation = "META-INF/wsdl/TestEndpoint.wsdl")
-public class TestEndpointService
- extends Service
-{
-
- private final static URL TESTENDPOINTSERVICE_WSDL_LOCATION;
-
- static {
- URL url = null;
- try {
- url = new URL("file:./resources/jaxws/webserviceref/META-INF/wsdl/TestEndpoint.wsdl");
- } catch (MalformedURLException e) {
- e.printStackTrace();
- }
- TESTENDPOINTSERVICE_WSDL_LOCATION = url;
- }
-
- public TestEndpointService(URL wsdlLocation, QName serviceName) {
- super(wsdlLocation, serviceName);
- }
-
- public TestEndpointService() {
- super(TESTENDPOINTSERVICE_WSDL_LOCATION, new QName("http://org.jboss.ws/wsref", "TestEndpointService"));
- }
-
- /**
- *
- * @return
- * returns TestEndpoint
- */
- @WebEndpoint(name = "TestEndpointPort")
- public TestEndpoint getTestEndpointPort() {
- return (TestEndpoint)super.getPort(new QName("http://org.jboss.ws/wsref", "TestEndpointPort"), TestEndpoint.class);
- }
-
-}
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointService.java (from rev 1301, branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointService.java)
Deleted: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefClientTestCase.java
===================================================================
--- branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefClientTestCase.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefClientTestCase.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,80 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.webserviceref;
-
-import java.io.File;
-import java.net.MalformedURLException;
-import java.net.URL;
-
-import javax.xml.namespace.QName;
-import javax.xml.ws.Service;
-
-import junit.framework.Test;
-
-import org.jboss.ejb3.client.ClientLauncher;
-import org.jboss.test.ws.JBossWSTest;
-import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
-
-/**
- * Test the JAXWS annotation: javax.xml.ws.WebServiceref
- *
- * @author Thomas.Diesler(a)jboss.com
- * @since 23-Oct-2005
- */
-public class WebServiceRefClientTestCase extends JBossWSTest
-{
- public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-webserviceref";
-
- public static Test suite()
- {
- return JBossWSTestSetup.newTestSetup(WebServiceRefClientTestCase.class, "jaxws-webserviceref.war, jaxws-webserviceref-client.jar");
- }
-
- public void testWSDLAccess() throws MalformedURLException
- {
- URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
- WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
- WSDLDefinitions wsdlDefinitions = factory.parse(wsdlURL);
- assertNotNull(wsdlDefinitions);
- }
-
- public void testDynamicProxy() throws Exception
- {
- URL wsdlURL = new File("resources/jaxws/webserviceref/META-INF/wsdl/TestEndpoint.wsdl").toURL();
- QName qname = new QName("http://org.jboss.ws/wsref", "TestEndpointService");
- Service service = Service.create(wsdlURL, qname);
- TestEndpoint port = (TestEndpoint)service.getPort(TestEndpoint.class);
-
- String helloWorld = "Hello World!";
- Object retObj = port.echo(helloWorld);
- assertEquals(helloWorld, retObj);
- }
-
- public void testApplicationClient() throws Exception
- {
- String helloWorld = "Hello World!";
- ClientLauncher.launch(ApplicationClient.class.getName(), "jbossws-client", new String[]{helloWorld});
- assertEquals(helloWorld, ApplicationClient.retStr);
- }
-}
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefClientTestCase.java (from rev 1301, branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefClientTestCase.java)
Deleted: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefEJB3TestCase.java
===================================================================
--- branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefEJB3TestCase.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefEJB3TestCase.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,84 +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.test.ws.jaxws.webserviceref;
-
-import java.io.File;
-import java.net.MalformedURLException;
-import java.net.URL;
-
-import javax.naming.InitialContext;
-import javax.xml.namespace.QName;
-import javax.xml.ws.Service;
-
-import junit.framework.Test;
-
-import org.jboss.test.ws.JBossWSTest;
-import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
-
-/**
- * Test the JAXWS annotation: javax.xml.ws.WebServiceref
- *
- * @author Thomas.Diesler(a)jboss.com
- * @since 23-Oct-2005
- */
-public class WebServiceRefEJB3TestCase extends JBossWSTest
-{
- public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-webserviceref";
-
- public static Test suite()
- {
- return JBossWSTestSetup.newTestSetup(WebServiceRefEJB3TestCase.class, "jaxws-webserviceref.war, jaxws-webserviceref-ejb3-client.ejb3");
- }
-
- public void testWSDLAccess() throws MalformedURLException
- {
- URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
- WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
- WSDLDefinitions wsdlDefinitions = factory.parse(wsdlURL);
- assertNotNull(wsdlDefinitions);
- }
-
- public void testDynamicProxy() throws Exception
- {
- URL wsdlURL = new File("resources/jaxws/webserviceref/META-INF/wsdl/TestEndpoint.wsdl").toURL();
- QName qname = new QName("http://org.jboss.ws/wsref", "TestEndpointService");
- Service service = Service.create(wsdlURL, qname);
- TestEndpoint port = (TestEndpoint)service.getPort(TestEndpoint.class);
-
- String helloWorld = "Hello World!";
- Object retObj = port.echo(helloWorld);
- assertEquals(helloWorld, retObj);
- }
-
- public void testEJB3Client() throws Exception
- {
- InitialContext iniCtx = getInitialContext();
- EJB3Remote ejb3Remote = (EJB3Remote)iniCtx.lookup("/ejb3/EJB3Client");
-
- String helloWorld = "Hello World!";
- Object retObj = ejb3Remote.echo(helloWorld);
- assertEquals(helloWorld, retObj);
-
- }
-}
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefEJB3TestCase.java (from rev 1301, branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefEJB3TestCase.java)
Deleted: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefServletTestCase.java
===================================================================
--- branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefServletTestCase.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefServletTestCase.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,82 +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.test.ws.jaxws.webserviceref;
-
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.InputStreamReader;
-import java.net.MalformedURLException;
-import java.net.URL;
-
-import javax.xml.namespace.QName;
-import javax.xml.ws.Service;
-
-import junit.framework.Test;
-
-import org.jboss.test.ws.JBossWSTest;
-import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
-
-/**
- * Test the JAXWS annotation: javax.xml.ws.WebServiceref
- *
- * @author Thomas.Diesler(a)jboss.com
- * @since 23-Oct-2005
- */
-public class WebServiceRefServletTestCase extends JBossWSTest
-{
- public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-webserviceref";
-
- public static Test suite()
- {
- return JBossWSTestSetup.newTestSetup(WebServiceRefServletTestCase.class, "jaxws-webserviceref.war, jaxws-webserviceref-servlet-client.war");
- }
-
- public void testWSDLAccess() throws MalformedURLException
- {
- URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
- WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
- WSDLDefinitions wsdlDefinitions = factory.parse(wsdlURL);
- assertNotNull(wsdlDefinitions);
- }
-
- public void testDynamicProxy() throws Exception
- {
- URL wsdlURL = new File("resources/jaxws/webserviceref/META-INF/wsdl/TestEndpoint.wsdl").toURL();
- QName qname = new QName("http://org.jboss.ws/wsref", "TestEndpointService");
- Service service = Service.create(wsdlURL, qname);
- TestEndpoint port = (TestEndpoint)service.getPort(TestEndpoint.class);
-
- String helloWorld = "Hello World!";
- Object retObj = port.echo(helloWorld);
- assertEquals(helloWorld, retObj);
- }
-
- public void testServletClient() throws Exception
- {
- URL url = new URL(TARGET_ENDPOINT_ADDRESS + "-servlet-client?echo=HelloWorld");
- BufferedReader br = new BufferedReader(new InputStreamReader(url.openStream()));
- String retStr = br.readLine();
- assertEquals("HelloWorld", retStr);
- }
-}
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefServletTestCase.java (from rev 1301, branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefServletTestCase.java)
Deleted: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/package-info.java
===================================================================
--- branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/package-info.java 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/package-info.java 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,2 +0,0 @@
-(a)javax.xml.bind.annotation.XmlSchema(namespace = "http://org.jboss.ws/wsref")
-package org.jboss.test.ws.jaxws.webserviceref;
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/package-info.java (from rev 1301, branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/package-info.java)
Copied: trunk/src/test/resources/jaxws/webserviceref (from rev 1301, branches/tdiesler/trunk/src/test/resources/jaxws/webserviceref)
Copied: trunk/src/test/resources/jaxws/webserviceref/META-INF (from rev 1301, branches/tdiesler/trunk/src/test/resources/jaxws/webserviceref/META-INF)
Deleted: trunk/src/test/resources/jaxws/webserviceref/META-INF/application-client.xml
===================================================================
--- branches/tdiesler/trunk/src/test/resources/jaxws/webserviceref/META-INF/application-client.xml 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/test/resources/jaxws/webserviceref/META-INF/application-client.xml 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<application-client version="5" xmlns="http://java.sun.com/xml/ns/javaee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application-client_5.xsd">
-
- <display-name>TestEndpointService</display-name>
-
-</application-client>
Copied: trunk/src/test/resources/jaxws/webserviceref/META-INF/application-client.xml (from rev 1301, branches/tdiesler/trunk/src/test/resources/jaxws/webserviceref/META-INF/application-client.xml)
Deleted: trunk/src/test/resources/jaxws/webserviceref/META-INF/jboss-client.xml
===================================================================
--- branches/tdiesler/trunk/src/test/resources/jaxws/webserviceref/META-INF/jboss-client.xml 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/test/resources/jaxws/webserviceref/META-INF/jboss-client.xml 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE jboss-client PUBLIC "-//JBoss//DTD Application Client 5.0//EN" "http://www.jboss.org/j2ee/dtd/jboss-client_5_0.dtd">
-
-<jboss-client>
- <jndi-name>jbossws-client</jndi-name>
-</jboss-client>
Copied: trunk/src/test/resources/jaxws/webserviceref/META-INF/jboss-client.xml (from rev 1301, branches/tdiesler/trunk/src/test/resources/jaxws/webserviceref/META-INF/jboss-client.xml)
Copied: trunk/src/test/resources/jaxws/webserviceref/META-INF/wsdl (from rev 1301, branches/tdiesler/trunk/src/test/resources/jaxws/webserviceref/META-INF/wsdl)
Deleted: trunk/src/test/resources/jaxws/webserviceref/META-INF/wsdl/TestEndpoint.wsdl
===================================================================
--- branches/tdiesler/trunk/src/test/resources/jaxws/webserviceref/META-INF/wsdl/TestEndpoint.wsdl 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/test/resources/jaxws/webserviceref/META-INF/wsdl/TestEndpoint.wsdl 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,50 +0,0 @@
-<!--
- wsimport -d ../../../java -keep -p org.jboss.test.ws.jaxws.webserviceref META-INF/wsdl/TestEndpoint.wsdl
--->
-<definitions name='TestEndpointService' targetNamespace='http://org.jboss.ws/wsref' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://org.jboss.ws/wsref' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
- <types>
- <xs:schema targetNamespace='http://org.jboss.ws/wsref' version='1.0' xmlns:tns='http://org.jboss.ws/wsref' xmlns:xs='http://www.w3.org/2001/XMLSchema'>
- <xs:element name='echo' type='tns:echo'/>
- <xs:element name='echoResponse' type='tns:echoResponse'/>
- <xs:complexType name='echo'>
- <xs:sequence>
- <xs:element form='qualified' minOccurs='0' name='arg0' type='xs:string'/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name='echoResponse'>
- <xs:sequence>
- <xs:element form='qualified' minOccurs='0' name='return' type='xs:string'/>
- </xs:sequence>
- </xs:complexType>
- </xs:schema>
- </types>
- <message name='TestEndpoint_echo'>
- <part element='tns:echo' name='echo'/>
- </message>
- <message name='TestEndpoint_echoResponse'>
- <part element='tns:echoResponse' name='echoResponse'/>
- </message>
- <portType name='TestEndpoint'>
- <operation name='echo' parameterOrder='echo'>
- <input message='tns:TestEndpoint_echo'/>
- <output message='tns:TestEndpoint_echoResponse'/>
- </operation>
- </portType>
- <binding name='TestEndpointBinding' type='tns:TestEndpoint'>
- <soap:binding style='document' transport='http://schemas.xmlsoap.org/soap/http'/>
- <operation name='echo'>
- <soap:operation soapAction=''/>
- <input>
- <soap:body use='literal'/>
- </input>
- <output>
- <soap:body use='literal'/>
- </output>
- </operation>
- </binding>
- <service name='TestEndpointService'>
- <port binding='tns:TestEndpointBinding' name='TestEndpointPort'>
- <soap:address location='http://@jbosstest.host.name@:8080/jaxws-webserviceref/TestEndpoint'/>
- </port>
- </service>
-</definitions>
\ No newline at end of file
Copied: trunk/src/test/resources/jaxws/webserviceref/META-INF/wsdl/TestEndpoint.wsdl (from rev 1301, branches/tdiesler/trunk/src/test/resources/jaxws/webserviceref/META-INF/wsdl/TestEndpoint.wsdl)
Copied: trunk/src/test/resources/jaxws/webserviceref/WEB-INF (from rev 1301, branches/tdiesler/trunk/src/test/resources/jaxws/webserviceref/WEB-INF)
Deleted: trunk/src/test/resources/jaxws/webserviceref/WEB-INF/web.xml
===================================================================
--- branches/tdiesler/trunk/src/test/resources/jaxws/webserviceref/WEB-INF/web.xml 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/test/resources/jaxws/webserviceref/WEB-INF/web.xml 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
-
- <servlet>
- <servlet-name>TestEndpoint</servlet-name>
- <servlet-class>org.jboss.test.ws.jaxws.webserviceref.TestEndpointImpl</servlet-class>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>TestEndpoint</servlet-name>
- <url-pattern>/*</url-pattern>
- </servlet-mapping>
-</web-app>
\ No newline at end of file
Copied: trunk/src/test/resources/jaxws/webserviceref/WEB-INF/web.xml (from rev 1301, branches/tdiesler/trunk/src/test/resources/jaxws/webserviceref/WEB-INF/web.xml)
Copied: trunk/src/test/resources/jaxws/webserviceref/servlet-client (from rev 1301, branches/tdiesler/trunk/src/test/resources/jaxws/webserviceref/servlet-client)
Copied: trunk/src/test/resources/jaxws/webserviceref/servlet-client/WEB-INF (from rev 1301, branches/tdiesler/trunk/src/test/resources/jaxws/webserviceref/servlet-client/WEB-INF)
Deleted: trunk/src/test/resources/jaxws/webserviceref/servlet-client/WEB-INF/web.xml
===================================================================
--- branches/tdiesler/trunk/src/test/resources/jaxws/webserviceref/servlet-client/WEB-INF/web.xml 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/src/test/resources/jaxws/webserviceref/servlet-client/WEB-INF/web.xml 2006-10-25 06:35:39 UTC (rev 1302)
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
-
- <servlet>
- <servlet-name>ServletClient</servlet-name>
- <servlet-class>org.jboss.test.ws.jaxws.webserviceref.ServletClient</servlet-class>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>ServletClient</servlet-name>
- <url-pattern>/*</url-pattern>
- </servlet-mapping>
-</web-app>
\ No newline at end of file
Copied: trunk/src/test/resources/jaxws/webserviceref/servlet-client/WEB-INF/web.xml (from rev 1301, branches/tdiesler/trunk/src/test/resources/jaxws/webserviceref/servlet-client/WEB-INF/web.xml)
Modified: trunk/version.properties
===================================================================
--- trunk/version.properties 2006-10-24 17:58:30 UTC (rev 1301)
+++ trunk/version.properties 2006-10-25 06:35:39 UTC (rev 1302)
@@ -27,6 +27,7 @@
apache-log4j=1.2.8
apache-xalan=j_2.7.0
apache-xerces=2.7.1
+hibernate=3.2.0.CR2
jboss-backport-concurrent=2.1.0.GA
jboss-jbossretro=1.0.2.GA
jbpm-bpel=1.1.Beta2
18 years, 2 months
JBossWS SVN: r1301 - trunk/src/main/java/org/jboss/ws/tools
by jbossws-commits@lists.jboss.org
Author: jason.greene(a)jboss.com
Date: 2006-10-24 13:58:30 -0400 (Tue, 24 Oct 2006)
New Revision: 1301
Added:
trunk/src/main/java/org/jboss/ws/tools/RPCSignature.java
Log:
Add missing class
Added: trunk/src/main/java/org/jboss/ws/tools/RPCSignature.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/tools/RPCSignature.java 2006-10-24 16:04:55 UTC (rev 1300)
+++ trunk/src/main/java/org/jboss/ws/tools/RPCSignature.java 2006-10-24 17:58:30 UTC (rev 1301)
@@ -0,0 +1,101 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.ws.tools;
+
+import java.util.ArrayList;
+import java.util.Collection;
+
+import org.jboss.ws.metadata.wsdl.WSDLInterfaceOperation;
+import org.jboss.ws.metadata.wsdl.WSDLInterfaceOperationInput;
+import org.jboss.ws.metadata.wsdl.WSDLInterfaceOperationOutput;
+import org.jboss.ws.metadata.wsdl.WSDLRPCPart;
+import org.jboss.ws.metadata.wsdl.WSDLRPCSignatureItem;
+import org.jboss.ws.metadata.wsdl.WSDLUtils;
+import org.jboss.ws.metadata.wsdl.WSDLRPCSignatureItem.Direction;
+
+public class RPCSignature
+{
+ private Collection<WSDLRPCPart> parameters = new ArrayList<WSDLRPCPart>();
+ private WSDLRPCPart returnParameter;
+
+ public Collection<WSDLRPCPart> parameters()
+ {
+ return parameters;
+ }
+
+ public WSDLRPCPart returnParameter()
+ {
+ return returnParameter;
+ }
+
+ public RPCSignature(WSDLInterfaceOperation operation)
+ {
+ WSDLInterfaceOperationInput input = WSDLUtils.getWsdl11Input(operation);
+ WSDLInterfaceOperationOutput output = WSDLUtils.getWsdl11Output(operation);
+ for (WSDLRPCSignatureItem item : operation.getRpcSignatureItems())
+ {
+ if (item.getDirection() == Direction.RETURN)
+ {
+ if (output != null)
+ returnParameter = output.getChildPart(item.getName());
+ continue;
+ }
+
+ WSDLRPCPart part = null;
+ if (input != null)
+ part = input.getChildPart(item.getName());
+ if (output != null && part == null)
+ part = output.getChildPart(item.getName());
+
+ if (part != null)
+ parameters.add(part);
+ }
+
+ for (WSDLRPCPart part : input.getChildParts())
+ {
+ if (operation.getRpcSignatureitem(part.getName()) == null)
+ parameters.add(part);
+ }
+
+ if (output != null)
+ {
+ for (WSDLRPCPart part : output.getChildParts())
+ {
+ if (operation.getRpcSignatureitem(part.getName()) == null)
+ {
+ // Filter in-outs
+ if (input.getChildPart(part.getName()) != null)
+ continue;
+
+ if (returnParameter == null)
+ {
+ returnParameter = part;
+ }
+ else
+ {
+ parameters.add(part);
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
Property changes on: trunk/src/main/java/org/jboss/ws/tools/RPCSignature.java
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
18 years, 2 months
JBossWS SVN: r1300 - in branches/tdiesler/trunk/src: main/java/org/jboss/ws/integration/jboss main/java/org/jboss/ws/jaxws test/java/org/jboss/test/ws/jaxws/webserviceref
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2006-10-24 12:04:55 -0400 (Tue, 24 Oct 2006)
New Revision: 1300
Modified:
branches/tdiesler/trunk/src/main/java/org/jboss/ws/integration/jboss/WebServiceRefDeployer.java
branches/tdiesler/trunk/src/main/java/org/jboss/ws/jaxws/ServiceObjectFactory.java
branches/tdiesler/trunk/src/main/java/org/jboss/ws/jaxws/ServiceReferenceable.java
branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ApplicationClient.java
branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Client.java
branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ServletClient.java
Log:
Implement @WebServiceRef(MyPort.class)
Modified: branches/tdiesler/trunk/src/main/java/org/jboss/ws/integration/jboss/WebServiceRefDeployer.java
===================================================================
--- branches/tdiesler/trunk/src/main/java/org/jboss/ws/integration/jboss/WebServiceRefDeployer.java 2006-10-24 15:19:51 UTC (rev 1299)
+++ branches/tdiesler/trunk/src/main/java/org/jboss/ws/integration/jboss/WebServiceRefDeployer.java 2006-10-24 16:04:55 UTC (rev 1300)
@@ -46,9 +46,15 @@
// Hide ctor
}
- public static void setupWebServiceRef(Context ctx, String jndiName, Class type, WebServiceRef ref) throws Exception
+ public static void setupWebServiceRef(Context ctx, String jndiName, Class targetType, WebServiceRef ref) throws Exception
{
- Util.bind(ctx, jndiName, new ServiceReferenceable(type.getName(), ref.wsdlLocation()));
- log.debug("WebServiceRef bound [jndi=" + jndiName + ",type=" + type.getName() + "]");
+ Class serviceType = ref.value();
+ if (serviceType == Object.class)
+ {
+ serviceType = targetType;
+ }
+
+ Util.bind(ctx, jndiName, new ServiceReferenceable(serviceType.getName(), targetType.getName(), ref.wsdlLocation()));
+ log.debug("WebServiceRef bound [jndi=" + jndiName + ",type=" + targetType.getName() + "]");
}
}
Modified: branches/tdiesler/trunk/src/main/java/org/jboss/ws/jaxws/ServiceObjectFactory.java
===================================================================
--- branches/tdiesler/trunk/src/main/java/org/jboss/ws/jaxws/ServiceObjectFactory.java 2006-10-24 15:19:51 UTC (rev 1299)
+++ branches/tdiesler/trunk/src/main/java/org/jboss/ws/jaxws/ServiceObjectFactory.java 2006-10-24 16:04:55 UTC (rev 1300)
@@ -26,6 +26,7 @@
import java.io.File;
import java.lang.reflect.Constructor;
+import java.lang.reflect.Method;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Hashtable;
@@ -36,6 +37,7 @@
import javax.naming.spi.ObjectFactory;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
+import javax.xml.ws.WebServiceException;
import org.jboss.logging.Logger;
@@ -78,28 +80,49 @@
Reference ref = (Reference)obj;
String serviceTypeName = (String)ref.get(ServiceReferenceable.SERVICE_TYPE).getContent();
+ String targetTypeName = (String)ref.get(ServiceReferenceable.TARGET_TYPE).getContent();
String wsdlLocation = (String)ref.get(ServiceReferenceable.WSDL_LOCATION).getContent();
ClassLoader ctxLoader = Thread.currentThread().getContextClassLoader();
Class serviceType = ctxLoader.loadClass(serviceTypeName);
+ Class targetType = ctxLoader.loadClass(targetTypeName);
if (Service.class.isAssignableFrom(serviceType) == false)
throw new IllegalArgumentException("WebServiceRef type '" + serviceType + "' is not assignable to javax.xml.ws.Service");
- Service service;
+ Object target;
URL wsdlURL = getWsdlLocationURL(serviceType, wsdlLocation);
if (wsdlURL != null)
{
Constructor ctor = serviceType.getConstructor(new Class[] { URL.class, QName.class });
- service = (Service)ctor.newInstance(new Object[] { wsdlURL, null });
+ target = (Service)ctor.newInstance(new Object[] { wsdlURL, null });
}
else
{
- service = (Service)serviceType.newInstance();
+ target = (Service)serviceType.newInstance();
}
+
+ if (serviceTypeName.equals(targetTypeName) == false)
+ {
+ Object port = null;
+ for (Method method : serviceType.getMethods())
+ {
+ String methodName = method.getName();
+ Class retType = method.getReturnType();
+ if (methodName.startsWith("get") && targetType.isAssignableFrom(retType))
+ {
+ port = method.invoke(target, new Object[0]);
+ target = port;
+ break;
+ }
+ }
+
+ if (port == null)
+ throw new WebServiceException("Cannot find getter for port type: " + targetTypeName);
+ }
- return service;
+ return target;
}
catch (Exception ex)
{
Modified: branches/tdiesler/trunk/src/main/java/org/jboss/ws/jaxws/ServiceReferenceable.java
===================================================================
--- branches/tdiesler/trunk/src/main/java/org/jboss/ws/jaxws/ServiceReferenceable.java 2006-10-24 15:19:51 UTC (rev 1299)
+++ branches/tdiesler/trunk/src/main/java/org/jboss/ws/jaxws/ServiceReferenceable.java 2006-10-24 16:04:55 UTC (rev 1300)
@@ -42,13 +42,16 @@
{
public static final String WSDL_LOCATION = "WSDL_LOCATION";
public static final String SERVICE_TYPE = "SERVICE_TYPE";
+ public static final String TARGET_TYPE = "TARGET_TYPE";
private String serviceType;
+ private String targetType;
private String wsdlLocation;
- public ServiceReferenceable(String serviceType, String wsdlLocation)
+ public ServiceReferenceable(String serviceType, String targetType, String wsdlLocation)
{
this.serviceType = serviceType;
+ this.targetType = targetType;
this.wsdlLocation = wsdlLocation;
}
@@ -63,6 +66,7 @@
Reference myRef = new Reference(ServiceReferenceable.class.getName(), ServiceObjectFactory.class.getName(), null);
myRef.add(new StringRefAddr(SERVICE_TYPE, serviceType));
+ myRef.add(new StringRefAddr(TARGET_TYPE, targetType));
myRef.add(new StringRefAddr(WSDL_LOCATION, wsdlLocation));
return myRef;
Modified: branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ApplicationClient.java
===================================================================
--- branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ApplicationClient.java 2006-10-24 15:19:51 UTC (rev 1299)
+++ branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ApplicationClient.java 2006-10-24 16:04:55 UTC (rev 1300)
@@ -21,18 +21,42 @@
*/
package org.jboss.test.ws.jaxws.webserviceref;
+import java.util.ArrayList;
+
+import javax.xml.ws.WebServiceException;
import javax.xml.ws.WebServiceRef;
+import org.jboss.logging.Logger;
+
public class ApplicationClient
{
+ // Provide logging
+ private static Logger log = Logger.getLogger(ApplicationClient.class);
+
@WebServiceRef (name ="TestEndpointService", wsdlLocation ="META-INF/wsdl/TestEndpoint.wsdl")
public static TestEndpointService service;
+ @WebServiceRef (value = TestEndpointService.class, wsdlLocation ="META-INF/wsdl/TestEndpoint.wsdl")
+ public static TestEndpoint port;
+
public static String retStr;
public static void main(String[] args)
{
- TestEndpoint port = (TestEndpoint)service.getPort(TestEndpoint.class);
- retStr = port.echo(args[0]);
+ String inStr = args[0];
+ log.info("echo: " + inStr);
+
+ ArrayList<TestEndpoint> ports = new ArrayList<TestEndpoint>();
+ ports.add((TestEndpoint)service.getPort(TestEndpoint.class));
+ ports.add(port);
+
+ for (TestEndpoint port : ports)
+ {
+ String outStr = port.echo(inStr);
+ if (inStr.equals(outStr) == false)
+ throw new WebServiceException("Invalid echo return: " + inStr);
+ }
+
+ retStr = inStr;
}
}
Modified: branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Client.java
===================================================================
--- branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Client.java 2006-10-24 15:19:51 UTC (rev 1299)
+++ branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Client.java 2006-10-24 16:04:55 UTC (rev 1300)
@@ -21,8 +21,11 @@
*/
package org.jboss.test.ws.jaxws.webserviceref;
+import java.util.ArrayList;
+
import javax.ejb.Remote;
import javax.ejb.Stateless;
+import javax.xml.ws.WebServiceException;
import javax.xml.ws.WebServiceRef;
import org.jboss.annotation.ejb.RemoteBinding;
@@ -40,11 +43,24 @@
@WebServiceRef (name ="TestEndpointService", wsdlLocation ="META-INF/wsdl/TestEndpoint.wsdl")
public TestEndpointService service;
+ @WebServiceRef (value = TestEndpointService.class, wsdlLocation ="META-INF/wsdl/TestEndpoint.wsdl")
+ public TestEndpoint port;
+
public String echo(String inStr)
{
log.info("echo: " + inStr);
- TestEndpoint port = (TestEndpoint)service.getPort(TestEndpoint.class);
- String outStr = port.echo(inStr);
- return outStr;
+
+ ArrayList<TestEndpoint> ports = new ArrayList<TestEndpoint>();
+ ports.add((TestEndpoint)service.getPort(TestEndpoint.class));
+ ports.add(port);
+
+ for (TestEndpoint port : ports)
+ {
+ String outStr = port.echo(inStr);
+ if (inStr.equals(outStr) == false)
+ throw new WebServiceException("Invalid echo return: " + inStr);
+ }
+
+ return inStr;
}
}
Modified: branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ServletClient.java
===================================================================
--- branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ServletClient.java 2006-10-24 15:19:51 UTC (rev 1299)
+++ branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ServletClient.java 2006-10-24 16:04:55 UTC (rev 1300)
@@ -22,11 +22,13 @@
package org.jboss.test.ws.jaxws.webserviceref;
import java.io.IOException;
+import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
+import javax.xml.ws.WebServiceException;
import javax.xml.ws.WebServiceRef;
import org.jboss.logging.Logger;
@@ -39,14 +41,26 @@
@WebServiceRef (name ="TestEndpointService", wsdlLocation ="WEB-INF/wsdl/TestEndpoint.wsdl")
public TestEndpointService service;
+ @WebServiceRef (value = TestEndpointService.class, wsdlLocation ="WEB-INF/wsdl/TestEndpoint.wsdl")
+ public TestEndpoint port;
+
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
{
String inStr = req.getParameter("echo");
log.info("doGet: " + inStr);
- TestEndpoint port = (TestEndpoint)service.getPort(TestEndpoint.class);
- String outStr = port.echo(inStr);
- res.getWriter().print(outStr);
+ ArrayList<TestEndpoint> ports = new ArrayList<TestEndpoint>();
+ ports.add((TestEndpoint)service.getPort(TestEndpoint.class));
+ ports.add(port);
+
+ for (TestEndpoint port : ports)
+ {
+ String outStr = port.echo(inStr);
+ if (inStr.equals(outStr) == false)
+ throw new WebServiceException("Invalid echo return: " + inStr);
+ }
+
+ res.getWriter().print(inStr);
}
}
18 years, 2 months
JBossWS SVN: r1299 - in branches/jbossws-1.0/src/main/java/org/jboss/ws: soap xop
by jbossws-commits@lists.jboss.org
Author: heiko.braun(a)jboss.com
Date: 2006-10-24 11:19:51 -0400 (Tue, 24 Oct 2006)
New Revision: 1299
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/soap/SOAPContentElement.java
branches/jbossws-1.0/src/main/java/org/jboss/ws/xop/JBossXBContentAdapter.java
Log:
clean up MTOM transitions
Modified: branches/jbossws-1.0/src/main/java/org/jboss/ws/soap/SOAPContentElement.java
===================================================================
--- branches/jbossws-1.0/src/main/java/org/jboss/ws/soap/SOAPContentElement.java 2006-10-24 15:11:22 UTC (rev 1298)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/soap/SOAPContentElement.java 2006-10-24 15:19:51 UTC (rev 1299)
@@ -972,29 +972,29 @@
*/
public void handleMTOMTransitions()
{
+ // MTOM processing is only required on XOP parameters
+ if( isXOPParameter() == false)
+ return;
- boolean mtomEnabled = isXOPParameter() && XOPContext.isMTOMEnabled();
-
- if (paramMetaData != null && mtomEnabled == false)
+ if ( !XOPContext.isMTOMEnabled() )
{
- // If MTOM is disabled, we force dom expansion.
- // This will inline any XOP include element
- // and remove the attachment part when transitioning.
+ // If MTOM is disabled, we force dom expansion on XOP parameters.
+ // This will inline any XOP include element and remove the attachment part.
// See SOAPFactoryImpl for details.
- log.debug("MTOM disabled: Enforce dom-valid state");
+ log.debug("MTOM disabled: Force inline XOP data");
CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
msgContext.setProperty(CommonMessageContext.ALLOW_EXPAND_TO_DOM, Boolean.TRUE);
expandToDOM();
}
- else if (isDOMValid && mtomEnabled)
+ else if ( isDOMValid && XOPContext.isMTOMEnabled() )
{
// When the DOM representation is valid,
// but MTOM is enabled we need to convert the inlined
// element back to an xop:Include element and create the attachment part
log.debug("MTOM enabled: Restore XOP data");
- XOPContext.restoreXOPDataDOM(this);
+ XOPContext.restoreXOPDataDOM(this);
}
}
Modified: branches/jbossws-1.0/src/main/java/org/jboss/ws/xop/JBossXBContentAdapter.java
===================================================================
--- branches/jbossws-1.0/src/main/java/org/jboss/ws/xop/JBossXBContentAdapter.java 2006-10-24 15:11:22 UTC (rev 1298)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/xop/JBossXBContentAdapter.java 2006-10-24 15:19:51 UTC (rev 1299)
@@ -105,6 +105,11 @@
// may be null when it's actually an encoded request ?!
Class targetClass = ctx.resolvePropertyType();
+ if(null==targetClass) {
+ log.warn("Failed to resolve target property on " + ctx.getParticle());
+ log.debug("Parent particle is " + ctx.getParentParticle());
+ }
+
boolean isRegularMessage = !XOPContext.isXOPMessage();
boolean isSimpleType = (object instanceof byte[]);
boolean doTypesMatch = (targetClass!=null && targetClass.equals(object.getClass()));
@@ -144,7 +149,11 @@
try
{
DataHandler attachmentHandle = (DataHandler)object;
- if(!attachmentHandle.getContentType().equals("application/octet-stream"))
+ String contentType = attachmentHandle.getContentType();
+ log.debug("Adopt DataHandler to " + targetClass +", contentType "+ contentType);
+
+ // TODO: fix me as soon as targetClass info is available
+ if(!contentType.equals("application/octet-stream"))
{
DataHandler dh = new DataHandler(attachmentHandle.getDataSource());
object = dh.getContent();
18 years, 2 months
JBossWS SVN: r1298 - in branches/tdiesler/trunk/src/test: ant java/org/jboss/test/ws/jaxws/webserviceref resources/jaxws/webserviceref resources/jaxws/webserviceref/servlet-client resources/jaxws/webserviceref/servlet-client/WEB-INF
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2006-10-24 11:11:22 -0400 (Tue, 24 Oct 2006)
New Revision: 1298
Added:
branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Client.java
branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Remote.java
branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ServletClient.java
branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefClientTestCase.java
branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefEJB3TestCase.java
branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefServletTestCase.java
branches/tdiesler/trunk/src/test/resources/jaxws/webserviceref/servlet-client/
branches/tdiesler/trunk/src/test/resources/jaxws/webserviceref/servlet-client/WEB-INF/
branches/tdiesler/trunk/src/test/resources/jaxws/webserviceref/servlet-client/WEB-INF/web.xml
Removed:
branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefTestCase.java
Modified:
branches/tdiesler/trunk/src/test/ant/build-jars-jaxws.xml
branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ApplicationClient.java
Log:
Add @WebServiceRef servlet, ejb3 clients
Modified: branches/tdiesler/trunk/src/test/ant/build-jars-jaxws.xml
===================================================================
--- branches/tdiesler/trunk/src/test/ant/build-jars-jaxws.xml 2006-10-24 14:16:21 UTC (rev 1297)
+++ branches/tdiesler/trunk/src/test/ant/build-jars-jaxws.xml 2006-10-24 15:11:22 UTC (rev 1298)
@@ -411,8 +411,11 @@
</war>
<jar destfile="${build.test.dir}/libs/jaxws-webserviceref-client.jar">
<fileset dir="${build.test.dir}/classes">
- <include name="org/jboss/test/ws/jaxws/webserviceref/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/webserviceref/TestEndpointImpl.class"/>
+ <include name="org/jboss/test/ws/jaxws/webserviceref/ApplicationClient.class"/>
+ <include name="org/jboss/test/ws/jaxws/webserviceref/TestEndpointService.class"/>
+ <include name="org/jboss/test/ws/jaxws/webserviceref/TestEndpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/webserviceref/EchoResponse.class"/>
+ <include name="org/jboss/test/ws/jaxws/webserviceref/Echo.class"/>
</fileset>
<metainf dir="${build.test.dir}/resources/jaxws/webserviceref/META-INF">
<include name="application-client.xml"/>
@@ -423,6 +426,31 @@
<attribute name="main-class" value="org.jboss.test.ws.jaxws.webserviceref.ApplicationClient"/>
</manifest>
</jar>
+ <war destfile="${build.test.dir}/libs/jaxws-webserviceref-servlet-client.war" webxml="${build.test.dir}/resources/jaxws/webserviceref/servlet-client/WEB-INF/web.xml">
+ <classes dir="${build.test.dir}/classes">
+ <include name="org/jboss/test/ws/jaxws/webserviceref/ServletClient.class"/>
+ <include name="org/jboss/test/ws/jaxws/webserviceref/TestEndpointService.class"/>
+ <include name="org/jboss/test/ws/jaxws/webserviceref/TestEndpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/webserviceref/EchoResponse.class"/>
+ <include name="org/jboss/test/ws/jaxws/webserviceref/Echo.class"/>
+ </classes>
+ <webinf dir="${build.test.dir}/resources/jaxws/webserviceref/META-INF">
+ <include name="wsdl/**"/>
+ </webinf>
+ </war>
+ <jar destfile="${build.test.dir}/libs/jaxws-webserviceref-ejb3-client.ejb3">
+ <fileset dir="${build.test.dir}/classes">
+ <include name="org/jboss/test/ws/jaxws/webserviceref/EJB3Client.class"/>
+ <include name="org/jboss/test/ws/jaxws/webserviceref/EJB3Remote.class"/>
+ <include name="org/jboss/test/ws/jaxws/webserviceref/TestEndpointService.class"/>
+ <include name="org/jboss/test/ws/jaxws/webserviceref/TestEndpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/webserviceref/EchoResponse.class"/>
+ <include name="org/jboss/test/ws/jaxws/webserviceref/Echo.class"/>
+ </fileset>
+ <metainf dir="${build.test.dir}/resources/jaxws/webserviceref/META-INF">
+ <include name="wsdl/**"/>
+ </metainf>
+ </jar>
<!-- jaxws-wsaddressing-action -->
<war warfile="${build.test.dir}/libs/jaxws-wsaddressing-action-rpc.war" webxml="${build.test.dir}/resources/jaxws/wsaddressing/action/WEB-INF/web.xml">
Modified: branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ApplicationClient.java
===================================================================
--- branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ApplicationClient.java 2006-10-24 14:16:21 UTC (rev 1297)
+++ branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ApplicationClient.java 2006-10-24 15:11:22 UTC (rev 1298)
@@ -23,27 +23,16 @@
import javax.xml.ws.WebServiceRef;
-import org.jboss.logging.Logger;
-
public class ApplicationClient
{
- // Provide logging
- private static Logger log = Logger.getLogger(ApplicationClient.class);
-
@WebServiceRef (name ="TestEndpointService", wsdlLocation ="META-INF/wsdl/TestEndpoint.wsdl")
public static TestEndpointService service;
+ public static String retStr;
+
public static void main(String[] args)
{
- ApplicationClient client = new ApplicationClient();
- String outStr = client.echo("Hello world!");
- log.info(outStr);
- }
-
- public String echo(String inStr)
- {
TestEndpoint port = (TestEndpoint)service.getPort(TestEndpoint.class);
- String outStr = port.echo(inStr);
- return outStr;
+ retStr = port.echo(args[0]);
}
}
Added: branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Client.java
===================================================================
--- branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Client.java 2006-10-24 14:16:21 UTC (rev 1297)
+++ branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Client.java 2006-10-24 15:11:22 UTC (rev 1298)
@@ -0,0 +1,50 @@
+/*
+ * 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.webserviceref;
+
+import javax.ejb.Remote;
+import javax.ejb.Stateless;
+import javax.xml.ws.WebServiceRef;
+
+import org.jboss.annotation.ejb.RemoteBinding;
+import org.jboss.logging.Logger;
+
+// standard EJB3 annotations
+(a)Remote(EJB3Remote.class)
+@RemoteBinding(jndiBinding = "/ejb3/EJB3Client")
+@Stateless
+public class EJB3Client implements EJB3Remote
+{
+ // Provide logging
+ private static Logger log = Logger.getLogger(EJB3Client.class);
+
+ @WebServiceRef (name ="TestEndpointService", wsdlLocation ="META-INF/wsdl/TestEndpoint.wsdl")
+ public TestEndpointService service;
+
+ public String echo(String inStr)
+ {
+ log.info("echo: " + inStr);
+ TestEndpoint port = (TestEndpoint)service.getPort(TestEndpoint.class);
+ String outStr = port.echo(inStr);
+ return outStr;
+ }
+}
Property changes on: branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Client.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Remote.java
===================================================================
--- branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Remote.java 2006-10-24 14:16:21 UTC (rev 1297)
+++ branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Remote.java 2006-10-24 15:11:22 UTC (rev 1298)
@@ -0,0 +1,27 @@
+/*
+ * 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.webserviceref;
+
+public interface EJB3Remote
+{
+ String echo(String input);
+}
Property changes on: branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/EJB3Remote.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ServletClient.java
===================================================================
--- branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ServletClient.java 2006-10-24 14:16:21 UTC (rev 1297)
+++ branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ServletClient.java 2006-10-24 15:11:22 UTC (rev 1298)
@@ -0,0 +1,52 @@
+/*
+ * 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.webserviceref;
+
+import java.io.IOException;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import javax.xml.ws.WebServiceRef;
+
+import org.jboss.logging.Logger;
+
+public class ServletClient extends HttpServlet
+{
+ // Provide logging
+ private static Logger log = Logger.getLogger(ServletClient.class);
+
+ @WebServiceRef (name ="TestEndpointService", wsdlLocation ="WEB-INF/wsdl/TestEndpoint.wsdl")
+ public TestEndpointService service;
+
+ @Override
+ protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
+ {
+ String inStr = req.getParameter("echo");
+ log.info("doGet: " + inStr);
+
+ TestEndpoint port = (TestEndpoint)service.getPort(TestEndpoint.class);
+ String outStr = port.echo(inStr);
+ res.getWriter().print(outStr);
+ }
+}
Property changes on: branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ServletClient.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Copied: branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefClientTestCase.java (from rev 1295, branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefTestCase.java)
===================================================================
--- branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefTestCase.java 2006-10-24 13:50:36 UTC (rev 1295)
+++ branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefClientTestCase.java 2006-10-24 15:11:22 UTC (rev 1298)
@@ -0,0 +1,80 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.webserviceref;
+
+import java.io.File;
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.jboss.ejb3.client.ClientLauncher;
+import org.jboss.test.ws.JBossWSTest;
+import org.jboss.test.ws.JBossWSTestSetup;
+import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
+import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
+
+/**
+ * Test the JAXWS annotation: javax.xml.ws.WebServiceref
+ *
+ * @author Thomas.Diesler(a)jboss.com
+ * @since 23-Oct-2005
+ */
+public class WebServiceRefClientTestCase extends JBossWSTest
+{
+ public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-webserviceref";
+
+ public static Test suite()
+ {
+ return JBossWSTestSetup.newTestSetup(WebServiceRefClientTestCase.class, "jaxws-webserviceref.war, jaxws-webserviceref-client.jar");
+ }
+
+ public void testWSDLAccess() throws MalformedURLException
+ {
+ URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
+ WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
+ WSDLDefinitions wsdlDefinitions = factory.parse(wsdlURL);
+ assertNotNull(wsdlDefinitions);
+ }
+
+ public void testDynamicProxy() throws Exception
+ {
+ URL wsdlURL = new File("resources/jaxws/webserviceref/META-INF/wsdl/TestEndpoint.wsdl").toURL();
+ QName qname = new QName("http://org.jboss.ws/wsref", "TestEndpointService");
+ Service service = Service.create(wsdlURL, qname);
+ TestEndpoint port = (TestEndpoint)service.getPort(TestEndpoint.class);
+
+ String helloWorld = "Hello World!";
+ Object retObj = port.echo(helloWorld);
+ assertEquals(helloWorld, retObj);
+ }
+
+ public void testApplicationClient() throws Exception
+ {
+ String helloWorld = "Hello World!";
+ ClientLauncher.launch(ApplicationClient.class.getName(), "jbossws-client", new String[]{helloWorld});
+ assertEquals(helloWorld, ApplicationClient.retStr);
+ }
+}
Added: branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefEJB3TestCase.java
===================================================================
--- branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefEJB3TestCase.java 2006-10-24 14:16:21 UTC (rev 1297)
+++ branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefEJB3TestCase.java 2006-10-24 15:11:22 UTC (rev 1298)
@@ -0,0 +1,84 @@
+/*
+ * 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.webserviceref;
+
+import java.io.File;
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import javax.naming.InitialContext;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.jboss.test.ws.JBossWSTest;
+import org.jboss.test.ws.JBossWSTestSetup;
+import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
+import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
+
+/**
+ * Test the JAXWS annotation: javax.xml.ws.WebServiceref
+ *
+ * @author Thomas.Diesler(a)jboss.com
+ * @since 23-Oct-2005
+ */
+public class WebServiceRefEJB3TestCase extends JBossWSTest
+{
+ public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-webserviceref";
+
+ public static Test suite()
+ {
+ return JBossWSTestSetup.newTestSetup(WebServiceRefEJB3TestCase.class, "jaxws-webserviceref.war, jaxws-webserviceref-ejb3-client.ejb3");
+ }
+
+ public void testWSDLAccess() throws MalformedURLException
+ {
+ URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
+ WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
+ WSDLDefinitions wsdlDefinitions = factory.parse(wsdlURL);
+ assertNotNull(wsdlDefinitions);
+ }
+
+ public void testDynamicProxy() throws Exception
+ {
+ URL wsdlURL = new File("resources/jaxws/webserviceref/META-INF/wsdl/TestEndpoint.wsdl").toURL();
+ QName qname = new QName("http://org.jboss.ws/wsref", "TestEndpointService");
+ Service service = Service.create(wsdlURL, qname);
+ TestEndpoint port = (TestEndpoint)service.getPort(TestEndpoint.class);
+
+ String helloWorld = "Hello World!";
+ Object retObj = port.echo(helloWorld);
+ assertEquals(helloWorld, retObj);
+ }
+
+ public void testEJB3Client() throws Exception
+ {
+ InitialContext iniCtx = getInitialContext();
+ EJB3Remote ejb3Remote = (EJB3Remote)iniCtx.lookup("/ejb3/EJB3Client");
+
+ String helloWorld = "Hello World!";
+ Object retObj = ejb3Remote.echo(helloWorld);
+ assertEquals(helloWorld, retObj);
+
+ }
+}
Property changes on: branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefEJB3TestCase.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefServletTestCase.java
===================================================================
--- branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefServletTestCase.java 2006-10-24 14:16:21 UTC (rev 1297)
+++ branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefServletTestCase.java 2006-10-24 15:11:22 UTC (rev 1298)
@@ -0,0 +1,82 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.webserviceref;
+
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.InputStreamReader;
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.jboss.test.ws.JBossWSTest;
+import org.jboss.test.ws.JBossWSTestSetup;
+import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
+import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
+
+/**
+ * Test the JAXWS annotation: javax.xml.ws.WebServiceref
+ *
+ * @author Thomas.Diesler(a)jboss.com
+ * @since 23-Oct-2005
+ */
+public class WebServiceRefServletTestCase extends JBossWSTest
+{
+ public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-webserviceref";
+
+ public static Test suite()
+ {
+ return JBossWSTestSetup.newTestSetup(WebServiceRefServletTestCase.class, "jaxws-webserviceref.war, jaxws-webserviceref-servlet-client.war");
+ }
+
+ public void testWSDLAccess() throws MalformedURLException
+ {
+ URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
+ WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
+ WSDLDefinitions wsdlDefinitions = factory.parse(wsdlURL);
+ assertNotNull(wsdlDefinitions);
+ }
+
+ public void testDynamicProxy() throws Exception
+ {
+ URL wsdlURL = new File("resources/jaxws/webserviceref/META-INF/wsdl/TestEndpoint.wsdl").toURL();
+ QName qname = new QName("http://org.jboss.ws/wsref", "TestEndpointService");
+ Service service = Service.create(wsdlURL, qname);
+ TestEndpoint port = (TestEndpoint)service.getPort(TestEndpoint.class);
+
+ String helloWorld = "Hello World!";
+ Object retObj = port.echo(helloWorld);
+ assertEquals(helloWorld, retObj);
+ }
+
+ public void testServletClient() throws Exception
+ {
+ URL url = new URL(TARGET_ENDPOINT_ADDRESS + "-servlet-client?echo=HelloWorld");
+ BufferedReader br = new BufferedReader(new InputStreamReader(url.openStream()));
+ String retStr = br.readLine();
+ assertEquals("HelloWorld", retStr);
+ }
+}
Property changes on: branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefServletTestCase.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Deleted: branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefTestCase.java
===================================================================
--- branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefTestCase.java 2006-10-24 14:16:21 UTC (rev 1297)
+++ branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/WebServiceRefTestCase.java 2006-10-24 15:11:22 UTC (rev 1298)
@@ -1,78 +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.test.ws.jaxws.webserviceref;
-
-import java.io.File;
-import java.net.MalformedURLException;
-import java.net.URL;
-
-import javax.xml.namespace.QName;
-import javax.xml.ws.Service;
-
-import junit.framework.Test;
-
-import org.jboss.ejb3.client.ClientLauncher;
-import org.jboss.test.ws.JBossWSTest;
-import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
-
-/**
- * Test the JAXWS annotation: javax.xml.ws.WebServiceref
- *
- * @author Thomas.Diesler(a)jboss.com
- * @since 23-Oct-2005
- */
-public class WebServiceRefTestCase extends JBossWSTest
-{
- public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-webserviceref";
-
- public static Test suite()
- {
- return JBossWSTestSetup.newTestSetup(WebServiceRefTestCase.class, "jaxws-webserviceref.war, jaxws-webserviceref-client.jar");
- }
-
- public void testWSDLAccess() throws MalformedURLException
- {
- URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
- WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
- WSDLDefinitions wsdlDefinitions = factory.parse(wsdlURL);
- assertNotNull(wsdlDefinitions);
- }
-
- public void testDynamicProxy() throws Exception
- {
- URL wsdlURL = new File("resources/jaxws/webserviceref/META-INF/wsdl/TestEndpoint.wsdl").toURL();
- QName qname = new QName("http://org.jboss.ws/wsref", "TestEndpointService");
- Service service = Service.create(wsdlURL, qname);
- TestEndpoint port = (TestEndpoint)service.getPort(TestEndpoint.class);
-
- String helloWorld = "Hello world!";
- Object retObj = port.echo(helloWorld);
- assertEquals(helloWorld, retObj);
- }
-
- public void testApplicationClient() throws Exception
- {
- ClientLauncher.launch(ApplicationClient.class.getName(), "jbossws-client", new String[0]);
- }
-}
Added: branches/tdiesler/trunk/src/test/resources/jaxws/webserviceref/servlet-client/WEB-INF/web.xml
===================================================================
--- branches/tdiesler/trunk/src/test/resources/jaxws/webserviceref/servlet-client/WEB-INF/web.xml 2006-10-24 14:16:21 UTC (rev 1297)
+++ branches/tdiesler/trunk/src/test/resources/jaxws/webserviceref/servlet-client/WEB-INF/web.xml 2006-10-24 15:11:22 UTC (rev 1298)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+
+ <servlet>
+ <servlet-name>ServletClient</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxws.webserviceref.ServletClient</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>ServletClient</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+</web-app>
\ No newline at end of file
Property changes on: branches/tdiesler/trunk/src/test/resources/jaxws/webserviceref/servlet-client/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
18 years, 2 months
JBossWS SVN: r1297 - branches/jbossws-1.0/src/main/java/org/jboss/ws/eventing/mgmt
by jbossws-commits@lists.jboss.org
Author: heiko.braun(a)jboss.com
Date: 2006-10-24 10:16:21 -0400 (Tue, 24 Oct 2006)
New Revision: 1297
Modified:
branches/jbossws-1.0/src/main/java/org/jboss/ws/eventing/mgmt/SubscriptionManager.java
Log:
removed Naming warning
Modified: branches/jbossws-1.0/src/main/java/org/jboss/ws/eventing/mgmt/SubscriptionManager.java
===================================================================
--- branches/jbossws-1.0/src/main/java/org/jboss/ws/eventing/mgmt/SubscriptionManager.java 2006-10-24 14:06:00 UTC (rev 1296)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/eventing/mgmt/SubscriptionManager.java 2006-10-24 14:16:21 UTC (rev 1297)
@@ -169,7 +169,8 @@
}
catch (NamingException e)
{
- log.warn("Cannot unbind event dispatcher: " + e.toString());
+ //log.warn("Cannot unbind event dispatcher: " + e.toString());
+ // Ignore
}
}
18 years, 2 months