My suggestion is to always use a gateway file for all documents/files being submitted to IS/TN. Never allow outsiders to call wM-supplied services directly.
From your Java app, you can invoke the gateway service via FTP or HTTP, whichever you like. If you FTP the file to IS, there are a couple of ways to do so–these are covered in the wM docs. Or, you can have the Java app FTP the file to some location that IS has access to. Then schedule a task or a file polling port to poll the directory to pick up files for processing.
The key is creating a gateway service that knows what kind of data to expect and it does what is needed to hand that off to TN.
#B2B-Integration#webMethods#Integration-Server-and-ESB