Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Web Services and the fly likes wsdl schema import problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "wsdl schema import problem" Watch "wsdl schema import problem" New topic

wsdl schema import problem

Ranadhir Nag
Ranch Hand

Joined: Mar 09, 2006
Posts: 138
Please indicate if this is not a proper forum for this.
But I get compilation errors when i run wsdlc against this wsdl.
I am using weblogic 10.3,if that is of relevance.

<?xml version="1.0" encoding="UTF-8"?>
<definitions name="PriceListService"

<schema xmlns=""

<complexType name="ArrayOfString">
<restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType"

[wsdlc] [WARNING] src-resolve.4.2: Error resolving component 'soapenc:Array'
. It was detected that 'soapenc:Array' is in namespace 'http://schemas.xmlsoap.o
rg/soap/encoding/', but components from this namespace are not referenceable fro
m schema document 'file:/C:/Documents%20and%20Settings/compaq/Local%20Settings/T
emp/_ckr59b/PriceListService.wsdl#types?schema1'. If this is the incorrect names
pace, 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:/C:

Any ideas on how to resolve this namespace issue will be appreciated.

Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
You can resolve the issue and make your service more interoperable by not using the soapenc:Array type and instead using a construct with maxOccurs="unbounded", for instance.
Please refer to the following link for an example:
Best wishes!
Ranadhir Nag
Ranch Hand

Joined: Mar 09, 2006
Posts: 138
Thanks for ther recommendation.
But at a broader level,my concern was why i landed into this namespace issue at the first place.
It seems I am needed to import some namespace - and i may well face this problem for any other namespace too.

Any help in clarify this namespace conflict will be quite helpful
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
Hi again!
In your case, specifying a schemaLocation for the namespace in question should solve your problem, but be aware that:
In a WSDL document that conforms to the WS-I Basic Profile, importing another WSDL and importing an XML schema containing type declarations are done in two different ways:
Import of WSDL documents must be done using the <wsdl:import> element, while importing an XML schema is to be done using the <xsd:import> element inside a <xsd:schema> element in the <wsdl:types> element.

Best wishes!
Don't get me started about those stupid light bulbs.
subject: wsdl schema import problem
Similar Threads
string[] definiton error in xsd file generated with WSAD
Problem with arrays of primitive types
simple array in WSAD 5.0 web service. is it possible?
XSD Schema Error in WSAD
creating web services from wsdl(servercode) using apache axis xmlbeans