|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
JText adapter use of XML files |
« View previous topic :: View next topic » |
Author |
Message
|
4integration |
Posted: Wed May 23, 2007 4:06 am Post subject: JText adapter use of XML files |
|
|
 Disciple
Joined: 04 Sep 2006 Posts: 197 Location: Gothenburg, Sweden
|
Hello,
I need some help to get started with JText adapter...(running an evaluation/proof of concept)
We have an application that expects XML files in certain directories and we have installed the JText adapter for this. We are using WMB to transforming the input (fixed positions) to the XML format and pass that to MQ. Then we want to have that message to disk, handled by the JText adapter.
(the other way around will also be a case, a file is written by the application which are read by JText and message posted to WMQ/WMB)
- What data handler should be used?
- How to create such meta-object/BO?
Thanks in advance! _________________ Best regards
4 Integration |
|
Back to top |
|
 |
andypiper |
Posted: Wed May 23, 2007 6:18 am Post subject: Re: JText adapter use of XML files |
|
|
 Acolyte
Joined: 29 Oct 2001 Posts: 59 Location: London
|
4integration wrote: |
- What data handler should be used?
|
You could either use the XML Datahandler, or the BLOB datahandler included in Supportpac IA9F. I've had success with the latter in the past. |
|
Back to top |
|
 |
4integration |
Posted: Wed May 23, 2007 11:25 am Post subject: |
|
|
 Disciple
Joined: 04 Sep 2006 Posts: 197 Location: Gothenburg, Sweden
|
Don't I need the XML Connector as well to get XML Datahandler? or where can I find it?
When you are using BLOB datahandler, are does the message in MQ always become in HEX or is it possible to have it as text?
I tried to set DataProcessingMode = text but no difference happen. _________________ Best regards
4 Integration |
|
Back to top |
|
 |
Tonedef |
Posted: Wed May 23, 2007 1:46 pm Post subject: |
|
|
Apprentice
Joined: 05 Feb 2007 Posts: 44
|
If you only want proof of concept to get XML data from file system to queue, then back to file system.
The IA9F support pac will do the trick for you,
Basically you take the XML file convert it to a BLOB message,
once on the queue convert back to XML/MRM. |
|
Back to top |
|
 |
4integration |
Posted: Thu May 24, 2007 7:01 am Post subject: |
|
|
 Disciple
Joined: 04 Sep 2006 Posts: 197 Location: Gothenburg, Sweden
|
Hi,
I have started to test the IA9F support pac.
I have created a subflow (JTestOutput) as provided in the WMB v6 samples.
When sending my MRM data to the subflow and Convert to BLOB (ResetContentDescriptor with "message domain"=BLOB and "reset message domain" checked) I get "Message has no properties folder".
Any idea what's wrong?
The trace of MRM before looks like (lots of dummy data in MRM):
Quote: |
(
(0x01000000):Properties = (
(0x03000000):MessageDomain = 'MRM'
(0x03000000):MessageSet = 'JE3OKPG002001'
(0x03000000):MessageType = 'MDM_Partner'
(0x03000000):MessageFormat = 'CwXML'
)
(0x01000000):MQMD = (
(0x03000000):Format = 'MQHRF2 '
)
(0x01000000):MQRFH2 = (
(0x01000000):Version = (
(0x02000000): = 2
)
(0x01000000):Format = (
(0x02000000): = 'MQSTR '
)
(0x01000000):NameValueCCSID = (
(0x02000000): = 1208
)
(0x01000000):mcd = (
(0x01000000):Msd = (
(0x02000000): = 'mrm'
)
(0x01000000):Set = (
(0x02000000): = 'JE3OKPG002001'
)
(0x01000000):Type = (
(0x02000000): = 'MDM_Partner'
)
(0x01000000):Fmt = (
(0x02000000): = 'CwXML'
)
)
(0x01000000):jms = (
(0x01000000):Rto = (
(0x02000000): = 'queue:///WBIA.JTEXT_TEST.RESPONSEQUEUE'
)
)
(0x03000000):Format = ''
)
(0x01000021):MRM = (
(0x01000000):MDM_Partner = (
(0x03000000):PartnerID = '0278697'
(0x03000000):PartnerID = '0278697'
(0x03000000):CreationDate = '0278697'
(0x03000000):ChangeDate = '0278697'
(0x03000000):IsActive = '0278697'
(0x03000000):AccountGroup = '0278697'
(0x03000000):CountryName = '0278697'
(0x03000000):CountryCode = '0278697'
(0x03000000):CountryCode2 = '0278697'
(0x03000000):LanguageCode = '0278697'
(0x03000000):DocumentLanguageCode = '0278697'
(0x03000000):Name = '0278697'
(0x03000000):Name2 = '0278697'
(0x03000000):EnglishName = '0278697'
(0x03000000):EnglishName2 = '0278697'
(0x03000000):Shortname = '0278697'
(0x03000000):CoAddress = '0278697'
(0x03000000):Street = '0278697'
(0x03000000):Street2 = '0278697'
(0x03000000):StreetPostcode = '0278697'
(0x03000000):StreetCity = '0278697'
(0x03000000):POBox = '0278697'
(0x03000000):POBoxPostcode = '0278697'
(0x03000000):POBoxCity = '0278697'
(0x03000000):District = '0278697'
(0x03000000):Region = '0278697'
(0x03000000):Phone = '0278697'
(0x03000000):Fax = '0278697'
(0x03000000):APSupplier = '0278697'
(0x03000000):NAPSupplier = '0278697'
(0x03000000):Customer = '0278697'
(0x03000000):TradingPartner = '0278697'
(0x03000000):VATNo = '0278697'
(0x03000000):TaxNo1 = '0278697'
(0x03000000):TaxNo2 = '0278697'
(0x03000000):TaxNo3 = '0278697'
(0x03000000):TaxNo4 = '0278697'
(0x03000000):DUNSNo = '0278697'
(0x03000000):InactivationDate = '0278697'
(0x03000000):PayToPartnerId = '0278697'
(0x03000000):BillToPartnerId = '0278697'
(0x03000000):SoldToPartnerId = '0278697'
(0x03000000):BlockStatus = '0278697'
(0x03000000):BrandCode = '0278697'
(0x03000000):IsInternalCustomer = '0278697'
(0x03000000):IsShipToOnly = '0278697'
(0x03000000):IsPayTo = '0278697'
(0x03000000):IsBillTo = '0278697'
(0x03000000):IsShipTo = '0278697'
(0x03000000):IsShipFrom = '0278697'
)
)
) |
_________________ Best regards
4 Integration |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|