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 » Mapping MRM with namespace

Post new topic  Reply to topic
 Mapping MRM with namespace « View previous topic :: View next topic » 
Author Message
Lillian
PostPosted: Mon Feb 17, 2003 8:31 am    Post subject: Mapping MRM with namespace Reply with quote

Centurion

Joined: 15 Apr 2002
Posts: 102

I am mapping an MRM Message successfully but need to remove the namespace.The output message should not contain the namespace.

How do i achieve this?

Do i need change the message set ? if so How?



Urgent,


Wendy
Back to top
View user's profile Send private message
lung
PostPosted: Mon Feb 17, 2003 8:06 pm    Post subject: Reply with quote

Master

Joined: 27 Aug 2002
Posts: 291
Location: Malaysia

Wut do u mean the namespace? If you're mapping correctly, the output MRM message should not have a namespace... Can u post a sample output here?
_________________
lung
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
Lillian
PostPosted: Mon Feb 17, 2003 11:08 pm    Post subject: Reply with quote

Centurion

Joined: 15 Apr 2002
Posts: 102

Lung,



Thanks for the prompt response.Below is the response Im generating using MRM mapping.

<?xml version="1.0"?><IAA:Message id="MESSAGE1" version="1.4" bodyType="IAA-XML" timeStampCreated="2003-02-17T14:35:00+00:00" sourceLogicalId="Party" authenticationId="WVZ2508" crfPublish="false" crfCmdMode="onlyRespondInError" txnScope="all" xmlns:xsi="http://www.ibm.com/industries/financialservices/insurance/IAA"><CrfActionGroup bodyCategory="InquiryPartyResponse" crfCmdMode="onlyRespondInError"><CommandReference refid="GETUNIQUEID"></CommandReference><IAA:KeyGroup refid="REFUNIQUEID_ORGANISATION" keyGroupType="OrganisationVO"><AlternateId value="PDB 2442798" sourceLogicalId="PDB" state="exists"></AlternateId></IAA:KeyGroup><IAA:KeyGroup refid="REFUNIQUEID_COMPANYNAME" keyGroupType="CompanyNameVO"><AlternateId value="PDB 2442798" sourceLogicalId="PDB" state="exists"></AlternateId></IAA:KeyGroup></CrfActionGroup><COMMAND><InquiryPartyResponse cmdType="response" id="GETUNIQUEID" refidRequest="GETUNIQUEID" cmdStatus="ok" defaultState="referenced"><IAA:OrganisationVO refid="GGG"><IAA:KeyGroup refid="REFUNIQUEID_ORGANISATION" keyGroupType="OrganisationVO"><AlternateId value="PDB 2442798" sourceLogicalId="PDB" state="exists"></AlternateId></IAA:KeyGroup><defaultName><IAA:CompanyNameVO id="LL"><usage>P</usage><compName>AE SMITH &amp; AE SMITH</compName><suffix> </suffix></IAA:CompanyNameVO></defaultName></IAA:OrganisationVO></InquiryPartyResponse></COMMAND></IAA:Message>



A section of the code is as follows:



SET "OutputRoot"."MRM"."id" = MessageId;
SET "OutputRoot"."MRM"."version" = 1.4;
SET "OutputRoot"."MRM"."bodyType" ='IAA-XML';
SET "OutputRoot"."MRM"."timeStampCreated" = CURRENT_TIMESTAMP;
SET "OutputRoot"."MRM"."sourceLogicalId" ='Party';
SET "OutputRoot"."MRM"."authenticationId" = AuthenticationId ;
SET "OutputRoot"."MRM"."crfPublish" ='false';
SET "OutputRoot"."MRM"."crfCmdMode"='onlyRespondInError';
SET "OutputRoot"."MRM"."txnScope"='all';
SET "OutputRoot"."MRM"."xmlns_xsi" = 'http://www.ibm.com/industries/financialservices/insurance/IAA';

