You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Ma...@sympany.ch on 2015/07/10 15:58:56 UTC

namespace issue with CXF wsdl2java: undefined simple or complex type

Hello everybody

We want to migrate our software to Apache CXF. We use have to use 3rd
party wsdl/xsd files as is.
Currently we face the following error when compiling the Œsample.wsdl¹
file with Œwsdl2java¹.

undefined simple or complex type ŒqueryRow'
undefined simple type Œtype'

See the exact call and output below. When we use use the jax-ws tool
Œwsimport¹ from java 1.7
it compiles without error.
So who is actually wrong (wsdl/xsd, wsdl2java or wsimport) ?

A tar.gz file with all the files is attached to this post.

Regards
Markus

===========================  apache CXF

./generate.sh
wsdl2java -d target ./Webservices/wsdl/sample.wsdl

WSDLToJava Error:
file:/Users/mue/work/workspace/cxf-xsd-error-work/Webservices/xsd/compb.uti
l.query.xsd [22,21]: undefined simple or complex type 'queryRow'
file:/Users/mue/work/workspace/cxf-xsd-error-work/Webservices/xsd/compb.uti
l.query.xsd [48,9]: undefined simple type 'type'

// two errors about undefined types

wsdl2java -v
wsdl2java - Apache CXF 3.0.3

=========================== JAX-WS from JDK 1.7

 ./generate.sh wsimport
wsimport -d target ./Webservices/wsdl/sample.wsdl
parsing WSDL...

Generating code...

Compiling code...

// no error here

wsimport -version
JAX-WS RI 2.2.4-b01

===========================  JDK version, platform MAC

java -version
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

file
/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/bin/java
/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/bin/java:
Mach-O 64-bit executable x86_64

System Version: OS X 10.10.4 (14E46)
      Kernel Version: Darwin 14.4.0


Sympany - 100 Jahre
http://www.sympany.ch/100jahre