I generate xmlbeans for my XSD, but when I use wsget to generate the
classes for my WSDL, I get XmlObject for the parameter types instead
of my xmlbeans.  Oddly enough the return type is correct.  Since the
return type is also from the xsd and therefore from the xmlbeans
classes, I know the classpath is correct.

Here is my service implementation:

   public FooResponseDocument foo(String name, XmlObject phone, XmlObject a) {
       throw new UnsupportedOperationException();
   }

I've seen this reported in the mailing list and JIRA, but there hasn't
been a solution.  They say it worked with version 1.2.1.  I've tried
1.2.1 and I get the same behavior.  Also, the previous issues do not
mention that the return type is correct.

Just in case, I add my build file:


        <target name="xsd2java_xmlbeans" description="XSD 2 Java XML Beans">
                <delete dir="${build.dir}/src" />
                <mkdir dir="${build.dir}/src"/>
                <xmlbean schema="src"
           destfile="${build.dir}/schemas.jar"
           srcgendir="${build.dir}/src"
           debug="on">
           <classpath>
               <path refid="adm.classpath.id"/>
           </classpath>
           <fileset dir="${basedir}/WEB-INF/src/test">
                <filename name="Test10.xsd"/>
           </fileset>
                </xmlbean>
                <copy file="${build.dir}/schemas.jar" 
todir="${adm.resources.dir}/lib"/>
   </target>

   <target name="wsdl2java_xmlbeans" depends="xsd2java_xmlbeans"
description="Wsdl 2 Java XML Beans">
                <wsgen outputDirectory="${build.dir}/src"
                          wsdl="${basedir}/WEB-INF/src/test/Test10.wsdl"
                          package="test10"
                          binding="xmlbeans"
                          overwrite="true">
                </wsgen>
        </target>

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to