cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex <devns...@gmail.com>
Subject Re: Exception when mapping xsd:anyTyp to java.lang.Object
Date Tue, 05 Jan 2010 15:31:06 GMT
Hi Bensone,

I using apache cxf 2.2.5

Here is my ant-script:

    <target name="cxfWSDLToJava">
        <java classname="org.apache.cxf.tools.wsdlto.WSDLToJava" 
fork="true">
            <arg value="-b" />
            <arg value="client/build/binding-MessageTypes.xml" />
            <arg value="-p" />
            <arg value="ns://namespace/gb=client.cxf" />
            <arg value="-p" />
            <arg value="ns://namespace/types=client.cxf.types" />
            <arg value="-p" />
            <arg value="ns://namespace/tags=client.xcf.tags" />
            <arg value="-p" />
            <arg 
value="http://www.w3.org/2005/05/xmlmime=client.brz.xmlmime" />
            <arg value="-sn" />
            <arg value="OPService" />
            <arg value="-d" />
            <arg value="${src}" />
            <arg value="-client" />
            <arg value="-impl" />
            <arg value="-autoNameResolution" />
            <arg value="-exsh" />
            <arg value="true" />
            <arg value="${path2wsdl}" />
            <classpath>
                <path refid="cxf.classpath" />
            </classpath>
        </java>
    </target>

Benson Margulies schrieb:
> What version of CXF? How did you configure?
>
> On Tue, Jan 5, 2010 at 9:43 AM, Alex <devnsl01@gmail.com> wrote:
>   
>> Hi,
>>
>> one element in my wsdl file is defined as xsd:anyType, wsdl2java makes
>> java.lang.Object from this type.
>>
>> when I send a request to my service, an exception is thrown:
>>
>> Marshalling Error: java.lang.Object cannot be cast to org.w3c.dom.Element
>> java.lang.ClassCastException: java.lang.Object cannot be cast to
>> org.w3c.dom.Element
>>
>> any hints, thank you Alex
>>
>>     


Mime
View raw message