You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by bjarnek <bj...@asp-as.no> on 2007/12/18 10:34:38 UTC

"http://schemas.xmlsoap.org/wsdl/" is not a valid SOAP version

Hi

I get this exception:
org.apache.cxf.binding.soap.SoapFault: "http://schemas.xmlsoap.org/wsdl/" is
not a valid SOAP version.
(I have marked in code where the exception occurs (last line under))

using this server def:
    <simple:server id="lokcerService"
serviceClass="no.asp.as.masterlocker.client.ILockerClient"
address="/locker">
        <simple:dataBinding>
                <bean
class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
        </simple:dataBinding>
        <simple:serviceBean>
            <bean class="no.asp.as.masterlocker.LockerUtilityImpl" />
        </simple:serviceBean>
    </simple:server>

and this client code:

....
        ClientProxyFactoryBean factory = new ClientProxyFactoryBean();
        factory.setServiceClass(ILockerClient.class);

        factory.setAddress(adresse);
        factory.getServiceFactory().setDataBinding(new AegisDatabinding());
        client = (ILockerClient) factory.create();

        LockResult lockResult = client.addLock(firmaNr, tableName, tableId,
userID);  // <-- this cause the exception
....

This worked fine when "addLock" returned just a String.
But when I change return value to a class, "LockResult", I got the SOAP
exception.

Can anyone help me?




-- 
View this message in context: http://www.nabble.com/%22http%3A--schemas.xmlsoap.org-wsdl-%22-is-not-a-valid-SOAP-version-tp14387884p14387884.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: "http://schemas.xmlsoap.org/wsdl/" is not a valid SOAP version

Posted by bjarnek <bj...@asp-as.no>.
Hi

That worked.

Thank you!

:-)

bjarne



Benson Margulies-4 wrote:
> 
> It looks to me as it you need more <import>'s of CXF extensions in your
> spring configuration. In particlar:
> 
>  <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
> 
> 
> Glenn posted an explanation of this on the wiki.
> 
> If you configure your services in a cxf.xml or cxf-servlet.xml, CXF will
> load all possible extensions onto the bus.
> 
> If you use your own spring beans, you have to use the extension imports
> to load the ones you need. See the samples, I guess.
> 
> 
> 
> On Tue, 2007-12-18 at 04:49 -0800, bjarnek wrote:
>> Hi,
>> 
>> I use CXF 2.0.3
>> 
>> I have not configured any bus, as far as I know.
>> How do I do that?
>> 
>> I get this message while running:
>>     Could not find the configuration file cxf.xml on the classpath
>> 
>> Maybe this is where the bus configuration goes?
>> 
>> bjarne
>> 
>> 
>> Benson Margulies-4 wrote:
>> > 
>> > What version of CXF? How did you configure the bus?
>> > 
>> > 
>> > 
>> > On Tue, 2007-12-18 at 01:34 -0800, bjarnek wrote:
>> >> Hi
>> >> 
>> >> I get this exception:
>> >> org.apache.cxf.binding.soap.SoapFault:
>> "http://schemas.xmlsoap.org/wsdl/"
>> >> is
>> >> not a valid SOAP version.
>> >> (I have marked in code where the exception occurs (last line under))
>> >> 
>> >> using this server def:
>> >>     <simple:server id="lokcerService"
>> >> serviceClass="no.asp.as.masterlocker.client.ILockerClient"
>> >> address="/locker">
>> >>         <simple:dataBinding>
>> >>                 <bean
>> >> class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
>> >>         </simple:dataBinding>
>> >>         <simple:serviceBean>
>> >>             <bean class="no.asp.as.masterlocker.LockerUtilityImpl" />
>> >>         </simple:serviceBean>
>> >>     </simple:server>
>> >> 
>> >> and this client code:
>> >> 
>> >> ....
>> >>         ClientProxyFactoryBean factory = new ClientProxyFactoryBean();
>> >>         factory.setServiceClass(ILockerClient.class);
>> >> 
>> >>         factory.setAddress(adresse);
>> >>         factory.getServiceFactory().setDataBinding(new
>> >> AegisDatabinding());
>> >>         client = (ILockerClient) factory.create();
>> >> 
>> >>         LockResult lockResult = client.addLock(firmaNr, tableName,
>> >> tableId,
>> >> userID);  // <-- this cause the exception
>> >> ....
>> >> 
>> >> This worked fine when "addLock" returned just a String.
>> >> But when I change return value to a class, "LockResult", I got the
>> SOAP
>> >> exception.
>> >> 
>> >> Can anyone help me?
>> >> 
>> >> 
>> >> 
>> >> 
>> > 
>> > 
>> > 
>> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/%22http%3A--schemas.xmlsoap.org-wsdl-%22-is-not-a-valid-SOAP-version-tp14387884p14397562.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: "http://schemas.xmlsoap.org/wsdl/" is not a valid SOAP version

