JBossWS SVN: r8245 - in stack/native/branches/dlofthouse/JBWS-2304/modules/core/src/main/java/org/jboss: ws/core/soap and 1 other directories.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2008-09-26 10:35:42 -0400 (Fri, 26 Sep 2008)
New Revision: 8245
Modified:
stack/native/branches/dlofthouse/JBWS-2304/modules/core/src/main/java/org/jboss/ws/core/jaxws/handler/MessageContextJAXWS.java
stack/native/branches/dlofthouse/JBWS-2304/modules/core/src/main/java/org/jboss/ws/core/soap/MessageContextAssociation.java
stack/native/branches/dlofthouse/JBWS-2304/modules/core/src/main/java/org/jboss/ws/core/soap/XMLContent.java
stack/native/branches/dlofthouse/JBWS-2304/modules/core/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java
Log:
Clear ThreadLocals once MessageContextAssociation stack is empty (With exceptions)
Modified: stack/native/branches/dlofthouse/JBWS-2304/modules/core/src/main/java/org/jboss/ws/core/jaxws/handler/MessageContextJAXWS.java
===================================================================
--- stack/native/branches/dlofthouse/JBWS-2304/modules/core/src/main/java/org/jboss/ws/core/jaxws/handler/MessageContextJAXWS.java 2008-09-26 14:31:08 UTC (rev 8244)
+++ stack/native/branches/dlofthouse/JBWS-2304/modules/core/src/main/java/org/jboss/ws/core/jaxws/handler/MessageContextJAXWS.java 2008-09-26 14:35:42 UTC (rev 8245)
@@ -106,7 +106,7 @@
if (outbound == null)
throw new IllegalStateException("Cannot find property: " + MessageContext.MESSAGE_OUTBOUND_PROPERTY);
- MessageContextAssociation.popMessageContext();
+ MessageContextAssociation.popMessageContext(false);
SOAPMessageContextJAXWS resContext = new SOAPMessageContextJAXWS(reqContext);
resContext.setSOAPMessage(null);
Modified: stack/native/branches/dlofthouse/JBWS-2304/modules/core/src/main/java/org/jboss/ws/core/soap/MessageContextAssociation.java
===================================================================
--- stack/native/branches/dlofthouse/JBWS-2304/modules/core/src/main/java/org/jboss/ws/core/soap/MessageContextAssociation.java 2008-09-26 14:31:08 UTC (rev 8244)
+++ stack/native/branches/dlofthouse/JBWS-2304/modules/core/src/main/java/org/jboss/ws/core/soap/MessageContextAssociation.java 2008-09-26 14:35:42 UTC (rev 8245)
@@ -26,6 +26,7 @@
import org.jboss.logging.Logger;
import org.jboss.ws.core.CommonMessageContext;
import org.jboss.ws.core.utils.ThreadLocalAssociation;
+import org.jboss.wsf.common.DOMUtils;
/**
* A thread local association with the current message context
@@ -37,11 +38,11 @@
{
// provide logging
private static Logger log = Logger.getLogger(MessageContextAssociation.class);
-
public static void pushMessageContext(CommonMessageContext msgContext)
{
- if(log.isDebugEnabled()) log.debug("pushMessageContext: " + msgContext + " (Thread " +Thread.currentThread().getName()+ ")");
+ if (log.isDebugEnabled())
+ log.debug("pushMessageContext: " + msgContext + " (Thread " + Thread.currentThread().getName() + ")");
Stack<CommonMessageContext> stack = ThreadLocalAssociation.localMsgContextAssoc().get();
if (stack == null)
{
@@ -64,13 +65,24 @@
public static CommonMessageContext popMessageContext()
{
+ return popMessageContext(true);
+ }
+
+ public static CommonMessageContext popMessageContext(boolean clearDOMIfEmpty)
+ {
CommonMessageContext msgContext = null;
Stack<CommonMessageContext> stack = ThreadLocalAssociation.localMsgContextAssoc().get();
if (stack != null && stack.isEmpty() == false)
{
msgContext = stack.pop();
+ if (stack.isEmpty() == true && clearDOMIfEmpty == true)
+ {
+ DOMUtils.clearThreadLocals();
+ }
}
- if(log.isDebugEnabled()) log.debug("popMessageContext: " + msgContext +" (Thread " +Thread.currentThread().getName()+ ")");
+ if (log.isDebugEnabled())
+ log.debug("popMessageContext: " + msgContext + " (Thread " + Thread.currentThread().getName() + ")");
return msgContext;
}
+
}
Modified: stack/native/branches/dlofthouse/JBWS-2304/modules/core/src/main/java/org/jboss/ws/core/soap/XMLContent.java
===================================================================
--- stack/native/branches/dlofthouse/JBWS-2304/modules/core/src/main/java/org/jboss/ws/core/soap/XMLContent.java 2008-09-26 14:31:08 UTC (rev 8244)
+++ stack/native/branches/dlofthouse/JBWS-2304/modules/core/src/main/java/org/jboss/ws/core/soap/XMLContent.java 2008-09-26 14:35:42 UTC (rev 8245)
@@ -71,6 +71,7 @@
// The well formed XML content of this element.
private XMLFragment xmlFragment;
+ private Document document = DOMUtils.getOwnerDocument();
protected XMLContent(SOAPContentElement container)
{
@@ -327,10 +328,29 @@
short childType = child.getNodeType();
if (childType == Node.ELEMENT_NODE)
{
- SOAPElement soapElement = soapFactory.createElement((Element)child);
- container.addChildElement(soapElement);
- if (Constants.NAME_XOP_INCLUDE.equals(qname) || container.isXOPParameter())
- XOPContext.inlineXOPData(soapElement);
+
+ boolean setOwnerDocument = (DOMUtils.peekOwnerDocument() == null);
+
+ try
+ {
+ if (setOwnerDocument)
+ {
+ DOMUtils.setOwnerDocument(document);
+ }
+ SOAPElement soapElement = soapFactory.createElement((Element)child);
+ container.addChildElement(soapElement);
+ if (Constants.NAME_XOP_INCLUDE.equals(qname) || container.isXOPParameter())
+ XOPContext.inlineXOPData(soapElement);
+
+ }
+ finally
+ {
+ if (setOwnerDocument)
+ {
+ DOMUtils.clearThreadLocals();
+ }
+ }
+
}
else if (childType == Node.TEXT_NODE)
{
Modified: stack/native/branches/dlofthouse/JBWS-2304/modules/core/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java
===================================================================
--- stack/native/branches/dlofthouse/JBWS-2304/modules/core/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java 2008-09-26 14:31:08 UTC (rev 8244)
+++ stack/native/branches/dlofthouse/JBWS-2304/modules/core/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java 2008-09-26 14:35:42 UTC (rev 8245)
@@ -346,7 +346,6 @@
// clear thread local storage
ThreadLocalAssociation.clear();
- DOMUtils.clearThreadLocals();
}
}
15 years, 8 months
JBossWS SVN: r8244 - stack/native/branches/dlofthouse.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2008-09-26 10:31:08 -0400 (Fri, 26 Sep 2008)
New Revision: 8244
Added:
stack/native/branches/dlofthouse/JBWS-2304/
Log:
Re-create
Copied: stack/native/branches/dlofthouse/JBWS-2304 (from rev 8243, stack/native/trunk)
15 years, 8 months
JBossWS SVN: r8242 - common/branches/dlofthouse/JBWS-2304/src/main/java/org/jboss/wsf/common.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2008-09-26 10:27:12 -0400 (Fri, 26 Sep 2008)
New Revision: 8242
Modified:
common/branches/dlofthouse/JBWS-2304/src/main/java/org/jboss/wsf/common/DOMUtils.java
Log:
Allow OwnerDocument to be set by caller.
Modified: common/branches/dlofthouse/JBWS-2304/src/main/java/org/jboss/wsf/common/DOMUtils.java
===================================================================
--- common/branches/dlofthouse/JBWS-2304/src/main/java/org/jboss/wsf/common/DOMUtils.java 2008-09-26 11:20:44 UTC (rev 8241)
+++ common/branches/dlofthouse/JBWS-2304/src/main/java/org/jboss/wsf/common/DOMUtils.java 2008-09-26 14:27:12 UTC (rev 8242)
@@ -570,6 +570,17 @@
return (parent instanceof Element ? (Element)parent : null);
}
+ /** Peek at the owner document without creating a new one if not set. */
+ public static Document peekOwnerDocument()
+ {
+ return documentThreadLocal.get();
+ }
+
+ public static void setOwnerDocument(Document doc)
+ {
+ documentThreadLocal.set(doc);
+ }
+
/** Get the owner document that is associated with the current thread */
public static Document getOwnerDocument()
{
15 years, 8 months
JBossWS SVN: r8241 - in stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws: tools/scripts and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2008-09-26 07:20:44 -0400 (Fri, 26 Sep 2008)
New Revision: 8241
Modified:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws771/JBWS771TestCase.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/tools/scripts/ScriptTestCase.java
Log:
[JBWS-2231] adding comment
Modified: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws771/JBWS771TestCase.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws771/JBWS771TestCase.java 2008-09-26 11:19:33 UTC (rev 8240)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws771/JBWS771TestCase.java 2008-09-26 11:20:44 UTC (rev 8241)
@@ -190,6 +190,7 @@
private void checkStatusCode(Process p, String s) throws InterruptedException, IOException
{
CopyJob job = new CopyJob(p.getInputStream(), System.out);
+ // unfortunately the following thread is needed (otherwise this test will not work on windows)
new Thread( job ).start();
int status = -1;
try
Modified: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/tools/scripts/ScriptTestCase.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/tools/scripts/ScriptTestCase.java 2008-09-26 11:19:33 UTC (rev 8240)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/tools/scripts/ScriptTestCase.java 2008-09-26 11:20:44 UTC (rev 8241)
@@ -88,6 +88,7 @@
private void assertStatusCode(Process p, String s) throws InterruptedException, IOException
{
CopyJob job = new CopyJob(p.getInputStream(), System.out);
+ // unfortunately the following thread is needed (otherwise this test will not work on windows)
new Thread( job ).start();
int status = -1;
try
15 years, 8 months
JBossWS SVN: r8240 - in framework/trunk/testsuite/test/java/org/jboss/test/ws: jaxws/smoke/tools and 1 other directories.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2008-09-26 07:19:33 -0400 (Fri, 26 Sep 2008)
New Revision: 8240
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/samples/xop/doclit/MTOMEndpointBean.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/smoke/tools/ScriptTestCase.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/projectGenerator/ProjectGeneratorTestCase.java
Log:
[JBWS-2322] fix tests to be cross platform
Modified: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/samples/xop/doclit/MTOMEndpointBean.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/samples/xop/doclit/MTOMEndpointBean.java 2008-09-26 11:18:17 UTC (rev 8239)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/samples/xop/doclit/MTOMEndpointBean.java 2008-09-26 11:19:33 UTC (rev 8240)
@@ -22,6 +22,7 @@
package org.jboss.test.ws.jaxws.samples.xop.doclit;
import java.io.IOException;
+import java.io.InputStream;
import javax.activation.DataHandler;
import javax.jws.WebService;
@@ -46,7 +47,12 @@
try
{
log.info("Recv " + dataHandler.getContentType());
- log.info("Content is " + dataHandler.getContent());
+ Object dataHandlerContent = dataHandler.getContent();
+ log.info("Content is " + dataHandlerContent);
+ if ( dataHandlerContent instanceof InputStream )
+ {
+ ((InputStream)dataHandlerContent).close();
+ }
}
catch (IOException e)
{
Modified: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/smoke/tools/ScriptTestCase.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/smoke/tools/ScriptTestCase.java 2008-09-26 11:18:17 UTC (rev 8239)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/smoke/tools/ScriptTestCase.java 2008-09-26 11:19:33 UTC (rev 8240)
@@ -125,6 +125,7 @@
private void assertStatusCode(Process p, String s) throws InterruptedException
{
CopyJob job = new CopyJob(p.getInputStream(), System.out);
+ // unfortunately the following thread is needed (otherwise this test will not work on windows)
new Thread( job ).start();
int status = -1;
try
Modified: framework/trunk/testsuite/test/java/org/jboss/test/ws/projectGenerator/ProjectGeneratorTestCase.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/projectGenerator/ProjectGeneratorTestCase.java 2008-09-26 11:18:17 UTC (rev 8239)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/projectGenerator/ProjectGeneratorTestCase.java 2008-09-26 11:19:33 UTC (rev 8240)
@@ -23,6 +23,7 @@
import java.io.BufferedReader;
import java.io.BufferedWriter;
+import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
@@ -33,6 +34,7 @@
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
+import org.jboss.wsf.common.concurrent.CopyJob;
import org.jboss.wsf.test.JBossWSTest;
import org.jboss.wsf.test.JBossWSTestHelper;
@@ -50,6 +52,8 @@
public class ProjectGeneratorTestCase extends JBossWSTest
{
private static final String FS = System.getProperty("file.separator"); // '/' on unix, '\' on windows
+ private static final String PS = System.getProperty("path.separator"); // ':' on unix, ';' on windows
+ private static final String ANT_SHELL = ":".equals( PS ) ? "ant" : "ant.bat";
private String jbossHome;
private File workspaceHome;
private File binDistroDir;
@@ -77,7 +81,7 @@
writeUserProjectProperties(userPrjProp);
File distroBuild = new File(binDistroDir, "build.xml");
String integrationTarget = System.getProperty("jbossws.integration.target");
- assertStatusCode(executeCommand("ant -f " + distroBuild.getAbsolutePath() + " -D" + integrationTarget + ".home=" + jbossHome + " -Djbossws.integration.target="
+ assertStatusCode(executeCommand(ANT_SHELL + " -f " + distroBuild.getAbsolutePath() + " -D" + integrationTarget + ".home=" + jbossHome + " -Djbossws.integration.target="
+ integrationTarget + " create-project"), "Error while creating the user project!");
File projectHomeDir = new File(workspaceHome, projectName);
File packageDir = new File(projectHomeDir.getCanonicalPath() + FS + "src" + FS + "main" + FS + "java" + FS + "org" + FS + "jboss" + FS + "test" + FS + "ws" + FS + "projectGenerator");
@@ -89,7 +93,7 @@
File projectBuild = new File(projectHomeDir.getCanonicalPath(), "build.xml");
try
{
- assertStatusCode(executeCommand("ant -f " + projectBuild + " deploy"), "Error while compiling / deploying the user project!");
+ assertStatusCode(executeCommand(ANT_SHELL + " -f " + projectBuild + " deploy"), "Error while compiling / deploying the user project!");
//Sleeping 15 sec to let the deployment scanner pick up the user project jar
Thread.sleep(15000);
//Running the actual test
@@ -102,8 +106,8 @@
}
finally
{
- assertStatusCode(executeCommand("ant -f " + projectBuild + " undeploy"), "Error while undeploying the user project");
- assertStatusCode(executeCommand("ant -f " + distroBuild.getCanonicalPath() + " delete-project"), "Error while deleting the user project");
+ assertStatusCode(executeCommand(ANT_SHELL + " -f " + projectBuild + " undeploy"), "Error while undeploying the user project");
+ assertStatusCode(executeCommand(ANT_SHELL + " -f " + distroBuild.getCanonicalPath() + " delete-project"), "Error while deleting the user project");
userPrjProp.delete();
}
}
@@ -203,14 +207,22 @@
}
if (!build.exists())
throw new Exception("Unable to find build.xml!");
- Process p = executeCommand("ant -f " + build.getAbsolutePath() + " -p");
- p.waitFor();
- BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));
- String line;
- while ((line = in.readLine()) != null) {
- if (line.contains("build-bin-dist"))
- return false;
+ Process p = executeCommand(ANT_SHELL + " -f " + build.getAbsolutePath() + " -p");
+ ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ CopyJob job = new CopyJob(p.getInputStream(), baos);
+ // unfortunately the following thread is needed (otherwise this test will not work on windows)
+ new Thread( job ).start();
+ try
+ {
+ int status = p.waitFor();
+ System.out.println(new String(baos.toByteArray()));
+ assertTrue("Unexpected exit status code: " + status, status == 0);
}
- return true;
+ finally
+ {
+ job.kill();
+ p.destroy();
+ }
+ return !(new String(baos.toByteArray()).contains("build-bin-dist"));
}
}
15 years, 8 months
JBossWS SVN: r8239 - common/trunk/src/main/java/org/jboss/wsf/common/concurrent.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2008-09-26 07:18:17 -0400 (Fri, 26 Sep 2008)
New Revision: 8239
Modified:
common/trunk/src/main/java/org/jboss/wsf/common/concurrent/CopyJob.java
Log:
[JBWS-2322] switch from PrintStream to OutputStream
Modified: common/trunk/src/main/java/org/jboss/wsf/common/concurrent/CopyJob.java
===================================================================
--- common/trunk/src/main/java/org/jboss/wsf/common/concurrent/CopyJob.java 2008-09-26 05:49:46 UTC (rev 8238)
+++ common/trunk/src/main/java/org/jboss/wsf/common/concurrent/CopyJob.java 2008-09-26 11:18:17 UTC (rev 8239)
@@ -23,7 +23,7 @@
import java.io.IOException;
import java.io.InputStream;
-import java.io.PrintStream;
+import java.io.OutputStream;
/**
* Sample usage:
@@ -54,7 +54,7 @@
/**
* Output stream to write data to.
*/
- private final PrintStream os;
+ private final OutputStream os;
/**
* Whether this job is terminated.
*/
@@ -65,7 +65,7 @@
* @param is input stream to read data from
* @param os output stream to write data to
*/
- public CopyJob( InputStream is, PrintStream os )
+ public CopyJob( InputStream is, OutputStream os )
{
super();
@@ -89,11 +89,11 @@
}
catch ( IOException ioe )
{
- ioe.printStackTrace( this.os );
+ ioe.printStackTrace(System.err);
}
finally
{
- try { this.is.close(); } catch ( IOException ioe ) { ioe.printStackTrace( this.os ); }
+ try { this.is.close(); } catch ( IOException ioe ) { ioe.printStackTrace( System.err ); }
}
}
@@ -103,7 +103,7 @@
* @param os output stream to write data to
* @throws IOException if I/O error occurs
*/
- private void copy( final InputStream is, final PrintStream os ) throws IOException
+ private void copy( final InputStream is, final OutputStream os ) throws IOException
{
final byte[] buffer = new byte[ 512 ];
int countOfBytes = -1;
@@ -121,7 +121,7 @@
}
catch ( InterruptedException ie )
{
- ie.printStackTrace( os );
+ ie.printStackTrace( System.err );
}
}
}
15 years, 8 months
JBossWS SVN: r8238 - framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/smoke/tools.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2008-09-26 01:49:46 -0400 (Fri, 26 Sep 2008)
New Revision: 8238
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSConsumerPlugin.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSProviderPlugin.java
Log:
[JBWS-2232] fix tests to be multi platform
Modified: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSConsumerPlugin.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSConsumerPlugin.java 2008-09-26 04:00:55 UTC (rev 8237)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSConsumerPlugin.java 2008-09-26 05:49:46 UTC (rev 8238)
@@ -236,7 +236,7 @@
System.out.println("--- End captured output --");
assertTrue("Tools output not correctly redirected",
- messageOut.indexOf("org/jboss/test/ws/tools/testMessageStream/EndpointInterface.java")!=-1
+ messageOut.replace('\\', '/').indexOf("org/jboss/test/ws/tools/testMessageStream/EndpointInterface.java")!=-1
);
}
Modified: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSProviderPlugin.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSProviderPlugin.java 2008-09-26 04:00:55 UTC (rev 8237)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSProviderPlugin.java 2008-09-26 05:49:46 UTC (rev 8238)
@@ -223,7 +223,7 @@
System.out.println("-- End captured output --");
assertTrue("Provider messages not correctly redirected",
- messageOut.indexOf("org"+FS+"jboss"+FS+"test"+FS+"ws"+FS+"jaxws"+FS+"smoke"+FS+"tools"+FS+"jaxws"+FS+"Add.class") != -1 );
+ messageOut.replace('\\', '/').indexOf("org/jboss/test/ws/jaxws/smoke/tools/jaxws/Add.class") != -1 );
}
private void provide() throws Exception
15 years, 8 months
JBossWS SVN: r8237 - stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws1188.
by jbossws-commits@lists.jboss.org
Author: mageshbk(a)jboss.com
Date: 2008-09-26 00:00:55 -0400 (Fri, 26 Sep 2008)
New Revision: 8237
Modified:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws1188/JBWS1188TestCase.java
Log:
Removed SOP
Modified: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws1188/JBWS1188TestCase.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws1188/JBWS1188TestCase.java 2008-09-26 03:53:08 UTC (rev 8236)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws1188/JBWS1188TestCase.java 2008-09-26 04:00:55 UTC (rev 8237)
@@ -85,7 +85,6 @@
SOAPMessage resMessage = con.call(reqMessage, "http://" + getServerHost() + ":8080/jaxrpc-jbws1188");
SOAPElement soapElement = (SOAPElement)resMessage.getSOAPBody().getChildElements().next();
soapElement = (SOAPElement)soapElement.getChildElements().next();
- System.out.println(soapElement);
assertEquals("Hello Jimbo!", soapElement.getValue());
}
@@ -115,7 +114,6 @@
SOAPMessage resMessage = con.call(reqMessage, "http://" + getServerHost() + ":8080/jaxrpc-jbws1188");
SOAPElement soapElement = (SOAPElement)resMessage.getSOAPBody().getChildElements().next();
soapElement = (SOAPElement)soapElement.getChildElements().next();
- System.out.println(soapElement);
assertEquals("Hello Jimbo!", soapElement.getValue());
}
}
15 years, 8 months
JBossWS SVN: r8236 - in stack/native/trunk/modules/testsuite/native-tests: src/test/java/org/jboss/test/ws/jaxrpc and 5 other directories.
by jbossws-commits@lists.jboss.org
Author: mageshbk(a)jboss.com
Date: 2008-09-25 23:53:08 -0400 (Thu, 25 Sep 2008)
New Revision: 8236
Added:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws1188/
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws1188/JBWS1188TestCase.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws1188/TestEndpoint.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws1188/TestEndpointImpl.java
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxrpc/jbws1188/
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxrpc/jbws1188/WEB-INF/
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxrpc/jbws1188/WEB-INF/jaxrpc-mapping.xml
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxrpc/jbws1188/WEB-INF/jboss-wsse-server.xml
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxrpc/jbws1188/WEB-INF/web.xml
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxrpc/jbws1188/WEB-INF/webservices.xml
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxrpc/jbws1188/WEB-INF/wsdl/
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxrpc/jbws1188/WEB-INF/wsdl/TestService.wsdl
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxrpc/jbws1188/wstools-config.xml
Modified:
stack/native/trunk/modules/testsuite/native-tests/scripts/build-jars-jaxrpc.xml
Log:
[JBWS-1188]-Added TestCase
Modified: stack/native/trunk/modules/testsuite/native-tests/scripts/build-jars-jaxrpc.xml
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/scripts/build-jars-jaxrpc.xml 2008-09-26 01:14:04 UTC (rev 8235)
+++ stack/native/trunk/modules/testsuite/native-tests/scripts/build-jars-jaxrpc.xml 2008-09-26 03:53:08 UTC (rev 8236)
@@ -2310,6 +2310,20 @@
</webinf>
</war>
+ <!-- jaxrpc-jbws1188 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxrpc-jbws1188.war" webxml="${tests.output.dir}/test-resources/jaxrpc/jbws1188/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxrpc/jbws1188/TestEndpointImpl.class"/>
+ <include name="org/jboss/test/ws/jaxrpc/jbws1188/TestEndpoint.class"/>
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxrpc/jbws1188/WEB-INF">
+ <include name="webservices.xml"/>
+ <include name="jaxrpc-mapping.xml"/>
+ <include name="wsdl/**"/>
+ <include name="jboss-wsse-server.xml"/>
+ </webinf>
+ </war>
+
<!-- jaxrpc-jbws1190 -->
<war warfile="${tests.output.dir}/test-libs/jaxrpc-jbws1190.war" webxml="${tests.output.dir}/test-resources/jaxrpc/jbws1190/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/test-classes">
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws1188/JBWS1188TestCase.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws1188/JBWS1188TestCase.java (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws1188/JBWS1188TestCase.java 2008-09-26 03:53:08 UTC (rev 8236)
@@ -0,0 +1,121 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to 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.jaxrpc.jbws1188;
+
+import java.io.ByteArrayInputStream;
+import java.io.File;
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.rpc.Service;
+import javax.xml.soap.MessageFactory;
+import javax.xml.soap.SOAPConnection;
+import javax.xml.soap.SOAPConnectionFactory;
+import javax.xml.soap.SOAPElement;
+import javax.xml.soap.SOAPMessage;
+
+import junit.framework.Test;
+
+import org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl;
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * Test case to test the UsernameToken can be sent without an id.
+ *
+ * @author mageshbk(a)jboss.com
+ */
+public class JBWS1188TestCase extends JBossWSTest
+{
+
+ private static TestEndpoint port;
+
+ public static Test suite() throws Exception
+ {
+ return new JBossWSTestSetup(JBWS1188TestCase.class, "jaxrpc-jbws1188.war");
+ }
+
+ public void setUp() throws Exception
+ {
+ super.setUp();
+ }
+
+ public void testUsernameTokenNoID() throws Exception
+ {
+ MessageFactory factory = MessageFactory.newInstance();
+
+ String reqStr =
+ "<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>" +
+ " <env:Header>" +
+ " <wsse:Security xmlns:wsse='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext...'>" +
+ " <wsse:UsernameToken>" +
+ " <wsse:Username>kermit</wsse:Username>" +
+ " <wsse:Password>thefrog</wsse:Password>" +
+ " </wsse:UsernameToken>" +
+ " </wsse:Security>" +
+ " </env:Header>" +
+ " <env:Body>" +
+ " <ns1:echoString xmlns:ns1='http://org.jboss.test.ws/jbws1188'>" +
+ " <String_1>" + "Jimbo!" + "</String_1>" +
+ " </ns1:echoString>" +
+ " </env:Body>" +
+ "</env:Envelope>";
+
+ SOAPMessage reqMessage = factory.createMessage(null, new ByteArrayInputStream(reqStr.getBytes()));
+ SOAPConnection con = SOAPConnectionFactory.newInstance().createConnection();
+ SOAPMessage resMessage = con.call(reqMessage, "http://" + getServerHost() + ":8080/jaxrpc-jbws1188");
+ SOAPElement soapElement = (SOAPElement)resMessage.getSOAPBody().getChildElements().next();
+ soapElement = (SOAPElement)soapElement.getChildElements().next();
+ System.out.println(soapElement);
+ assertEquals("Hello Jimbo!", soapElement.getValue());
+ }
+
+ public void testUsernameToken() throws Exception
+ {
+ MessageFactory factory = MessageFactory.newInstance();
+
+ String reqStr =
+ "<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>" +
+ " <env:Header>" +
+ " <wsse:Security xmlns:wsse='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext...' xmlns:wsu='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utilit...'>" +
+ " <wsse:UsernameToken wsu:Id='abcde-1a23bc4d-1234-1ab2'>" +
+ " <wsse:Username>kermit</wsse:Username>" +
+ " <wsse:Password>thefrog</wsse:Password>" +
+ " </wsse:UsernameToken>" +
+ " </wsse:Security>" +
+ " </env:Header>" +
+ " <env:Body>" +
+ " <ns1:echoString xmlns:ns1='http://org.jboss.test.ws/jbws1188'>" +
+ " <String_1>" + "Jimbo!" + "</String_1>" +
+ " </ns1:echoString>" +
+ " </env:Body>" +
+ "</env:Envelope>";
+
+ SOAPMessage reqMessage = factory.createMessage(null, new ByteArrayInputStream(reqStr.getBytes()));
+ SOAPConnection con = SOAPConnectionFactory.newInstance().createConnection();
+ SOAPMessage resMessage = con.call(reqMessage, "http://" + getServerHost() + ":8080/jaxrpc-jbws1188");
+ SOAPElement soapElement = (SOAPElement)resMessage.getSOAPBody().getChildElements().next();
+ soapElement = (SOAPElement)soapElement.getChildElements().next();
+ System.out.println(soapElement);
+ assertEquals("Hello Jimbo!", soapElement.getValue());
+ }
+}
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws1188/TestEndpoint.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws1188/TestEndpoint.java (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws1188/TestEndpoint.java 2008-09-26 03:53:08 UTC (rev 8236)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to 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.jaxrpc.jbws1188;
+
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+
+/**
+ * @author mageshbk(a)jboss.com
+ */
+public interface TestEndpoint extends Remote
+{
+
+ public String echoString(final String message) throws RemoteException;
+
+}
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws1188/TestEndpointImpl.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws1188/TestEndpointImpl.java (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws1188/TestEndpointImpl.java 2008-09-26 03:53:08 UTC (rev 8236)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to 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.jaxrpc.jbws1188;
+
+import java.rmi.RemoteException;
+
+/**
+ * @author mageshbk(a)jboss.com
+ */
+public class TestEndpointImpl implements TestEndpoint
+{
+
+ public String echoString(String message) throws RemoteException
+ {
+ return "Hello " + message;
+ }
+
+}
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxrpc/jbws1188/WEB-INF/jaxrpc-mapping.xml
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxrpc/jbws1188/WEB-INF/jaxrpc-mapping.xml (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxrpc/jbws1188/WEB-INF/jaxrpc-mapping.xml 2008-09-26 03:53:08 UTC (rev 8236)
@@ -0,0 +1,37 @@
+<?xml version='1.0' encoding='UTF-8'?><java-wsdl-mapping version='1.1' xmlns='http://java.sun.com/xml/ns/j2ee' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd'>
+ <package-mapping>
+ <package-type>org.jboss.test.ws.jaxrpc.jbws1188</package-type>
+ <namespaceURI>http://org.jboss.test.ws/jbws1188/types</namespaceURI>
+ </package-mapping>
+ <service-interface-mapping>
+ <service-interface>org.jboss.test.ws.jaxrpc.jbws1188.TestService</service-interface>
+ <wsdl-service-name xmlns:serviceNS='http://org.jboss.test.ws/jbws1188'>serviceNS:TestService</wsdl-service-name>
+ <port-mapping>
+ <port-name>TestEndpointPort</port-name>
+ <java-port-name>TestEndpointPort</java-port-name>
+ </port-mapping>
+ </service-interface-mapping>
+ <service-endpoint-interface-mapping>
+ <service-endpoint-interface>org.jboss.test.ws.jaxrpc.jbws1188.TestEndpoint</service-endpoint-interface>
+ <wsdl-port-type xmlns:portTypeNS='http://org.jboss.test.ws/jbws1188'>portTypeNS:TestEndpoint</wsdl-port-type>
+ <wsdl-binding xmlns:bindingNS='http://org.jboss.test.ws/jbws1188'>bindingNS:TestEndpointBinding</wsdl-binding>
+ <service-endpoint-method-mapping>
+ <java-method-name>echoString</java-method-name>
+ <wsdl-operation>echoString</wsdl-operation>
+ <method-param-parts-mapping>
+ <param-position>0</param-position>
+ <param-type>java.lang.String</param-type>
+ <wsdl-message-mapping>
+ <wsdl-message xmlns:wsdlMsgNS='http://org.jboss.test.ws/jbws1188'>wsdlMsgNS:TestEndpoint_echoString</wsdl-message>
+ <wsdl-message-part-name>String_1</wsdl-message-part-name>
+ <parameter-mode>IN</parameter-mode>
+ </wsdl-message-mapping>
+ </method-param-parts-mapping>
+ <wsdl-return-value-mapping>
+ <method-return-value>java.lang.String</method-return-value>
+ <wsdl-message xmlns:wsdlMsgNS='http://org.jboss.test.ws/jbws1188'>wsdlMsgNS:TestEndpoint_echoStringResponse</wsdl-message>
+ <wsdl-message-part-name>result</wsdl-message-part-name>
+ </wsdl-return-value-mapping>
+ </service-endpoint-method-mapping>
+ </service-endpoint-interface-mapping>
+</java-wsdl-mapping>
\ No newline at end of file
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxrpc/jbws1188/WEB-INF/jboss-wsse-server.xml
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxrpc/jbws1188/WEB-INF/jboss-wsse-server.xml (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxrpc/jbws1188/WEB-INF/jboss-wsse-server.xml 2008-09-26 03:53:08 UTC (rev 8236)
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jboss-ws-security xmlns="http://www.jboss.com/ws-security/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.jboss.com/ws-security/config http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">
+</jboss-ws-security>
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxrpc/jbws1188/WEB-INF/web.xml
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxrpc/jbws1188/WEB-INF/web.xml (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxrpc/jbws1188/WEB-INF/web.xml 2008-09-26 03:53:08 UTC (rev 8236)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<web-app 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"
+ version="2.4">
+
+ <context-param>
+ <param-name>jbossws-config-name</param-name>
+ <param-value>Standard WSSecurity Endpoint</param-value>
+ </context-param>
+
+ <servlet>
+ <servlet-name>TestEndpoint</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxrpc.jbws1188.TestEndpointImpl</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>TestEndpoint</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+
+</web-app>
+
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxrpc/jbws1188/WEB-INF/webservices.xml
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxrpc/jbws1188/WEB-INF/webservices.xml (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxrpc/jbws1188/WEB-INF/webservices.xml 2008-09-26 03:53:08 UTC (rev 8236)
@@ -0,0 +1,15 @@
+<webservices version='1.1' xmlns='http://java.sun.com/xml/ns/j2ee' xmlns:impl='http://org.jboss.test.ws/jbws1188' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd'>
+ <webservice-description>
+ <webservice-description-name>TestService</webservice-description-name>
+ <wsdl-file>WEB-INF/wsdl/TestService.wsdl</wsdl-file>
+ <jaxrpc-mapping-file>WEB-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
+ <port-component>
+ <port-component-name>TestEndpointPort</port-component-name>
+ <wsdl-port>impl:TestEndpointPort</wsdl-port>
+ <service-endpoint-interface>org.jboss.test.ws.jaxrpc.jbws1188.TestEndpoint</service-endpoint-interface>
+ <service-impl-bean>
+ <servlet-link>TestEndpoint</servlet-link>
+ </service-impl-bean>
+ </port-component>
+ </webservice-description>
+</webservices>
\ No newline at end of file
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxrpc/jbws1188/WEB-INF/wsdl/TestService.wsdl
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxrpc/jbws1188/WEB-INF/wsdl/TestService.wsdl (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxrpc/jbws1188/WEB-INF/wsdl/TestService.wsdl 2008-09-26 03:53:08 UTC (rev 8236)
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions name='TestService' targetNamespace='http://org.jboss.test.ws/jbws1188' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://org.jboss.test.ws/jbws1188' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
+ <types/>
+ <message name='TestEndpoint_echoString'>
+ <part name='String_1' type='xsd:string'/>
+ </message>
+ <message name='TestEndpoint_echoStringResponse'>
+ <part name='result' type='xsd:string'/>
+ </message>
+ <portType name='TestEndpoint'>
+ <operation name='echoString' parameterOrder='String_1'>
+ <input message='tns:TestEndpoint_echoString'/>
+ <output message='tns:TestEndpoint_echoStringResponse'/>
+ </operation>
+ </portType>
+ <binding name='TestEndpointBinding' type='tns:TestEndpoint'>
+ <soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>
+ <operation name='echoString'>
+ <soap:operation soapAction=''/>
+ <input>
+ <soap:body namespace='http://org.jboss.test.ws/jbws1188' use='literal'/>
+ </input>
+ <output>
+ <soap:body namespace='http://org.jboss.test.ws/jbws1188' use='literal'/>
+ </output>
+ </operation>
+ </binding>
+ <service name='TestService'>
+ <port binding='tns:TestEndpointBinding' name='TestEndpointPort'>
+ <soap:address location='REPLACE_WITH_ACTUAL_URL'/>
+ </port>
+ </service>
+</definitions>
\ No newline at end of file
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxrpc/jbws1188/wstools-config.xml
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxrpc/jbws1188/wstools-config.xml (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxrpc/jbws1188/wstools-config.xml 2008-09-26 03:53:08 UTC (rev 8236)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ wstools -cp ../../../../../output/tests/classes -dest ./WEB-INF -config wstools-config.xml
+-->
+
+<!-- Set the soap:address location to 'http://localhost:8080//jbossws-jbws1188/TestEndpoint?wsdl' to run with Tomcat -->
+
+<configuration xmlns="http://www.jboss.org/jbossws-tools" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.jboss.org/jbossws-tools http://www.jboss.org/jbossws-tools/schema/jbossws-tool_1_0.xsd">
+ <java-wsdl>
+ <service name="TestService" endpoint="org.jboss.test.ws.jaxrpc.jbws1188.TestEndpoint" style="rpc">
+ </service>
+ <namespaces target-namespace="http://org.jboss.test.ws/jbws1188" type-namespace="http://org.jboss.test.ws/jbws1188/types"/>
+ <mapping file="jaxrpc-mapping.xml"/>
+ <webservices servlet-link="TestEndpoint"/>
+ </java-wsdl>
+</configuration>
15 years, 8 months