otmfaqForumsBlogsRegister
FAQMembers ListCalendarToday's PostsSearch


 Subscribe Blogs:RSS
 Subscribe Forums:RSS
 Follow New Posts:Twitter
OTMFAQ Home
OTMFAQ Blogs
OTMFAQ Forums
OTM Wiki

OTM SIG
OTM Wiki
MavenWire

Go Back   Oracle OTM / G-Log GC3 Community Support > OTM / G-Log - Technical Topics > Integration and Data Mapping
Reload this Page

Outbound Intg from OTM generates XML without xml tag elements and only values display


Integration and Data Mapping Integrating OTM / G-Log with external and legacy systems - including XML, WebServices, SOA, ESB, BPEL, EDI and Oracle's Fusion.

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old March 2nd, 2010, 10:36
Member
 
Join Date: May 2007
Location: India
Posts: 88
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 1
Thanked 3 Times in 3 Posts
Rep Power: 4
sknmail@rediffmail.com is on a distinguished road
Send a message via Yahoo to sknmail@rediffmail.com
Outbound Intg from OTM generates XML without xml tag elements and only values display

Hi Everybody,

We have a strange issue happening on couple of our testing environment. This issue is related to outbound integration from OTM to an FTP destination location.

When ever we perform action 'Send Interface Transmission' after selecting any shipment. The external system we always select for this issue to replicate has a new outxml profile defined for PlannedShipment interface, and also an XSL stylesheet for filtering a specific set of output only when the file is finally generated on the FTP location.

The issue we face is that the XML file does get generated at the FTP location, however the XML file DOES NOT contain any XML elements (XML tags are not present) and only values are present. Please find some of the text from the XML file pasted below.
Here you can view that values don't have their XML element tags, however the values are properly indented as per XML indentation (here in this output the Indentation is not supported I guess).

Sample Output: -

<?xml version="1.0" encoding="UTF-8"?>
ftpuser
ftpuser
14056
20091118141752
UTC
+00:00
20100215152309
UTC
+00:00

1
QUERY TYPE
SHIPMENT
SEND_INTEGRATION
SHIPMENT
ASHWIN
01030
GLOG
ASHWIN.01030

Please note that we did explicitly check the transformation of the XML with the XSL stylesheet we used using tools like Altova XML spy and some other Online tools available for this purpose, and the output generated is exactly as per our requirement. So we believe the XSL that we have used and also the XML getting generated because of the new outxml profile is working as desired. However only when integrated into OTM, the output is as above.

Did anybody encounter similar issue in their implementation or past experience? Any pointer on this issue resolution is highly appreciated.

Thanks,
Suresh
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old March 2nd, 2010, 16:31
chrisplough's Avatar
Site Moderator
 
Join Date: Jun 2006
Location: West Chester, PA
Posts: 1,343
Blog Entries: 8
Groans: 0
Groaned at 2 Times in 2 Posts
Thanks: 170
Thanked 306 Times in 197 Posts
Rep Power: 10
chrisplough is a jewel in the roughchrisplough is a jewel in the roughchrisplough is a jewel in the roughchrisplough is a jewel in the rough
Re: Outbound Intg from OTM generates XML without xml tag elements and only values dis

I know that this isn't helpful - but this one has me stumped. The main reason is that the main XML version tag is complete. I know this gets appended later in the process, but it's just odd.

If you don't filter via the XSL, does the posted file get formatted correctly?

--Chris
__________________
Chris Plough
twitter.com/cpMavenWire
MavenWire
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old March 3rd, 2010, 17:23
Member
 
Join Date: May 2007
Location: India
Posts: 88
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 1
Thanked 3 Times in 3 Posts
Rep Power: 4
sknmail@rediffmail.com is on a distinguished road
Send a message via Yahoo to sknmail@rediffmail.com
Re: Outbound Intg from OTM generates XML without xml tag elements and only values dis

Hi Chris,

Thanks very much for the quick response. Well I tried the following steps as below to check if my new outxml profile I have is appropriate or not -

1. Using 'Perform Integration Command' I selected the PlannedShipment Interface and explicitly selected the new outxml profile and also the Shipment Object I am trying with.. The output of the xml was as per the new Outxml profile template defined.

2. Using 'Send Transmission Interface' action on the Shipment object was performed and the external system which has only the New outxml profile defined was selected, even in this case the XML was same as created in above step.
Please note that in both the case xml generated was very small with only Shipment costs details present and also the XML element tags and their values.

Out of curiosity I even tried to comment all the filtering in my xsl and just with a xml element tag with hardcode value 'Hello world'. This XSL was also uploaded and same was applied in the external system used. But even then the output was generated with values without xml elements and to my surprise my 'Hello World' was NOT displayed.


Do you think its a bug in the application? I understand that without you having access to the outxml profile I created and also the XSL I am trying with, its very difficult to comment on this.

Please let me know your view.


Regards,
Suresh
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old March 3rd, 2010, 17:51
chrisplough's Avatar
Site Moderator
 
Join Date: Jun 2006
Location: West Chester, PA
Posts: 1,343
Blog Entries: 8
Groans: 0
Groaned at 2 Times in 2 Posts
Thanks: 170
Thanked 306 Times in 197 Posts
Rep Power: 10
chrisplough is a jewel in the roughchrisplough is a jewel in the roughchrisplough is a jewel in the roughchrisplough is a jewel in the rough
Re: Outbound Intg from OTM generates XML without xml tag elements and only values dis

I'm really not sure - If you try a different delivery mechanism (say http), are the results the same? That would help to determine whether the issue is with OTM, the recipient program or something FTP specific.

