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 » IDOC to String

Post new topic  Reply to topic
 IDOC to String « View previous topic :: View next topic » 
Author Message
psujeethkumar
PostPosted: Thu Sep 10, 2015 11:55 pm    Post subject: IDOC to String Reply with quote

Novice

Joined: 08 Sep 2015
Posts: 13

How to convert IDOC being sent from SAP into string ?

I am trying to print the original IDOC received in log file but it is printing till IdocCreationDate in the control record.

PS: Convertion to string is done in java compute node like :

Code:

transformer.transform(new DOMSource(((Node)idocMbElement)), new StreamResult(writer));
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Sep 11, 2015 4:17 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Are you sure that the MbElement can be cast to an XMLtype Node? I didn't see that in the documentation... maybe I missed it...

What 's wrong in your approach about using the PARSERs provided with IIB?


_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
smdavies99
PostPosted: Fri Sep 11, 2015 5:08 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

fjb_saper wrote:
Are you sure that the MbElement can be cast to an XMLtype Node? I didn't see that in the documentation... maybe I missed it...

What 's wrong in your approach about using the PARSERs provided with IIB?



Treating IIB as if it was a J2EE Server perhaps? Those guys (being general) seem to want to serialise everything in sight at every opportunity.
Well that's what the Java crew at a previous employer wanted to do.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Sep 11, 2015 5:38 am    Post subject: Re: IDOC to String Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

psujeethkumar wrote:
How to convert IDOC being sent from SAP into string ?


Don't.

psujeethkumar wrote:
I am trying to print the original IDOC received in log file but it is printing till IdocCreationDate in the control record.

Don't. Use anything other than a file to log any business data.

Perhaps you should even consider the extremely powerful built in functions for recording message data.

psujeethkumar wrote:
PS: Convertion to string is done in java compute node like :

Code:

transformer.transform(new DOMSource(((Node)idocMbElement)), new StreamResult(writer));


Don't.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
psujeethkumar
PostPosted: Thu Sep 17, 2015 11:35 pm    Post subject: Reply with quote

Novice

Joined: 08 Sep 2015
Posts: 13

Why?

What is the best practice to log IDOC ?
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 » IDOC to String
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.