I am interfacing with an EDI VAN for some file exchanges. I only want WPG to receive and pass the file in to a folder (no translation, just pass through).
I would like to avoid setting up all of the partner ID combinations in the partner profile.
What I would like to do is simply have WPG use the AS2 ID from the sender and my AS2 ID as the receiver and process the file as a binary file and pass it through to the backend folder.
We use the generic file processor for outbound documents to force them to be routed when there is no ISA/GS type info.
Is it possible to do this on inbound files?
AvV 2000000BY4117 Posts
Re: Receiving X12 Files As Binary2012-06-10T12:20:18ZThis is the accepted answer. This is the accepted answer.Hello Brian,
I am not sure if you really want to receive EDI (X.12) documents as Binary.
What you basically require is that the 'Business ids' from the EDI documents are overridden by the 'Packaging business ids' values from the AS2 header for routing the document. In this way, you simple just will have the 'AS2-To' and 'AS2-From' defined in the WPG Console.
A solution is to write a class, for example 'CustomEDIRouter' which implements the BusinessProcessHandlerInterface.
This class will do the action as suggested above :
String fromBusId = businessDocumentInterface.getAttribute(BCGDocumentConstants.BCG_PKG_FRBUSINESSID));
String toBusId = businessDocumentInterface.getAttribute(BCGDocumentConstants.BCG_PKG_TOBUSINESSID));
This 'CustomEDIRouter' would be activated by a ReceiverPreProcessHandler for this incoming AS2 connection.
For example : recv.setAttribute(CUSContstants.X_CUS_EDI_ROUTER, BCGDocumentConstants.BCG_TRUE);
Hope this helps.
WebSphere B2B (WPG/WDI), WMQ AMS, WMQ FTE
IBM Software Services for WebSphere
Software Group, IMT BNL