Hi,

I need to enable Pure XML WSDL binding for my code-first service. I added
the following statement to my service implementation class:

@javax.xml.ws.BindingType(value = "http://cxf.apache.org/bindings/xformat";)

... and I am using JaxWsProxyFactoryBean to invoke my service. The server is
plain Endpoint.publish (Jetty based). When I run my simple app, it throws
the following error on the client app side:

[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:java
(def
ault) on project demoJaxws: An exception occured while executing the Java
class.
 null: InvocationTargetException: "http://cxf.apache.org/bindings/xformat";,
the
namespace on the "XMLFault" element, is not a valid SOAP version. -> [Help
1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal o
rg.codehaus.mojo:exec-maven-plugin:1.2:java (default) on project demoJaxws:
An e
xception occured while executing the Java class. null
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:217)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:84)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.apache.maven.plugin.MojoExecutionException: An exception
occured
while executing the Java class. null
        at
org.codehaus.mojo.exec.ExecJavaMojo.execute(ExecJavaMojo.java:346)
        at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:107)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:209)
        ... 19 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:291)
        at java.lang.Thread.run(Thread.java:662)
Caused by: javax.xml.ws.soap.SOAPFaultException: "
http://cxf.apache.org/bindings
/xformat", the namespace on the "XMLFault" element, is not a valid SOAP
version.

        at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:14
6)
        at $Proxy39.sayHello(Unknown Source)
        at demo.cxf.jaxws.client.Client.main(Client.java:14)
        ... 6 more
Caused by: org.apache.cxf.binding.soap.SoapFault: "
http://cxf.apache.org/binding
s/xformat", the namespace on the "XMLFault" element, is not a valid SOAP
version
.
        at
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handle
Message(ReadHeadersInterceptor.java:131)
        at
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handle
Message(ReadHeadersInterceptor.java:60)
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercept
orChain.java:255)
        at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:755)
        at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleR
esponseInternal(HTTPConduit.java:2330)
        at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleR
esponse(HTTPConduit.java:2192)
        at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(H
TTPConduit.java:2036)
        at
org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:5
6)
        at
org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:696)

        at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndi
ngInterceptor.handleMessage(MessageSenderInterceptor.java:62)
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercept
orChain.java:255)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:516)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)
        at
org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
        at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:12
4)
        ... 8 more
Will appreciate help on this.

Thx

Raj

Reply via email to