WCF: “Error creating reader for MTOM message”

前端 未结 2 868
耶瑟儿~
耶瑟儿~ 2021-01-13 11:45

Trying to get MTOM working in a WCF client. The particular function I\'m trying to consume sends an MTOM-encoded byte array of a PDF document. Using SoapUI to test the API u

2条回答
  •  时光说笑
    2021-01-13 12:45

    For my case, I was getting the indicated error, in my binding I had

    maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
    

    it did not start working until I added:

    maxBufferSize="2147483647"
    

    Just incase anyone has the same issue.

提交回复
热议问题