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 » XMLNS Adding Issue

Post new topic  Reply to topic
 XMLNS Adding Issue « View previous topic :: View next topic » 
Author Message
swadheen
PostPosted: Tue Aug 17, 2004 9:51 am    Post subject: XMLNS Adding Issue Reply with quote

Newbie

Joined: 17 Aug 2004
Posts: 4

I am using the Mapping node to map the CWF to XML .
Attached is the output I am getting from Mapping node.

<?xml version="1.0"?>
<ReturnRequest>
<itemReturnInfo>
<itemTransactionInfo>
<receipted>TRUE</receipted>
<transactionID>
<storeID>01001</storeID>
<workstationID>001</workstationID>
<sequenceNumber>1234</sequenceNumber>
<businessDate>20040730</businessDate>
</transactionID>
<found>TRUE</found>
<validAtPointOfReturn>TRUE</validAtPointOfReturn>
</itemTransactionInfo>
<itemIdentifier>
<itemID>00312345000</itemID>
</itemIdentifier>
<returnReason>01</returnReason>
<quantity>100</quantity>
<manuallyEntered>FALSE</manuallyEntered>
<returnStoreID>01001</returnStoreID>
<returnWorkstationID>003</returnWorkstationID>
<employeeID>949578</employeeID>
<customerInfo>
<customerID>12345678901</customerID>
<firstName>John</firstName>
<lastName>Doe</lastName>
<addressInfo>
<address1>3333 Beverly Rd</address1>
<address2></address2>
<city>Hoffman Estates</city>
<state>IL</state>
<routingNumber>601790000</routingNumber>
</addressInfo>
</customerInfo>
</ReturnRequest>

The mapping node is using MEssage sets for both Input and Output.
I have following issues : Why The XML xomming out does not have encoding="UTF-8" after version .

2 I have to add folowwing Namespaces inside the XML first element ReturnRequest. So the Output will look like this .
<?xml version="1.0"? encoding="UTF-8" >
<ReturnRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation" = 'C:\dev\xmlspy\CO-RM-ReturnRequest.xsd' >
How can I do all this in Mapping Node or with Message Set.
Thanks
Sam
Back to top
View user's profile Send private message
shanson
PostPosted: Mon Aug 23, 2004 2:57 am    Post subject: Reply with quote

Partisan

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

Unfortunately MRM XML does not output the XML encoding attribute and there is no way to force it out. There is a formal requirement raised for this - it is R3217 - I recommend that you get your name added to this requirement too. I think you either have to:
- Use the XMLNS domain instead
- Use ASBITSTREAM to serialise the message tree as a BLOB then insert the encoding attribute using ESQL.

For generating namespace information, all you need to do is make sure that the message set option 'Use Namespaces' is set, then make sure that the correct namespace information is defined for the elements in question in the message set.
Back to top
View user's profile Send private message
satyasheel15
PostPosted: Mon Nov 22, 2004 4:22 am    Post subject: Reply with quote

Voyager

Joined: 04 Mar 2003
Posts: 86

Swadheen,

I had a similar problem, but I handled this without using the mapping node. In the compute node, you have to add the code for each of the XML statement which you want. You cannot handle this using the MRM.

SATYASHEEL
IBM Calcutta
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XMLNS Adding Issue
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.