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 » ATTACH/DETACH NOT WORKING

Post new topic  Reply to topic
 ATTACH/DETACH NOT WORKING « View previous topic :: View next topic » 
Author Message
brgmo
PostPosted: Wed Jun 18, 2008 2:26 am    Post subject: ATTACH/DETACH NOT WORKING Reply with quote

Master

Joined: 03 Jun 2002
Posts: 227

Hi All,

I have the following code:
Quote:

CREATE FIELD OutputRoot.XML.ListedProductStatusMessage;
DECLARE REF REFERENCE TO Environment.Product[CHGDFLDCNT];
SET OutputRoot.XML.(XML.XmlDecl) = '';
SET OutputRoot.XML.(XML.XmlDecl).(XML.Version) = '1.0';
SET OutputRoot.XML.(XML.XmlDecl).(XML."Encoding") = 'UTF-8';
SET OutputRoot.XML.(XML.XmlDecl).(XML.Standalone) = 'no';

DETACH REF;
ATTACH REF TO OutputRoot.XML.Product[CHGDFLDCNT] AS LASTCHILD;



This code is throwing exception as below:

Can not attach message from a different message group.


Can someone please tell me waht could be the problem.

Regards
brgmo
Back to top
View user's profile Send private message
AkankshA
PostPosted: Wed Jun 18, 2008 2:53 am    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

hmmm....

did u try simple tree copy for this...


pls dont use XML domain... its deprecated by IBM... use XMLNSC rather
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
brgmo
PostPosted: Wed Jun 18, 2008 6:24 am    Post subject: Reply with quote

Master

Joined: 03 Jun 2002
Posts: 227

Yes, Akansha,it works.but somehow,it's not working for the above code.I am using v 5.so,xcan't use xmlnsc.
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 » ATTACH/DETACH NOT WORKING
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.