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 » XML - MRM validation/enumeration

Post new topic  Reply to topic
 XML - MRM validation/enumeration « View previous topic :: View next topic » 
Author Message
Lillian
PostPosted: Fri Mar 31, 2006 1:10 am    Post subject: XML - MRM validation/enumeration Reply with quote

Centurion

Joined: 15 Apr 2002
Posts: 102

Hi

Below are extracts for the details of my problem.
Using WMQI 2.1 I am trying to validate an xml sample against an MRM generated from importing an XSD.

The validation is failing on the vendor name tag which I think is valid.
If i include the schema into the xml and validate using xmlspy, it validates.

Stumped!!

XXXXXXXXXXXXXXXXXXXXXXXX





xsd extract 1:
<xsd:element name="VendorName" type="VENDOR_CODES"/>

XXXXXXXXXXX

xsd extract 2:

<xsd:complexType name="VENDOR_CODES">
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="tc" type="VENDOR_CODES_TC" use="required"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:simpleType name="VENDOR_CODES_TC">
<xsd:restriction base="FSE_VENDOR_CODES">
<xsd:enumeration value="LIB"/>
<xsd:enumeration value="SLM"/>
<xsd:enumeration value="OMU"/>
<xsd:enumeration value="PPS"/>
<xsd:enumeration value="OUT"/>
<xsd:enumeration value="SET"/>
<xsd:enumeration value="MOM"/>
<xsd:enumeration value="MET"/>
<xsd:enumeration value="CHT"/>
<xsd:enumeration value="CAL"/>
<xsd:enumeration value="DSL"/>
</xsd:restriction>
</xsd:simpleType>
XXXXXXXXXXXXX

SAMPLE XML:

<?xml version="1.0" encoding="UTF-8"?>
<TXLife xmlns="http://ACORD.org/Standards/Life/2">
<TXLifeResponse>
<VendorName tc="LIB"/>
<TransRefGUID>R1964112-DAD1-4U89-91I5-C52D28DADAD1</TransRefGUID>
<TransType tc="280"/>
<TransResult>
<ResultCode tc="5">Failure</ResultCode>
<ResultInfo tc="2007"/>
</TransResult>
</TXLifeResponse>
</TXLife>

XXXXXXXXXX

error trace:

ParserException = (
(0x3000000)File = '/build/S210_EP/src/MTI/MTIforBroker/MtiImbParser2/MtiImbValueValidator.cpp'
(0x3000000)Line = 510
(0x3000000)Function = 'MtiImbValueValidator::validateRange'
(0x3000000)Type = ''
(0x3000000)Name = ''
(0x3000000)Label = ''
(0x3000000)Text = 'Field is not one of the allowed enumeration values'
(0x3000000)Catalog = 'WMQIv210'
(0x3000000)Severity = 3
(0x3000000)Number = 5367
(0x1000000)Insert = (
(0x3000000)Type = 5
(0x3000000)Text = 'VENDOR_CODES^tc'
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 » XML - MRM validation/enumeration
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.