JBossWS SVN: r17050 - common/trunk/src/main/java/org/jboss/ws/common/deployment.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2012-12-05 09:38:28 -0500 (Wed, 05 Dec 2012)
New Revision: 17050
Modified:
common/trunk/src/main/java/org/jboss/ws/common/deployment/SOAPAddressWSDLParser.java
Log:
[JBWS-3571] Extending SOAPAddressWSDLParser to process wsdl imports
Modified: common/trunk/src/main/java/org/jboss/ws/common/deployment/SOAPAddressWSDLParser.java
===================================================================
--- common/trunk/src/main/java/org/jboss/ws/common/deployment/SOAPAddressWSDLParser.java 2012-12-05 10:04:05 UTC (rev 17049)
+++ common/trunk/src/main/java/org/jboss/ws/common/deployment/SOAPAddressWSDLParser.java 2012-12-05 14:38:28 UTC (rev 17050)
@@ -1,6 +1,6 @@
/*
* JBoss, Home of Professional Open Source.
- * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * 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.
*
@@ -30,9 +30,12 @@
import java.io.IOException;
import java.io.InputStream;
+import java.net.MalformedURLException;
import java.net.URL;
import java.util.HashMap;
+import java.util.HashSet;
import java.util.Map;
+import java.util.Set;
import javax.xml.namespace.QName;
import javax.xml.stream.XMLStreamConstants;
@@ -49,6 +52,7 @@
public final class SOAPAddressWSDLParser
{
public static final String SOAP_OVER_JMS_NS = "http://www.w3.org/2010/soapjms/";
+ public static final String SOAP_HTTP_NS = "http://schemas.xmlsoap.org/soap/http";
private static final String WSDL_NS = "http://schemas.xmlsoap.org/wsdl/";
private static final String SOAP_NS = "http://schemas.xmlsoap.org/wsdl/soap/";
private static final String SOAP12_NS = "http://schemas.xmlsoap.org/wsdl/soap12/";
@@ -56,6 +60,7 @@
private static final String SERVICE = "service";
private static final String PORT = "port";
private static final String BINDING = "binding";
+ private static final String IMPORT = "import";
private static final String TRANSPORT = "transport";
private static final String ADDRESS = "address";
private static final String LOCATION = "location";
@@ -66,12 +71,22 @@
public SOAPAddressWSDLParser(URL wsdlUrl)
{
- this.metadata = getMetaData(wsdlUrl);
+ this.metadata = new WSDLMetaData();
+ parse(this.metadata, wsdlUrl);
+ Map<String, Boolean> map = this.metadata.getImports();
+ while (!map.isEmpty() && map.containsValue(false)) {
+ Set<String> imports = new HashSet<String>(map.keySet());
+ for (String i : imports) {
+ if (!map.get(i)) {
+ parse(this.metadata, i);
+ map.put(i, true);
+ }
+ }
+ }
}
- public String filterSoapAddress(QName serviceName, QName portName, String transportNamespace)
+ public String filterSoapAddress(QName serviceName, QName portName, String[] transportNamespaces)
{
- //get the soap:address of the required service/port if the corresponding binding uses SOAP over JMS transport
WSDLServiceMetaData smd = metadata.getServices().get(serviceName);
if (smd != null)
{
@@ -79,23 +94,46 @@
if (pmd != null)
{
WSDLBindingMetaData bmd = metadata.getBindings().get(pmd.getBindingName());
- if (bmd != null && transportNamespace.equals(bmd.getSoapTransport()))
+ if (bmd != null)
{
- return pmd.getSoapAddress();
+ for (String txNs : transportNamespaces)
+ {
+ if (txNs.equals(bmd.getSoapTransport()))
+ {
+ return pmd.getSoapAddress();
+ }
+ }
}
}
}
return null;
}
- protected static WSDLMetaData getMetaData(URL wsdlUrl)
+ public String filterSoapAddress(QName serviceName, QName portName, String transportNamespace)
{
+ return filterSoapAddress(serviceName, portName, new String[]{transportNamespace});
+ }
+
+ protected static void parse(WSDLMetaData metadata, String wsdlUrl)
+ {
+ try
+ {
+ parse(metadata, new URL(wsdlUrl));
+ }
+ catch (MalformedURLException e)
+ {
+ throw MESSAGES.failedToRead(wsdlUrl, e.getMessage(), e);
+ }
+ }
+
+ protected static void parse(WSDLMetaData metadata, URL wsdlUrl)
+ {
InputStream is = null;
try
{
is = wsdlUrl.openStream();
XMLStreamReader xmlr = StAXUtils.createXMLStreamReader(is);
- return getMetaData(xmlr, wsdlUrl);
+ parse(metadata, xmlr, wsdlUrl);
}
catch (Exception e)
{
@@ -111,7 +149,7 @@
}
}
- private static WSDLMetaData getMetaData(XMLStreamReader reader, URL wsdlUrl) throws XMLStreamException
+ private static void parse(WSDLMetaData metadata, XMLStreamReader reader, URL wsdlUrl) throws XMLStreamException
{
int iterate;
try
@@ -123,7 +161,6 @@
// skip non-tag elements
iterate = reader.nextTag();
}
- WSDLMetaData metadata = new WSDLMetaData();
switch (iterate)
{
case END_ELEMENT : {
@@ -143,7 +180,6 @@
}
}
}
- return metadata;
}
private static void parseDefinitions(XMLStreamReader reader, WSDLMetaData metadata, String targetNS, URL wsdlUrl) throws XMLStreamException
@@ -172,6 +208,14 @@
bmd.setName(name);
metadata.getBindings().put(bmd.getName(), bmd);
}
+ else if (match(reader, WSDL_NS, IMPORT)) {
+ final String location = reader.getAttributeValue(null, LOCATION);
+ final String url = wsdlUrl.toString();
+ final String newUrl = url.substring(0, url.lastIndexOf("/") + (location.startsWith("/") ? 0 : 1)) + location;
+ if (!metadata.getImports().containsKey(newUrl)) {
+ metadata.getImports().put(newUrl, false);
+ }
+ }
continue;
}
}
@@ -267,6 +311,7 @@
{
private Map<QName, WSDLServiceMetaData> services = new HashMap<QName, SOAPAddressWSDLParser.WSDLServiceMetaData>();
private Map<QName, WSDLBindingMetaData> bindings = new HashMap<QName, SOAPAddressWSDLParser.WSDLBindingMetaData>();
+ private Map<String, Boolean> imports = new HashMap<String, Boolean>(); //<url, processed>
public Map<QName, WSDLServiceMetaData> getServices()
{
@@ -276,6 +321,11 @@
{
return bindings;
}
+
+ public Map<String, Boolean> getImports()
+ {
+ return imports;
+ }
}
private static class WSDLServiceMetaData
12 years
JBossWS SVN: r17049 - projects/plugins/maven/jaxws-tools/trunk/src/test/resources/test-embedded.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2012-12-05 05:04:05 -0500 (Wed, 05 Dec 2012)
New Revision: 17049
Modified:
projects/plugins/maven/jaxws-tools/trunk/src/test/resources/test-embedded/settings.xml
Log:
Allow building embedded tests with clean repository
Modified: projects/plugins/maven/jaxws-tools/trunk/src/test/resources/test-embedded/settings.xml
===================================================================
--- projects/plugins/maven/jaxws-tools/trunk/src/test/resources/test-embedded/settings.xml 2012-12-05 09:51:29 UTC (rev 17048)
+++ projects/plugins/maven/jaxws-tools/trunk/src/test/resources/test-embedded/settings.xml 2012-12-05 10:04:05 UTC (rev 17049)
@@ -7,8 +7,8 @@
<activeByDefault>true</activeByDefault>
</activation>
<properties>
- <!-- This property allows the embedded tests to access the real local repository instead of the isolated one -->
- <invoker.repo.local>@localRepository@</invoker.repo.local>
+ <!-- This property allows the embedded tests to access the real local repository instead of the isolated one - uncomment to speed-up build -->
+ <!--<invoker.repo.local>@localRepository@</invoker.repo.local>-->
</properties>
<repositories>
<repository>
@@ -21,6 +21,39 @@
<enabled>true</enabled>
</snapshots>
</repository>
+ <repository>
+ <id>jboss-public-repository-group</id>
+ <name>JBoss Public Maven Repository Group</name>
+ <url>https://repository.jboss.org/nexus/content/groups/public/</url>
+ <layout>default</layout>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>jboss-deprecated-repository</id>
+ <name>JBoss Deprecated Maven Repository</name>
+ <url>https://repository.jboss.org/nexus/content/repositories/deprecated/</url>
+ <layout>default</layout>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ <updatePolicy>never</updatePolicy>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>maven2.java.net</id>
+ <name>Java.net Repository for Maven 2</name>
+ <url>http://download.java.net/maven/2/</url>
+ </repository>
</repositories>
<pluginRepositories>
<pluginRepository>
@@ -33,6 +66,20 @@
<enabled>true</enabled>
</snapshots>
</pluginRepository>
+ <pluginRepository>
+ <id>jboss-public-repository-group</id>
+ <name>JBoss Public Maven Repository Group</name>
+ <url>https://repository.jboss.org/nexus/content/groups/public/</url>
+ <layout>default</layout>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </snapshots>
+ </pluginRepository>
</pluginRepositories>
</profile>
</profiles>
12 years
JBossWS SVN: r17048 - in stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests: src/test/java/org/jboss/test/ws/jaxws/bp12/wsa and 6 other directories.
by jbossws-commits@lists.jboss.org
Author: jim.ma
Date: 2012-12-05 04:51:29 -0500 (Wed, 05 Dec 2012)
New Revision: 17048
Added:
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1197/
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1197/ObjectFactory.java
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1197/SignatureDocumentLiteral.java
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1197/SignatureDocumentLiteralImpl.java
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1197/SignatureDocumentLiteralSign7SignatureHeaderFaultFaultMessage.java
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1197/SignatureHeaderFaultContract.java
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1197/SignatureInMultipartMessage.java
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1197/Test1197TestCase.java
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1197/
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1197/WEB-INF/
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1197/WEB-INF/web.xml
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1197/WEB-INF/wsdl/
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1197/WEB-INF/wsdl/SignatureDocLit.wsdl
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1197/WEB-INF/wsdl/SignatureDocLit0.wsdl
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1197/WEB-INF/wsdl/SignatureDocLit0.xsd
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1197/WEB-INF/wsdl/SignatureDocLit1.wsdl
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1197/WEB-INF/wsdl/SignatureDocLit1.xsd
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/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1190/Test119XTestCase.java
Log:
Add WSI-BP Test 1197
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-11-30 09:49:26 UTC (rev 17047)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/scripts/cxf-jars-jaxws.xml 2012-12-05 09:51:29 UTC (rev 17048)
@@ -136,6 +136,19 @@
<include name="wsdl/*" />
</webinf>
</war>
+
+
+ <!-- jaxws-bp12test1197 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-bp12test1197.war" webxml="${tests.output.dir}/test-resources/jaxws/bp12/wsa/test1197/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/bp12/wsa/test1197/*.class"/>
+ <exclude name="org/jboss/test/ws/jaxws/bp12/wsa/test1197/*TestCase.class"/>
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/bp12/wsa/test1197/WEB-INF">
+ <include name="wsdl/*" />
+ </webinf>
+ </war>
+
</target>
</project>
Modified: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1190/Test119XTestCase.java
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1190/Test119XTestCase.java 2012-11-30 09:49:26 UTC (rev 17047)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1190/Test119XTestCase.java 2012-12-05 09:51:29 UTC (rev 17048)
@@ -21,8 +21,12 @@
*/
package org.jboss.test.ws.jaxws.bp12.wsa.test1190;
+import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.io.OutputStream;
+import java.net.HttpURLConnection;
import java.net.URL;
import javax.xml.namespace.QName;
@@ -242,6 +246,11 @@
{
fail("Expected version mismatch error");
}
+
+
+ /* Test1194 : Application fault sent to a non-anonymous FaultTo address.
+ * There is such test in apache cxf: look at org.apache.cxf.systest.ws.addr_feature.WSAFaultToClientServerTest
+ */
}
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1197/ObjectFactory.java
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1197/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/test1197/ObjectFactory.java 2012-12-05 09:51:29 UTC (rev 17048)
@@ -0,0 +1,397 @@
+/*
+ * 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.test1197;
+
+import java.math.BigDecimal;
+import java.math.BigInteger;
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.datatype.Duration;
+import javax.xml.datatype.XMLGregorianCalendar;
+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.test1197 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 _UnsignedShort_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "unsignedShort");
+ private final static QName _Long_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "long");
+ private final static QName _SignatureOutHeaderMember_QNAME = new QName("http://example.org/signature", "SignatureOutHeaderMember");
+ private final static QName _Float_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "float");
+ private final static QName _AnyURI_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "anyURI");
+ private final static QName _QName_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "QName");
+ private final static QName _DateTime_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "dateTime");
+ private final static QName _Boolean_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "boolean");
+ private final static QName _SignatureOut_QNAME = new QName("http://example.org/signature", "SignatureOut");
+ private final static QName _SignatureInHeader_QNAME = new QName("http://example.org/signature", "SignatureInHeader");
+ private final static QName _SignatureIn_QNAME = new QName("http://example.org/signature", "SignatureIn");
+ private final static QName _Base64Binary_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "base64Binary");
+ private final static QName _Short_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "short");
+ private final static QName _SignatureInHeaderMember_QNAME = new QName("http://example.org/signature", "SignatureInHeaderMember");
+ private final static QName _Byte_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "byte");
+ private final static QName _Double_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "double");
+ private final static QName _Decimal_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "decimal");
+ private final static QName _Int_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "int");
+ private final static QName _UnsignedInt_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "unsignedInt");
+ private final static QName _AnyType_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "anyType");
+ private final static QName _UnsignedByte_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "unsignedByte");
+ private final static QName _SignatureHeaderFaultContract_QNAME = new QName("http://example.org/signature", "SignatureHeaderFaultContract");
+ private final static QName _UnsignedLong_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "unsignedLong");
+ private final static QName _SignatureOutHeader_QNAME = new QName("http://example.org/signature", "SignatureOutHeader");
+ private final static QName _Duration_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "duration");
+ private final static QName _String_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "string");
+ private final static QName _SignatureHeaderFaultContractFaultAdditionalText_QNAME = new QName("http://example.org/signature", "FaultAdditionalText");
+ private final static QName _SignatureInMultipartMessageSignatureInFirstPart_QNAME = new QName("http://example.org/signature", "SignatureInFirstPart");
+ private final static QName _SignatureInMultipartMessageSignatureInSecondPart_QNAME = new QName("http://example.org/signature", "SignatureInSecondPart");
+
+ /**
+ * 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.test1197
+ *
+ */
+ public ObjectFactory()
+ {
+ }
+
+ /**
+ * Create an instance of {@link SignatureHeaderFaultContract }
+ *
+ */
+ public SignatureHeaderFaultContract createSignatureHeaderFaultContract()
+ {
+ return new SignatureHeaderFaultContract();
+ }
+
+ /**
+ * Create an instance of {@link SignatureInMultipartMessage }
+ *
+ */
+ public SignatureInMultipartMessage createSignatureInMultipartMessage()
+ {
+ return new SignatureInMultipartMessage();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "unsignedShort")
+ public JAXBElement<Integer> createUnsignedShort(Integer value)
+ {
+ return new JAXBElement<Integer>(_UnsignedShort_QNAME, Integer.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Long }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "long")
+ public JAXBElement<Long> createLong(Long value)
+ {
+ return new JAXBElement<Long>(_Long_QNAME, Long.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.org/signature", name = "SignatureOutHeaderMember")
+ public JAXBElement<String> createSignatureOutHeaderMember(String value)
+ {
+ return new JAXBElement<String>(_SignatureOutHeaderMember_QNAME, String.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Float }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "float")
+ public JAXBElement<Float> createFloat(Float value)
+ {
+ return new JAXBElement<Float>(_Float_QNAME, Float.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "anyURI")
+ public JAXBElement<String> createAnyURI(String value)
+ {
+ return new JAXBElement<String>(_AnyURI_QNAME, String.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link QName }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "QName")
+ public JAXBElement<QName> createQName(QName value)
+ {
+ return new JAXBElement<QName>(_QName_QNAME, QName.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "dateTime")
+ public JAXBElement<XMLGregorianCalendar> createDateTime(XMLGregorianCalendar value)
+ {
+ return new JAXBElement<XMLGregorianCalendar>(_DateTime_QNAME, XMLGregorianCalendar.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "boolean")
+ public JAXBElement<Boolean> createBoolean(Boolean value)
+ {
+ return new JAXBElement<Boolean>(_Boolean_QNAME, Boolean.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.org/signature", name = "SignatureOut")
+ public JAXBElement<String> createSignatureOut(String value)
+ {
+ return new JAXBElement<String>(_SignatureOut_QNAME, String.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.org/signature", name = "SignatureInHeader")
+ public JAXBElement<String> createSignatureInHeader(String value)
+ {
+ return new JAXBElement<String>(_SignatureInHeader_QNAME, String.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.org/signature", name = "SignatureIn")
+ public JAXBElement<String> createSignatureIn(String value)
+ {
+ return new JAXBElement<String>(_SignatureIn_QNAME, String.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "base64Binary")
+ public JAXBElement<byte[]> createBase64Binary(byte[] value)
+ {
+ return new JAXBElement<byte[]>(_Base64Binary_QNAME, byte[].class, null, ((byte[])value));
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Short }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "short")
+ public JAXBElement<Short> createShort(Short value)
+ {
+ return new JAXBElement<Short>(_Short_QNAME, Short.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.org/signature", name = "SignatureInHeaderMember")
+ public JAXBElement<String> createSignatureInHeaderMember(String value)
+ {
+ return new JAXBElement<String>(_SignatureInHeaderMember_QNAME, String.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Byte }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "byte")
+ public JAXBElement<Byte> createByte(Byte value)
+ {
+ return new JAXBElement<Byte>(_Byte_QNAME, Byte.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Double }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "double")
+ public JAXBElement<Double> createDouble(Double value)
+ {
+ return new JAXBElement<Double>(_Double_QNAME, Double.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link BigDecimal }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "decimal")
+ public JAXBElement<BigDecimal> createDecimal(BigDecimal value)
+ {
+ return new JAXBElement<BigDecimal>(_Decimal_QNAME, BigDecimal.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "int")
+ public JAXBElement<Integer> createInt(Integer value)
+ {
+ return new JAXBElement<Integer>(_Int_QNAME, Integer.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Long }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "unsignedInt")
+ public JAXBElement<Long> createUnsignedInt(Long value)
+ {
+ return new JAXBElement<Long>(_UnsignedInt_QNAME, Long.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "anyType")
+ public JAXBElement<Object> createAnyType(Object value)
+ {
+ return new JAXBElement<Object>(_AnyType_QNAME, Object.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Short }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "unsignedByte")
+ public JAXBElement<Short> createUnsignedByte(Short value)
+ {
+ return new JAXBElement<Short>(_UnsignedByte_QNAME, Short.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link SignatureHeaderFaultContract }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.org/signature", name = "SignatureHeaderFaultContract")
+ public JAXBElement<SignatureHeaderFaultContract> createSignatureHeaderFaultContract(SignatureHeaderFaultContract value)
+ {
+ return new JAXBElement<SignatureHeaderFaultContract>(_SignatureHeaderFaultContract_QNAME, SignatureHeaderFaultContract.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "unsignedLong")
+ public JAXBElement<BigInteger> createUnsignedLong(BigInteger value)
+ {
+ return new JAXBElement<BigInteger>(_UnsignedLong_QNAME, BigInteger.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.org/signature", name = "SignatureOutHeader")
+ public JAXBElement<String> createSignatureOutHeader(String value)
+ {
+ return new JAXBElement<String>(_SignatureOutHeader_QNAME, String.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Duration }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "duration")
+ public JAXBElement<Duration> createDuration(Duration value)
+ {
+ return new JAXBElement<Duration>(_Duration_QNAME, Duration.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "string")
+ public JAXBElement<String> createString(String value)
+ {
+ return new JAXBElement<String>(_String_QNAME, String.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.org/signature", name = "FaultAdditionalText", scope = SignatureHeaderFaultContract.class)
+ public JAXBElement<String> createSignatureHeaderFaultContractFaultAdditionalText(String value)
+ {
+ return new JAXBElement<String>(_SignatureHeaderFaultContractFaultAdditionalText_QNAME, String.class, SignatureHeaderFaultContract.class, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.org/signature", name = "SignatureInFirstPart", scope = SignatureInMultipartMessage.class)
+ public JAXBElement<String> createSignatureInMultipartMessageSignatureInFirstPart(String value)
+ {
+ return new JAXBElement<String>(_SignatureInMultipartMessageSignatureInFirstPart_QNAME, String.class, SignatureInMultipartMessage.class, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://example.org/signature", name = "SignatureInSecondPart", scope = SignatureInMultipartMessage.class)
+ public JAXBElement<String> createSignatureInMultipartMessageSignatureInSecondPart(String value)
+ {
+ return new JAXBElement<String>(_SignatureInMultipartMessageSignatureInSecondPart_QNAME, String.class, SignatureInMultipartMessage.class, value);
+ }
+
+}
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1197/SignatureDocumentLiteral.java
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1197/SignatureDocumentLiteral.java (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1197/SignatureDocumentLiteral.java 2012-12-05 09:51:29 UTC (rev 17048)
@@ -0,0 +1,85 @@
+/*
+ * 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.test1197;
+
+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;
+
+/**
+ * This class was generated by Apache CXF 2.7.1-SNAPSHOT
+ * 2012-12-05T15:11:52.157+08:00
+ * Generated source version: 2.7.1-SNAPSHOT
+ *
+ */
+@WebService(targetNamespace = "http://example.org/signature", name = "SignatureDocumentLiteral")
+@XmlSeeAlso({ ObjectFactory.class })
+@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
+public interface SignatureDocumentLiteral
+{
+
+ @WebResult(name = "SignatureOut", targetNamespace = "http://example.org/signature", partName = "SignatureOut")
+ @Action(input = "http://example.org/action/SignatureInAlternate", output = "http://example.org/action/SignatureOutAlternate")
+ @WebMethod(operationName = "Sign2", action = "http://example.org/action/SignatureInAlternate")
+ public java.lang.String sign2(@WebParam(partName = "SignatureIn", name = "SignatureIn", targetNamespace = "http://example.org/signature")
+ java.lang.String signatureIn);
+
+ @WebResult(name = "SignatureOut", targetNamespace = "http://example.org/signature", partName = "SignatureOut")
+ @Action(input = "http://example.org/action/SignatureInEmpty", output = "http://example.org/action/SignatureOutEmpty")
+ @WebMethod(operationName = "Sign3", action = "http://example.org/action/SignatureInEmpty")
+ public java.lang.String sign3();
+
+ @WebResult(name = "SignatureOut", targetNamespace = "http://example.org/signature", partName = "SignatureOut")
+ @Action(input = "http://example.org/action/SignatureInAlternateEmpty", output = "http://example.org/action/SignatureOutAlternateEmpty")
+ @WebMethod(operationName = "Sign4", action = "http://example.org/action/SignatureInAlternateEmpty")
+ public java.lang.String sign4();
+
+ @WebResult(name = "SignatureOut", targetNamespace = "http://example.org/signature", partName = "SignatureOut")
+ @Action(input = "http://example.org/action/SignatureInMultipart", output = "http://example.org/action/SignatureOutMultipart")
+ @WebMethod(operationName = "Sign6", action = "http://example.org/action/SignatureInMultipart")
+ public java.lang.String sign6(@WebParam(partName = "parameters", name = "SignatureInMultipartMessage", targetNamespace = "http://example.org/signature")
+ SignatureInMultipartMessage parameters);
+
+ @WebResult(name = "SignatureOut", targetNamespace = "http://example.org/signature", partName = "SignatureOut")
+ @Action(input = "http://example.org/action/SignatureIn", output = "http://example.org/action/SignatureOut")
+ @WebMethod(operationName = "Sign1", action = "http://example.org/action/SignatureIn")
+ public java.lang.String sign1(@WebParam(partName = "SignatureIn", name = "SignatureIn", targetNamespace = "http://example.org/signature")
+ java.lang.String signatureIn);
+
+ @Action(input = "http://example.org/action/SignatureEmptyPartIn", output = "http://example.org/action/SignatureEmptyPartOut")
+ @WebMethod(operationName = "Sign5", action = "http://example.org/action/SignatureEmptyPartIn")
+ public void sign5();
+
+ @WebResult(name = "SignatureOutHeaderMember", targetNamespace = "http://example.org/signature", partName = "SignatureOutHeaderMember")
+ @Action(input = "http://example.org/action/SignatureHeaderIn", output = "http://example.org/action/SignatureHeaderReply", fault = { @FaultAction(className = SignatureDocumentLiteralSign7SignatureHeaderFaultFaultMessage.class, value = "http://example.org/action/SignatureHeaderFault") })
+ @WebMethod(operationName = "Sign7", action = "http://example.org/action/SignatureHeaderIn")
+ public java.lang.String sign7(@WebParam(partName = "SignatureInHeaderMember", name = "SignatureInHeaderMember", targetNamespace = "http://example.org/signature")
+ java.lang.String signatureInHeaderMember,
+ @WebParam(partName = "HeaderText", mode = WebParam.Mode.INOUT, name = "SignatureOutHeader", targetNamespace = "http://example.org/signature", header = true)
+ javax.xml.ws.Holder<java.lang.String> headerText) throws SignatureDocumentLiteralSign7SignatureHeaderFaultFaultMessage;
+
+}
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1197/SignatureDocumentLiteralImpl.java
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1197/SignatureDocumentLiteralImpl.java (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1197/SignatureDocumentLiteralImpl.java 2012-12-05 09:51:29 UTC (rev 17048)
@@ -0,0 +1,79 @@
+/*
+ * 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.test1197;
+
+(a)javax.jws.WebService(serviceName = "WSAddressingCR",
+ portName = "CustomBinding_SignatureDocumentLiteral",
+ targetNamespace = "http://tempuri.org/",
+ wsdlLocation = "WEB-INF/wsdl/SignatureDocLit.wsdl",
+ endpointInterface = "org.jboss.test.ws.jaxws.bp12.wsa.test1197.SignatureDocumentLiteral")
+public class SignatureDocumentLiteralImpl implements SignatureDocumentLiteral
+{
+
+ public String sign2(java.lang.String signatureIn)
+ {
+ System.out.println(signatureIn);
+ return "Sign2,Parameter=" + signatureIn;
+ }
+
+ public String sign3()
+ {
+ return "Sign3";
+ }
+
+ public String sign4()
+ {
+ return "Sign4";
+ }
+
+ public String sign6(SignatureInMultipartMessage parameters)
+ {
+ System.out.println("First Part:" + parameters.getSignatureInFirstPart().getValue());
+ System.out.println("Second Part:" + parameters.getSignatureInSecondPart().getValue());
+ return "Sign6,Parameter=" + parameters.getSignatureInFirstPart().getValue()
+ + ",Parameter=" + parameters.getSignatureInSecondPart().getValue();
+ }
+
+ public String sign1(String signatureIn)
+ {
+ System.out.println("sign1 request " + signatureIn);
+ return "Sign1,Parameter=" + signatureIn;
+ }
+
+ public void sign5()
+ {
+ System.out.println("sign5 .... ");
+ }
+
+
+ public String sign7(String signatureInHeaderMember, javax.xml.ws.Holder<String> headerText)
+ throws SignatureDocumentLiteralSign7SignatureHeaderFaultFaultMessage
+ {
+ System.out.println("sign7 request " + signatureInHeaderMember + "," + headerText.value);
+ if (signatureInHeaderMember.equals("World"))
+ {
+ throw new SignatureDocumentLiteralSign7SignatureHeaderFaultFaultMessage("World, " + headerText.value );
+ }
+ return "Sign7, Parameter=" + signatureInHeaderMember + ",Parameter=" + headerText.value;
+ }
+
+}
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1197/SignatureDocumentLiteralSign7SignatureHeaderFaultFaultMessage.java
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1197/SignatureDocumentLiteralSign7SignatureHeaderFaultFaultMessage.java (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1197/SignatureDocumentLiteralSign7SignatureHeaderFaultFaultMessage.java 2012-12-05 09:51:29 UTC (rev 17048)
@@ -0,0 +1,65 @@
+/*
+ * 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.test1197;
+
+import javax.xml.ws.WebFault;
+
+@WebFault(name = "SignatureHeaderFaultContract", targetNamespace = "http://example.org/signature")
+public class SignatureDocumentLiteralSign7SignatureHeaderFaultFaultMessage extends Exception
+{
+
+ private org.jboss.test.ws.jaxws.bp12.wsa.test1197.SignatureHeaderFaultContract signatureHeaderFaultContract;
+
+ public SignatureDocumentLiteralSign7SignatureHeaderFaultFaultMessage()
+ {
+ super();
+ }
+
+ public SignatureDocumentLiteralSign7SignatureHeaderFaultFaultMessage(String message)
+ {
+ super(message);
+ }
+
+ public SignatureDocumentLiteralSign7SignatureHeaderFaultFaultMessage(String message, Throwable cause)
+ {
+ super(message, cause);
+ }
+
+ public SignatureDocumentLiteralSign7SignatureHeaderFaultFaultMessage(String message,
+ org.jboss.test.ws.jaxws.bp12.wsa.test1197.SignatureHeaderFaultContract signatureHeaderFaultContract)
+ {
+ super(message);
+ this.signatureHeaderFaultContract = signatureHeaderFaultContract;
+ }
+
+ public SignatureDocumentLiteralSign7SignatureHeaderFaultFaultMessage(String message,
+ org.jboss.test.ws.jaxws.bp12.wsa.test1197.SignatureHeaderFaultContract signatureHeaderFaultContract, Throwable cause)
+ {
+ super(message, cause);
+ this.signatureHeaderFaultContract = signatureHeaderFaultContract;
+ }
+
+ public org.jboss.test.ws.jaxws.bp12.wsa.test1197.SignatureHeaderFaultContract getFaultInfo()
+ {
+ return this.signatureHeaderFaultContract;
+ }
+}
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1197/SignatureHeaderFaultContract.java
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1197/SignatureHeaderFaultContract.java (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1197/SignatureHeaderFaultContract.java 2012-12-05 09:51:29 UTC (rev 17048)
@@ -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.test1197;
+
+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 SignatureHeaderFaultContract complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="SignatureHeaderFaultContract">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="FaultAdditionalText" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "SignatureHeaderFaultContract", propOrder = { "faultAdditionalText" })
+public class SignatureHeaderFaultContract
+{
+
+ @XmlElementRef(name = "FaultAdditionalText", namespace = "http://example.org/signature", type = JAXBElement.class)
+ protected JAXBElement<String> faultAdditionalText;
+
+ /**
+ * Gets the value of the faultAdditionalText property.
+ *
+ * @return
+ * possible object is
+ * {@link JAXBElement }{@code <}{@link String }{@code >}
+ *
+ */
+ public JAXBElement<String> getFaultAdditionalText()
+ {
+ return faultAdditionalText;
+ }
+
+ /**
+ * Sets the value of the faultAdditionalText property.
+ *
+ * @param value
+ * allowed object is
+ * {@link JAXBElement }{@code <}{@link String }{@code >}
+ *
+ */
+ public void setFaultAdditionalText(JAXBElement<String> value)
+ {
+ this.faultAdditionalText = value;
+ }
+
+}
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1197/SignatureInMultipartMessage.java
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1197/SignatureInMultipartMessage.java (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1197/SignatureInMultipartMessage.java 2012-12-05 09:51:29 UTC (rev 17048)
@@ -0,0 +1,114 @@
+/*
+ * 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.test1197;
+
+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.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="SignatureInFirstPart" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="SignatureInSecondPart" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = { "signatureInFirstPart", "signatureInSecondPart" })
+@XmlRootElement(name = "SignatureInMultipartMessage")
+public class SignatureInMultipartMessage
+{
+
+ @XmlElementRef(name = "SignatureInFirstPart", namespace = "http://example.org/signature", type = JAXBElement.class)
+ protected JAXBElement<String> signatureInFirstPart;
+ @XmlElementRef(name = "SignatureInSecondPart", namespace = "http://example.org/signature", type = JAXBElement.class)
+ protected JAXBElement<String> signatureInSecondPart;
+
+ /**
+ * Gets the value of the signatureInFirstPart property.
+ *
+ * @return
+ * possible object is
+ * {@link JAXBElement }{@code <}{@link String }{@code >}
+ *
+ */
+ public JAXBElement<String> getSignatureInFirstPart()
+ {
+ return signatureInFirstPart;
+ }
+
+ /**
+ * Sets the value of the signatureInFirstPart property.
+ *
+ * @param value
+ * allowed object is
+ * {@link JAXBElement }{@code <}{@link String }{@code >}
+ *
+ */
+ public void setSignatureInFirstPart(JAXBElement<String> value)
+ {
+ this.signatureInFirstPart = value;
+ }
+
+ /**
+ * Gets the value of the signatureInSecondPart property.
+ *
+ * @return
+ * possible object is
+ * {@link JAXBElement }{@code <}{@link String }{@code >}
+ *
+ */
+ public JAXBElement<String> getSignatureInSecondPart()
+ {
+ return signatureInSecondPart;
+ }
+
+ /**
+ * Sets the value of the signatureInSecondPart property.
+ *
+ * @param value
+ * allowed object is
+ * {@link JAXBElement }{@code <}{@link String }{@code >}
+ *
+ */
+ public void setSignatureInSecondPart(JAXBElement<String> value)
+ {
+ this.signatureInSecondPart = value;
+ }
+
+}
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1197/Test1197TestCase.java
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1197/Test1197TestCase.java (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/wsa/test1197/Test1197TestCase.java 2012-12-05 09:51:29 UTC (rev 17048)
@@ -0,0 +1,105 @@
+/*
+ * 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.test1197;
+
+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 Test1197TestCase extends JBossWSTest
+{
+ private final String serviceURL = "http://" + getServerHost() + ":8080/jaxws-bp12test1197/Test1197";
+
+ public static Test suite()
+ {
+ return new JBossWSCXFTestSetup(Test1197TestCase.class, "jaxws-bp12test1197.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);
+ SignatureDocumentLiteral port = (SignatureDocumentLiteral) service.getPort(SignatureDocumentLiteral.class);
+ // invoke method
+ ((BindingProvider) port).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
+ "http://" + getServerHost() + ":9090/jaxws-bp12test1197/Test1197");
+
+ System.out.println("Invoking sign1...");
+ String response = port.sign1("Hello");
+ System.out.println(response);
+
+
+ System.out.println("Invoking sign2...");
+ response = port.sign2("Hello");
+ System.out.println(response);
+
+ System.out.println("Invoking sign3...");
+ response = port.sign3();
+ System.out.println(response);
+
+ System.out.println("Invoking sign4...");
+ response = port.sign4();
+ System.out.println(response);
+
+ System.out.println("Invoking sign5...");
+ port.sign5();
+
+ System.out.println("Invoking sign6...");
+ SignatureInMultipartMessage inMessage = new SignatureInMultipartMessage();
+ inMessage.setSignatureInFirstPart(new ObjectFactory().createSignatureInMultipartMessageSignatureInFirstPart("Hello"));
+ inMessage.setSignatureInSecondPart(new ObjectFactory().createSignatureInMultipartMessageSignatureInFirstPart("World"));
+ response = port.sign6(inMessage);
+ System.out.println(response);
+
+ //request 7
+ System.out.println("Invoking sign7...");
+ javax.xml.ws.Holder<String> headerText = new javax.xml.ws.Holder<String>();
+ headerText.value = "World";
+ response = port.sign7("Hello", headerText);
+ System.out.println(response);
+
+
+ //request 8
+ System.out.println("Invoking sign7 and exception is expected...");
+ headerText.value = "Hello";
+ try
+ {
+ response = port.sign1("world");
+ }
+ catch (Exception e)
+ {
+ System.out.println("sign7 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/test1197/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/test1197/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/test1197/WEB-INF/wsdl/SignatureDocLit.wsdl
===================================================================
(Binary files differ)
Property changes on: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1197/WEB-INF/wsdl/SignatureDocLit.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/test1197/WEB-INF/wsdl/SignatureDocLit0.wsdl
===================================================================
(Binary files differ)
Property changes on: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1197/WEB-INF/wsdl/SignatureDocLit0.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/test1197/WEB-INF/wsdl/SignatureDocLit0.xsd
===================================================================
(Binary files differ)
Property changes on: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1197/WEB-INF/wsdl/SignatureDocLit0.xsd
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1197/WEB-INF/wsdl/SignatureDocLit1.wsdl
===================================================================
(Binary files differ)
Property changes on: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1197/WEB-INF/wsdl/SignatureDocLit1.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/test1197/WEB-INF/wsdl/SignatureDocLit1.xsd
===================================================================
(Binary files differ)
Property changes on: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/wsa/test1197/WEB-INF/wsdl/SignatureDocLit1.xsd
___________________________________________________________________
Added: svn:mime-type
+ application/xml
12 years