axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Brain" <dbr...@gmail.com>
Subject Unable to generate client from axis served wsdl
Date Sun, 14 May 2006 00:50:24 GMT
Hi,

I've tried generating server stubs for a web service from this wsdl
using WSDL2Java -
http://www.multispeak.org/interface/30j/9_OA_SCADA.asmx?WSDL.  I have
tried this with both axis 1.3 & 1.4 with similar results.

This works fine, and I can deploy the stubs into Tomcat (5.0.7).
However it is not possible to generate a client from the wsdl
generated by the axis service.

e.g:

java org.apache.axis.wsdl.WSDL2Java -v
"http://localhost:8080/axis14/services/OA_SCADASoap?wsdl"
- Unable to find required classes (javax.activation.DataHandler and
javax.mail.internet.MimeMultipart). Attachment support is disabled.
Parsing XML file:  http://localhost:8080/axis14/services/OA_SCADASoap?wsdl
Generating org/multispeak/www/Version_3_0/ErrorObject.java
Generating org/multispeak/www/Version_3_0/ExtensionsItem.java
Generating org/multispeak/www/Version_3_0/DomainMember.java
Generating org/multispeak/www/Version_3_0/ScadaAnalog.java
Generating org/multispeak/www/Version_3_0/Uom.java
Generating org/multispeak/www/Version_3_0/QualityDescription.java
Generating org/multispeak/www/Version_3_0/ScadaStatus.java
Generating org/multispeak/www/Version_3_0/PointType.java
Generating org/multispeak/www/Version_3_0/OutageStatus.java
Generating org/multispeak/www/Version_3_0/Extensions.java
Generating org/multispeak/www/Version_3_0/CoordType.java
Generating org/multispeak/www/Version_3_0/MspObject.java
Generating org/multispeak/www/Version_3_0/Action.java
Generating org/multispeak/www/Version_3_0/OutageLocation.java
java.lang.NullPointerException
       at org.apache.axis.wsdl.toJava.JavaBeanWriter.preprocess(JavaBeanWriter.java:295)
       at org.apache.axis.wsdl.toJava.JavaBeanWriter.<init>(JavaBeanWriter.java:160)
       at org.apache.axis.wsdl.toJava.JavaTypeWriter.getBeanWriter(JavaTypeWriter.java:174)
       at org.apache.axis.wsdl.toJava.JavaTypeWriter.<init>(JavaTypeWriter.java:89)
       at org.apache.axis.wsdl.toJava.JavaGeneratorFactory.getGenerator(JavaGeneratorFactory.java:318)
       at org.apache.axis.wsdl.gen.Parser.generateTypes(Parser.java:545)
       at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:432)
       at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
       at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:362)
       at java.lang.Thread.run(Thread.java:595)

Errors also occur trying to generate the client with wsdl2 from mono.


Does any one have any thoughts as to why this might be? - the
(original) wsdl is fairly thick, but doesn't look all that complex.

Any thoughts, or guidance on where to look next, would be very welcome.

Thanks,

David.

Mime
View raw message