on 06-18-2012 10:42 AM
Hi Experts,
I have an XSD, which was working perfectly in PI 7.0, but when i import the same XSD to the PI 7.1. it is giving me an error like
Unable to convert imported document to WSDL
Reason:
Unable to recognize document as valid XSDCheck the selected category.
when i did a check(F7), it says
Attribute "minOccurs" with the value "0" is not permitted in the "/schema/element("VALUTA")" element |
I have few fields with minOccurs "0", when i remove the minOccurs it works fine.but i need the minOccurs to be mentioned in the XSD.
Could you please help me, what changes i need to make in XSD so that it is imported successfully.
Thanks,
Hemanth.
Hello,
You can refer to this list for the Supported XML Schema and WSDL in PI 7.1
Not sure why you are getting the error, can you paste the xsd here?
Hope this helps,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mark,
Thanks For the Reply, please find the XSD and do the helpful.
<?xml version="1.0" encoding="ISO-8859-1"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="BU" type="xs:string" />
<xs:element name="Body">
<xs:complexType>
<xs:sequence>
<xs:element ref="NOTE" />
<xs:element ref="SALREP" />
<xs:element ref="NOPOS" />
<xs:element ref="VALUTA" minOccurs="0" />
<xs:element ref="DAYS" minOccurs="0" />
<xs:element ref="ORDREASON" minOccurs="0" />
<xs:element ref="BILLTEXT" minOccurs="0" />
<xs:element ref="AG" minOccurs="0" />
<xs:element ref="ENDMARK" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="CUSTNO" type="xs:string" />
<xs:element name="CUSTORDID" type="xs:string" />
<xs:element name="DELDATE" type="xs:string" />
<xs:element name="ENDMARK" type="xs:string" />
<xs:element name="FMARK" type="xs:string" />
<xs:element name="Header">
<xs:complexType>
<xs:sequence>
<xs:element ref="HMARK" />
<xs:element ref="HTRANS" />
<xs:element ref="HSA" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="MAN" type="xs:string" />
<xs:element name="NOPOS" type="xs:string" />
<xs:element name="VALUTA" type="xs:string" minOccurs="0" />
<xs:element name="DAYS" type="xs:string" minOccurs="0" />
<xs:element name="ORDREASON" type="xs:string" minOccurs="0" />
<xs:element name="BILLTEXT" type="xs:string" minOccurs="0" />
<xs:element name="AG" type="xs:string" minOccurs="0" />
<xs:element name="NOTE" type="xs:string" />
<xs:element name="Trailer">
<xs:complexType>
<xs:sequence>
<xs:element ref="FMARK" />
<xs:element ref="FZAEHL" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="VO" type="xs:string" />
<xs:element name="Z2H_KO">
<xs:complexType>
<xs:sequence>
<xs:element ref="file" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="file">
<xs:complexType>
<xs:sequence>
<xs:element ref="Header" />
<xs:element ref="Body" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="Trailer" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Thanks,
Hemanth.
Hi Hemmath,
The problem is the next:
With this stament you say: I have an element, named VALUTA, with ocurrence 0 that is defined in the element VALUTA
<xs:element ref="VALUTA" minOccurs="0" />
With this stament you are defining VALUTA, it has no sense to establish the ocurrence here, this is the definition and the ocurrency can be variable:
<xs:element name="VALUTA" type="xs:string" minOccurs="0" />
Regards
Hi Greg,
Yes you are correct, when i remove the minOccurs in this
<xs:element name="VALUTA" type="xs:string" minOccurs="0" />
it works but when i remove the minOccurs for the ref element and keep the elament name it again throws error.
can you suggest me the solution what to do in this case, because both the places the filed VALUTA needs to be optional.
Thanks,
Hemanth.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.