I'm really surprised that no one has any problems generating the
server & client code from a WSDL using xmlbeans binding. I'm
wondering if I'm doing something wrong or if this just isn't
supported.
There is a JIRA issue for what seems to be my problem:
http://jira.codehaus.org/browse/XFIRE-967
In this issue the author says it stopped working between 1.2RC &
1.2.5. I've tried 1.2RC and 1.2.6 and it doesn't work for me. This
makes me think that I'm just doing something wrong. However I get no
errors so I don't know what it could be. My jar of my xmlbeans is in
the classpath for WsGen, I've verified this. I'm also using the
correct version of xfire. I don't know what else to check.
Thanks for any suggestions. CXF doesn't support xmlbeans (yet) and
Axis2 is a bit confusing with their container architecture so I'd like
to stick with xfire.
On 7/24/07, Michael Mattox <[EMAIL PROTECTED]> wrote:
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