Author: jim.ma
Date: 2012-12-06 04:38:51 -0500 (Thu, 06 Dec 2012)
New Revision: 17056
Added:
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1198/
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1198/ObjectFactory.java
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1198/SignatureHeaderFaultContractRpc.java
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1198/SignatureRpcLiteral.java
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1198/SignatureRpcLiteralImpl.java
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1198/SignatureRpcLiteralSign2SignatureHeaderRpcFaultFaultMessage.java
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1198/Test1198TestCase.java
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1198/
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1198/WEB-INF/
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1198/WEB-INF/web.xml
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1198/WEB-INF/wsdl/
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1198/WEB-INF/wsdl/SignatureRpcLit.wsdl
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1198/WEB-INF/wsdl/SignatureRpcLit0.wsdl
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1198/WEB-INF/wsdl/SignatureRpcLit1.wsdl
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1198/WEB-INF/wsdl/SignatureRpcLit1.xsd
Modified:
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/scripts/cxf-jars-jaxws.xml
Log:
Add WS-I BP Test1198
Modified:
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/scripts/cxf-jars-jaxws.xml
===================================================================
---
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/scripts/cxf-jars-jaxws.xml 2012-12-05
18:24:38 UTC (rev 17055)
+++
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/scripts/cxf-jars-jaxws.xml 2012-12-06
09:38:51 UTC (rev 17056)
@@ -148,7 +148,17 @@
<include name="wsdl/*" />
</webinf>
</war>
-
-
+
+ <!-- jaxws-bp12test1198 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-bp12test1198.war"
webxml="${tests.output.dir}/test-resources/jaxws/bp12/wsa/test1198/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include
name="org/jboss/test/ws/jaxws/bp12/wsa/test1198/*.class"/>
+ <exclude
name="org/jboss/test/ws/jaxws/bp12/wsa/test1198/*TestCase.class"/>
+ </classes>
+ <webinf
dir="${tests.output.dir}/test-resources/jaxws/bp12/wsa/test1198/WEB-INF">
+ <include name="wsdl/*" />
+ </webinf>
+ </war>
+
</target>
</project>
Added:
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1198/ObjectFactory.java
===================================================================
---
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1198/ObjectFactory.java
(rev 0)
+++
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1198/ObjectFactory.java 2012-12-06
09:38:51 UTC (rev 17056)
@@ -0,0 +1,87 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.bp12.wsa.test1198;
+
+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.bp12.wsa.test1198 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 _SignatureHeaderFaultContractRpc_QNAME = new
QName("http://example.org/signature",
"SignatureHeaderFaultContractRpc");
+ private final static QName
_SignatureHeaderFaultContractRpcFaultAdditionalTextRpc_QNAME = new
QName("http://example.org/signature", "FaultAdditionalTextRpc");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema
derived classes for package: org.jboss.test.ws.jaxws.bp12.wsa.test1198
+ *
+ */
+ public ObjectFactory()
+ {
+ }
+
+ /**
+ * Create an instance of {@link SignatureHeaderFaultContractRpc }
+ *
+ */
+ public SignatureHeaderFaultContractRpc createSignatureHeaderFaultContractRpc()
+ {
+ return new SignatureHeaderFaultContractRpc();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link
SignatureHeaderFaultContractRpc }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.org/signature", name =
"SignatureHeaderFaultContractRpc")
+ public JAXBElement<SignatureHeaderFaultContractRpc>
createSignatureHeaderFaultContractRpc(SignatureHeaderFaultContractRpc value)
+ {
+ return new
JAXBElement<SignatureHeaderFaultContractRpc>(_SignatureHeaderFaultContractRpc_QNAME,
SignatureHeaderFaultContractRpc.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.org/signature", name =
"FaultAdditionalTextRpc", scope = SignatureHeaderFaultContractRpc.class)
+ public JAXBElement<String>
createSignatureHeaderFaultContractRpcFaultAdditionalTextRpc(String value)
+ {
+ return new
JAXBElement<String>(_SignatureHeaderFaultContractRpcFaultAdditionalTextRpc_QNAME,
String.class, SignatureHeaderFaultContractRpc.class, value);
+ }
+
+}
Added:
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1198/SignatureHeaderFaultContractRpc.java
===================================================================
---
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1198/SignatureHeaderFaultContractRpc.java
(rev 0)
+++
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1198/SignatureHeaderFaultContractRpc.java 2012-12-06
09:38:51 UTC (rev 17056)
@@ -0,0 +1,83 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.bp12.wsa.test1198;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElementRef;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>Java class for SignatureHeaderFaultContractRpc complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="SignatureHeaderFaultContractRpc">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="FaultAdditionalTextRpc"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "SignatureHeaderFaultContractRpc", propOrder = {
"faultAdditionalTextRpc" })
+public class SignatureHeaderFaultContractRpc
+{
+
+ @XmlElementRef(name = "FaultAdditionalTextRpc", namespace =
"http://example.org/signature", type = JAXBElement.class)
+ protected JAXBElement<String> faultAdditionalTextRpc;
+
+ /**
+ * Gets the value of the faultAdditionalTextRpc property.
+ *
+ * @return
+ * possible object is
+ * {@link JAXBElement }{@code <}{@link String }{@code >}
+ *
+ */
+ public JAXBElement<String> getFaultAdditionalTextRpc()
+ {
+ return faultAdditionalTextRpc;
+ }
+
+ /**
+ * Sets the value of the faultAdditionalTextRpc property.
+ *
+ * @param value
+ * allowed object is
+ * {@link JAXBElement }{@code <}{@link String }{@code >}
+ *
+ */
+ public void setFaultAdditionalTextRpc(JAXBElement<String> value)
+ {
+ this.faultAdditionalTextRpc = value;
+ }
+
+}
Added:
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1198/SignatureRpcLiteral.java
===================================================================
---
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1198/SignatureRpcLiteral.java
(rev 0)
+++
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1198/SignatureRpcLiteral.java 2012-12-06
09:38:51 UTC (rev 17056)
@@ -0,0 +1,51 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.bp12.wsa.test1198;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.xml.bind.annotation.XmlSeeAlso;
+import javax.xml.ws.Action;
+import javax.xml.ws.FaultAction;
+
+@WebService(targetNamespace = "http://example.org/signature", name =
"SignatureRpcLiteral")
+@XmlSeeAlso({ ObjectFactory.class })
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface SignatureRpcLiteral
+{
+
+ @WebResult(name = "Sign1Result", targetNamespace =
"http://example.org/signature", partName = "Sign1Result")
+ @Action(input = "http://example.org/action/SignatureRpcInEmpty", output =
"http://example.org/action/SignatureRpcOutEmpty")
+ @WebMethod(operationName = "Sign1", action =
"http://example.org/action/SignatureRpcInEmpty")
+ public String sign1();
+
+ @WebResult(name = "Sign2Result", targetNamespace =
"http://example.org/signature", partName = "Sign2Result")
+ @Action(input = "http://example.org/action/SignatureHeaderRpcIn", output =
"http://example.org/action/SignatureHeaderRpcReply", fault = {
@FaultAction(className =
SignatureRpcLiteralSign2SignatureHeaderRpcFaultFaultMessage.class, value =
"http://example.org/action/SignatureHeaderFaultRpc") })
+ @WebMethod(operationName = "Sign2", action =
"http://example.org/action/SignatureHeaderRpcIn")
+ public String sign2(@WebParam(partName = "parameter1", name =
"parameter1")
+ String parameter1,
+ @WebParam(partName = "parameter2", name =
"parameter2")
+ String parameter2) throws
SignatureRpcLiteralSign2SignatureHeaderRpcFaultFaultMessage;
+}
Added:
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1198/SignatureRpcLiteralImpl.java
===================================================================
---
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1198/SignatureRpcLiteralImpl.java
(rev 0)
+++
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1198/SignatureRpcLiteralImpl.java 2012-12-06
09:38:51 UTC (rev 17056)
@@ -0,0 +1,49 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2012, 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.bp12.wsa.test1198;
+
+import javax.jws.WebService;
+
+@WebService(serviceName = "WSAddressingCR",
+ portName = "CustomBinding_SignatureRpcLiteral",
+ targetNamespace = "http://tempuri.org/",
+ wsdlLocation = "WEB-INF/wsdl/SignatureRpcLit.wsdl",
+ endpointInterface =
"org.jboss.test.ws.jaxws.bp12.wsa.test1198.SignatureRpcLiteral")
+public class SignatureRpcLiteralImpl implements SignatureRpcLiteral
+{
+
+ public String sign1()
+ {
+ return "Sign1";
+ }
+
+ public String sign2(String parameter1, String parameter2) throws
SignatureRpcLiteralSign2SignatureHeaderRpcFaultFaultMessage
+ {
+ if (parameter1.equals("Fault"))
+ {
+ new SignatureRpcLiteralSign2SignatureHeaderRpcFaultFaultMessage("Fault :
" + parameter1 + "," + parameter2);
+ }
+ return "Sign2, Parameter=" + parameter1 + ",Parameter=" +
parameter2;
+ }
+
+}
Added:
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1198/SignatureRpcLiteralSign2SignatureHeaderRpcFaultFaultMessage.java
===================================================================
---
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1198/SignatureRpcLiteralSign2SignatureHeaderRpcFaultFaultMessage.java
(rev 0)
+++
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1198/SignatureRpcLiteralSign2SignatureHeaderRpcFaultFaultMessage.java 2012-12-06
09:38:51 UTC (rev 17056)
@@ -0,0 +1,64 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.bp12.wsa.test1198;
+
+import javax.xml.ws.WebFault;
+
+@WebFault(name = "SignatureHeaderFaultContractRpc", targetNamespace =
"http://example.org/signature")
+public class SignatureRpcLiteralSign2SignatureHeaderRpcFaultFaultMessage extends
Exception
+{
+ private org.jboss.test.ws.jaxws.bp12.wsa.test1198.SignatureHeaderFaultContractRpc
signatureHeaderFaultContractRpc;
+
+ public SignatureRpcLiteralSign2SignatureHeaderRpcFaultFaultMessage()
+ {
+ super();
+ }
+
+ public SignatureRpcLiteralSign2SignatureHeaderRpcFaultFaultMessage(String message)
+ {
+ super(message);
+ }
+
+ public SignatureRpcLiteralSign2SignatureHeaderRpcFaultFaultMessage(String message,
Throwable cause)
+ {
+ super(message, cause);
+ }
+
+ public SignatureRpcLiteralSign2SignatureHeaderRpcFaultFaultMessage(String message,
+ org.jboss.test.ws.jaxws.bp12.wsa.test1198.SignatureHeaderFaultContractRpc
signatureHeaderFaultContractRpc)
+ {
+ super(message);
+ this.signatureHeaderFaultContractRpc = signatureHeaderFaultContractRpc;
+ }
+
+ public SignatureRpcLiteralSign2SignatureHeaderRpcFaultFaultMessage(String message,
+ org.jboss.test.ws.jaxws.bp12.wsa.test1198.SignatureHeaderFaultContractRpc
signatureHeaderFaultContractRpc, Throwable cause)
+ {
+ super(message, cause);
+ this.signatureHeaderFaultContractRpc = signatureHeaderFaultContractRpc;
+ }
+
+ public org.jboss.test.ws.jaxws.bp12.wsa.test1198.SignatureHeaderFaultContractRpc
getFaultInfo()
+ {
+ return this.signatureHeaderFaultContractRpc;
+ }
+}
Added:
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1198/Test1198TestCase.java
===================================================================
---
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1198/Test1198TestCase.java
(rev 0)
+++
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1198/Test1198TestCase.java 2012-12-06
09:38:51 UTC (rev 17056)
@@ -0,0 +1,82 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.bp12.wsa.test1198;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSCXFTestSetup;
+import org.jboss.wsf.test.JBossWSTest;
+
+public class Test1198TestCase extends JBossWSTest
+{
+ private final String serviceURL = "http://" + getServerHost() +
":8080/jaxws-bp12test1198/Test1198";
+
+ public static Test suite()
+ {
+ return new JBossWSCXFTestSetup(Test1198TestCase.class,
"jaxws-bp12test1198.war");
+ }
+
+ public void testSignature() throws Exception
+ {
+ // construct proxy
+ QName serviceName = new
QName("http://tempuri.org/",
"WSAddressingCR");
+ URL wsdlURL = new URL(serviceURL + "?wsdl");
+ Service service = Service.create(wsdlURL, serviceName);
+ SignatureRpcLiteral port = (SignatureRpcLiteral)
service.getPort(SignatureRpcLiteral.class);
+ // invoke method
+ ((BindingProvider)
port).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
+ "http://" + getServerHost() +
":9090/jaxws-bp12test1198/Test1198");
+
+
+ //request 1
+ System.out.println("Invoking sign1...");
+ String response = port.sign1();
+ System.out.println(response);
+
+
+ //request 2
+ System.out.println("Invoking sign2...");
+ response = port.sign2("Hello", "World");
+ System.out.println(response);
+
+
+ //request 3
+ System.out.println("Invoking sign2 and exception is expected...");
+ try
+ {
+ response = port.sign2("Fault","World");
+ }
+ catch (Exception e)
+ {
+ System.out.println("sign2 exception message : " + e.getMessage());
+ }
+
+ }
+
+
+}
\ No newline at end of file
Added:
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1198/WEB-INF/web.xml
===================================================================
(Binary files differ)
Property changes on:
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1198/WEB-INF/web.xml
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added:
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1198/WEB-INF/wsdl/SignatureRpcLit.wsdl
===================================================================
(Binary files differ)
Property changes on:
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1198/WEB-INF/wsdl/SignatureRpcLit.wsdl
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added:
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1198/WEB-INF/wsdl/SignatureRpcLit0.wsdl
===================================================================
(Binary files differ)
Property changes on:
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1198/WEB-INF/wsdl/SignatureRpcLit0.wsdl
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added:
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1198/WEB-INF/wsdl/SignatureRpcLit1.wsdl
===================================================================
(Binary files differ)
Property changes on:
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1198/WEB-INF/wsdl/SignatureRpcLit1.wsdl
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added:
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1198/WEB-INF/wsdl/SignatureRpcLit1.xsd
===================================================================
(Binary files differ)
Property changes on:
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1198/WEB-INF/wsdl/SignatureRpcLit1.xsd
___________________________________________________________________
Added: svn:mime-type
+ application/xml