axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chathura Herath" <chathu...@gmail.com>
Subject Re: [Axis2] wsdl2java: How do I find uot whats wrong with the WSDL?
Date Wed, 24 May 2006 16:44:24 GMT
There was an error in ur wsdl. The part attribute name in the
definition/binding/operation/input/header doesn't match with the part
name in the message. login against Login
Attached is the corrected wsdl, which works.

Chathura

On 5/24/06, Håkon T Sønderland <hts@antares.no> wrote:
> I'm trying to use wsdl2java to create a service, but I'm not having
> much success. This is the first time I do this so please bear with me.
>
> I have defined my wsdl and tried 4 different validation tools
> (Oxygen, Jdeveloper, WS-I and Clear Cape) just to make sure it
> is correct (still not sure though) and conforms to WS-I.
>
> Here is the output I get from wsdl2java:
>
> C:\>wsdl2java -uri createLeasingApplication.wsdl -ss -sd
> Using AXIS2_HOME:   C:\java\axis2
> Using JAVA_HOME:    c:\J2EESDK\jdk
> log4j:WARN No appenders could be found for logger
> (org.apache.axis2.i18n.ProjectResourceBundle).
> log4j:WARN Please initialize the log4j system properly.
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
>          at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:94)
>          at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
>          at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: org.apache.axis2.AxisFault: null; nested exception is:
>          java.lang.NullPointerException
>          at
> org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:243)
>          at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:87)
>          ... 2 more
> Caused by: java.lang.NullPointerException
>          at
> org.apache.axis2.description.WSDL2AxisServiceBuilder.copyExtensibleElements(WSDL2AxisServiceBuilder.java:1095)
>          at
> org.apache.axis2.description.WSDL2AxisServiceBuilder.processBinding(WSDL2AxisServiceBuilder.java:330)
>          at
> org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:238)
>          ... 3 more
>
> I can't really make any sense of this, please help?
>
> WSDL file attached.
>
> Håkon
> --
> Antares Gruppen AS
> Dir.phone: +47 - 23 29 05 75
> Mobile: +47 - 911 79 505
> http://www.antares.no
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>


-- 
Chathura Herath
http://people.apache.org/~chathura/
http://chathurah.blogspot.com/

Mime
View raw message