Author: richard.opalka(a)jboss.com
Date: 2010-05-12 06:38:37 -0400 (Wed, 12 May 2010)
New Revision: 12211
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/ClientSOAPHandler.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/JBWS3022TestCase.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/common/
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/common/AbstractSOAPHandler.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/common/TestConstants.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbers.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersException.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersException_Exception.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersPortType3.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersPortType3_handler.xml
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersPortType4.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersPortType4_handler.xml
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersResponse.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersService3.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersService3_handler.xml
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersService4.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersService4_handler.xml
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/ObjectFactory.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/package-info.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/service/
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/service/AddNumbersException.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/service/AddNumbersImpl3.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/service/AddNumbersImpl4.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/service/ServerSOAPHandler.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/service/server-handler.xml
framework/trunk/testsuite/test/resources/jaxws/jbws3022/
framework/trunk/testsuite/test/resources/jaxws/jbws3022/WEB-INF/
framework/trunk/testsuite/test/resources/jaxws/jbws3022/WEB-INF/jboss-web.xml
framework/trunk/testsuite/test/resources/jaxws/jbws3022/WEB-INF/web.xml
framework/trunk/testsuite/test/resources/jaxws/jbws3022/WEB-INF/wsdl/
framework/trunk/testsuite/test/resources/jaxws/jbws3022/WEB-INF/wsdl/AddNumbersService3.wsdl
framework/trunk/testsuite/test/resources/jaxws/jbws3022/WEB-INF/wsdl/AddNumbersService4.wsdl
framework/trunk/testsuite/test/resources/jaxws/jbws3022/customfile3.xml
framework/trunk/testsuite/test/resources/jaxws/jbws3022/customfile4.xml
Modified:
framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/WsaSOAPUtils.java
Log:
[JBWS-3022] providing test case
Modified: framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml
===================================================================
--- framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml 2010-05-12 07:15:27 UTC
(rev 12210)
+++ framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml 2010-05-12 10:38:37 UTC
(rev 12211)
@@ -947,6 +947,20 @@
</webinf>
</war>
+ <!-- jaxws-jbws3022 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws3022.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws3022/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws3022/service/*.class"/>
+ <include name="org/jboss/test/ws/jaxws/jbws3022/service/*.xml" />
+ <include name="org/jboss/test/ws/jaxws/jbws3022/common/*.class"/>
+ <include name="org/jboss/test/ws/jaxws/common/*.class"/>
+ </classes>
+ <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws3022/WEB-INF">
+ <include name="wsdl/**" />
+ <include name="jboss-web.xml"/>
+ </webinf>
+ </war>
+
<!-- jaxws namespace -->
<war warfile="${tests.output.dir}/test-libs/jaxws-namespace.war"
webxml="${tests.output.dir}/test-resources/jaxws/namespace/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/test-classes">
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/WsaSOAPUtils.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/WsaSOAPUtils.java 2010-05-12
07:15:27 UTC (rev 12210)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/WsaSOAPUtils.java 2010-05-12
10:38:37 UTC (rev 12211)
@@ -272,10 +272,7 @@
Detail d = sf.getDetail();
if (d != null)
{
- //if(d instanceof Element)
- //XMLUtils.XmlDumpDOMNodes((Element)d, false);
Iterator iter = d.getDetailEntries();
- Object obj;
while (iter.hasNext())
{
DetailEntry de = (DetailEntry) iter.next();
@@ -294,7 +291,6 @@
public static String[] getFaultDetail(SOAPMessage message) throws SOAPException
{
SOAPElement se = null;
- SOAPElement se2 = null;
Object obj = null;
String faultDetail[] = new String[10];
Text text = null;
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/ClientSOAPHandler.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/ClientSOAPHandler.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/ClientSOAPHandler.java 2010-05-12
10:38:37 UTC (rev 12211)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.jaxws.jbws3022;
+
+import javax.xml.ws.handler.soap.SOAPMessageContext;
+
+import org.jboss.test.ws.jaxws.common.Handler_Util;
+import org.jboss.test.ws.jaxws.common.W3CAddressingConstants;
+import org.jboss.test.ws.jaxws.jbws3022.common.AbstractSOAPHandler;
+import org.jboss.test.ws.jaxws.jbws3022.common.TestConstants;
+
+public final class ClientSOAPHandler extends AbstractSOAPHandler
+{
+ protected String whichHandler()
+ {
+ return "ClientSOAPHandler";
+ }
+
+ protected void checkInboundAction(final SOAPMessageContext context, final String oper,
final String action)
+ {
+ if (Handler_Util.checkForMsg(context,
"testAnonymousResponsesAssertion"))
+ {
+ assertAnonymousResponsesAddressingHeaders(context, action);
+ }
+ else if (Handler_Util.checkForMsg(context,
"testNonAnonymousResponsesAssertion"))
+ {
+ assertNonAnonymousResponsesAddressingHeaders(context, action);
+ }
+ }
+
+ private void assertAnonymousResponsesAddressingHeaders(final SOAPMessageContext
messageCtx, final String action)
+ {
+
super.assertActionHeaderValue(TestConstants.TEST_ANONYMOUS_RESPONSES_ASSERTION_OUT_ACTION,
action);
+
+ final String messageID =
super.getHeaderValue(W3CAddressingConstants.WSA_MESSAGEID_QNAME, messageCtx);
+ assert messageID != null;
+
+ final String relatesTo =
super.getHeaderValue(W3CAddressingConstants.WSA_RELATESTO_QNAME, messageCtx);
+ assert relatesTo != null;
+
+ super.assertAnonymousAddressURI(W3CAddressingConstants.WSA_TO_QNAME, messageCtx);
+ }
+
+ private void assertNonAnonymousResponsesAddressingHeaders(final SOAPMessageContext
messageCtx, final String action)
+ {
+
super.assertActionHeaderValue(TestConstants.TEST_NONANONYMOUS_RESPONSES_ASSERTION_OUT_ACTION,
action);
+
+ final String messageID =
super.getHeaderValue(W3CAddressingConstants.WSA_MESSAGEID_QNAME, messageCtx);
+ assert messageID != null;
+
+ final String relatesTo =
super.getHeaderValue(W3CAddressingConstants.WSA_RELATESTO_QNAME, messageCtx);
+ assert relatesTo != null;
+
+ super.assertNonAnonymousAddressURI(W3CAddressingConstants.WSA_TO_QNAME,
messageCtx);
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/JBWS3022TestCase.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/JBWS3022TestCase.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/JBWS3022TestCase.java 2010-05-12
10:38:37 UTC (rev 12211)
@@ -0,0 +1,324 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.jaxws.jbws3022;
+
+import java.net.URL;
+import java.text.MessageFormat;
+import java.util.UUID;
+
+import javax.xml.namespace.QName;
+import javax.xml.soap.SOAPException;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.ws.Dispatch;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.soap.AddressingFeature;
+import javax.xml.ws.soap.SOAPFaultException;
+
+import junit.framework.Test;
+
+import org.jboss.test.ws.jaxws.common.JAXWS_Util;
+import org.jboss.test.ws.jaxws.common.W3CAddressingConstants;
+import org.jboss.test.ws.jaxws.common.WsaSOAPUtils;
+import org.jboss.test.ws.jaxws.jbws3022.generated.AddNumbersPortType3;
+import org.jboss.test.ws.jaxws.jbws3022.generated.AddNumbersPortType4;
+import org.jboss.test.ws.jaxws.jbws3022.generated.AddNumbersService3;
+import org.jboss.test.ws.jaxws.jbws3022.generated.AddNumbersService4;
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * [JBWS-3022] Respect @Addressing.responses attribute test.
+ *
+ * @author <a href="mailto:ropalka@redhat.com">Richard Opalka</a>
+ */
+public class JBWS3022TestCase extends JBossWSTest
+{
+
+ private static final String NAMESPACEURI = "http://example.com/";
+
+ private static final String ANONYMOUS_PORT_NAME = "AddNumbersPort3";
+
+ private static final String NON_ANONYMOUS_PORT_NAME = "AddNumbersPort4";
+
+ private static QName ANONYMOUS_PORT_QNAME = new QName(NAMESPACEURI,
ANONYMOUS_PORT_NAME);
+
+ private static QName NON_ANONYMOUS_PORT_QNAME = new QName(NAMESPACEURI,
NON_ANONYMOUS_PORT_NAME);
+
+ private static AddressingFeature DISABLED_ADDRESSING_FEATURE = new
AddressingFeature(false);
+
+ private String anonymousURL = null;
+
+ private String nonAnonymousURL = null;
+
+ private URL anonymousWSDL = null;
+
+ private URL nonAnonymousWSDL = null;
+
+ AddNumbersPortType3 anonymousPort = null;
+
+ AddNumbersPortType4 nonAnonymousPort = null;
+
+ static AddNumbersService3 anonymousService = null;
+
+ static AddNumbersService4 nonAnonymousService = null;
+
+ String replyToHeaderForAnonymousResponsesSoapMsg = "<?xml
version=\"1.0\" ?><S:Envelope
xmlns:S=\"http://schemas.xmlsoap.org/soap/envelope/\"><S:...
xmlns=\"http://www.w3.org/2005/08/addressing\">{0}</To>...
xmlns=\"http://www.w3.org/2005/08/addressing\">uuid:{1}</...
xmlns=\"http://www.w3.org/2005/08/addressing\"><Address&g...
xmlns=\"http://www.w3.org/2005/08/addressing\">http://exampl...
xmlns=\"http://example.com/\"><number1>10</number1&...;
+
+ String faultToHeaderForAnonymousResponsesSoapMsg = "<?xml
version=\"1.0\" ?><S:Envelope
xmlns:S=\"http://schemas.xmlsoap.org/soap/envelope/\"><S:...
xmlns=\"http://www.w3.org/2005/08/addressing\">{0}</To>...
xmlns=\"http://www.w3.org/2005/08/addressing\">uuid:{1}</...
xmlns=\"http://www.w3.org/2005/08/addressing\"><Address&g...
xmlns=\"http://www.w3.org/2005/08/addressing\"><Address&g...
xmlns=\"http://www.w3.org/2005/08/addressing\">http://exampl...
xmlns=\"http://example.com/\"><number1>-10</number1...;
+
+ String replyToHeaderForNonAnonymousResponsesSoapMsg = "<?xml
version=\"1.0\" ?><S:Envelope
xmlns:S=\"http://schemas.xmlsoap.org/soap/envelope/\"><S:...
xmlns=\"http://www.w3.org/2005/08/addressing\">{0}</To>...
xmlns=\"http://www.w3.org/2005/08/addressing\">uuid:{1}</...
xmlns=\"http://www.w3.org/2005/08/addressing\"><Address&g...
xmlns=\"http://www.w3.org/2005/08/addressing\">http://exampl...
xmlns=\"http://example.com/\"><number1>10</number1&...;
+
+ String faultToHeaderForNonAnonymousResponsesSoapMsg = "<?xml
version=\"1.0\" ?><S:Envelope
xmlns:S=\"http://schemas.xmlsoap.org/soap/envelope/\"><S:...
xmlns=\"http://www.w3.org/2005/08/addressing\">{0}</To>...
xmlns=\"http://www.w3.org/2005/08/addressing\">uuid:{1}</...
xmlns=\"http://www.w3.org/2005/08/addressing\"><Address&g...
xmlns=\"http://www.w3.org/2005/08/addressing\"><Address&g...
xmlns=\"http://www.w3.org/2005/08/addressing\">http://exampl...
xmlns=\"http://example.com/\"><number1>-10</number1...;
+
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(JBWS3022TestCase.class,
"jaxws-jbws3022.war");
+ }
+
+ protected void setUp() throws Exception
+ {
+ anonymousURL = "http://" + getServerHost() +
":8080/jaxws-jbws3022/jaxws/AddNumbers3";
+ anonymousWSDL = new URL(anonymousURL + "?wsdl");
+ anonymousService = new AddNumbersService3(anonymousWSDL);
+ nonAnonymousURL = "http://" + getServerHost() +
":8080/jaxws-jbws3022/jaxws/AddNumbers4";
+ nonAnonymousWSDL = new URL(nonAnonymousURL + "?wsdl");
+ nonAnonymousService = new AddNumbersService4(nonAnonymousWSDL);
+ anonymousPort = (AddNumbersPortType3)
anonymousService.getPort(ANONYMOUS_PORT_QNAME, AddNumbersPortType3.class);
+ nonAnonymousPort = (AddNumbersPortType4)
nonAnonymousService.getPort(NON_ANONYMOUS_PORT_QNAME,
+ AddNumbersPortType4.class);
+ }
+
+ private Dispatch<SOAPMessage> createDispatchSOAPMessage(Service service, QName
port) throws Exception
+ {
+ return service.createDispatch(port, SOAPMessage.class,
javax.xml.ws.Service.Mode.MESSAGE,
+ DISABLED_ADDRESSING_FEATURE);
+ }
+
+ public void testAnonymousResponsesAssertion() throws Exception
+ {
+ anonymousPort.addNumbers(10, 10, "testAnonymousResponsesAssertion");
+ }
+
+ public void testNonAnonymousResponsesAssertion() throws Exception
+ {
+ try
+ {
+ nonAnonymousPort.addNumbers(10, 10,
"testNonAnonymousResponsesAssertion");
+ fail();
+ }
+ catch (SOAPFaultException e)
+ {
+ log.debug("Caught SOAPFaultException ignore: " + e.getMessage());
+ }
+ catch (WebServiceException e)
+ {
+ log.debug("Caught WebServiceException ignore: " + e.getMessage());
+ }
+ }
+
+ public void testAnonymousResponsesWithReplyToSetToNone() throws Exception
+ {
+ try
+ {
+ String soapMsg = MessageFormat.format(replyToHeaderForAnonymousResponsesSoapMsg,
anonymousURL, UUID
+ .randomUUID(), W3CAddressingConstants.WSA_NONE_ADDRESS);
+ Dispatch<SOAPMessage> dispatchSM =
createDispatchSOAPMessage(anonymousService, ANONYMOUS_PORT_QNAME);
+ SOAPMessage request = JAXWS_Util.makeSOAPMessage(soapMsg);
+ dispatchSM.invoke(request);
+ fail();
+ }
+ catch (SOAPFaultException e)
+ {
+ log.debug("Caught SOAPFaultException ignore: " + e.getMessage());
+ }
+ catch (WebServiceException e)
+ {
+ log.debug("Caught WebServiceException ignore: " + e.getMessage());
+ }
+ }
+
+ public void testAnonymousResponsesWithFaultToSetToNone() throws Exception
+ {
+ try
+ {
+ String soapMsg = MessageFormat.format(faultToHeaderForAnonymousResponsesSoapMsg,
anonymousURL, UUID
+ .randomUUID(), W3CAddressingConstants.WSA_NONE_ADDRESS,
W3CAddressingConstants.WSA_ANONYMOUS_ADDRESS);
+ Dispatch<SOAPMessage> dispatchSM =
createDispatchSOAPMessage(anonymousService, ANONYMOUS_PORT_QNAME);
+ SOAPMessage request = JAXWS_Util.makeSOAPMessage(soapMsg);
+ dispatchSM.invoke(request);
+ fail();
+ }
+ catch (SOAPFaultException e)
+ {
+ log.debug("Caught SOAPFaultException ignore: " + e.getMessage());
+ }
+ catch (WebServiceException e)
+ {
+ log.debug("Caught WebServiceException ignore: " + e.getMessage());
+ }
+ }
+
+ public void testNonAnonymousResponsesWithReplyToSetToNone() throws Exception
+ {
+ try
+ {
+ String soapMsg =
MessageFormat.format(replyToHeaderForNonAnonymousResponsesSoapMsg, nonAnonymousURL, UUID
+ .randomUUID(), W3CAddressingConstants.WSA_NONE_ADDRESS);
+ Dispatch<SOAPMessage> dispatchSM =
createDispatchSOAPMessage(nonAnonymousService, NON_ANONYMOUS_PORT_QNAME);
+ SOAPMessage request = JAXWS_Util.makeSOAPMessage(soapMsg);
+ dispatchSM.invoke(request);
+ fail();
+ }
+ catch (SOAPFaultException e)
+ {
+ log.debug("Caught SOAPFaultException ignore: " + e.getMessage());
+ }
+ catch (WebServiceException e)
+ {
+ log.debug("Caught WebServiceException ignore: " + e.getMessage());
+ }
+ }
+
+ public void testNonAnonymousResponsesWithFaultToSetToNone() throws Exception
+ {
+ try
+ {
+ String soapMsg =
MessageFormat.format(faultToHeaderForNonAnonymousResponsesSoapMsg, nonAnonymousURL, UUID
+ .randomUUID(), W3CAddressingConstants.WSA_NONE_ADDRESS,
W3CAddressingConstants.WSA_ANONYMOUS_ADDRESS);
+ Dispatch<SOAPMessage> dispatchSM =
createDispatchSOAPMessage(nonAnonymousService, NON_ANONYMOUS_PORT_QNAME);
+ SOAPMessage request = JAXWS_Util.makeSOAPMessage(soapMsg);
+ dispatchSM.invoke(request);
+ fail();
+ }
+ catch (SOAPFaultException e)
+ {
+ log.debug("Caught SOAPFaultException ignore: " + e.getMessage());
+ }
+ catch (WebServiceException e)
+ {
+ log.debug("Caught WebServiceException ignore: " + e.getMessage());
+ }
+ }
+
+ public void testOnlyAnonymousAddressSupportedFaultBadReplyTo() throws Exception
+ {
+ try
+ {
+ String soapMsg = MessageFormat.format(replyToHeaderForAnonymousResponsesSoapMsg,
anonymousURL, UUID
+ .randomUUID(), anonymousURL + "/badurl");
+ Dispatch<SOAPMessage> dispatchSM =
createDispatchSOAPMessage(anonymousService, ANONYMOUS_PORT_QNAME);
+ SOAPMessage request = JAXWS_Util.makeSOAPMessage(soapMsg);
+ dispatchSM.invoke(request);
+ fail();
+ }
+ catch (SOAPFaultException e)
+ {
+ assertFaultCode(e, true);
+ assertProblemHeaderQName(e);
+ }
+ }
+
+ public void testOnlyAnonymousAddressSupportedFaultBadFaultTo() throws Exception
+ {
+ try
+ {
+ String soapMsg = MessageFormat.format(faultToHeaderForAnonymousResponsesSoapMsg,
anonymousURL, UUID
+ .randomUUID(), anonymousURL + "/badurl",
W3CAddressingConstants.WSA_ANONYMOUS_ADDRESS);
+ Dispatch<SOAPMessage> dispatchSM =
createDispatchSOAPMessage(anonymousService, ANONYMOUS_PORT_QNAME);
+ SOAPMessage request = JAXWS_Util.makeSOAPMessage(soapMsg);
+ dispatchSM.invoke(request);
+ fail();
+ }
+ catch (SOAPFaultException e)
+ {
+ assertFaultCode(e, true);
+ assertProblemHeaderQName(e);
+ }
+ }
+
+ public void testOnlyNonAnonymousAddressSupportedFaultBadReplyTo() throws Exception
+ {
+ try
+ {
+ String soapMsg =
MessageFormat.format(replyToHeaderForNonAnonymousResponsesSoapMsg, nonAnonymousURL, UUID
+ .randomUUID(), W3CAddressingConstants.WSA_ANONYMOUS_ADDRESS);
+ Dispatch<SOAPMessage> dispatchSM =
createDispatchSOAPMessage(nonAnonymousService, NON_ANONYMOUS_PORT_QNAME);
+ SOAPMessage request = JAXWS_Util.makeSOAPMessage(soapMsg);
+ dispatchSM.invoke(request);
+ fail();
+ }
+ catch (SOAPFaultException e)
+ {
+ assertFaultCode(e, false);
+ assertProblemHeaderQName(e);
+ }
+ }
+
+ public void testOnlyNonAnonymousAddressSupportedFaultBadFaultTo() throws Exception
+ {
+ try
+ {
+ String soapMsg =
MessageFormat.format(faultToHeaderForNonAnonymousResponsesSoapMsg, nonAnonymousURL, UUID
+ .randomUUID(), W3CAddressingConstants.WSA_ANONYMOUS_ADDRESS, anonymousURL
+ "/badurl");
+ Dispatch<SOAPMessage> dispatchSM =
createDispatchSOAPMessage(nonAnonymousService, NON_ANONYMOUS_PORT_QNAME);
+ SOAPMessage request = JAXWS_Util.makeSOAPMessage(soapMsg);
+ dispatchSM.invoke(request);
+ fail();
+ }
+ catch (SOAPFaultException e)
+ {
+ assertFaultCode(e, false);
+ assertProblemHeaderQName(e);
+ }
+ }
+
+ private static void assertProblemHeaderQName(final SOAPFaultException exception)
throws SOAPException
+ {
+ String faultdetail[] = WsaSOAPUtils.getFaultDetail(exception);
+ if (faultdetail != null)
+ {
+ final String msg = "FaultDetail contains unexpected value got: " +
faultdetail[0]
+ + ", expected: ProblemHeaderQName";
+ assertTrue(msg, WsaSOAPUtils.isProblemHeaderQNameFaultDetail(faultdetail[0]));
+ }
+ }
+
+ private static void assertFaultCode(final SOAPFaultException exception, final boolean
anonymous)
+ throws SOAPException
+ {
+ final String faultCode = WsaSOAPUtils.getFaultCode(exception);
+
+ if (anonymous)
+ {
+ final String msg = "SOAPFault contains unexpected faultcode got: " +
faultCode
+ + ", expected: OnlyAnonymousAddressSupported";
+ assertTrue(msg,
WsaSOAPUtils.isOnlyAnonymousAddressSupportedFaultCode(exception));
+ }
+ else
+ {
+ final String msg = "SOAPFault contains unexpected faultcode got: " +
faultCode
+ + ", expected: OnlyNonAnonymousAddressSupported";
+ assertTrue(msg,
WsaSOAPUtils.isOnlyNonAnonymousAddressSupportedFaultCode(exception));
+ }
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/common/AbstractSOAPHandler.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/common/AbstractSOAPHandler.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/common/AbstractSOAPHandler.java 2010-05-12
10:38:37 UTC (rev 12211)
@@ -0,0 +1,92 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.jaxws.jbws3022.common;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.handler.soap.SOAPMessageContext;
+
+import org.jboss.test.ws.jaxws.common.ActionNotSupportedException;
+import org.jboss.test.ws.jaxws.common.AddressingPropertyException;
+import org.jboss.test.ws.jaxws.common.W3CAddressingConstants;
+import org.jboss.test.ws.jaxws.common.WsaBaseSOAPHandler;
+
+public abstract class AbstractSOAPHandler extends WsaBaseSOAPHandler
+{
+ protected String getHeaderValue(final QName headerQName, final SOAPMessageContext
messageCtx)
+ {
+ try
+ {
+ if (W3CAddressingConstants.WSA_TO_QNAME.equals(headerQName))
+ {
+ return super.getTo(messageCtx);
+ }
+ else if (W3CAddressingConstants.WSA_REPLYTO_QNAME.equals(headerQName))
+ {
+ return super.getReplyTo(messageCtx);
+ }
+ else if (W3CAddressingConstants.WSA_MESSAGEID_QNAME.equals(headerQName))
+ {
+ return super.getMessageId(messageCtx);
+ }
+ else if (W3CAddressingConstants.WSA_RELATESTO_QNAME.equals(headerQName))
+ {
+ return super.getRelatesTo(messageCtx);
+ }
+ else
+ {
+ throw new IllegalArgumentException();
+ }
+ }
+ catch (Exception e)
+ {
+ throw new AddressingPropertyException("Addressing header " +
headerQName + " not found");
+ }
+ }
+
+ protected void assertActionHeaderValue(final String expected, final String action)
+ {
+ if (!expected.equals(action))
+ {
+ throw new ActionNotSupportedException("Expected: " + expected +
", Actual: " + action);
+ }
+ }
+
+ protected void assertAnonymousAddressURI(final QName headerQName, final
SOAPMessageContext messageCtx)
+ {
+ final String headerValue = this.getHeaderValue(headerQName, messageCtx);
+
+ if (!headerValue.equals(W3CAddressingConstants.WSA_ANONYMOUS_ADDRESS_URI))
+ throw new AddressingPropertyException("Expected: " + headerQName +
" = "
+ + W3CAddressingConstants.WSA_ANONYMOUS_ADDRESS_URI
+ + ", Actual: " + headerQName + "=" + headerValue);
+ }
+
+ protected void assertNonAnonymousAddressURI(final QName headerQName, final
SOAPMessageContext messageCtx)
+ {
+ final String headerValue = this.getHeaderValue(headerQName, messageCtx);
+
+ if (headerValue.equals(W3CAddressingConstants.WSA_ANONYMOUS_ADDRESS_URI))
+ throw new AddressingPropertyException("Expected: " + headerQName +
" != "
+ + W3CAddressingConstants.WSA_ANONYMOUS_ADDRESS_URI
+ + ", Actual: " + headerQName + "=" + headerValue);
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/common/TestConstants.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/common/TestConstants.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/common/TestConstants.java 2010-05-12
10:38:37 UTC (rev 12211)
@@ -0,0 +1,33 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.jaxws.jbws3022.common;
+
+public class TestConstants
+{
+ public static final String TEST_ANONYMOUS_RESPONSES_ASSERTION_IN_ACTION =
"http://example.com/AddNumbersPortType3/add";
+
+ public static final String TEST_ANONYMOUS_RESPONSES_ASSERTION_OUT_ACTION =
"http://example.com/AddNumbersPortType3/addResponse";
+
+ public static final String TEST_NONANONYMOUS_RESPONSES_ASSERTION_IN_ACTION =
"http://example.com/AddNumbersPortType4/add";
+
+ public static final String TEST_NONANONYMOUS_RESPONSES_ASSERTION_OUT_ACTION =
"http://example.com/AddNumbersPortType4/addResponse";
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbers.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbers.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbers.java 2010-05-12
10:38:37 UTC (rev 12211)
@@ -0,0 +1,123 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.jaxws.jbws3022.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>Java class for addNumbers complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="addNumbers">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="number1"
type="{http://www.w3.org/2001/XMLSchema}int" form="qualified"/>
+ * <element name="number2"
type="{http://www.w3.org/2001/XMLSchema}int" form="qualified"/>
+ * <element name="testName"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"
form="qualified"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbers", propOrder =
+{"number1", "number2", "testName"})
+public class AddNumbers
+{
+
+ protected int number1;
+
+ protected int number2;
+
+ protected String testName;
+
+ /**
+ * Gets the value of the number1 property.
+ *
+ */
+ public int getNumber1()
+ {
+ return number1;
+ }
+
+ /**
+ * Sets the value of the number1 property.
+ *
+ */
+ public void setNumber1(int value)
+ {
+ this.number1 = value;
+ }
+
+ /**
+ * Gets the value of the number2 property.
+ *
+ */
+ public int getNumber2()
+ {
+ return number2;
+ }
+
+ /**
+ * Sets the value of the number2 property.
+ *
+ */
+ public void setNumber2(int value)
+ {
+ this.number2 = value;
+ }
+
+ /**
+ * Gets the value of the testName property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getTestName()
+ {
+ return testName;
+ }
+
+ /**
+ * Sets the value of the testName property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setTestName(String value)
+ {
+ this.testName = value;
+ }
+
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersException.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersException.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersException.java 2010-05-12
10:38:37 UTC (rev 12211)
@@ -0,0 +1,113 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.jaxws.jbws3022.generated;
+
+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 AddNumbersException complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="AddNumbersException">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="detail"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="message"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "AddNumbersException", propOrder =
+{"detail", "message"})
+public class AddNumbersException
+{
+
+ @XmlElement(namespace = "")
+ protected String detail;
+
+ @XmlElement(namespace = "")
+ protected String message;
+
+ /**
+ * Gets the value of the detail property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDetail()
+ {
+ return detail;
+ }
+
+ /**
+ * Sets the value of the detail property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDetail(String value)
+ {
+ this.detail = value;
+ }
+
+ /**
+ * Gets the value of the message property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getMessage()
+ {
+ return message;
+ }
+
+ /**
+ * Sets the value of the message property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setMessage(String value)
+ {
+ this.message = value;
+ }
+
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersException_Exception.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersException_Exception.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersException_Exception.java 2010-05-12
10:38:37 UTC (rev 12211)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.jaxws.jbws3022.generated;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebFault(name = "AddNumbersException", targetNamespace =
"http://example.com/")
+public class AddNumbersException_Exception extends Exception
+{
+
+ /**
+ * Java type that goes as soapenv:Fault detail element.
+ *
+ */
+ private AddNumbersException faultInfo;
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ */
+ public AddNumbersException_Exception(String message, AddNumbersException faultInfo)
+ {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ * @param cause
+ */
+ public AddNumbersException_Exception(String message, AddNumbersException faultInfo,
Throwable cause)
+ {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @return
+ * returns fault bean:
org.jboss.test.ws.jaxws.jbws3022.generated.AddNumbersException
+ */
+ public AddNumbersException getFaultInfo()
+ {
+ return faultInfo;
+ }
+
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersPortType3.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersPortType3.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersPortType3.java 2010-05-12
10:38:37 UTC (rev 12211)
@@ -0,0 +1,68 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.jaxws.jbws3022.generated;
+
+import javax.jws.HandlerChain;
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.xml.bind.annotation.XmlSeeAlso;
+import javax.xml.ws.Action;
+import javax.xml.ws.FaultAction;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebService(name = "AddNumbersPortType3", targetNamespace =
"http://example.com/")
+@HandlerChain(file = "AddNumbersPortType3_handler.xml")
+@XmlSeeAlso(
+{ObjectFactory.class})
+public interface AddNumbersPortType3
+{
+
+ /**
+ *
+ * @param number2
+ * @param testName
+ * @param number1
+ * @return
+ * returns int
+ * @throws AddNumbersException_Exception
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "")
+ @RequestWrapper(localName = "addNumbers", targetNamespace =
"http://example.com/", className =
"org.jboss.test.ws.jaxws.jbws3022.generated.AddNumbers")
+ @ResponseWrapper(localName = "addNumbersResponse", targetNamespace =
"http://example.com/", className =
"org.jboss.test.ws.jaxws.jbws3022.generated.AddNumbersResponse")
+ @Action(input = "http://example.com/AddNumbersPortType3/add", output =
"http://example.com/AddNumbersPortType3/addResponse", fault =
+ {@FaultAction(className = AddNumbersException_Exception.class, value =
"http://example.com/AddNumbersPortType3/addNumbers/Fault/AddNumbersException")})
+ public int addNumbers(@WebParam(name = "number1", targetNamespace =
"http://example.com/") int number1,
+ @WebParam(name = "number2", targetNamespace =
"http://example.com/") int number2,
+ @WebParam(name = "testName", targetNamespace =
"http://example.com/") String testName)
+ throws AddNumbersException_Exception;
+
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersPortType3_handler.xml
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersPortType3_handler.xml
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersPortType3_handler.xml 2010-05-12
10:38:37 UTC (rev 12211)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?><javaee:handler-chains
xmlns:javaee="http://java.sun.com/xml/ns/javaee">
+ <javaee:handler-chain>
+ <javaee:handler>
+ <javaee:handler-name>ClientSOAPHandler</javaee:handler-name>
+
<javaee:handler-class>org.jboss.test.ws.jaxws.jbws3022.ClientSOAPHandler</javaee:handler-class>
+ </javaee:handler>
+ </javaee:handler-chain>
+</javaee:handler-chains>
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersPortType4.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersPortType4.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersPortType4.java 2010-05-12
10:38:37 UTC (rev 12211)
@@ -0,0 +1,68 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.jaxws.jbws3022.generated;
+
+import javax.jws.HandlerChain;
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.xml.bind.annotation.XmlSeeAlso;
+import javax.xml.ws.Action;
+import javax.xml.ws.FaultAction;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebService(name = "AddNumbersPortType4", targetNamespace =
"http://example.com/")
+@HandlerChain(file = "AddNumbersPortType4_handler.xml")
+@XmlSeeAlso(
+{ObjectFactory.class})
+public interface AddNumbersPortType4
+{
+
+ /**
+ *
+ * @param number2
+ * @param testName
+ * @param number1
+ * @return
+ * returns int
+ * @throws AddNumbersException_Exception
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "")
+ @RequestWrapper(localName = "addNumbers", targetNamespace =
"http://example.com/", className =
"org.jboss.test.ws.jaxws.jbws3022.generated.AddNumbers")
+ @ResponseWrapper(localName = "addNumbersResponse", targetNamespace =
"http://example.com/", className =
"org.jboss.test.ws.jaxws.jbws3022.generated.AddNumbersResponse")
+ @Action(input = "http://example.com/AddNumbersPortType4/add", output =
"http://example.com/AddNumbersPortType4/addResponse", fault =
+ {@FaultAction(className = AddNumbersException_Exception.class, value =
"http://example.com/AddNumbersPortType4/addNumbers/Fault/AddNumbersException")})
+ public int addNumbers(@WebParam(name = "number1", targetNamespace =
"http://example.com/") int number1,
+ @WebParam(name = "number2", targetNamespace =
"http://example.com/") int number2,
+ @WebParam(name = "testName", targetNamespace =
"http://example.com/") String testName)
+ throws AddNumbersException_Exception;
+
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersPortType4_handler.xml
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersPortType4_handler.xml
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersPortType4_handler.xml 2010-05-12
10:38:37 UTC (rev 12211)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?><javaee:handler-chains
xmlns:javaee="http://java.sun.com/xml/ns/javaee">
+ <javaee:handler-chain>
+ <javaee:handler>
+ <javaee:handler-name>ClientSOAPHandler</javaee:handler-name>
+
<javaee:handler-class>org.jboss.test.ws.jaxws.jbws3022.ClientSOAPHandler</javaee:handler-class>
+ </javaee:handler>
+ </javaee:handler-chain>
+</javaee:handler-chains>
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersResponse.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersResponse.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersResponse.java 2010-05-12
10:38:37 UTC (rev 12211)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.jaxws.jbws3022.generated;
+
+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 addNumbersResponse complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="addNumbersResponse">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return"
type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbersResponse", propOrder =
+{"_return"})
+public class AddNumbersResponse
+{
+
+ @XmlElement(name = "return", namespace = "")
+ protected int _return;
+
+ /**
+ * Gets the value of the return property.
+ *
+ */
+ public int getReturn()
+ {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ *
+ */
+ public void setReturn(int value)
+ {
+ this._return = value;
+ }
+
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersService3.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersService3.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersService3.java 2010-05-12
10:38:37 UTC (rev 12211)
@@ -0,0 +1,131 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.jaxws.jbws3022.generated;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+import javax.jws.HandlerChain;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.WebServiceFeature;
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebServiceClient(name = "AddNumbersService3", targetNamespace =
"http://example.com/", wsdlLocation =
"file:/opt/svn/jbossas/tags/6.0.0.20100429-M3/build/target/jboss-6.0.0.20100429-M3/bin/AddNumbersService3.wsdl")
+@HandlerChain(file = "AddNumbersService3_handler.xml")
+public class AddNumbersService3 extends Service
+{
+
+ private final static URL ADDNUMBERSSERVICE3_WSDL_LOCATION;
+
+ private final static WebServiceException ADDNUMBERSSERVICE3_EXCEPTION;
+
+ private final static QName ADDNUMBERSSERVICE3_QNAME = new
QName("http://example.com/", "AddNumbersService3");
+
+ static
+ {
+ URL url = null;
+ WebServiceException e = null;
+ try
+ {
+ url = new URL(
+
"file:/opt/svn/jbossas/tags/6.0.0.20100429-M3/build/target/jboss-6.0.0.20100429-M3/bin/AddNumbersService3.wsdl");
+ }
+ catch (MalformedURLException ex)
+ {
+ e = new WebServiceException(ex);
+ }
+ ADDNUMBERSSERVICE3_WSDL_LOCATION = url;
+ ADDNUMBERSSERVICE3_EXCEPTION = e;
+ }
+
+ public AddNumbersService3()
+ {
+ super(__getWsdlLocation(), ADDNUMBERSSERVICE3_QNAME);
+ }
+
+ public AddNumbersService3(WebServiceFeature... features)
+ {
+ super(__getWsdlLocation(), ADDNUMBERSSERVICE3_QNAME, features);
+ }
+
+ public AddNumbersService3(URL wsdlLocation)
+ {
+ super(wsdlLocation, ADDNUMBERSSERVICE3_QNAME);
+ }
+
+ public AddNumbersService3(URL wsdlLocation, WebServiceFeature... features)
+ {
+ super(wsdlLocation, ADDNUMBERSSERVICE3_QNAME, features);
+ }
+
+ public AddNumbersService3(URL wsdlLocation, QName serviceName)
+ {
+ super(wsdlLocation, serviceName);
+ }
+
+ public AddNumbersService3(URL wsdlLocation, QName serviceName, WebServiceFeature...
features)
+ {
+ super(wsdlLocation, serviceName, features);
+ }
+
+ /**
+ *
+ * @return
+ * returns AddNumbersPortType3
+ */
+ @WebEndpoint(name = "AddNumbersPort3")
+ public AddNumbersPortType3 getAddNumbersPort3()
+ {
+ return super.getPort(new
QName("http://example.com/",
"AddNumbersPort3"), AddNumbersPortType3.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 AddNumbersPortType3
+ */
+ @WebEndpoint(name = "AddNumbersPort3")
+ public AddNumbersPortType3 getAddNumbersPort3(WebServiceFeature... features)
+ {
+ return super.getPort(new
QName("http://example.com/",
"AddNumbersPort3"), AddNumbersPortType3.class, features);
+ }
+
+ private static URL __getWsdlLocation()
+ {
+ if (ADDNUMBERSSERVICE3_EXCEPTION != null)
+ {
+ throw ADDNUMBERSSERVICE3_EXCEPTION;
+ }
+ return ADDNUMBERSSERVICE3_WSDL_LOCATION;
+ }
+
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersService3_handler.xml
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersService3_handler.xml
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersService3_handler.xml 2010-05-12
10:38:37 UTC (rev 12211)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?><javaee:handler-chains
xmlns:javaee="http://java.sun.com/xml/ns/javaee">
+ <javaee:handler-chain>
+ <javaee:handler>
+ <javaee:handler-name>ClientSOAPHandler</javaee:handler-name>
+
<javaee:handler-class>org.jboss.test.ws.jaxws.jbws3022.ClientSOAPHandler</javaee:handler-class>
+ </javaee:handler>
+ </javaee:handler-chain>
+</javaee:handler-chains>
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersService4.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersService4.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersService4.java 2010-05-12
10:38:37 UTC (rev 12211)
@@ -0,0 +1,131 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.jaxws.jbws3022.generated;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+import javax.jws.HandlerChain;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.WebServiceFeature;
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebServiceClient(name = "AddNumbersService4", targetNamespace =
"http://example.com/", wsdlLocation =
"file:/opt/svn/jbossas/tags/6.0.0.20100429-M3/build/target/jboss-6.0.0.20100429-M3/bin/AddNumbersService4.wsdl")
+@HandlerChain(file = "AddNumbersService4_handler.xml")
+public class AddNumbersService4 extends Service
+{
+
+ private final static URL ADDNUMBERSSERVICE4_WSDL_LOCATION;
+
+ private final static WebServiceException ADDNUMBERSSERVICE4_EXCEPTION;
+
+ private final static QName ADDNUMBERSSERVICE4_QNAME = new
QName("http://example.com/", "AddNumbersService4");
+
+ static
+ {
+ URL url = null;
+ WebServiceException e = null;
+ try
+ {
+ url = new URL(
+
"file:/opt/svn/jbossas/tags/6.0.0.20100429-M3/build/target/jboss-6.0.0.20100429-M3/bin/AddNumbersService4.wsdl");
+ }
+ catch (MalformedURLException ex)
+ {
+ e = new WebServiceException(ex);
+ }
+ ADDNUMBERSSERVICE4_WSDL_LOCATION = url;
+ ADDNUMBERSSERVICE4_EXCEPTION = e;
+ }
+
+ public AddNumbersService4()
+ {
+ super(__getWsdlLocation(), ADDNUMBERSSERVICE4_QNAME);
+ }
+
+ public AddNumbersService4(WebServiceFeature... features)
+ {
+ super(__getWsdlLocation(), ADDNUMBERSSERVICE4_QNAME, features);
+ }
+
+ public AddNumbersService4(URL wsdlLocation)
+ {
+ super(wsdlLocation, ADDNUMBERSSERVICE4_QNAME);
+ }
+
+ public AddNumbersService4(URL wsdlLocation, WebServiceFeature... features)
+ {
+ super(wsdlLocation, ADDNUMBERSSERVICE4_QNAME, features);
+ }
+
+ public AddNumbersService4(URL wsdlLocation, QName serviceName)
+ {
+ super(wsdlLocation, serviceName);
+ }
+
+ public AddNumbersService4(URL wsdlLocation, QName serviceName, WebServiceFeature...
features)
+ {
+ super(wsdlLocation, serviceName, features);
+ }
+
+ /**
+ *
+ * @return
+ * returns AddNumbersPortType4
+ */
+ @WebEndpoint(name = "AddNumbersPort4")
+ public AddNumbersPortType4 getAddNumbersPort4()
+ {
+ return super.getPort(new
QName("http://example.com/",
"AddNumbersPort4"), AddNumbersPortType4.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 AddNumbersPortType4
+ */
+ @WebEndpoint(name = "AddNumbersPort4")
+ public AddNumbersPortType4 getAddNumbersPort4(WebServiceFeature... features)
+ {
+ return super.getPort(new
QName("http://example.com/",
"AddNumbersPort4"), AddNumbersPortType4.class, features);
+ }
+
+ private static URL __getWsdlLocation()
+ {
+ if (ADDNUMBERSSERVICE4_EXCEPTION != null)
+ {
+ throw ADDNUMBERSSERVICE4_EXCEPTION;
+ }
+ return ADDNUMBERSSERVICE4_WSDL_LOCATION;
+ }
+
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersService4_handler.xml
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersService4_handler.xml
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/AddNumbersService4_handler.xml 2010-05-12
10:38:37 UTC (rev 12211)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?><javaee:handler-chains
xmlns:javaee="http://java.sun.com/xml/ns/javaee">
+ <javaee:handler-chain>
+ <javaee:handler>
+ <javaee:handler-name>ClientSOAPHandler</javaee:handler-name>
+
<javaee:handler-class>org.jboss.test.ws.jaxws.jbws3022.ClientSOAPHandler</javaee:handler-class>
+ </javaee:handler>
+ </javaee:handler-chain>
+</javaee:handler-chains>
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/ObjectFactory.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/ObjectFactory.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/ObjectFactory.java 2010-05-12
10:38:37 UTC (rev 12211)
@@ -0,0 +1,118 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.jaxws.jbws3022.generated;
+
+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.jbws3022.generated 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 _AddNumbersException_QNAME = new
QName("http://example.com/", "AddNumbersException");
+
+ private final static QName _AddNumbers_QNAME = new
QName("http://example.com/", "addNumbers");
+
+ private final static QName _AddNumbersResponse_QNAME = new
QName("http://example.com/", "addNumbersResponse");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema
derived classes for package: org.jboss.test.ws.jaxws.jbws3022.generated
+ *
+ */
+ public ObjectFactory()
+ {
+ }
+
+ /**
+ * Create an instance of {@link AddNumbersResponse }
+ *
+ */
+ public AddNumbersResponse createAddNumbersResponse()
+ {
+ return new AddNumbersResponse();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbersException }
+ *
+ */
+ public AddNumbersException createAddNumbersException()
+ {
+ return new AddNumbersException();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbers }
+ *
+ */
+ public AddNumbers createAddNumbers()
+ {
+ return new AddNumbers();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersException
}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name =
"AddNumbersException")
+ public JAXBElement<AddNumbersException>
createAddNumbersException(AddNumbersException value)
+ {
+ return new JAXBElement<AddNumbersException>(_AddNumbersException_QNAME,
AddNumbersException.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbers }{@code
>}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name =
"addNumbers")
+ public JAXBElement<AddNumbers> createAddNumbers(AddNumbers value)
+ {
+ return new JAXBElement<AddNumbers>(_AddNumbers_QNAME, AddNumbers.class, null,
value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersResponse
}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.com/", name =
"addNumbersResponse")
+ public JAXBElement<AddNumbersResponse>
createAddNumbersResponse(AddNumbersResponse value)
+ {
+ return new JAXBElement<AddNumbersResponse>(_AddNumbersResponse_QNAME,
AddNumbersResponse.class, null, value);
+ }
+
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/package-info.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/package-info.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/generated/package-info.java 2010-05-12
10:38:37 UTC (rev 12211)
@@ -0,0 +1,23 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.
+ */
+(a)javax.xml.bind.annotation.XmlSchema(namespace = "http://example.com/",
elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
+package org.jboss.test.ws.jaxws.jbws3022.generated;
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/service/AddNumbersException.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/service/AddNumbersException.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/service/AddNumbersException.java 2010-05-12
10:38:37 UTC (rev 12211)
@@ -0,0 +1,38 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.jaxws.jbws3022.service;
+
+public class AddNumbersException extends Exception
+{
+ String detail;
+
+ public AddNumbersException(String message, String detail)
+ {
+ super(message);
+ this.detail = detail;
+ }
+
+ public String getDetail()
+ {
+ return detail;
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/service/AddNumbersImpl3.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/service/AddNumbersImpl3.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/service/AddNumbersImpl3.java 2010-05-12
10:38:37 UTC (rev 12211)
@@ -0,0 +1,51 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.jaxws.jbws3022.service;
+
+import javax.jws.WebService;
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.HandlerChain;
+import javax.xml.ws.Action;
+import javax.xml.ws.soap.Addressing;
+import javax.xml.ws.soap.AddressingFeature;
+
+@WebService(name = "AddNumbersPortType3", portName =
"AddNumbersPort3", serviceName = "AddNumbersService3", targetNamespace
= "http://example.com/",
wsdlLocation="WEB-INF/wsdl/AddNumbersService3.wsdl")
+@Addressing(enabled = true, required = true, responses =
AddressingFeature.Responses.ANONYMOUS)
+@HandlerChain(name = "", file = "server-handler.xml")
+public class AddNumbersImpl3
+{
+ @Action(input = "http://example.com/AddNumbersPortType3/add", output =
"http://example.com/AddNumbersPortType3/addResponse")
+ @WebMethod
+ public int addNumbers(@WebParam(name = "number1", targetNamespace =
"http://example.com/") int number1,
+ @WebParam(name = "number2", targetNamespace =
"http://example.com/") int number2,
+ @WebParam(name = "testName", targetNamespace =
"http://example.com/") String testName)
+ throws AddNumbersException
+ {
+
+ if (number1 < 0 || number2 < 0)
+ {
+ throw new AddNumbersException("Negative numbers can't be added!",
"Numbers: " + number1 + ", " + number2);
+ }
+ return number1 + number2;
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/service/AddNumbersImpl4.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/service/AddNumbersImpl4.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/service/AddNumbersImpl4.java 2010-05-12
10:38:37 UTC (rev 12211)
@@ -0,0 +1,50 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.jaxws.jbws3022.service;
+
+import javax.jws.WebService;
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.HandlerChain;
+import javax.xml.ws.Action;
+import javax.xml.ws.soap.Addressing;
+import javax.xml.ws.soap.AddressingFeature;
+
+@WebService(name = "AddNumbersPortType4", portName =
"AddNumbersPort4", serviceName = "AddNumbersService4", targetNamespace
= "http://example.com/",
wsdlLocation="WEB-INF/wsdl/AddNumbersService4.wsdl")
+@Addressing(enabled = true, required = true, responses =
AddressingFeature.Responses.NON_ANONYMOUS)
+@HandlerChain(name = "", file = "server-handler.xml")
+public class AddNumbersImpl4
+{
+ @Action(input = "http://example.com/AddNumbersPortType4/add", output =
"http://example.com/AddNumbersPortType4/addResponse")
+ @WebMethod
+ public int addNumbers(@WebParam(name = "number1", targetNamespace =
"http://example.com/") int number1,
+ @WebParam(name = "number2", targetNamespace =
"http://example.com/") int number2,
+ @WebParam(name = "testName", targetNamespace =
"http://example.com/") String testName)
+ throws AddNumbersException
+ {
+ if (number1 < 0 || number2 < 0)
+ {
+ throw new AddNumbersException("Negative numbers can't be added!",
"Numbers: " + number1 + ", " + number2);
+ }
+ return number1 + number2;
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/service/ServerSOAPHandler.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/service/ServerSOAPHandler.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/service/ServerSOAPHandler.java 2010-05-12
10:38:37 UTC (rev 12211)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.jaxws.jbws3022.service;
+
+import javax.xml.ws.handler.soap.SOAPMessageContext;
+
+import org.jboss.test.ws.jaxws.common.Handler_Util;
+import org.jboss.test.ws.jaxws.common.W3CAddressingConstants;
+import org.jboss.test.ws.jaxws.jbws3022.common.AbstractSOAPHandler;
+import org.jboss.test.ws.jaxws.jbws3022.common.TestConstants;
+
+public final class ServerSOAPHandler extends AbstractSOAPHandler
+{
+ protected String whichHandler()
+ {
+ return "ServerSOAPHandler";
+ }
+
+ protected void checkInboundAction(final SOAPMessageContext context, final String oper,
final String action)
+ {
+ if (Handler_Util.checkForMsg(context,
"testAnonymousResponsesAssertion"))
+ {
+ assertAnonymousResponsesAddressingHeaders(context, action);
+ }
+ else if (Handler_Util.checkForMsg(context,
"testNonAnonymousResponsesAssertion"))
+ {
+ assertNonAnonymousResponsesAddressingHeaders(context, action);
+ }
+ }
+
+ private void assertAnonymousResponsesAddressingHeaders(final SOAPMessageContext
messageCtx, final String action)
+ {
+
super.assertActionHeaderValue(TestConstants.TEST_ANONYMOUS_RESPONSES_ASSERTION_IN_ACTION,
action);
+
+ final String messageID =
super.getHeaderValue(W3CAddressingConstants.WSA_MESSAGEID_QNAME, messageCtx);
+ assert messageID != null;
+
+ final String to = super.getHeaderValue(W3CAddressingConstants.WSA_TO_QNAME,
messageCtx);
+ assert to != null;
+
+ super.assertAnonymousAddressURI(W3CAddressingConstants.WSA_REPLYTO_QNAME,
messageCtx);
+ }
+
+ private void assertNonAnonymousResponsesAddressingHeaders(final SOAPMessageContext
messageCtx, final String action)
+ {
+
super.assertActionHeaderValue(TestConstants.TEST_NONANONYMOUS_RESPONSES_ASSERTION_IN_ACTION,
action);
+
+ final String messageID =
super.getHeaderValue(W3CAddressingConstants.WSA_MESSAGEID_QNAME, messageCtx);
+ assert messageID != null;
+
+ final String to = super.getHeaderValue(W3CAddressingConstants.WSA_TO_QNAME,
messageCtx);
+ assert to != null;
+
+ super.assertNonAnonymousAddressURI(W3CAddressingConstants.WSA_REPLYTO_QNAME,
messageCtx);
+ }
+}
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/service/server-handler.xml
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/service/server-handler.xml
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3022/service/server-handler.xml 2010-05-12
10:38:37 UTC (rev 12211)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<handler-chains
xmlns="http://java.sun.com/xml/ns/javaee">
+ <handler-chain>
+ <handler>
+ <handler-name>ServerSOAPHandler</handler-name>
+
<handler-class>org.jboss.test.ws.jaxws.jbws3022.service.ServerSOAPHandler</handler-class>
+ </handler>
+ </handler-chain>
+</handler-chains>
Added: framework/trunk/testsuite/test/resources/jaxws/jbws3022/WEB-INF/jboss-web.xml
===================================================================
--- framework/trunk/testsuite/test/resources/jaxws/jbws3022/WEB-INF/jboss-web.xml
(rev 0)
+++
framework/trunk/testsuite/test/resources/jaxws/jbws3022/WEB-INF/jboss-web.xml 2010-05-12
10:38:37 UTC (rev 12211)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN"
"http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
+
+<jboss-web>
+ <context-root>/jaxws-jbws3022</context-root>
+</jboss-web>
\ No newline at end of file
Added: framework/trunk/testsuite/test/resources/jaxws/jbws3022/WEB-INF/web.xml
===================================================================
--- framework/trunk/testsuite/test/resources/jaxws/jbws3022/WEB-INF/web.xml
(rev 0)
+++ framework/trunk/testsuite/test/resources/jaxws/jbws3022/WEB-INF/web.xml 2010-05-12
10:38:37 UTC (rev 12211)
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.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/web-app_2_5.xsd">
+
+ <display-name>JBWS-3022 Test</display-name>
+ <servlet>
+
<servlet-name>org.jboss.test.ws.jaxws.jbws3022.service.AddNumbersImpl3</servlet-name>
+
<servlet-class>org.jboss.test.ws.jaxws.jbws3022.service.AddNumbersImpl3</servlet-class>
+ <load-on-startup>0</load-on-startup>
+ </servlet>
+ <servlet>
+
<servlet-name>org.jboss.test.ws.jaxws.jbws3022.service.AddNumbersImpl4</servlet-name>
+
<servlet-class>org.jboss.test.ws.jaxws.jbws3022.service.AddNumbersImpl4</servlet-class>
+ <load-on-startup>0</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+
<servlet-name>org.jboss.test.ws.jaxws.jbws3022.service.AddNumbersImpl3</servlet-name>
+ <url-pattern>/jaxws/AddNumbers3</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+
<servlet-name>org.jboss.test.ws.jaxws.jbws3022.service.AddNumbersImpl4</servlet-name>
+ <url-pattern>/jaxws/AddNumbers4</url-pattern>
+ </servlet-mapping>
+ <session-config>
+ <session-timeout>54</session-timeout>
+ </session-config>
+</web-app>
+
Added:
framework/trunk/testsuite/test/resources/jaxws/jbws3022/WEB-INF/wsdl/AddNumbersService3.wsdl
===================================================================
---
framework/trunk/testsuite/test/resources/jaxws/jbws3022/WEB-INF/wsdl/AddNumbersService3.wsdl
(rev 0)
+++
framework/trunk/testsuite/test/resources/jaxws/jbws3022/WEB-INF/wsdl/AddNumbersService3.wsdl 2010-05-12
10:38:37 UTC (rev 12211)
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions name="AddNumbersService3"
targetNamespace="http://example.com/"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://example.com/"
xmlns:wsa="http://www.w3.org/2007/05/addressing/metadata"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <types>
+ <xs:schema
targetNamespace="http://example.com/" version="1.0"
xmlns:tns="http://example.com/"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
+ <xs:element name="AddNumbersException"
type="tns:AddNumbersException"/>
+ <xs:element name="addNumbers" type="tns:addNumbers"/>
+ <xs:element name="addNumbersResponse"
type="tns:addNumbersResponse"/>
+ <xs:complexType name="addNumbers">
+ <xs:sequence>
+ <xs:element form="qualified" name="number1"
type="xs:int"/>
+ <xs:element form="qualified" name="number2"
type="xs:int"/>
+ <xs:element form="qualified" minOccurs="0"
name="testName" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="addNumbersResponse">
+ <xs:sequence>
+ <xs:element name="return" type="xs:int"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="AddNumbersException">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="detail"
type="xs:string"/>
+ <xs:element minOccurs="0" name="message"
type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:schema>
+ </types>
+ <message name="AddNumbersException">
+ <part element="tns:AddNumbersException"
name="AddNumbersException"/>
+ </message>
+ <message name="AddNumbersPortType3_addNumbers">
+ <part element="tns:addNumbers" name="addNumbers"/>
+ </message>
+ <message name="AddNumbersPortType3_addNumbersResponse">
+ <part element="tns:addNumbersResponse"
name="addNumbersResponse"/>
+ </message>
+ <portType name="AddNumbersPortType3">
+ <operation name="addNumbers" parameterOrder="addNumbers">
+ <input message="tns:AddNumbersPortType3_addNumbers"
wsa:Action="http://example.com/AddNumbersPortType3/add"/>
+ <output message="tns:AddNumbersPortType3_addNumbersResponse"
wsa:Action="http://example.com/AddNumbersPortType3/addResponse"...
+ <fault message="tns:AddNumbersException"
name="AddNumbersException"
wsa:Action="http://example.com/AddNumbersPortType3/addNumbers/Fault/...
+ </operation>
+ </portType>
+ <binding name="AddNumbersPortType3Binding"
type="tns:AddNumbersPortType3">
+ <wsp:PolicyReference URI="#a7bb8243-904e-4a6b-a7c0-afee3f99c9ec"
xmlns:wsp="http://www.w3.org/ns/ws-policy"/>
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="addNumbers">
+ <soap:operation soapAction=""/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ <fault name="AddNumbersException">
+ <soap:fault name="AddNumbersException" use="literal"/>
+ </fault>
+ </operation>
+ </binding>
+ <service name="AddNumbersService3">
+ <port binding="tns:AddNumbersPortType3Binding"
name="AddNumbersPort3">
+ <soap:address
location="http://localhost:8080/jaxws-jbws3022/jaxws/AddNumbers3"/>
+ </port>
+ </service>
+ <wsp:Policy wsu:Id="a7bb8243-904e-4a6b-a7c0-afee3f99c9ec"
xmlns:wsp="http://www.w3.org/ns/ws-policy"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-w...
+ <wsam:Addressing
xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata">
+ <wsp:Policy/>
+ </wsam:Addressing>
+ </wsp:Policy>
+</definitions>
\ No newline at end of file
Added:
framework/trunk/testsuite/test/resources/jaxws/jbws3022/WEB-INF/wsdl/AddNumbersService4.wsdl
===================================================================
---
framework/trunk/testsuite/test/resources/jaxws/jbws3022/WEB-INF/wsdl/AddNumbersService4.wsdl
(rev 0)
+++
framework/trunk/testsuite/test/resources/jaxws/jbws3022/WEB-INF/wsdl/AddNumbersService4.wsdl 2010-05-12
10:38:37 UTC (rev 12211)
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions name="AddNumbersService4"
targetNamespace="http://example.com/"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://example.com/"
xmlns:wsa="http://www.w3.org/2007/05/addressing/metadata"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <types>
+ <xs:schema
targetNamespace="http://example.com/" version="1.0"
xmlns:tns="http://example.com/"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
+ <xs:element name="AddNumbersException"
type="tns:AddNumbersException"/>
+ <xs:element name="addNumbers" type="tns:addNumbers"/>
+ <xs:element name="addNumbersResponse"
type="tns:addNumbersResponse"/>
+ <xs:complexType name="addNumbers">
+ <xs:sequence>
+ <xs:element form="qualified" name="number1"
type="xs:int"/>
+ <xs:element form="qualified" name="number2"
type="xs:int"/>
+ <xs:element form="qualified" minOccurs="0"
name="testName" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="addNumbersResponse">
+ <xs:sequence>
+ <xs:element name="return" type="xs:int"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="AddNumbersException">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="detail"
type="xs:string"/>
+ <xs:element minOccurs="0" name="message"
type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:schema>
+ </types>
+ <message name="AddNumbersPortType4_addNumbersResponse">
+ <part element="tns:addNumbersResponse"
name="addNumbersResponse"/>
+ </message>
+ <message name="AddNumbersException">
+ <part element="tns:AddNumbersException"
name="AddNumbersException"/>
+ </message>
+ <message name="AddNumbersPortType4_addNumbers">
+ <part element="tns:addNumbers" name="addNumbers"/>
+ </message>
+ <portType name="AddNumbersPortType4">
+ <operation name="addNumbers" parameterOrder="addNumbers">
+ <input message="tns:AddNumbersPortType4_addNumbers"
wsa:Action="http://example.com/AddNumbersPortType4/add"/>
+ <output message="tns:AddNumbersPortType4_addNumbersResponse"
wsa:Action="http://example.com/AddNumbersPortType4/addResponse"...
+ <fault message="tns:AddNumbersException"
name="AddNumbersException"
wsa:Action="http://example.com/AddNumbersPortType4/addNumbers/Fault/...
+ </operation>
+ </portType>
+ <binding name="AddNumbersPortType4Binding"
type="tns:AddNumbersPortType4">
+ <wsp:PolicyReference URI="#7a647e5-d212-4ba9-a5c9-b4c643bb9099"
xmlns:wsp="http://www.w3.org/ns/ws-policy"/>
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="addNumbers">
+ <soap:operation soapAction=""/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ <fault name="AddNumbersException">
+ <soap:fault name="AddNumbersException" use="literal"/>
+ </fault>
+ </operation>
+ </binding>
+ <service name="AddNumbersService4">
+ <port binding="tns:AddNumbersPortType4Binding"
name="AddNumbersPort4">
+ <soap:address
location="http://localhost:8080/jaxws-jbws3022/jaxws/AddNumbers4"/>
+ </port>
+ </service>
+ <wsp:Policy wsu:Id="7a647e5-d212-4ba9-a5c9-b4c643bb9099"
xmlns:wsp="http://www.w3.org/ns/ws-policy"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-w...
+ <wsam:Addressing
xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata">
+ <wsp:Policy/>
+ </wsam:Addressing>
+ </wsp:Policy>
+</definitions>
\ No newline at end of file
Added: framework/trunk/testsuite/test/resources/jaxws/jbws3022/customfile3.xml
===================================================================
--- framework/trunk/testsuite/test/resources/jaxws/jbws3022/customfile3.xml
(rev 0)
+++ framework/trunk/testsuite/test/resources/jaxws/jbws3022/customfile3.xml 2010-05-12
10:38:37 UTC (rev 12211)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"
standalone="yes"?>
+<jaxws:bindings
+ wsdlLocation="AddNumbersService3.wsdl"
+
xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
+
xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+ <jaxws:bindings node="wsdl:definitions">
+ <jaxws:package
name="org.jboss.test.ws.jaxws.jbws3022.generated"/>
+ </jaxws:bindings>
+ <jaxws:bindings>
+ <javaee:handler-chains>
+ <javaee:handler-chain>
+ <javaee:handler>
+
<javaee:handler-name>ClientSOAPHandler</javaee:handler-name>
+
<javaee:handler-class>org.jboss.test.ws.jaxws.jbws3022.ClientSOAPHandler</javaee:handler-class>
+ </javaee:handler>
+ </javaee:handler-chain>
+ </javaee:handler-chains>
+ </jaxws:bindings>
+ <!-- JBossWS generates XML schemas inside WSDL, not in separate schema files like
Sun RI -->
+ <jaxws:bindings
node="wsdl:definitions/wsdl:types/xs:schema[@targetNamespace='http://example.com/']">
+ <jaxb:schemaBindings>
+ <jaxb:package
name="org.jboss.test.ws.jaxws.jbws3022.generated"/>
+ </jaxb:schemaBindings>
+ </jaxws:bindings>
+
+</jaxws:bindings>
Added: framework/trunk/testsuite/test/resources/jaxws/jbws3022/customfile4.xml
===================================================================
--- framework/trunk/testsuite/test/resources/jaxws/jbws3022/customfile4.xml
(rev 0)
+++ framework/trunk/testsuite/test/resources/jaxws/jbws3022/customfile4.xml 2010-05-12
10:38:37 UTC (rev 12211)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"
standalone="yes"?>
+<jaxws:bindings
+ wsdlLocation="AddNumbersService4.wsdl"
+
xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
+
xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+ <jaxws:bindings node="wsdl:definitions">
+ <jaxws:package
name="org.jboss.test.ws.jaxws.jbws3022.generated"/>
+ </jaxws:bindings>
+ <jaxws:bindings>
+ <javaee:handler-chains>
+ <javaee:handler-chain>
+ <javaee:handler>
+
<javaee:handler-name>ClientSOAPHandler</javaee:handler-name>
+
<javaee:handler-class>org.jboss.test.ws.jaxws.jbws3022.ClientSOAPHandler</javaee:handler-class>
+ </javaee:handler>
+ </javaee:handler-chain>
+ </javaee:handler-chains>
+ </jaxws:bindings>
+ <!-- JBossWS generates XML schemas inside WSDL, not in separate schema files like
Sun RI -->
+ <jaxws:bindings
node="wsdl:definitions/wsdl:types/xs:schema[@targetNamespace='http://example.com/']">
+ <jaxb:schemaBindings>
+ <jaxb:package
name="org.jboss.test.ws.jaxws.jbws3022.generated"/>
+ </jaxb:schemaBindings>
+ </jaxws:bindings>
+
+</jaxws:bindings>