on 06-22-2015 7:45 AM
Dear All,
Can you please explain how to configure AS2 - Sender channel for below requirements.
PI Version : 7.4
We have several interfaces that is going to communicate through AS2 with business clients.
How to segregate the PI interface with file name that partner is sending to us. because i don't see a place to put File name parameters in 7.4 - AS2 sender communication channel like we do for File Adapter in PI.
Ex : Partner - "ABC Ltd" is sending several files(XML , EDI) through AS2 to PI system. - ex : Purchase Order , Goods Receipt , Delivery ...files
Do we have to create separate communication channels for each & every Interface ? or can we use one common Communication channel for all the Interfaces ? Please explain
ex: Purchase Order file name : "PurchOrder+Date Created + Time Created + .xml" .Then how to set this parameter in AS2 sender comm. channel
guess it has to be done in AS2 sender communication channel - expected URL path parameter. soemthing like "http:://<local:port>/AS2/<path>"
your valuable ideas are highly appreciated..
Thank you all in advance...
Hi,
You can use the following check box on your AS2 sender channel so the system will record a number of attributes about the incoming message:
When that checkbox is selected the system will record all of the valid dynamic attributes that you can use and then you can read them using the normal dynamic configuration API with the namespace "http://sap.com/xi/XI/AS2/AS2" and the proper attribute name.
Regards,
Ryan Crosby
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ryan,
Thank you for the reply...I am already using this option "file name" for AS2 receiver communication channel and its working fine.
I went through your UDF code and many thanks for sending that.
but my concern is when I am using this code for Sender Communication channel, say if this logic is true (as per above "propertykey.startsWith("PO") == true) then AS2 Sender Communication channel should pick the file and process.
if false , then file should be ignored..
how to do that (pass a values to pick and process the file) ?
Thanks
'
Hi,
If you don't want to process those files at all then you would need to work on a multiple receiver split where you can designate those payloads to go to some other location. You can use the XPath with the context objects to work out this logic and then dump any files that shouldn't be processed into some dummy location or something like that.
Regards,
Ryan Crosby
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.