0
votes

The BizTalk send port when trying to send a request to an external WCF service using WCF-Basichttp adapter is throwing the following error:

System.Net.WebException: The remote server returned an unexpected response: (413) Request Entity Too Large.

The size of the message I am sending is:69485 bytes. I tried changing the maximum received message size in the binding properties from the default set value of 65536 to 70656 to accept this message but it still didn't work.

Can anyone please suggest what else needs to be changed to send the message successfully

1
Looks like the issue is at the service you are calling, and not at BizTalk. The propery you changed would be for the size of the response, not the message you are sending.Dijkgraaf
You can try to increase the value of the maxReceivedMessageSize property on the client-side and server-side at the same time.Ding Peng

1 Answers

0
votes

The clue is in "The remote server returned an unexpected response", it isn't BizTalk that has the issue, rather it is the WCF service that BizTalk is consuming. The limits at that end need to be changed.