on 06-01-2010 9:25 AM
Dear experts,
I have a problem uploadng an XSD in my datatype. I created a datatype "tipoTipoCmp" and uploaded below XSD, but then I only get the first simpletype. I need the complete structure, what am I doing wrong? Hope anyone can help
Thanks in advance,
William.
XML:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema id="comprobantes" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://afip.com" targetNamespace="http://afip.com">
<xs:simpleType name="tipoTipoCmp">
<xs:restriction base="xs:integer">
<xs:enumeration value="19" />
<xs:enumeration value="20" />
<xs:enumeration value="21" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="tipoPtoVta">
<xs:restriction base="xs:integer">
<xs:minInclusive value="1" />
<xs:maxInclusive value="9999" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="tipoNroCmp">
<xs:restriction base="xs:integer">
<xs:minInclusive value="1" />
<xs:maxInclusive value="99999999" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="tipoCodAut">
<xs:restriction base="xs:integer">
<xs:minInclusive value="10000000000000" />
<xs:maxInclusive value="99999999999999" />
</xs:restriction>
</xs:simpleType>
(...)
<xs:element name="comprobantes">
<xs:complexType>
<xs:sequence>
<xs:element name="comprobante" minOccurs="1" maxOccurs="50">
<xs:complexType>
<xs:all>
<xs:element name="tipo" type="tipoTipoCmp" minOccurs="0" maxOccurs="1" />
<xs:element name="ptovta" type="tipoPtoVta" minOccurs="0" maxOccurs="1" />
<xs:element name="nro" type="tipoNroCmp" minOccurs="0" maxOccurs="1" />
<xs:element name="tipocodaut" type="tipoTexto1" minOccurs="0" maxOccurs="1" fixed="E" />
<xs:element name="codaut" type="tipoCodAut" minOccurs="0" maxOccurs="1" />
<xs:element name="vtocodaut" type="xs:date" minOccurs="0" maxOccurs="1" />
<xs:element name="cuitemisor" type="tipoCUIT" minOccurs="0" maxOccurs="1" />
(..)
May be u r file name(XSD) extension is not given, xsd file extension must be .xsl or .xsd , check once, and than u can load(import) that xsd file through External defination in integration repository. And that xsd file can be used for creating message interface and structure used in message mapping
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Found the solution already. Load the XSD as an External Definition and use this in the message interface.
Regards
William
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
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.