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 » XSD Import issues

Post new topic  Reply to topic
 XSD Import issues « View previous topic :: View next topic » 
Author Message
Ramphart
PostPosted: Thu Nov 04, 2004 1:50 am    Post subject: XSD Import issues Reply with quote

Disciple

Joined: 21 Jul 2004
Posts: 150
Location: South Africa, JHB

Topic: XSD Import problem

- I'm using WMQI 2.1 CSD 07 on Windows 2000.

Info
- I'm importing the following XML schema for a customer using the MqsiImpXMLSchema tool

Schema
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:opt="http://www.opsi.co.za/OPTIMA/Clover/Messages"
targetNamespace="http://www.opsi.co.za/OPTIMA/Clover/Messages">
<annotation>
<documentation lang="en">
Message payload schema for OPTIMA
OPSI Systems
</documentation>
</annotation>
<element name="OPTIMAMessage" type="opt:OPTIMAMessageType"/>
<complexType name="OPTIMAMessageType">
<sequence>
<element name="messageHead" type="opt:messageHeadType"/>
<element name="messageBody" type="opt:messageBodyType"/>
</sequence>
</complexType>
<complexType name="messageHeadType">
<sequence>
<element name="context" type="string"/>
</sequence>
</complexType>
<complexType name="messageBodyType">
<sequence>
<choice>
<element name="receiveBilling" type="opt:receiveBillingType"/>
<element name="sendSMS" type="opt:sendSMSType"/>
</choice>
</sequence>
</complexType>
<complexType name="receiveBillingType">
<sequence>
<element name="TRNumber" type="token"/>
<element name="SRIDexternal" type="token"/>
<element name="BillToClientNumber" type="token"/>
<element name="ClientOrderNumber" type="token"/>
</sequence>
</complexType>
<complexType name="sendSMSType">
<sequence>
<element name="SMSID" type="nonNegativeInteger"/>
<element name="CellNumber" type="token"/>
<element name="SMSMessage" type="normalizedString"/>
</sequence>
</complexType>
</schema>



Input Messages 1 This input message fails to PARSE
<?xml version="1.0"?>
<OPTIMAMessage>
<messageHead>
<context>1</context>
</messageHead>
<messageBody>
<receiveBilling>
<TRNumber>2</TRNumber>
<SRIDexternal>5</SRIDexternal>
<BillToClientNumber>3</BillToClientNumber>
<ClientOrderNumber>4</ClientOrderNumber>
</receiveBilling>
</messageBody>
</OPTIMAMessage>
[size=11]



Input Messages 2 This input message SUCCEEDS the PARSE
<?xml version="1.0"?>
<opt:OPTIMAMessage>
<messageHead>
<context>1</context>
</messageHead>
<messageBody>
<receiveBilling>
<TRNumber>2</TRNumber>
<SRIDexternal>5</SRIDexternal>
<BillToClientNumber>3</BillToClientNumber>
<ClientOrderNumber>4</ClientOrderNumber>
</receiveBilling>
</messageBody>
</opt:OPTIMAMessage>
[size=11]



Help
- When importing the XSD the OPTIMAMessage XML name shows as opt:OPTIMAMesage instead of just OPTIMAMessage.
- I need the Schema to be changed so that it imports correctly as Message 1 above (the one that fails) is the proper format of messages that I'll receive.
- Does anyone know how the XSD needs to be modified?

Regards

_________________
Applications Architect
Back to top
View user's profile Send private message
shanson
PostPosted: Thu Nov 04, 2004 3:03 am    Post subject: Reply with quote

Partisan

Joined: 17 Oct 2003
Posts: 344
Location: IBM Hursley

Your schema states that OPTIMAMessage is in namespace "http://www.opsi.co.za/OPTIMA/Clover/Messages". But neither of your two messages define the namespace. In other words your messages are not valid instances of your schema. You have two choices:

1) Remove the namespace declarations from your schema, so that the messages are in the notarget namespace, and re-import.

2) Change the apps issuing your messages so that they conform to the schema and declare namespace information at the start of the message.

Given you say your message 1 is the expected format, you should adopt 1) and correct the schema.
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 » XSD Import issues
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.