SET "OutputRoot"."MRM"."CrfActionGroup"."bodyCategory" = 'InquiryPartyResponse';
SET "OutputRoot"."MRM"."CrfActionGroup"."crfCmdMode" = 'onlyRespondInError';

SET "OutputRoot"."MRM"."CrfActionGroup"."CommandReference" ='';
SET "OutputRoot"."MRM"."CrfActionGroup"."CommandReference"."refid" = 'GETUNIQUEID';


SET "OutputRoot"."MRM"."CrfActionGroup"."KeyGroup"[1]."refid"= 'REFUNIQUEID_ORGANISATION';
SET "OutputRoot"."MRM"."CrfActionGroup"."KeyGroup"[1]."keyGroupType" = 'OrganisationVO';
SET "OutputRoot"."MRM"."CrfActionGroup"."KeyGroup"[1]."AlternateId" ='';
SET "OutputRoot"."MRM"."CrfActionGroup"."KeyGroup"[1]."AlternateId"."value" = TRIM(AlternateSource || space || AlternateId);
SET "OutputRoot"."MRM"."CrfActionGroup"."KeyGroup"[1]."AlternateId"."sourceLogicalId" = TRIM(AlternateSource);
SET "OutputRoot"."MRM"."CrfActionGroup"."KeyGroup"[1]."AlternateId"."state" = 'exists';



SET "OutputRoot"."MRM"."CrfActionGroup"."KeyGroup"[2]."refid" = 'REFUNIQUEID_COMPANYNAME';
SET "OutputRoot"."MRM"."CrfActionGroup"."KeyGroup"[2]."keyGroupType" = 'CompanyNameVO';
SET "OutputRoot"."MRM"."CrfActionGroup"."KeyGroup"[2]."AlternateId" ='';
SET "OutputRoot"."MRM"."CrfActionGroup"."KeyGroup"[2]."AlternateId"."value" = TRIM(AlternateSource || space || AlternateId);
SET "OutputRoot"."MRM"."CrfActionGroup"."KeyGroup"[2]."AlternateId"."sourceLogicalId" = TRIM(AlternateSource);
SET "OutputRoot"."MRM"."CrfActionGroup"."KeyGroup"[2]."AlternateId"."state" = 'exists';

SET "OutputRoot"."MRM"."COMMAND"."InquiryPartyResponse"."cmdType" ='response';
SET "OutputRoot"."MRM"."COMMAND"."InquiryPartyResponse"."id" ='GETUNIQUEID';
SET "OutputRoot"."MRM"."COMMAND"."InquiryPartyResponse"."refidRequest" ='GETUNIQUEID';
SET "OutputRoot"."MRM"."COMMAND"."InquiryPartyResponse"."cmdStatus" ='ok';
SET "OutputRoot"."MRM"."COMMAND"."InquiryPartyResponse"."defaultState" ='referenced';


Note i did not show the entire code and omitted declarations.


The output shows the namespace for all the complex types ie it is preceeded by IAA: how do ensure that the final message has no namespace ie the IAA: on the type Message,KeyGroup ,OrganisationVO etc without redefining the entire MRM types.



Urgent,

Wendy
Back to top
View user's profile Send private message
lung
PostPosted: Tue Feb 18, 2003 10:16 pm    Post subject: Reply with quote

Master

Joined: 27 Aug 2002
Posts: 291
Location: Malaysia

How is your flow designed? Do u have an RCD node in it?
I assume you're taking your input as XML and want to output it as MRM. In the case of MRM, you will need an RCD (ResetContentDescriptor) node in your flow to do the conversion. From what I see, your output is still in XML. Also, what kind of MRM format do u want to output your msg in? CWF or TDS?

What I did mostly is to first define the MRM and add both CWF and XML layers to it. In the RCD node, I reset my message from native XML to MRM-XML. Then in a compute node, I just set the format to CWF.

Will need more information on what you intend to do and your flow design in order to help.
_________________
lung
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger 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 » Mapping MRM with namespace
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.