Skip to Content
avatar image
Former Member

External Defination

Hi Guys,

I am trying to import external definations but it gives the error:

"Unable to convert imported document to WSDL

Reason: Unable to recognize document as valid XSD

Check the selected category"

I checked its validity using Altova. The software says the xsd is valid.

Pls Help.

Regards,

Raj

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Sep 14, 2006 at 12:58 PM

    Hi ,

    Make sure that your category of file should be XSD in the external definition window.Default type is "WSDL".

    Sekhar

    Message was edited by: sekhar dachepalli

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      I think the problem is with the annotation having the documentation source

      Please use the following XSD and you can a annotation commented out try importing it and let me know, I have'nt checked importing into XI

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

      http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">

      <xs:element name="DataBatch">

      <xs:annotation>

      <xs:documentation>Root element of the batch holding data, subdata and attachments</xs:documentation>

      </xs:annotation>

      <xs:complexType>

      <xs:sequence>

      <xs:element ref="DataUnits"/>

      <xs:element ref="Attachments" minOccurs="0"/>

      <xs:element name="EnterpriseSignatures" minOccurs="0">

      <xs:complexType>

      <xs:sequence>

      <xs:element name="EnterpriseSignature" minOccurs="0" maxOccurs="unbounded">

      <xs:annotation>

      <xs:documentation>The Signature element used for extended authentication and authorization</xs:documentation>

      </xs:annotation>

      <xs:complexType>

      <xs:sequence>

      <xs:element name="SignerFNumber" type="xs:string">

      <xs:annotation>

      <xs:documentation>The id of the sigature user used for autentication</xs:documentation>

      </xs:annotation>

      </xs:element>

      <xs:element name="AuthenticationMethod" type="xs:string">

      <xs:annotation>

      <xs:documentation>The method of authentication</xs:documentation>

      </xs:annotation>

      </xs:element>

      <xs:element name="AltinnPinCode" type="xs:string">

      <xs:annotation>

      <xs:documentation>The pincode used for autentication</xs:documentation>

      </xs:annotation>

      </xs:element>

      <xs:element name="AltinnPassword" type="xs:string" minOccurs="0">

      <xs:annotation>

      <xs:documentation>The password used for autentication</xs:documentation>

      </xs:annotation>

      </xs:element>

      <xs:element name="EnterpriseSystemLoginDateTime" type="xs:dateTime">

      <xs:annotation>

      <xs:documentation>The timestamp for the Enterprise System login</xs:documentation>

      </xs:annotation>

      </xs:element>

      <xs:element name="EnterpriseSystemSignatureDateTime" type="xs:dateTime">

      <xs:annotation>

      <xs:documentation>The timestamp for the Enterprise System signature creation</xs:documentation>

      </xs:annotation>

      </xs:element>

      <xs:element name="EnterpriseSystemVersion" type="xs:string">

      <xs:annotation>

      <xs:documentation>The version of the Enterprise System issuing the signature</xs:documentation>

      </xs:annotation>

      </xs:element>

      <xs:element name="EnterpriseSystemUserId" type="xs:string" minOccurs="0">

      <xs:annotation>

      <xs:documentation>The user account identifier in the enterprise system</xs:documentation>

      </xs:annotation>

      </xs:element>

      <xs:element name="EnterpriseSystemSignatureLogId" type="xs:string" minOccurs="0">

      <xs:annotation>

      <xs:documentation>The Enterprise system internal reference id for the Enterprise System signature</xs:documentation>

      </xs:annotation>

      </xs:element>

      </xs:sequence>

      <xs:attribute name="sendersReference" use="required">

      <xs:simpleType>

      <xs:restriction base="xs:string">

      <xs:maxLength value="50"/>

      </xs:restriction>

      </xs:simpleType>

      </xs:attribute>

      <xs:attribute name="participantId" use="required">

      <xs:simpleType>

      <xs:restriction base="xs:string">

      <xs:maxLength value="11"/>

      </xs:restriction>

      </xs:simpleType>

      </xs:attribute>

      </xs:complexType>

      </xs:element>

      </xs:sequence>

      </xs:complexType>

      </xs:element>

      </xs:sequence>

      <xs:attribute name="schemaVersion" type="xs:decimal" use="required">

      <b><!-- <xs:annotation>

      <xs:documentation source="Corresponding schema version"/>

      </xs:annotation>

      --></b> </xs:attribute>

      <xs:attribute name="batchId" use="required">

      <xs:annotation>

      <xs:documentation>Unique id of the batch within the scope of the enterpriseSystemId. </xs:documentation>

      </xs:annotation>

      <xs:simpleType>

      <xs:restriction base="xs:string">

      <xs:minLength value="1"/>

      <xs:maxLength value="50"/>

      </xs:restriction>

      </xs:simpleType>

      </xs:attribute>

      <xs:attribute name="enterpriseSystemId" type="xs:int" use="required">

      <xs:annotation>

      <xs:documentation>Unique id of the system sending data. This id is obtained from registering the system with AltInn</xs:documentation>

      </xs:annotation>

      </xs:attribute>

      <xs:attribute name="receiptType" use="required">

      <xs:annotation>

      <xs:documentation>Type of receipt wanted for this batch.

      OnDemand means sender will ask for receipts, no receipts are pushed from AltInn.

      WS will use no security.</xs:documentation>

      </xs:annotation>

      <xs:simpleType>

      <xs:restriction base="xs:NMTOKEN">

      <xs:enumeration value="WS"/>

      <xs:enumeration value="OnDemand"/>

      </xs:restriction>

      </xs:simpleType>

      </xs:attribute>

      <xs:attribute name="receiptUrl" type="xs:string" use="optional">

      <xs:annotation>

      Depending on receiptType, this url will give the address to the senders receipt integration point. For web services, an example could be http://www.SendersCompany.no/AltInnReceipts/RecieveAltInnReceipt.asmx>

      </xs:annotation>

      </xs:attribute>

      </xs:complexType>

      </xs:element>

      <xs:element name="DataUnits">

      <xs:annotation>

      <xs:documentation>Collection of all the data delivered in XML format</xs:documentation>

      </xs:annotation>

      <xs:complexType>

      <xs:sequence>

      <xs:element ref="DataUnit" maxOccurs="unbounded"/>

      </xs:sequence>

      </xs:complexType>

      </xs:element>

      <xs:element name="DataUnit">

      <xs:annotation>

      <xs:documentation>Container for the XML representing a unit of data.</xs:documentation>

      </xs:annotation>

      <xs:complexType>

      <xs:sequence>

      <xs:any namespace="##any" processContents="skip"/>

      </xs:sequence>

      <xs:attribute name="participantId" use="required">

      <xs:annotation>

      <xs:documentation>Id of the organization/person the data is for</xs:documentation>

      </xs:annotation>

      <xs:simpleType>

      <xs:restriction base="xs:string">

      <xs:minLength value="1"/>

      <xs:maxLength value="11"/>

      </xs:restriction>

      </xs:simpleType>

      </xs:attribute>

      <xs:attribute name="sendersReference" use="required">

      <xs:annotation>

      <xs:documentation>Unique id for the data on the senders side. Must be unique within the system id</xs:documentation>

      </xs:annotation>

      <xs:simpleType>

      <xs:restriction base="xs:string">

      <xs:minLength value="1"/>

      <xs:maxLength value="50"/>

      </xs:restriction>

      </xs:simpleType>

      </xs:attribute>

      <xs:attribute name="parentReference" use="optional">

      <xs:annotation>

      <xs:documentation>Reference to the senders reference of the parent if this is a subform</xs:documentation>

      </xs:annotation>

      <xs:simpleType>

      <xs:restriction base="xs:string">

      <xs:minLength value="0"/>

      <xs:maxLength value="50"/>

      </xs:restriction>

      </xs:simpleType>

      </xs:attribute>

      <xs:attribute name="completed" type="xs:boolean" use="required">

      <xs:annotation>

      <xs:documentation>True when all mandatory items are given. If false, the data will always be redirected to the portal</xs:documentation>

      </xs:annotation>

      </xs:attribute>

      <xs:attribute name="locked" type="xs:boolean" use="optional" default="true">

      <xs:annotation>

      <xs:documentation>False if form data is allowed to be modified in portal after submission</xs:documentation>

      </xs:annotation>

      </xs:attribute>

      </xs:complexType>

      </xs:element>

      <xs:element name="Attachments">

      <xs:annotation>

      <xs:documentation>Collection of all the attachments</xs:documentation>

      </xs:annotation>

      <xs:complexType>

      <xs:sequence>

      <xs:element ref="Attachment" minOccurs="0" maxOccurs="unbounded"/>

      </xs:sequence>

      <xs:attribute name="deliveryMethod" use="required">

      <xs:annotation>

      <xs:documentation>Indicates how the attachments are delivered. Valid values for WebServices are DIME and BASE64, MIME is only for SMTP</xs:documentation>

      </xs:annotation>

      <xs:simpleType>

      <xs:restriction base="xs:NMTOKEN">

      <xs:enumeration value="DIME"/>

      <xs:enumeration value="BASE64"/>

      <xs:enumeration value="MIME"/>

      </xs:restriction>

      </xs:simpleType>

      </xs:attribute>

      </xs:complexType>

      </xs:element>

      <xs:element name="Attachment">

      <xs:annotation>

      <xs:documentation>Container with information about the attachment. May contain the data itself, depending on delivery type</xs:documentation>

      </xs:annotation>

      <xs:complexType>

      <xs:simpleContent>

      <xs:extension base="xs:base64Binary">

      <xs:attribute name="participantId" use="required">

      <xs:annotation>

      <xs:documentation>Id of the organization/person the data is for</xs:documentation>

      </xs:annotation>

      <xs:simpleType>

      <xs:restriction base="xs:string">

      <xs:minLength value="1"/>

      <xs:maxLength value="11"/>

      </xs:restriction>

      </xs:simpleType>

      </xs:attribute>

      <xs:attribute name="sendersReference" use="required">

      <xs:annotation>

      <xs:documentation>Unique id for the data on the senders side. Must be unique within the system id</xs:documentation>

      </xs:annotation>

      <xs:simpleType>

      <xs:restriction base="xs:string">

      <xs:minLength value="1"/>

      <xs:maxLength value="50"/>

      </xs:restriction>

      </xs:simpleType>

      </xs:attribute>

      <xs:attribute name="parentReference" use="required">

      <xs:annotation>

      <xs:documentation>Reference to the senders reference of the parent if this is a subform</xs:documentation>

      </xs:annotation>

      <xs:simpleType>

      <xs:restriction base="xs:string">

      <xs:minLength value="1"/>

      <xs:maxLength value="50"/>

      </xs:restriction>

      </xs:simpleType>

      </xs:attribute>

      <xs:attribute name="fileName" use="required">

      <xs:annotation>

      <xs:documentation>Name of file on senders system. Should be just the filename, not the path.</xs:documentation>

      </xs:annotation>

      <xs:simpleType>

      <xs:restriction base="xs:string">

      <xs:minLength value="1"/>

      <xs:maxLength value="255"/>

      </xs:restriction>

      </xs:simpleType>

      </xs:attribute>

      <xs:attribute name="id" type="xs:string" use="optional">

      <xs:annotation>

      <xs:documentation>Id to the attachment in out of bounds data, i.e DIME (WebService) or MIME (SMTP)</xs:documentation>

      </xs:annotation>

      </xs:attribute>

      </xs:extension>

      </xs:simpleContent>

      </xs:complexType>

      </xs:element>

      </xs:schema>

      Thanks,

      Prakash

  • Sep 14, 2006 at 12:59 PM

    when u r importing a XSD you sud define the category as an XSD and not WSDl.

    Check in the screen for a drop down and make it XSD.

    Add comment
    10|10000 characters needed characters exceeded