Hi All,
This was due to a recent change I did on the typemapper code. I've
corrected the issue in the latest SVN and the given two WSDL's
generate proper code.
However the second WSDL is a rpc/encoded one. Axis2 is not guranteed
to process such WSDLs properly!

Ajith


On 8/3/06, Samisa Abeysinghe <[EMAIL PROTECTED]> wrote:
Does anyone has any idea on what is going wrong here? Basically I need
some help to understand the exception.

Samisa...

-------- Original Message --------
Subject:        [Axis2] Code generation to C
Date:   Wed, 2 Aug 2006 10:33:14 -0700
From:   Alastair FETTES <[EMAIL PROTECTED]>
Reply-To:       Apache AXIS C User List <[email protected]>
To:     <[email protected]>



I've modified the WSDL2Code.bat file from the latest snapshot of the
Java trunk.  I've changed the code gen call to be:

%_RUNJAVA% %JAVA_OPTS% -cp %AXIS2_CLASS_PATH%
org.apache.axis2.wsdl.WSDL2Code -D
org.apache.adb.properties=/org/apache/axis2/schema/c-schema-compile.prop
erties -l c -uri %1 -d none

Where %1 is the paramterized name of the wsdl file that I pass in to the
batch script.  I am trying to convert the attached two files but without
luck.

1.  Versions.wsdl (this is the exact wsdl that is served from the Axis2
java installation running on Tomcat):
<stackTrace>
org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was
mapped to
the name getVersion with namespace http://axisversion.sample/xsd
        at
org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingNa
me(TypeMappingAdapter.java:73)
        at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
itter.getInputParamElement(AxisServiceBasedMultiLanguageEmitter.java:185
5)
        at
org.apache.axis2.wsdl.codegen.emitter.CEmitter.getInputParamElement(C
Emitter.java:350)
        at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
itter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:1713)
        at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
itter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:1454)
        at
org.apache.axis2.wsdl.codegen.emitter.CEmitter.createDOMDocumentForIn
terfaceImplementation(CEmitter.java:224)
        at
org.apache.axis2.wsdl.codegen.emitter.CEmitter.writeCStubSource(CEmit
ter.java:104)
        at
org.apache.axis2.wsdl.codegen.emitter.CEmitter.emitStub(CEmitter.java
:46)
        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:224)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
</stackTrace>

2.  echoTest.wsdl (a wsdl provided by the axis 1 installation).
<stackTrace>
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException
: Error parsing WSDL
        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:123)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
Caused by: org.apache.axis2.AxisFault: null; nested exception is:
        java.lang.NullPointerException
        at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
ce(WSDL11ToAxisServiceBuilder.java:234)
        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:114)
        ... 1 more
Caused by: java.lang.NullPointerException
        at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateSchem
aMap(WSDL11ToAxisServiceBuilder.java:247)
        at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
ce(WSDL11ToAxisServiceBuilder.java:189)
        ... 2 more
</stackTrace>

So some questions:
1.  Why am I getting these errors?
2.  Are you going to simplify this process for conversion in a similar
fashion to Axis1.
3.  When will this be included in an actual release of either Axis2 java
or c?

Thanks in advance.

Alastair

This e-mail and any attachments are intended solely for the use of the
intended recipient(s) and may contain legally privileged, proprietary
and/or confidential information.  Any use, disclosure, dissemination,
distribution or copying of this e-mail and any attachments for any
purposes that have not been specifically authorized by the sender is
strictly prohibited.  If you are not the intended recipient, please
immediately notify the sender by reply e-mail and permanently delete all
copies and attachments.

The entire content of this e-mail is for "information purposes" only and
should not be relied upon by the recipient in any way unless otherwise
confirmed in writing by way of letter or facsimile.

 <<version.wsdl>>  <<echoTest.wsdl>>




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



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





--
Ajith Ranabahu

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

Reply via email to