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 » Remove Default Namespace in message broker

Post new topic  Reply to topic
 Remove Default Namespace in message broker « View previous topic :: View next topic » 
Author Message
marquies
PostPosted: Tue Mar 19, 2013 7:00 am    Post subject: Remove Default Namespace in message broker Reply with quote

Novice

Joined: 01 Feb 2012
Posts: 15

Current output:

<out3:RequestPayload xmlns:out="urn:iso:std:iso:20022:tech:xsd:pacs.008.001.03" xmlns:out3="pac813_head111" xmlns:out2="urn:iso:std:iso:20022:tech:xsd:head.001.001.01">
<out2:AppHdr>
<out2:Fr>
<out2:FIId>
<out2:FinInstnId>
<out2:ClrSysMmbId>
<out2:MmbId>CANB0239777</out2:MmbId>

Expected Output:
<RequestPayload>
<AppHdr>
<Fr>
<FIId>
<FinInstnId>
<ClrSysMmbId>
<MmbId>CANB0239777<MmbId>

Please advice
Back to top
View user's profile Send private message
McueMart
PostPosted: Tue Mar 19, 2013 7:13 am    Post subject: Reply with quote

Chevalier

Joined: 29 Nov 2011
Posts: 490
Location: UK...somewhere

IBM were kind enough to provide a sample to do with modifying namespaces which includes deleting them.

Check it out.

http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/topic/com.ibm.etools.mft.samples.XMLNSCnamespace.doc/doc/overview.htm
Back to top
View user's profile Send private message
achocks
PostPosted: Wed Mar 20, 2013 10:18 am    Post subject: Reply with quote

Voyager

Joined: 28 Nov 2011
Posts: 82

I use the following code to remove the name spaces.

Code:


cREATE PROCEDURE StripNamespaces(IN StartRefPtr REFERENCE)
    BEGIN
       DECLARE FieldRefPtr REFERENCE TO StartRefPtr;
       MOVE FieldRefPtr FIRSTCHILD;
       IF LASTMOVE(FieldRefPtr) THEN
        IF FIELDTYPE(FieldRefPtr) IN (0x01000000, 0x03000000) THEN
           SET FieldRefPtr.(XML.NamespaceDecl)* = NULL;
           SET FieldRefPtr NAMESPACE = '';
        END IF;
      END IF;

     WHILE LASTMOVE(FieldRefPtr) DO
       CALL StripNamespaces(FieldRefPtr);
       IF FIELDTYPE(FieldRefPtr) IN (0x01000000, 0x03000000) THEN
          SET FieldRefPtr.(XML.NamespaceDecl)* = NULL;
          SET FieldRefPtr NAMESPACE = '';
       END IF;
      MOVE FieldRefPtr NEXTSIBLING;
    END WHILE;
 END;



And call by passing the reference..


Code:
CALL StripNamespaces(BodyRefPtr);


(It was in an earlier post)
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 » Remove Default Namespace in message broker
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.