edi send out via script?

431 views
Skip to first unread message

Andre

unread,
Nov 28, 2013, 10:14:55 AM11/28/13
to bots...@googlegroups.com
Hello,
i have a Linux tool to send EDI Files via Internet (P7 Connector) to a x.400 Mailbox. To send this files to the partners i must create 3 files with some settings like X.400 Mailbox Address - Filename etc... 

Is it possible to create this directly via bots? 

Thanks
andre

henk-jan ebbers

unread,
Nov 28, 2013, 10:24:33 AM11/28/13
to bots...@googlegroups.com
hi Andre,

yes, see: http://code.google.com/p/bots/wiki/ChannelsScripting
I use it a lot.

I connect to x.400 via a bridge. You can use secured SMTP/POP
works very good.
think most providers support this (over here BT-infonet is most important provider).

But I am interested in this 'native' X.400 connector.
Who is the supplier/manufacturer, and is it open soruce?

kind regards,
henk-jan

btw it seems that rates in the netherlands are half to what others charge...let me know if this is interesting to you ;-))
> --
> You received this message because you are subscribed to the Google Groups "Bots Open Source EDI Translator" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to botsmail+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Andre

unread,
Nov 28, 2013, 11:41:23 AM11/28/13
to bots...@googlegroups.com
Hi,
it afraid not open source :(

It is this tool:

I get this from the german telekom with a tool (Mailmax (Telekom Label: Filework)  for windows. The UA-FI Tool is a command line tool for windows and linux. It works very well but for every send out i must create some mail setting files. 

Files like this (maybe helps this some other people):

Header File (head.hdr):

content_type = P2
local_id
= "msginvoic142"
primary
= "c=DE;a=viaT;s=123;G=123;o=123".
from = "c=de;a=viat;s=MY;o=AND;cn=I".
subject
= ""
bodypart
= ia5text cdif_bdy.txt
bodypart
= ia5text invoic142.edi
P7_recipient
= "c=DE;a=viaT;s=123;G=123o=123" DN
priority
= normal
importance
= normal

cdif-bdy.txt

 !OMS-CDIF-INFORMATION:
 
!FILENAME: invoic142.edi
 
!COMMENT: Textdatei
 
!Information for the next bodypart

And the execute / command file (send.cmd):

submit : head.hdr

After this i must call only: ./ua-fitcplinux -v send.cmd send.rsp ediuser

And the EDI File is on the way. My idea is i create perl or php script that create and make all this and saves the result in my database (bots gives my script only the file name and receiver GLN)... or the easy way bots create all files directly and send this direct to the right receiver. 

so thats it.

Ahh that are the documentation from the german telekom for the UA-FI:

henk-jan ebbers

unread,
Nov 28, 2013, 12:13:50 PM11/28/13
to bots...@googlegroups.com
yes, no open source for X.400 :-((
It's too old, and seldom used.

Deutsche Telecom does support SMTP/POP3 bridge (never used it, but found out years ago).

it is just so much easier...

kind regards,
henk-jan

Andre

unread,
Nov 28, 2013, 12:54:10 PM11/28/13
to bots...@googlegroups.com
Yes, DTAG supports a SMTP Bridge but it's a extra service with costs and and and ... it the german telekom ;)

henk-jan ebbers

unread,
Nov 28, 2013, 12:59:49 PM11/28/13
to bots...@googlegroups.com
use Dutch provider.

smtp/pop3 is international, support is excellent (they speak english), charge is 1/2 probably of what you pay.
never had any problems  with it, no downtime, etc.  ;-)))
no problem addressing german x400 postbus (I have experience with that), no extra charge for this.

kind regards,
henk-jan

Andre

unread,
Nov 28, 2013, 2:25:26 PM11/28/13
to bots...@googlegroups.com
Have you a provider name for me?

Andre

unread,
Dec 2, 2013, 11:22:40 AM12/2/13
to bots...@googlegroups.com
Now i have this com-script - but the php script is not calling. 

import os

 

import glob

import shutil

import subprocess


 

def connect(channeldict,*args,**kwargs):

   
''' function does nothing but it is required.'''

   
pass

........

def main(channeldict,filename,ta,*args,**kwargs):

    subprocess
.call(['/var/www/vhosts/test.de/subdomains/edi/httpdocs/edi/transmit_msg.php','-send',filename])

     

 


Why? 

Help ;)

henk-jan ebbers

unread,
Dec 2, 2013, 2:06:41 PM12/2/13
to bots...@googlegroups.com
maybe try something like:
subprocess.call(["php", "path/to/script.php", "param1", "param2"])

kind regards,
henk-jan
--
Reply all
Reply to author
Forward
0 new messages