How to POST form-data using WCF-WebHttp from BizTalk

Tahir Hemani 1 Reputation point
2020-12-20T02:56:21.887+00:00

I need to POST a word document along with some key/value pair using form-data from BizTalk using WCF-WebHttp adapter to a web service.
See the sample Postman screen below.
I found the following blog that create form-data, but they are using string replace to construct the message, which is not working in my case. https://www.connected-pawns.com/2018/08/08/posting-multipart-form-data/

49761-postform-data.jpg

Note: I did not find 'biztalk' or any other relevant tags.
Thank you.

Microsoft BizTalk Server
Microsoft BizTalk Server
A family of Microsoft server products that support large-scale implementation management of enterprise application integration processes.
358 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Peng Ding-MSFT 96 Reputation points
    2020-12-21T03:16:58.427+00:00

    Hi @Tahir Hemani ,

    BizTalk is currently not supported in the Q&A forums, the supported products are listed over here https://video2.skills-academy.com/en-us/answers/products (more to be added later on).

    For the related questions about BizTalk, you can ask in here: https://social.msdn.microsoft.com/Forums/en-US/home?forum=biztalkgeneral


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards,

    Peng Ding