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 » Esql code for SAP Idoc

Post new topic  Reply to topic
 Esql code for SAP Idoc « View previous topic :: View next topic » 
Author Message
nabin
PostPosted: Tue Aug 03, 2010 3:37 am    Post subject: Esql code for SAP Idoc Reply with quote

Novice

Joined: 11 Mar 2010
Posts: 16

Hello All,
I have configured SAP ALE Inbound Adapter. Am getting inbound Idoc from SAP. Then using compute node I am formating the IDoc into proper XMl format as required by destination system.
Here I am facing 1 issue
I have to include below statement in response xml
<!Doctype order orderdetail output.dtd>>
Please tell me the esql code to do the above.

Thanks in Advance.
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Aug 03, 2010 4:13 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Two important points:
- you are trying to produce a DTD in the output XML, but your example DTD is not sytactically correct. ( it should have 'SYSTEM' or 'PUBLIC' before 'output.dtd')
- XMLNSC cannot output a DTD of this type. It can only output simple DTDs that contain entity declarations. This restriction documented here: http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/topic/com.ibm.etools.mft.doc/ad67050_.htm
Back to top
View user's profile Send private message
nabin
PostPosted: Wed Aug 04, 2010 12:47 am    Post subject: Reply with quote

Novice

Joined: 11 Mar 2010
Posts: 16

Thanks for the reply,
Yeah u r correct its 'SYSTEM' before output.dtd
basically it should be as
<!Doctype order SYSTEM output.dtd>

I went through the link provided by you.
My problem is like I have to include this dtd declaration in my xml is there any other way to do it?
Or its not possible?
Please reply

Thanks in Advance.
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Aug 04, 2010 2:01 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

You *could* change to XMLNS to output the DTD, but that would mean copying your XMLNSC tree to an XMLNS tree. That's a tricky business, because the two parsers use a different style of tree.

To be honest, I think the easiest option is to convert the XMLNSC tree to a BLOB ( using ASBITSTREAM) and use ESQL's string manipulation functions to insert the DTD. Not pretty, but probably effective.
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 » Esql code for SAP Idoc
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.