otmfaqForumsBlogsRegister
FAQMembers ListCalendarToday's PostsSearch


 Subscribe Blogs:RSS
 Subscribe Forums:RSS
OTMFAQ Home
OTMFAQ Blogs
OTMFAQ Forums
OTMFAQ Tutorials

OTM SIG
MavenWire


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

Tags: ,

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old May 5th, 2008, 17:58
Junior Member
 
Join Date: Apr 2008
Posts: 25
Thanks: 1
Thanked 5 Times in 4 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
mkenney is on a distinguished road
Outbound XML to localhost? Usage of WMServlet?

We are trying to setup an outbound transmission of a Order Release from an OTM 5.5 CU4 installation and would like to drop the XML on the local file system on the Application Server.
The External System setup we normally use has the URL of the OTM Tomcat Web Server:
http://<OTM_Web_RootURL>/GC3/glog.in...lSystemServlet (additional parameters omitted)
This then does an FTP to where you want the file to go.
The question - Is there a simple way to drop the XML on the localhost file system like this?:
http://<OTM_App_Server_Name>:<port>/...lSystemServlet (...)
And FTP from the Application server to the Application server, or even better just drop the file on the localhost.
Also a related question - Can the WMServlet be used for outbound XML transmissions?
Any examples of what the URL would look like in the External System configuration would be greatly appreciated.
Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old May 6th, 2008, 12:44
Junior Member
 
Join Date: Dec 2007
Posts: 17
Thanks: 0
Thanked 1 Time in 1 Post
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
banerjeemnmims is on a distinguished road
Re: Outbound XML to localhost? Usage of WMServlet?

Hi mkenney,
we have doen the outbound transmission by sending the planned shipment to a dump file using BPEL.For this we use BPEL to extract the data from the s=database whenever a new filed is entered and it puts that data in to desired location.
You can try this if you want.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old May 7th, 2008, 02:44
chrisplough's Avatar
Site Moderator
 
Join Date: Jun 2006
Location: West Chester, PA
Posts: 821
Blog Entries: 7
Thanks: 53
Thanked 201 Times in 121 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 10
chrisplough has a spectacular aura aboutchrisplough has a spectacular aura aboutchrisplough has a spectacular aura about
Send a message via AIM to chrisplough
Re: Outbound XML to localhost? Usage of WMServlet?

The easiest way to get the file dumped to localhost is to either setup an FTP server on localhost to accept the outbound connection from OTM and drop the file to local disk, or to utilize the Python scripts (located under $OTM_HOME/utils/integration/python/) to do the same. As banerjeemnmims noted, using BPEL to dump to file is also an option, though requires more overhead.

As for outbound from WMServlet, no - this servlet is intended for inbound integration only.

--Chris
__________________
Chris Plough
MavenWire

www.MavenWire.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old May 15th, 2008, 20:49
Junior Member
 
Join Date: Apr 2008
Posts: 25
Thanks: 1
Thanked 5 Times in 4 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
mkenney is on a distinguished road
Outbound XML to localhost? Usage of WMServlet?

Thanks to both of you for the input on this issue. I think the options you propose are probably viable though we have gone a different direction.

We have found that when using the ExternalSystemServlet as specified in the Help Documentation for an HTTP type External System XML outbound communication, we run into a problem in the Oracle code. This is the error from the Tomcat logs oin the OTM Web Server:
---
java.io.FileNotFoundException: <Transmission xmlns="http:\xmlns.oracle.com\apps\otm">[Remainder of XML Text Omitted]<\Transmission>
(The system cannot find the path specified)
at java.io.FileInputStream.open(Ljava.lang.StringV( Native Method)
at java.io.FileInputStream.<init>(FileInputStream.jav a:106)
at java.io.FileInputStream.<init>(FileInputStream.jav a:66)
at glog.util.ftp.client.FTPClientFactory.putFile(FTPC lientFactory.java:86)
at glog.util.ftp.FTPClientWrapper.putString(FTPClient Wrapper.java:30)
at glog.integration.servlet.ExternalSystemHelper.proc ess(ExternalSystemHelper.java:91)
at glog.integration.servlet.ExternalSystemServlet.doP ost(ExternalSystemServlet.java:46)
---
As you can see the ExternalSystemHelper.process method makes a call to the FTPClientFactory.putFile method with the sixth parameter being a String with the XML text, not a path to an XML file. This gets passed through to the FTPClientFactory which tries to construct a FileInputStream, but the localFileName parameter has the XML text instead of a file name which results in the IO problem:

ftpClient.putFile(remoteFileName, new FileInputStream(localFileName));

The end result is that an FTP session is established, changing to binary etc., but failing with this exception when trying to execute the PUT command. It is possible that there is some change in parameters or setup of a property file that would get this working, but as I mentioned we have gone a different direction.

I created a simple Servlet class that will handle a post, and drop a file in the folder you specify. It does not use the Web Server or FTP, but instead keeps everything on the Application server which radically simplifies the process. Otherwise it is configured as an External System the same way and works great.

I've included the source (attached) which contains additional configuration instructions. Consider it Open Source.

Enjoy.

Matt Kenney
Attached Files
File Type: zip ExternalSystemLocalServlet.zip (4.8 KB, 9 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 2 Users Say Thank You to mkenney For This Useful Post:
chrisplough (May 22nd, 2008), cmcintos (May 16th, 2008)
Reply



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
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
Problem with External System Translations for OUTBOUND/INBOUND Stefano Integration and Data Mapping 4 June 2nd, 2008 14:03
OTM Outbound Integration Issue - GLOG_MIN XML Profile chrisplough Integration and Data Mapping 0 April 17th, 2008 09:06
Question about Outbound XML size baji Integration and Data Mapping 6 February 5th, 2008 17:25
Outbound Queue in OTM rkuruba Integration and Data Mapping 0 September 18th, 2007 22:01
[SCRIPT] DB Usage - mw-dbusage.sql chrisplough Database Administration 2 May 15th, 2007 18:12



All times are GMT. The time now is 21:45.
Copyright © 2008, Open Book Solutions LLC. All rights reserved.

Sponsored by MavenWire - MavenWire.com


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