--Chris
__________________
Chris Plough
twitter.com/cpMavenWire
MavenWire
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old March 4th, 2010, 02:42
Senior Member
 
Join Date: Apr 2008
Location: Taiwan
Posts: 369
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 23
Thanked 168 Times in 124 Posts
Rep Power: 4
josephliang has a spectacular aura aboutjosephliang has a spectacular aura about
Send a message via MSN to josephliang Send a message via Skype™ to josephliang
Re: Outbound Intg from OTM generates XML without xml tag elements and only values dis

Try to set glog.integration.enableXmlNamespace=false
Not sure whether this is a good approach, but if you can't set the property, then you may try this in your XSL

Code:
<?xml version='1.0'?>
<xsl:stylesheet version="1.0" xmlns:xsl="XSLT Namespace" xmlns:a="http://xmlns.oracle.com/apps/otm">
<xsl:template match="/a:Transmission">
 <Transmission>
  <TransmissionHeader>
   <UserName><xsl:value-of select="a:TransmissionBody/a:GLogXMLElement/a:TransOrder/a:TransOrderHeader/a:TransOrderGid/a:Gid/a:DomainName"/>.ADMIN</UserName>
  </TransmissionHeader>
...
__________________
--
Joseph Liang
Enterprise Integration, Inc.

http://www.eiisolutions.net/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to josephliang For This Useful Post:
chrisplough (March 16th, 2010)
  #6 (permalink)  
Old March 4th, 2010, 14:07
Member
 
Join Date: May 2007
Location: India
Posts: 88
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 1
Thanked 3 Times in 3 Posts
Rep Power: 4
sknmail@rediffmail.com is on a distinguished road
Send a message via Yahoo to sknmail@rediffmail.com
Re: Outbound Intg from OTM generates XML without xml tag elements and only values dis

Hi Joseph and Chris,

Thanks very much for the information provided..

I tried doing the same suggested by you.. but didn't help.. I have doubts on my XSL which I am using. I guess I need to check help of my integration team on further implementation of suggestion provided by you on this.

Will keep you updated once I am done and if there are any queries..

Thanks,
Suresh
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old March 4th, 2010, 14:23
Member
 
Join Date: May 2007
Location: India
Posts: 88
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 1
Thanked 3 Times in 3 Posts
Rep Power: 4
sknmail@rediffmail.com is on a distinguished road
Send a message via Yahoo to sknmail@rediffmail.com
Re: Outbound Intg from OTM generates XML without xml tag elements and only values dis

Hi Chris and Joseph,

To the approach of selecting another communication method; I tried with HTTP and specified the URL in the external system... The Transmission is successfully processed.. however the report shows exception as below -

Transmission 1007 sent to URL http://172.17.115.52/GC3/glog.integr...vlet.WMServlet ; remoteReply = [org.xml.sax.SAXParseException: Content is not allowed in prolog. org.xml.sax.SAXParseException: Content is not allowed in prolog. at org.apache.xerces.util.ErrorHandlerWrapper.createS AXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalEr ror(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportErro r(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportErro r(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportErro r(Unknown Source) at


This is because the XML is not properly transformed using the XSL as I can see in the XML_BLOB column in I_transmission table shows values as below -

SURESH.ADMIN CHANGED 14249 20091118141752 UTC +00:00 20100215152309 UTC +00:00 1 QUERY TYPE SHIPMENT SEND_INTEGRATION SHIPMENT ASHWIN 01030 GLOG ASHWIN.01030 BM PATEL ROADWAYS MUMBAI-000028 ASHWIN TDS CATEGORY 1 NP 60 B USD 600.0 1.0 0.0 N N 1617 O INR -200.0 0.02293052052281587 0.0 ASHWIN ATH N N ASHWIN ATH PAYMENT 1 ASHWIN TDS VALUE 1 4 1815 O INR -2000.0 0.02293052052281587 0.0 ASHWIN ATH N N ASHWIN ATH PAYMENT


I need to revalidate my XSL I guess like Joseph suggested.. Let me try my luck..

Regards,
Suresh
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old March 16th, 2010, 19:21
chrisplough's Avatar
Site Moderator
 
Join Date: Jun 2006
Location: West Chester, PA
Posts: 1,343
Blog Entries: 8
Groans: 0
Groaned at 2 Times in 2 Posts
Thanks: 170
Thanked 306 Times in 197 Posts
Rep Power: 10
chrisplough is a jewel in the roughchrisplough is a jewel in the roughchrisplough is a jewel in the roughchrisplough is a jewel in the rough
Re: Outbound Intg from OTM generates XML without xml tag elements and only values dis

If Joseph's suggestion doesn't work, then I'd recommend openning an SR with Oracle

--Chris
__________________
Chris Plough
twitter.com/cpMavenWire
MavenWire
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Get the new values from EBS in agent mod vlappy Workflow and Agents 2 December 1st, 2009 14:52
Unable to Replace Child elements through integration neoandr Integration and Data Mapping 2 December 10th, 2008 05:03
PlannedShipment generates Origin location details neoandr Integration and Data Mapping 1 September 13th, 2008 18:20
Throwing OutOfMemory: allocLargeArray - Object size: 5766688, Num elements: 2883334 Kristof Stevens Hardware and Platforms 9 August 14th, 2008 09:50
Data Elements Vs Business Objects rj5316 Workflow and Agents 1 December 3rd, 2007 09:36



All times are GMT. The time now is 05:37.
Copyright © 2006-2010, Open Book Solutions LLC. All rights reserved.


Inactive Reminders By Icora Web Design

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44