cancel
Showing results for 
Search instead for 
Did you mean: 

problem uploading XSD

Former Member
0 Kudos

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" />

(..)

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

Found the solution already. Load the XSD as an External Definition and use this in the message interface.

Regards

William

Former Member
0 Kudos

Hi ,

While importing XSD from External Definitions Select

category as xsd & Messages as From all Availabale Global Elements.

Try once with above.

Thnx,

Siva.