Managed File Transfer

 View Only
  • 1.  API & Duplicate File content

    Posted Fri December 01, 2023 05:15 PM

    Hi,

       Please let me know if SI has API useing  which we can create Producers , Consumers , codelist .

       And  Is there a way to make sure that duplicate file content are not processed in SFG , after validating the text file content ?.

       Please advise . Thank you .

    Regards

    Selvaraj



    ------------------------------
    Selvaraj Munusamy
    ------------------------------


  • 2.  RE: API & Duplicate File content
    Best Answer

    Posted Mon December 04, 2023 05:31 AM

    Hi Selvaraj,

    You can create, edit, delete trading partners (Producers/consumers), codelists (and more) via REST API. See: https://www.ibm.com/docs/en/b2b-integrator/6.2.0?topic=cbra-b2b-rest-apis-available-in-sterling-b2b-integrator

    For duplicate file checking I've seen this done at banks where they calculate a checksum on the file, typically using the Java task service to run some java code, and comparing it against a custom DB table e.g. for the same producer mailbox within the last year, and only if it's not a duplicate to allow it to be delivered, otherwise creating an error event (you can create custom events in SFG). This would generally be done in a custom delivery protocol.

    Hope that helps.

    Regards,

    Richard.



    ------------------------------
    RICHARD CROSS
    ------------------------------



  • 3.  RE: API & Duplicate File content

    Posted Tue December 05, 2023 09:14 AM
    Thank you Richard . 





  • 4.  RE: API & Duplicate File content

    Posted Tue December 05, 2023 10:29 AM

    Hi Selvaraj,

    Sample code to create partners: 

    https://github.com/ebasso/sterling-b2b-samples/tree/master/apis/trading-partners-apis

    Sample code to work with Codelists

    https://github.com/ebasso/sterling-b2b-samples/tree/master/apis/code-lists-api

    Sample code to create Routing Channels

    https://github.com/ebasso/sterling-b2b-samples/tree/master/apis/sfg-routing-channel-api


    Like Richard tells you can do a checksum in file and check against custom table. Below a java task to do checksum

    https://github.com/ebasso/sterling-b2b-samples/tree/master/business-process/check-sum-java-task



    ------------------------------
    ENIO RUBENS BASSO
    ------------------------------