ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Error when created mxsd from XML Schema.

Post new topic  Reply to topic
 Error when created mxsd from XML Schema. « View previous topic :: View next topic » 
Author Message
sri_csee1983
PostPosted: Sat Mar 29, 2008 10:39 pm    Post subject: Error when created mxsd from XML Schema. Reply with quote

Centurion

Joined: 25 Mar 2008
Posts: 125
Location: Chennai,India

Dear friends,

I get an error "Attributes cannot be used when Data Element Separation is 'FixedLength'. Physical format: 'TDS1'. FeeInquiryReq.mxsd FeeInquiryMsgSetPrj/FeeInquiryMsgSet" when I tried to create a message definition file from the following XML Schema. hence I cannot use the elements in the esql for compute node. PLease let me know to reolve it. The XML Schema is

<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XML Spy v4.2 U (http://www.xmlspy.com) by sumit (HCl) -->
<?xml-stylesheet type="text/xsl" href="C:\TEST\ITTHogan.xml"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.1">
<xsd:element name="FeeInqReq">
<xsd:complexType mixed="true">
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="CICSTransactionId">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="4"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="MessigeDelimiter">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="4"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="ExternalTrancode">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:length value="4"/>
<xsd:pattern value="[0-9.]*"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="TellerID">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:length value="6"/>
<xsd:pattern value="[0-9.]*"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="OverrideTellerId">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:length value="5"/>
<xsd:pattern value="[0-9.]*"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="TransactionSequence">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:length value="4"/>
<xsd:pattern value="[0-9.]*"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="TransactionStatusByte">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="3"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="TransactionTime">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="6"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="Filler">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="4"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="ForeignSystemReferenceNo">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="16"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="ForeignSystemIdentifier">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="8"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="ForeignSystemOperatorID">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="12"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="ForeignSystemCounterID">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="8"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="Principal">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:length value="10"/>
<xsd:pattern value="[0-9.]*"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="ExpectedActualPayout">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:length value="10"/>
<xsd:pattern value="[0-9.]*"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="MoneyTransferType">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="3"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="DestinationCountry">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="2"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="OriginatingCountry">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="2"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="DestinationCurrencyCode">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="3"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="OriginatingCurrencyCode">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="3"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="MESSAGE1">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="69"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="MESSAGE2">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="69"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="MESSAGE3">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="69"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="MESSAGE4">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="69"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="MESSAGE5">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="69"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="MESSAGE6">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="69"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="MESSAGE7">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="69"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="PreferredCustomerNo">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:length value="9"/>
<xsd:pattern value="[0-9.]*"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="DeliveryServicesCode">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:length value="3"/>
<xsd:pattern value="[0-9.]*"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="SenderPromoCode">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="20"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

<xsd:element name="PromotionSequenceNo">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>

Please
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kimbert
PostPosted: Mon Mar 31, 2008 2:40 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

XML attributes are unordered. Fixed length data must occur in a defined order. So the message model validator stops you from using attributes inside a complex type which has Data Element Separation 'Fixed Length'

If you are trying to convert XML input to fixed-length output I suggest that you create a variant of your input schema in which the attributes are replaced by a sequence of elements.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Error when created mxsd from XML Schema.
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.