You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Jack Sprat <re...@yahoo.com> on 2009/11/30 17:15:16 UTC
[Axis2] Ant codegen task problem
I have an Ant task set up to generate classes for my Axis2 web service. It fails every time I try to generate the server side code with the error below.
org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: Schema writing failed!
The Ant target looks like this:
<target name="codegen">
<taskdef name="axis2-wsdl2java"
classname="org.apache.axis2.tool.ant.AntCodegenTask"
classpathref="axis2.class.path"/>
<axis2-wsdl2java
wsdlfilename="http://path/to/service?wsdl"
output="${src}"
databindingname="adb"
packageName="com.domain.ws.myservice.gensrc"
serviceName="ImageViewService"
serverSide="true"
serverSideInterface="true"
generateServiceXml="true"/>
</target>
Can someone please provide some direction? Any help is greatly appreciated.
Thanks.
Re: [Axis2] Ant codegen task problem
Posted by Glen Mazza <gl...@gmail.com>.
http://www.jroller.com/gmazza/entry/soap_client_with_axis2 ?
Glen
Jack Sprat wrote:
>
> I have an Ant task set up to generate classes for my Axis2 web service. It
> fails every time I try to generate the server side code with the error
> below.
>
> org.apache.axis2.wsdl.codegen.CodeGenerationException:
> java.lang.RuntimeException: Schema writing failed!
>
> The Ant target looks like this:
>
> <target name="codegen">
> <taskdef name="axis2-wsdl2java"
> classname="org.apache.axis2.tool.ant.AntCodegenTask"
> classpathref="axis2.class.path"/>
> <axis2-wsdl2java
> wsdlfilename="http://path/to/service?wsdl"
> output="${src}"
> databindingname="adb"
> packageName="com.domain.ws.myservice.gensrc"
> serviceName="ImageViewService"
> serverSide="true"
> serverSideInterface="true"
> generateServiceXml="true"/>
> </target>
>
> Can someone please provide some direction? Any help is greatly
> appreciated.
>
> Thanks.
>
>
>
>
>
>
--
View this message in context: http://old.nabble.com/-Axis2--Ant-codegen-task-problem-tp26577306p26582607.html
Sent from the Axis - User mailing list archive at Nabble.com.