Hi, I am trying to generate service classes by de-marshalling wsdl published by Amazon. I am using JAX-WS for the same. Running the following command....
wsimport http://soap.amazon.com/schemas2/AmazonWebServices.wsdl
I get the following error....
[WARNING] src-resolve.4.2: Error resolving component 'soapenc:Array'. It was det
ected that 'soapenc:Array' is in namespace 'http://schemas.xmlsoap.org/soap/enco
ding/', but components from this namespace are not referenceable from schema doc
ument 'http://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 'http://soap.amazon.com/schemas2/AmazonWebServices.wsdl#types
?schema1'.
line 6 of http://soap.amazon.com/schemas2/AmazonWebServices.wsdl#types?schema1
[ERROR] undefined simple or complex type 'soapenc:Array'
Seems that I am missing a xsd which defines 'soapenc:Array', but do not know how to rectify this error. Pls advise.
You can check the wsdl on the url I have mentioed in the command. Thanks.
-Madhur