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 » Create XMLAttribute Output

Post new topic  Reply to topic
 Create XMLAttribute Output « View previous topic :: View next topic » 
Author Message
srailkar
PostPosted: Sun Jun 12, 2005 6:42 pm    Post subject: Create XMLAttribute Output Reply with quote

Apprentice

Joined: 01 Jun 2005
Posts: 37

Hello,


I have to generate the following XML as message:

<?xml version="1.0" encoding="UTF-8" ?>
- <!-- edited with XMLSpy v2005 U (http://www.xmlspy.com) by Howard A Sullivan (ATTUS Technologies)
-->
- <ATTREQUEST xmlns="urn:attus_request">
<at:BILLINGCODE partnerid="45cfddd5b6c1" billingid="cfddd5b6c1" password="password" macaddress="00:0F:1F:13:43:4A" clientdefined2="clientdefined2" xmlns:at="urn:attus_request" />
- <NAMELIST>
- <OFC>
- <NAMES>
<NAME lastname="bin laden" firstname="Osama" othername="" allentities="" />
</NAMES>
</OFC>
</NAMELIST>
</ATTREQUEST>


how do I get the attribute segment of my parent element created

I have tried this:

SET OutputRoot.XMLNS.ATTUSWATCHDOGREQUEST.(XML.NamespaceDecl)xmlns = 'urn:attus_request';

SET MSGTYPE = FIELDVALUE(OutputRoot.XMLNS.(XML.Element)"xmlns:urn:attus_request:BILLINGCODE:partnerid".(XML.Element)"xmlns:urn:attus_request:BILLINGCODE:billingid".(XML.Element)"xmlns:urn:attus_request:BILLINGCODE:password".(XML.Element)"xmlns:urn:attus_request:BILLINGCODE:macaddress".(XML.Element)"xmlns:urn:attus_request:BILLINGCODE:clientdefined2".(XML.attr)extension);

where am I going wrong?

Please help......
Thanks
Back to top
View user's profile Send private message Send e-mail
srailkar
PostPosted: Wed Jun 15, 2005 5:55 am    Post subject: Create XML Attribute for Output Message? Reply with quote

Apprentice

Joined: 01 Jun 2005
Posts: 37

Please guide me.

I am able to create the XML I need except for XML Attribute definitions:

NEED to Generate this:

- <ATTREQUEST xmlns="urn:attus_request">
<at:BILLINGCODE partnerid="45cfddd5b6c1" billingid="cfddd5b6c1" password="password" macaddress="00:0F:1F:13:43:4A" clientdefined2="clientdefined2" xmlns:at="urn:attus_request" />
- <NAMELIST>

I am generating :

<?xml version="1.0" encoding="UTF-8"?>
<ATTREQUEST xmlns="urn:attus_request" xmlns:NS1="urn:attus_request">
<NAMELIST>


my code:

SET PARTIDL = 'partnerid="';

SET OutputRoot.XMLNS.ATTREQUEST.(XML.Attribute)xmlns:at.BILLINGCODE.(XML.AsisElementContent) = (PARTIDL || InputRoot.XML.MessageHDR.PartnerBillingID || '"');


HELP!!!!!


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

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Create XMLAttribute Output
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.