Posted by Benson Margulies <bi...@gmail.com>.
It looks to me as it you need more <import>'s of CXF extensions in your
spring configuration. In particlar:

 <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />


Glenn posted an explanation of this on the wiki.

If you configure your services in a cxf.xml or cxf-servlet.xml, CXF will
load all possible extensions onto the bus.

If you use your own spring beans, you have to use the extension imports
to load the ones you need. See the samples, I guess.



On Tue, 2007-12-18 at 04:49 -0800, bjarnek wrote:
> Hi,
> 
> I use CXF 2.0.3
> 
> I have not configured any bus, as far as I know.
> How do I do that?
> 
> I get this message while running:
>     Could not find the configuration file cxf.xml on the classpath
> 
> Maybe this is where the bus configuration goes?
> 
> bjarne
> 
> 
> Benson Margulies-4 wrote:
> > 
> > What version of CXF? How did you configure the bus?
> > 
> > 
> > 
> > On Tue, 2007-12-18 at 01:34 -0800, bjarnek wrote:
> >> Hi
> >> 
> >> I get this exception:
> >> org.apache.cxf.binding.soap.SoapFault: "http://schemas.xmlsoap.org/wsdl/"
> >> is
> >> not a valid SOAP version.
> >> (I have marked in code where the exception occurs (last line under))
> >> 
> >> using this server def:
> >>     <simple:server id="lokcerService"
> >> serviceClass="no.asp.as.masterlocker.client.ILockerClient"
> >> address="/locker">
> >>         <simple:dataBinding>
> >>                 <bean
> >> class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
> >>         </simple:dataBinding>
> >>         <simple:serviceBean>
> >>             <bean class="no.asp.as.masterlocker.LockerUtilityImpl" />
> >>         </simple:serviceBean>
> >>     </simple:server>
> >> 
> >> and this client code:
> >> 
> >> ....
> >>         ClientProxyFactoryBean factory = new ClientProxyFactoryBean();
> >>         factory.setServiceClass(ILockerClient.class);
> >> 
> >>         factory.setAddress(adresse);
> >>         factory.getServiceFactory().setDataBinding(new
> >> AegisDatabinding());
> >>         client = (ILockerClient) factory.create();
> >> 
> >>         LockResult lockResult = client.addLock(firmaNr, tableName,
> >> tableId,
> >> userID);  // <-- this cause the exception
> >> ....
> >> 
> >> This worked fine when "addLock" returned just a String.
> >> But when I change return value to a class, "LockResult", I got the SOAP
> >> exception.
> >> 
> >> Can anyone help me?
> >> 
> >> 
> >> 
> >> 
> > 
> > 
> > 
> 


答复: "http://schemas.xmlsoap.org/wsdl/" is not a valid SOAP version

Posted by "Jiang, Ning (Willem)" <Ni...@iona.com>.
Can you show us the detail stack trace and the on wire message?
So we can investigate it.
You can find the tips of debug CXF application in CXF user wiki[1]

[1]http://cwiki.apache.org/CXF20DOC/debugging.html

Willem

-----Original Message-----
From: bjarnek [mailto:bjarne.kvamme@asp-as.no]
Sent: 12/18/2007 (星期二) 20:49
To: cxf-user@incubator.apache.org
Subject: Re: "http://schemas.xmlsoap.org/wsdl/" is not a valid SOAP version
 

Hi,

I use CXF 2.0.3

I have not configured any bus, as far as I know.
How do I do that?

I get this message while running:
    Could not find the configuration file cxf.xml on the classpath

Maybe this is where the bus configuration goes?

bjarne


