Hello,
This is a question about the possibility of creating somekind of a mechanism that would automate the sending of messages from AS2. Would it be possible to publish the sendind of as2 messages as an webservice?
Thanks in advance
John
Hello,
This is a question about the possibility of creating somekind of a mechanism that would automate the sending of messages from AS2. Would it be possible to publish the sendind of as2 messages as an webservice?
Thanks in advance
John
John,
Mainly it is possible to add a webservice on top of this product that could be used to send as2 messages. The included jetty server could be used as web service/servlet container in this case. I tried to deploy a webservice on apache axis embedded in jetty yesterday and it worked fine.
In my opinion there is no need to call directly the send routines from the webservice. All you need to do is to pass a payload to one of the send directories, the directory poll manager of m-e-c as2 will send the messages then.
Simply passing files to an outbox directory is the main integration idea of the server.
Regards
Stefan Heller
Hello John,
if mec AS2 is started it runs permanent in the background and waits for files.
Depending in the partner profiles mec AS2 creates several folders. For each partner one and within these more folders like outbox and so on.
If you or a programm puts a file into this outbox, mec AS2 will send it automated to the partner, which is associated with this outbox folder.
It will be no problem to use a web service to create the file you want to send and after that you can put this file into the designated folder and the file will make his way!
Hi Heller and Tobias,
Thanks vey much for the quick replies.
Your tips were really helpful, like you both said placing the message (s) on the folders outbox, the messages will be picked by the server. With this polling mechanism there will be no need to define a webservice....
Thanks a lot
John.