webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

How To Implement webMethods SoftwareAG using Upload File with Postman

  • 1.  How To Implement webMethods SoftwareAG using Upload File with Postman

    Posted Fri October 27, 2023 03:19 AM

    Hello , i’m newbie about upload/download file using like this ,

    i want to ask about this .
    How To Implement webMethods SoftwareAG looks Like this???

    i want to Upload that file using postman and copy to other server

    1. using name key textfile and Value take from file (Explorer)
    2. Send Data to endpoint sample : 123.456.7.89:5556/restv2/ogie.resources:restresources/getEmployeeByID (look images)
    3. response code or response message and detail using json file

    I need sampling data or capture data detail package and other

    SoftwareAG Version : 10.7 (On Premise)
    OS : Windows 10

    thanks for help


    #postman
    #webMethods


  • 2.  RE: How To Implement webMethods SoftwareAG using Upload File with Postman

    Posted Mon October 30, 2023 12:20 AM

    hi @andiogie ,
    Data can be uploaded from postman client as mime data.
    Please refer the below article where i have talked about how the data can be sent as attachment using postman client.

    Let me know if this helps.

    Regards
    Vikash Sharma


    #postman
    #webMethods


  • 3.  RE: How To Implement webMethods SoftwareAG using Upload File with Postman

    Posted Mon October 30, 2023 03:20 AM

    Thanks for your answer Mr. @Vikash_Sharma1

    But I Need Some capture based on webMethods SoftwareAG (On Premise)

    Whats services/component package to use?? thanks


    #postman
    #webMethods


  • 4.  RE: How To Implement webMethods SoftwareAG using Upload File with Postman

    Posted Mon October 30, 2023 09:15 AM

    hi @andiogie ,
    The mime services are present within WmPublic package(WmPublic–> mime).

    Regards
    Vikash Sharma


    #postman
    #webMethods


  • 5.  RE: How To Implement webMethods SoftwareAG using Upload File with Postman

    Posted Tue October 31, 2023 12:17 AM

    can you show me an example flow services and map???

    thanks


    #webMethods
    #postman


  • 6.  RE: How To Implement webMethods SoftwareAG using Upload File with Postman

    Posted Tue October 31, 2023 12:31 AM

    hi @andiogie,
    We can create the flow service on the on prem IS with same steps what we have created in the cloud.
    For your reference I just dragged the couple of steps on onprem IS.
    PFB the screenshot for same.

    For more details please refer the documentation.
    https://documentation.softwareag.com/webmethods/integration_server/pie10-15/webhelp/pie-webhelp/#page/pie-webhelp%2Fto-overview_of_mime_and_smime_messages.html%23

    Regards
    Vikash Sharma


    #webMethods
    #postman


  • 7.  RE: How To Implement webMethods SoftwareAG using Upload File with Postman

    Posted Tue October 31, 2023 04:35 AM

    Try this


    #postman
    #webMethods


  • 8.  RE: How To Implement webMethods SoftwareAG using Upload File with Postman

    Posted Tue October 31, 2023 04:58 AM

    i tried this services , but which run flow services???

    thanks


    #webMethods
    #postman


  • 9.  RE: How To Implement webMethods SoftwareAG using Upload File with Postman

    Posted Tue October 31, 2023 05:05 AM

    Dear All , i tried to using this package detail :

    pub.mime:createMimeData
    pub.file:getFile
    pub.io:stringToStream
    pub.mime:addBodyPart
    pub.mime:getEnvelopeStream
    pub.file:copyFile

    and this is my pipeline :

    for filename , how to without using filename? because i want to upload using form-data from postman.
    i just use sampling data like D:\fileA\test.txt


    Content-Disposision = form-data
    thread-input = form-data


    targetDirectory = D:\fileB
    appendTimeStamp = yes

    please correct me if i wrong , and i want to upload using postman (with different file and folders)
    this is sample file
    image

    i tried to use services detail but its not work properly…

    please correct my services , thanks


    #webMethods
    #postman


  • 10.  RE: How To Implement webMethods SoftwareAG using Upload File with Postman

    Posted Tue October 31, 2023 05:55 AM

    please refer to the thread shared, you dont need get file.


    #postman
    #webMethods


  • 11.  RE: How To Implement webMethods SoftwareAG using Upload File with Postman

    Posted Tue October 31, 2023 11:24 PM

    thanks , i tried to implement this service , but something like this .

    can you help to solve this case , how to get HeaderLines ? thanks


    #postman
    #webMethods


  • 12.  RE: How To Implement webMethods SoftwareAG using Upload File with Postman

    Posted Wed November 01, 2023 01:02 PM

    Did you read the document linked by @Vikash_Sharma1 ? If not please read the documentation first because there is already a good example in the documentation.

    https://documentation.softwareag.com/webmethods/integration_server/pie10-15/webhelp/pie-webhelp/#page/pie-webhelp%2Fto-building_mime-smime_msgs_5.html%23wwconnect_header

    There are certain steps that needs to be taken before learning a new subject. You need to learn walking before running a sprint.


    #postman
    #webMethods


  • 13.  RE: How To Implement webMethods SoftwareAG using Upload File with Postman

    Posted Wed November 01, 2023 11:00 PM

    Thanks @engin_arlak and @Vikas_Sharma1 . i created this services based on document sampling
    but i want to ask how to insert string using fileattachment based on image below?

    and i want to output looks like this
    image

    thanks


    #webMethods
    #postman


  • 14.  RE: How To Implement webMethods SoftwareAG using Upload File with Postman



  • 15.  RE: How To Implement webMethods SoftwareAG using Upload File with Postman

    Posted Thu November 02, 2023 10:38 AM

    By the way are you trying to call an external service which has a file as parameter or are you trying to expose an Integration Server service which you can call using postman? Your question is unclear. You might be doing something completely unrelated to your requirement.


    #webMethods
    #postman


  • 16.  RE: How To Implement webMethods SoftwareAG using Upload File with Postman

    Posted Thu November 02, 2023 03:27 PM

    when you send a file thru postman it comes across as following:

    ----------------------------914967072361112824251121
    Content-Disposition: form-data; name="FileName"; filename="filename.txt"
    Content-Type: text/plain
    
    Here is your data
    
    
    ----------------------------914967072361112824251121--
    

    What all parts did your service capture?


    #webMethods
    #postman


  • 17.  RE: How To Implement webMethods SoftwareAG using Upload File with Postman

    Posted Mon November 13, 2023 03:46 AM

    Dear All, i’m sorry about miss communication , and sorry for bad my english , this is sampling data and detail :

    i confused about how to implement using webMethods , and output like this (example)
    image

    input using form-data , and Key sample-file , value get file from other files .
    and copyfile to other path directory .
    example : get file from explorer let says name : test-file.txt
    Send using postman and output : copyfile to new directory : D:/
    i tried to read any documentation or forum , but i still confused for implement.

    please need help such as created sampling services based from your source .

    I’m using SoftwareAG On Premise
    Version 10.15

    thanks a lot everyone


    #postman
    #webMethods