Hi Jim;
Can you please help us to regenerate the problem , in the meantime
create JIRA too. So what you can do is create a jira and attach a sample
to regenerate the problem.

Jim Bender wrote:

> I am trying to convert my code to use Axis2 Std 1.0 instead of 0.93.
> The various pieces are all done programmatically, rather than using
> the plugin,
> as this is for a product.
>
> The Java2WSDL runs without breaking in 1.0, but generates an incorrect
> file.
> The toy example I am using uses a complex type as the method parameter
> for the service. In 0.93, you must only put the interface in the
> default package,
> but the generated WSDL is correct for a complex type parameter.
> In 1.0, the generator produces an incorrect WSDL file with two
> definitions
> for the complex type: apparently one for the import and one when it
> appears as a method parameter. The WSDL2Java generation throws an
> exception
> because of an incorrect WSDL file:
>
> INFO     Running: java classname=org.apache.axis2.wsdl.WSDL2Java
> fork=true classpathref  (arg value=
> -uri ) (arg
> file=c:\Java\projects2\axis2-std-1.0testbed\build\wsdl\WWPointsCalculator.wsdl
>
> ) (arg va
> lue=-s ) (arg value=-ss ) (arg value=-sd ) (arg value=-o ) (arg
> file=c:\Java\projects2\axis2-std-1.0
> testbed\build\output ) (arg value=-p ) (arg value=testexamples.types )
> WARN     Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException: Error par
> sing WSDL
> WARN            at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:94)
>
> WARN            at
> org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> WARN            at
> org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> WARN     Caused by: org.apache.axis2.AxisFault: Schema for namespace
> 'http://PointsCalculator.ve.rec
> ursionsw.com/types' already contains type 'FoodDescription; nested
> exception is:
> WARN            java.lang.RuntimeException: Schema for namespace
> 'http://PointsCalculator.ve.recursionsw.c
> om/types' already contains type 'FoodDescription
> WARN            at
> org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBu
>
> ilder.java:243)
> WARN            at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:87)
>
> WARN            ... 2 more
> WARN     Caused by: java.lang.RuntimeException: Schema for namespace
> 'http://PointsCalculator.ve.rec
> ursionsw.com/types' already contains type 'FoodDescription
> WARN            at
> org.apache.ws.commons.schema.XmlSchema.addType(XmlSchema.java:237)
> WARN            at
> org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:10
>
> 3)
> WARN            at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:233)
>
> WARN            at
> org.apache.axis2.description.WSDL2AxisServiceBuilder.getXMLSchema(WSDL2AxisServiceBuild
>
> er.java:959)
> WARN            at
> org.apache.axis2.description.WSDL2AxisServiceBuilder.copyExtensibleElements(WSDL2AxisSe
>
> rviceBuilder.java:1067)
> WARN            at
> org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBu
>
> ilder.java:221)
>
> I did not see a reference to this problem on the list or with Google,
> but perhaps I just missed it.
>
> Regards,
> -- 
> Jim
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

-- 
Thanks,
Deepal
................................................................
~Future is Open~ 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to