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 » Prefix in XML output using XML wire format

Post new topic  Reply to topic
 Prefix in XML output using XML wire format « View previous topic :: View next topic » 
Author Message
jakob
PostPosted: Wed Jul 14, 2004 4:54 am    Post subject: Prefix in XML output using XML wire format Reply with quote

Newbie

Joined: 07 Jul 2004
Posts: 4

Hi,

I have a problem with generating XML output from a WBI broker version 5. I am sending to a SAP adaptor. The message set is generated from XSD files. F.x. MATMAS05 is generated from 25+ files. One is called sap_iddoccontrol.xsd. An element is called Client.

The adaptor expect the XML name to have a prefix with the name of the XSD file it is generated from. This means a Client should be
<sap_idoccontrol:Client>jakob</sap_idoccontrol:Client>

The WBI 50 output is
<Client>jakob</Client>

The old version 21 made the correct output
<sap_idoccontrol:Client>jakob</sap_idoccontrol:Client>

When importing the XSD files to version 21 made the XML name for Client
'sap_idoccontrol:Client'
When importing to version 50 the XMLname is just 'Client'

Please help

Thanks

Jakob
Back to top
View user's profile Send private message
alexey
PostPosted: Wed Jul 14, 2004 7:06 am    Post subject: Reply with quote

Acolyte

Joined: 18 Dec 2003
Posts: 62
Location: Israel

Check if the message set has "use namespaces" enabled and the wire format includes all the prefixes of the namespaces from the XSDs. If no - enable namespaces, set default wire format and import your XSDs again.

Alexey.
Back to top
View user's profile Send private message
shanson
PostPosted: Fri Jul 16, 2004 5:35 am    Post subject: Reply with quote

Partisan

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

Be careful here. In 2.1 XML namespaces were not supported by the XML or MRM parsers, so the workaround was to use the MRM domain XML physical format 'XML Name' property to include both prefix and name. This technique was used by the 2.1 XML Schema importer.

This mode of working is supported in V5 by NOT selecting the 'Use Namespaces' check box on the message set. If you re-import the schema the intention is that it should behave like 2.1, so 'XML Name' should be set. If it is not then raise a PMR.

If you want to move to handling namespaces 'correctly', you can use a message set with 'Use Namespaces' checked. But if you do this, and your schema uses namespaces, a) you can not deploy to a 2.1 broker; b) your ESQL will be different as it will have to contain namespaces in paths; c) any ESQL you wrote for 2.1 will not work.
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 » Prefix in XML output using XML wire format
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.