Author: alessio.soldano(a)jboss.com
Date: 2010-05-06 04:30:54 -0400 (Thu, 06 May 2010)
New Revision: 12171
Modified:
stack/cxf/branches/jbossws-cxf-3.1.2/modules/client/src/main/java/org/jboss/wsf/stack/cxf/tools/CXFProviderImpl.java
Log:
[JBPAPP-3999] Implement support for SOAP12 in wsprovide (svn merge -r 11159:11160
https://svn.jboss.org/repos/jbossws/stack/cxf/trunk)
Modified:
stack/cxf/branches/jbossws-cxf-3.1.2/modules/client/src/main/java/org/jboss/wsf/stack/cxf/tools/CXFProviderImpl.java
===================================================================
---
stack/cxf/branches/jbossws-cxf-3.1.2/modules/client/src/main/java/org/jboss/wsf/stack/cxf/tools/CXFProviderImpl.java 2010-05-06
06:13:47 UTC (rev 12170)
+++
stack/cxf/branches/jbossws-cxf-3.1.2/modules/client/src/main/java/org/jboss/wsf/stack/cxf/tools/CXFProviderImpl.java 2010-05-06
08:30:54 UTC (rev 12171)
@@ -41,11 +41,12 @@
public class CXFProviderImpl extends WSContractProvider
{
private ClassLoader loader;
- private boolean generateWsdl = false;
- private boolean generateSource = false;
+ private boolean generateWsdl;
+ private boolean extension;
+ private boolean generateSource;
private File outputDir = new File("output");
- private File resourceDir = null;
- private File sourceDir = null;
+ private File resourceDir;
+ private File sourceDir;
private PrintStream messageStream;
public CXFProviderImpl()
@@ -57,6 +58,11 @@
this.generateWsdl = generateWsdl;
}
+ public void setExtension(boolean extension)
+ {
+ this.extension = extension;
+ }
+
public void setGenerateSource(boolean generateSource)
{
this.generateSource = generateSource;
@@ -154,9 +160,12 @@
stream = NullPrintStream.getInstance();
}
+ // -wsdl[:protocol]
if (generateWsdl)
{
args.add("-wsdl");
+ if (extension)
+ args.add("-soap12");
}
String cp = buildClasspathString(loader);