users@glassfish.java.net

JAX-WS client generation fails for Amazon WSDL

From: Ryan de Laplante <ryan_at_ijws.com>
Date: Tue, 10 Jul 2007 09:31:50 -0400

Hi,

When I use the following WSDL in NetBeans 5.5.1 to generate a JAX-WS
client, I got a long list of exceptions:

http://soap.amazon.com/schemas2/AmazonWebServices.wsdl

According to the errors, there are a bunch of undefined simple or
complex types. Ok, but this is a production Amazon.com web service.
Is there really a problem with their WSDL?


Thanks,
Ryan




init:
wsimport-init:
Created dir: D:\dev\Amazon\build\generated\wsimport\client
Created dir: D:\dev\Amazon\build\generated\wsimport\binaries
wsimport-client-check-AmazonWebServices:
wsimport-client-AmazonWebServices:
Consider using <depends>/<produces> so that wsimport won't do unnecessary compilation
parsing WSDL...


[WARNING] src-resolve.4.2: Error resolving component 'soapenc:Array'. It was detected that 'soapenc:Array' is in namespace 'http://schemas.xmlsoap.org/soap/encoding/', but components from this namespace are not referenceable from schema document 'file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl#types?schema1'. If this is the incorrect namespace, perhaps the prefix of 'soapenc:Array' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl#types?schema1'.
  line 6 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl#types?schema1

[ERROR] undefined simple or complex type 'soapenc:Array'
  line 6 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
  line 7 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined simple or complex type 'soapenc:Array'
  line 33 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
  line 34 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined simple or complex type 'soapenc:Array'
  line 114 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
  line 115 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined simple or complex type 'soapenc:Array'
  line 127 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
  line 128 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined simple or complex type 'soapenc:Array'
  line 134 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
  line 135 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined simple or complex type 'soapenc:Array'
  line 141 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
  line 142 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined simple or complex type 'soapenc:Array'
  line 148 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
  line 149 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined simple or complex type 'soapenc:Array'
  line 155 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
  line 156 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined simple or complex type 'soapenc:Array'
  line 168 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
  line 169 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined simple or complex type 'soapenc:Array'
  line 175 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
  line 176 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined simple or complex type 'soapenc:Array'
  line 188 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
  line 189 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined simple or complex type 'soapenc:Array'
  line 195 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
  line 196 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined simple or complex type 'soapenc:Array'
  line 209 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
  line 210 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined simple or complex type 'soapenc:Array'
  line 223 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
  line 224 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined simple or complex type 'soapenc:Array'
  line 230 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
  line 231 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined simple or complex type 'soapenc:Array'
  line 263 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
  line 264 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined simple or complex type 'soapenc:Array'
  line 282 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
  line 283 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined simple or complex type 'soapenc:Array'
  line 298 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
  line 299 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined simple or complex type 'soapenc:Array'
  line 310 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
  line 311 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined simple or complex type 'soapenc:Array'
  line 347 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
  line 348 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined simple or complex type 'soapenc:Array'
  line 367 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
  line 368 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined simple or complex type 'soapenc:Array'
  line 607 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
  line 608 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined simple or complex type 'soapenc:Array'
  line 614 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
  line 615 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined simple or complex type 'soapenc:Array'
  line 633 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
  line 634 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined simple or complex type 'soapenc:Array'
  line 646 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
  line 647 of file:/D:/dev/Amazon/src/conf/xml-resources/web-service-references/AmazonWebServices/wsdl/soap.amazon.com/schemas2/AmazonWebServices.wsdl

D:\dev\Amazon\nbproject\build-impl.xml:296: Error starting wsimport:
BUILD FAILED (total time: 2 seconds)