You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Ivanhoe Abrahams <iv...@gmail.com> on 2007/09/14 12:11:23 UTC

org.apache.cxf.binding.soap.SoapFault: "null" is not a valid SOAP version.

Hi guys

I generated a client off the following wsdl
http://www.webservicex.net/uszip.asmx?WSDL

Then I tried to invoke the sevice by doing the following


////Client code
        USZip service = new USZip();
        USZipSoap client = service.getUSZipSoap();

        GetInfoByCityResult result = client.getInfoByCity("New York");
        System.out.println (result);
////Client code


Unfortunately I get the following exception

org.apache.cxf.binding.soap.SoapFault: "null" is not a valid SOAP version.
    at
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(
ReadHeadersInterceptor.java:92)
    at
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage
(ReadHeadersInterceptor.java:57)
    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
PhaseInterceptorChain.java :207)
    at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:395)
    at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse
(HTTPConduit.java:1959)
    at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close (
HTTPConduit.java:1806)
    at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java
:66)
    at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:574)
    at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(
MessageSenderInterceptor.java:62)
    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
PhaseInterceptorChain.java:207)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:254)
    at org.apache.cxf.endpoint.ClientImpl.invoke (ClientImpl.java:205)
    at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
    at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java
:135)
    at $Proxy30.getInfoByCity(Unknown Source)
    at org.afrospective.main.Main.testSoapDOTNET(Main.java:77)
    at org.afrospective.main.Main.main(Main.java:25)


Can anyone inform me