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 » Namespace Prefix/MRM-related Question

Post new topic  Reply to topic
 Namespace Prefix/MRM-related Question « View previous topic :: View next topic » 
Author Message
TonyD
PostPosted: Sun May 22, 2005 8:24 pm    Post subject: Namespace Prefix/MRM-related Question Reply with quote

Knight

Joined: 15 May 2001
Posts: 540
Location: New Zealand

We are using the MRM with XML messages that use namespaces. I have imported a schema that contains the following declaration:

Code:

<xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified"   targetNamespace="http://www.xxx.au/Messages/MyXMLSchema" xmlns:tns="http://www.xxx.au/Messages/MyXMLSchema" xmlns="http://www.xxx.au/Messages/MyXMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema">


:and created the .mxsd. The prefix tns: is used to reference complex types within the schema.

When I create an output message using the MRM the output appears as:

Code:

<?xml version="1.0"?>
<tns:Pofi xmlns:tns="http://www.xxx.au/Messages/MyXMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<tns:ReceiptNumber>99999</tns:ReceiptNumber>
 <tns:ReceiptNumberDate>1967-08-13</tns:ReceiptNumberDate>
 <tns:Source>11</tns:Source>
 <tns:Clients>
  <tns:client>
......


:with all elements preceded by the prefix. A sample message generated from XMLSpy using the same schema that was used for the message set gives:

Code:

<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSPY v2004 rel. 3 U (http://www.xmlspy.com)-->
<Pofi xmlns="http://www.xxx.au/Messages/MyXMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <ReceiptNumber>2</ReceiptNumber>
   <ReceiptNumberDate>1967-08-13</ReceiptNumberDate>
   <Source>1</Source>
   <Clients>
      <client>
.....


:which is what I would like the MRM to deliver, ie no prefix.

I have experimented with various Property settings without success. I know how to achieve the required result using the XMLNS parser; how can I do it using the MRM?
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Namespace Prefix/MRM-related Question
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.