> It seems to me a bug in the Axis module that generates WSDL file from the
> deployed service. It does not properly generate complex types with
> extensions???
>

There's a jira issue submitted for axis2 on extensions, though not seemingly 
the same issue as you describe: 

http://issues.apache.org/jira/browse/AXIS2-310

After a bit more investigation, although it does not work as one may expect,  
the inherited methods in my case are accessable in the sub-type. In an IDE 
such as eclipse you can see the base methods exposed on the sub-type. The 
constructor however is still at least seemingly to me not consistent with 
Axis 1.3 or JWSDP. 

HTH,
iksrazal

Em Terça 13 Dezembro 2005 11:54, o Shakeel Muhammad escreveu:
> Hi All,
>
>
> I had WSDL which I used to generate and deploy web service successfully on
> Axis 2 (in ATG Dynamo container).
>
> I tried to generate java classes using Axis wsdl2java task from the Axis
> generated WSDL file of the deployed web service.
>
> But I got following exception.
>
> (Note: AxisGenerated.wsdl , Original.wsdl and AxisGeneratedFixed.wsdl are
> attached).
>
> [axis-wsdl2java] java.lang.NullPointerException
> [axis-wsdl2java]        at
> org.apache.axis.wsdl.toJava.JavaBeanWriter.preprocess(JavaBeanWriter.java:2
>6 4)
> [axis-wsdl2java]        at
> org.apache.axis.wsdl.toJava.JavaBeanWriter.getImplementsText(JavaBeanWriter
>. java:500)
> [axis-wsdl2java]        at
> org.apache.axis.wsdl.toJava.JavaBeanWriter.writeFileHeader(JavaBeanWriter.j
>a va:179)
> [axis-wsdl2java]        at
> org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:129)
> [axis-wsdl2java]        at
> org.apache.axis.wsdl.toJava.JavaBeanWriter.generate(JavaBeanWriter.java:127
>0 )
> [axis-wsdl2java]        at
> org.apache.axis.wsdl.toJava.JavaTypeWriter.generate(JavaTypeWriter.java:113
>) [axis-wsdl2java]        at
> org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGener
>a torFactory.java:421)
> [axis-wsdl2java]        at
> org.apache.axis.wsdl.gen.Parser.generateTypes(Parser.java:547)
> [axis-wsdl2java]        at
> org.apache.axis.wsdl.gen.Parser.generate(Parser.java:432)
> [axis-wsdl2java]        at
> org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
> [axis-wsdl2java]        at
> org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:362)
> [axis-wsdl2java]        at java.lang.Thread.run(Thread.java:534)
>
> NOTE: Using Artix wsdl2java tool I could see that for certain types in
> AxisGeneratred.wsdl file, proper base of the extension was not specified.
> For example, Artix gives following error for a type in AxisGenerated.wsdl:
> Error : Error occured during parsing of WSDL (Line: 93, Column: 17,
> SystemId: /AxisGenerated.wsdl, PublicId: null)
> - com.iona.webservices.wsdl.handlers.schema.ExtensionHandler : <extension>
> schema element must have a base attribute.
>
> After fixing all such errors, both Artix and Axis could successfully
> generate java classes from the AxisGeneratedFixed.wsdl file.
>
> It seems to me a bug in the Axis module that generates WSDL file from the
> deployed service. It does not properly generate complex types with
> extensions???
>
> Thanks.
>
> Regards
>
> -Shakeel

Reply via email to