Author: jim.ma
Date: 2010-03-11 05:19:11 -0500 (Thu, 11 Mar 2010)
New Revision: 11758
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2955/ClientSOAPHandler.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2955/EndpointService.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2955/JBWS2955TestCase.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2956/ClientSOAPHandler.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2956/JBWS2956TestCase.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2956/OnewayEndpointService.java
Log:
[JBWS-2955][JBWS-2956]:Fix the build
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2955/ClientSOAPHandler.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2955/ClientSOAPHandler.java 2010-03-11
05:29:37 UTC (rev 11757)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2955/ClientSOAPHandler.java 2010-03-11
10:19:11 UTC (rev 11758)
@@ -30,7 +30,6 @@
import javax.xml.ws.handler.soap.SOAPMessageContext;
import org.jboss.logging.Logger;
-import org.jboss.ws.WSException;
import org.jboss.wsf.common.DOMWriter;
import org.jboss.wsf.common.handler.GenericSOAPHandler;
import org.w3c.dom.Document;
@@ -70,7 +69,7 @@
}
catch (SOAPException e)
{
- throw new WSException("Error in Handler", e);
+ e.printStackTrace();
}
return true;
}
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2955/EndpointService.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2955/EndpointService.java 2010-03-11
05:29:37 UTC (rev 11757)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2955/EndpointService.java 2010-03-11
10:19:11 UTC (rev 11758)
@@ -58,26 +58,16 @@
super(__getWsdlLocation(), ENDPOINTSERVICE_QNAME);
}
- public EndpointService(WebServiceFeature... features) {
- super(__getWsdlLocation(), ENDPOINTSERVICE_QNAME, features);
- }
public EndpointService(URL wsdlLocation) {
super(wsdlLocation, ENDPOINTSERVICE_QNAME);
}
- public EndpointService(URL wsdlLocation, WebServiceFeature... features) {
- super(wsdlLocation, ENDPOINTSERVICE_QNAME, features);
- }
public EndpointService(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
- public EndpointService(URL wsdlLocation, QName serviceName, WebServiceFeature...
features) {
- super(wsdlLocation, serviceName, features);
- }
-
/**
*
* @return
@@ -88,17 +78,6 @@
return super.getPort(new
QName("http://ws.jboss.org/jbws2955",
"EndpointPort"), Endpoint.class);
}
- /**
- *
- * @param features
- * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy.
Supported features not in the <code>features</code> parameter will have their
default values.
- * @return
- * returns Endpoint
- */
- @WebEndpoint(name = "EndpointPort")
- public Endpoint getEndpointPort(WebServiceFeature... features) {
- return super.getPort(new
QName("http://ws.jboss.org/jbws2955",
"EndpointPort"), Endpoint.class, features);
- }
private static URL __getWsdlLocation() {
if (ENDPOINTSERVICE_EXCEPTION!= null) {
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2955/JBWS2955TestCase.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2955/JBWS2955TestCase.java 2010-03-11
05:29:37 UTC (rev 11757)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2955/JBWS2955TestCase.java 2010-03-11
10:19:11 UTC (rev 11758)
@@ -35,8 +35,6 @@
import junit.framework.Test;
-import org.jboss.ws.core.soap.NodeImpl;
-
import org.jboss.wsf.test.JBossWSTest;
import org.jboss.wsf.test.JBossWSTestSetup;
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2956/ClientSOAPHandler.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2956/ClientSOAPHandler.java 2010-03-11
05:29:37 UTC (rev 11757)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2956/ClientSOAPHandler.java 2010-03-11
10:19:11 UTC (rev 11758)
@@ -31,9 +31,6 @@
import javax.xml.ws.handler.soap.SOAPMessageContext;
import javax.xml.ws.soap.SOAPFaultException;
-import org.jboss.ws.WSException;
-import org.jboss.ws.core.soap.MessageFactoryImpl;
-import org.jboss.ws.core.soap.SOAPMessageImpl;
import org.jboss.wsf.common.handler.GenericSOAPHandler;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
@@ -53,8 +50,8 @@
try
{
SOAPFault fault = null;
- MessageFactoryImpl factory = new MessageFactoryImpl();
- SOAPMessageImpl resMessage = (SOAPMessageImpl) factory.createMessage();
+ MessageFactory factory = MessageFactory.newInstance();
+ SOAPMessage resMessage = factory.createMessage();
fault = resMessage.getSOAPBody().addFault();
fault.setFaultString("this is exception threwn by client outbound");
throw new SOAPFaultException(fault);
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2956/JBWS2956TestCase.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2956/JBWS2956TestCase.java 2010-03-11
05:29:37 UTC (rev 11757)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2956/JBWS2956TestCase.java 2010-03-11
10:19:11 UTC (rev 11758)
@@ -35,8 +35,6 @@
import junit.framework.Test;
-import org.jboss.ws.core.soap.NodeImpl;
-
import org.jboss.wsf.test.JBossWSTest;
import org.jboss.wsf.test.JBossWSTestSetup;
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2956/OnewayEndpointService.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2956/OnewayEndpointService.java 2010-03-11
05:29:37 UTC (rev 11757)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2956/OnewayEndpointService.java 2010-03-11
10:19:11 UTC (rev 11758)
@@ -77,18 +77,6 @@
return super.getPort(new
QName("http://ws.jboss.org/jbws2956",
"EndpointPort"), OnewayEndpoint.class);
}
- /**
- *
- * @param features
- * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy.
Supported features not in the <code>features</code> parameter will have their
default values.
- * @return
- * returns Endpoint
- */
- @WebEndpoint(name = "EndpointPort")
- public OnewayEndpoint getOnewayEndpointPort(WebServiceFeature... features) {
- return super.getPort(new
QName("http://ws.jboss.org/jbws2956",
"EndpointPort"), OnewayEndpoint.class, features);
- }
-
private static URL __getWsdlLocation() {
if (ENDPOINTSERVICE_EXCEPTION!= null) {
throw ENDPOINTSERVICE_EXCEPTION;