views:

261

answers:

3

Hi all,

I'm trying to generate JAXB classes from the Clickatell wsdl: You can find the wsdl definition here it quite large: http://api.clickatell.com/soap/webservice.php?WSDL

When trying to generate java classes from this Wsdl i got the following errors: [ERROR] undefined simple or complex type 'SOAP-ENC:Array' [ERROR] undefined attribute 'SOAP-ENC:arrayType'

I hope someone can help me out. Cheers, Tim

A: 

What is the command line you are using to generate the java ?

LenW
I tried wsdl2java. But got a SchemaCompilationException: can not find type {http://schemas.xmlsoap.org/soap/encoding/}Array from the parent schema http://api.clickatell.com/soap/webservice
timvb
I also tried to use the build in "Generate Java Code from XML Schema using JAXB" function of IntelliJ 9
timvb
A: 

SOAP-ENC:arrayType indicates a web service that uses non-standard RPC-Encoding, which is obsolete and not part of the WS-I interoperability spec. Modern Java web service stacks (including JAX-WS / JAXB) do not support it.

The only java web service stack that I know of that support RPC-Encoding is Apache Axis 1.

skaffman
I'll focus on JAX-RPC and Axis 1 to see if i can solve this problem.
timvb
A: 

JAXB doesnot support RPC/Encoding. Use JAX-RPC to solve this problem.

Teja Kantamneni
This has nothing to do with JAXB, it's a JAX-WS issue
skaffman