Benson Margulies-4 wrote:
> 
> What version of CXF? How did you configure the bus?
> 
> 
> 
> On Tue, 2007-12-18 at 01:34 -0800, bjarnek wrote:
>> Hi
>> 
>> I get this exception:
>> org.apache.cxf.binding.soap.SoapFault: "http://schemas.xmlsoap.org/wsdl/"
>> is
>> not a valid SOAP version.
>> (I have marked in code where the exception occurs (last line under))
>> 
>> using this server def:
>>     <simple:server id="lokcerService"
>> serviceClass="no.asp.as.masterlocker.client.ILockerClient"
>> address="/locker">
>>         <simple:dataBinding>
>>                 <bean
>> class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
>>         </simple:dataBinding>
>>         <simple:serviceBean>
>>             <bean class="no.asp.as.masterlocker.LockerUtilityImpl" />
>>         </simple:serviceBean>
>>     </simple:server>
>> 
>> and this client code:
>> 
>> ....
>>         ClientProxyFactoryBean factory = new ClientProxyFactoryBean();
>>         factory.setServiceClass(ILockerClient.class);
>> 
>>         factory.setAddress(adresse);
>>         factory.getServiceFactory().setDataBinding(new
>> AegisDatabinding());
>>         client = (ILockerClient) factory.create();
>> 
>>         LockResult lockResult = client.addLock(firmaNr, tableName,
>> tableId,
>> userID);  // <-- this cause the exception
>> ....
>> 
>> This worked fine when "addLock" returned just a String.
>> But when I change return value to a class, "LockResult", I got the SOAP
>> exception.
>> 
>> Can anyone help me?
>> 
>> 
>> 
>> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/%22http%3A--schemas.xmlsoap.org-wsdl-%22-is-not-a-valid-SOAP-version-tp14387884p14396217.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: "http://schemas.xmlsoap.org/wsdl/" is not a valid SOAP version

Posted by bjarnek <bj...@asp-as.no>.
Hi,

I use CXF 2.0.3

I have not configured any bus, as far as I know.
How do I do that?

I get this message while running:
    Could not find the configuration file cxf.xml on the classpath

Maybe this is where the bus configuration goes?

bjarne


Benson Margulies-4 wrote:
> 
> What version of CXF? How did you configure the bus?
> 
> 
> 
> On Tue, 2007-12-18 at 01:34 -0800, bjarnek wrote:
>> Hi
>> 
>> I get this exception:
>> org.apache.cxf.binding.soap.SoapFault: "http://schemas.xmlsoap.org/wsdl/"
>> is
>> not a valid SOAP version.
>> (I have marked in code where the exception occurs (last line under))
>> 
>> using this server def:
>>     <simple:server id="lokcerService"
>> serviceClass="no.asp.as.masterlocker.client.ILockerClient"
>> address="/locker">
>>         <simple:dataBinding>
>>                 <bean
>> class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
>>         </simple:dataBinding>
>>         <simple:serviceBean>
>>             <bean class="no.asp.as.masterlocker.LockerUtilityImpl" />
>>         </simple:serviceBean>
>>     </simple:server>
>> 
>> and this client code:
>> 
>> ....
>>         ClientProxyFactoryBean factory = new ClientProxyFactoryBean();
>>         factory.setServiceClass(ILockerClient.class);
>> 
>>         factory.setAddress(adresse);
>>         factory.getServiceFactory().setDataBinding(new
>> AegisDatabinding());
>>         client = (ILockerClient) factory.create();
>> 
>>         LockResult lockResult = client.addLock(firmaNr, tableName,
>> tableId,
>> userID);  // <-- this cause the exception
>> ....
>> 
>> This worked fine when "addLock" returned just a String.
>> But when I change return value to a class, "LockResult", I got the SOAP
>> exception.
>> 
>> Can anyone help me?
>> 
>> 
>> 
>> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/%22http%3A--schemas.xmlsoap.org-wsdl-%22-is-not-a-valid-SOAP-version-tp14387884p14396217.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: "http://schemas.xmlsoap.org/wsdl/" is not a valid SOAP version

Posted by Benson Margulies <bi...@gmail.com>.
What version of CXF? How did you configure the bus?



On Tue, 2007-12-18 at 01:34 -0800, bjarnek wrote:
> Hi
> 
> I get this exception:
> org.apache.cxf.binding.soap.SoapFault: "http://schemas.xmlsoap.org/wsdl/" is
> not a valid SOAP version.
> (I have marked in code where the exception occurs (last line under))
> 
> using this server def:
>     <simple:server id="lokcerService"
> serviceClass="no.asp.as.masterlocker.client.ILockerClient"
> address="/locker">
>         <simple:dataBinding>
>                 <bean
> class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
>         </simple:dataBinding>
>         <simple:serviceBean>
>             <bean class="no.asp.as.masterlocker.LockerUtilityImpl" />
>         </simple:serviceBean>
>     </simple:server>
> 
> and this client code:
> 
> ....
>         ClientProxyFactoryBean factory = new ClientProxyFactoryBean();
>         factory.setServiceClass(ILockerClient.class);
> 
>         factory.setAddress(adresse);
>         factory.getServiceFactory().setDataBinding(new AegisDatabinding());
>         client = (ILockerClient) factory.create();
> 
>         LockResult lockResult = client.addLock(firmaNr, tableName, tableId,
> userID);  // <-- this cause the exception
> ....
> 
> This worked fine when "addLock" returned just a String.
> But when I change return value to a class, "LockResult", I got the SOAP
> exception.
> 
> Can anyone help me?
> 
> 
> 
>