on 07-27-2009 2:58 PM
Hi All,
I am trying to import XSD file to IR but it is giving error as
"Unable to convert imported document to WSDL
Reason:
Value 'asx:values' of the ref attribute in element '/schema/element("asx:abap")/complexType/sequence/element' contains an undeclared prefixCheck the selected category"
Following is the XSD file I am trying to import,
(Following content is copied from Internet explorer .. so it has some spaces and character "-")
<?xml version="1.0" encoding="UTF-8" ?>
- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <xs:element name="asx:abap">
- <xs:complexType>
- <xs:sequence>
<xs:element ref="asx:values" />
</xs:sequence>
<xs:attribute name="version" type="xs:NMTOKEN" use="required" />
</xs:complexType>
</xs:element>
- <xs:element name="asx:values">
- <xs:complexType>
- <xs:sequence>
<xs:element ref="item" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
- <xs:element name="BOTTOM">
<xs:complexType mixed="true" />
</xs:element>
- <xs:element name="COLOR1">
<xs:complexType mixed="true" />
</xs:element>
<xs:element name="COLOR2" type="xs:string" />
- <xs:element name="COMPANY">
<xs:complexType mixed="true" />
</xs:element>
- <xs:element name="DESC">
<xs:complexType mixed="true" />
</xs:element>
- <xs:element name="FAMILY_NAM">
<xs:complexType mixed="true" />
</xs:element>
- <xs:element name="FIRST_NAM">
<xs:complexType mixed="true" />
</xs:element>
- <xs:element name="GRAIN">
<xs:complexType mixed="true" />
</xs:element>
- <xs:element name="GRP">
<xs:complexType mixed="true" />
</xs:element>
- <xs:element name="HEIGHT">
<xs:complexType mixed="true" />
</xs:element>
- <xs:element name="item">
- <xs:complexType>
- <xs:sequence>
<xs:element ref="MATNR" />
<xs:element ref="KINDS" />
<xs:element ref="QTY" />
<xs:element ref="WIDTH" />
<xs:element ref="HEIGHT" />
<xs:element ref="COLOR1" />
<xs:element ref="COLOR2" />
<xs:element ref="GRP" />
<xs:element ref="COMPANY" />
<xs:element ref="FIRST_NAM" />
<xs:element ref="FAMILY_NAM" />
<xs:element ref="DESC" />
<xs:element ref="NOTES" />
<xs:element ref="REQ_DATE" />
<xs:element ref="GRAIN" />
<xs:element ref="TOP" />
<xs:element ref="LEFT" />
<xs:element ref="BOTTOM" />
<xs:element ref="RIGHT" />
<xs:element ref="PRIORITY" />
<xs:element ref="SHEET_NAME" />
</xs:sequence>
</xs:complexType>
</xs:element>
- <xs:element name="KINDS">
<xs:complexType mixed="true" />
</xs:element>
- <xs:element name="LEFT">
<xs:complexType mixed="true" />
</xs:element>
- <xs:element name="MATNR">
<xs:complexType mixed="true" />
</xs:element>
- <xs:element name="NOTES">
<xs:complexType mixed="true" />
</xs:element>
- <xs:element name="PRIORITY">
<xs:complexType mixed="true" />
</xs:element>
- <xs:element name="QTY">
<xs:complexType mixed="true" />
</xs:element>
- <xs:element name="REQ_DATE">
<xs:complexType mixed="true" />
</xs:element>
- <xs:element name="RIGHT">
<xs:complexType mixed="true" />
</xs:element>
- <xs:element name="SHEET_NAME">
<xs:complexType mixed="true" />
</xs:element>
- <xs:element name="TOP">
<xs:complexType mixed="true" />
</xs:element>
- <xs:element name="WIDTH">
<xs:complexType mixed="true" />
</xs:element>
</xs:schema>
Please help me on this.
Regards,
Nitin Patil
Hi,
You missed to change the category,
As we know ED have sxd,wsdl,dtd,dttab options.
If you are importing xsd file in External defination make sure to select category filed as xsd.
I hope it will help
Thanks,
Nahim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Following content is copied from Internet explorer .. so it has some spaces and character "-")
right-click on the page in your IE and select View Source.....save this as xsd file in your system and then import
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abhishek,
I did the same but it is still giving the same error...
Unable to convert imported document to WSDL
Reason:
Value 'asx:values' of the ref attribute in element '/schema/element("asx:abap")/complexType/sequence/element' contains an undeclared prefixCheck the selected category
Part of the XSD file
-
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="asx:abap">
<xs:complexType>
<xs:sequence>
<xs:element ref="asx:values" />
</xs:sequence>
<xs:attribute name="version" type="xs:NMTOKEN" use="required" />
</xs:complexType>
</xs:element>
<xs:element name="asx:values">
<xs:complexType>
<xs:sequence>
<xs:element ref="item" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
-
Regards,
Nitin Patil
Value 'asx:values' of the ref attribute in element '/schema/element("asx:abap")/complexType/sequence/element' contains
an undeclared prefixCheck the selected category
Error very much self-explanatory
whenever you are having prefixes in your document (say ns0, ns1, xs, asx etc) you have to first define them and then only you can use them without error.....in the above file you do not have declaration for asx.....the same is however available for xs (xmlns:xs="http://www.w3.org/2001/XMLSchema") and hence not giving an error....similar should be present for asx.....
Regards,
Abhishek.
Hi Nitin,
Please specify where exactly this special character comes in.It will be great if you can give a sample format for xsd.
Thanks,
Tiny
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Goto your xsd in internet explorer, "view source" and then copy file from there, it will be free from "-".
Try to import into datatype and see what is happening.
Regards,
Gourav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.