Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: WCF-WebHTTP Two-Way Send Response responds with an empty message and causes the JSON decoder to fail in BizTalk Server


View products that this article applies to.

Symptoms

Consider the following scenario:

  • You use WCF-WebHTTP Two-Way Send to consume REST services in Microsoft BizTalk Server. In some cases, it responds with a message body and in other cases, it responds with an empty body (just the HTTP status code).
  • A JSON decoder pipeline component is used in the response pipeline.
  • Whenever the REST service responds with an empty body, the JSON decoder in the response pipeline fails and you may receive an error message that resembles the following:
There was a failure executing the response (receive) pipeline: "Customer.BizTalk.CDS.CustomerEventPublisher.Pipelines.Rcv_JSON_To_XML, Customer.BizTalk.CDS.CustomerEventPublisher.Pipelines, Version=1.0.0.0, Culture=neutral, PublicKeyToken=xxxxxxxxxx" Source: "JSON decoder" Send Port: "xxxxxxxxxx" URI: "xxxxxxxxxxxx" Reason: Object reference not set to an instance of an object.

↑ Back to the top


Resolution

This issue is fixed in the following cumulative updates for BizTalk Server:

       Cumulative Update 2 for BizTalk Server 2016

       Cumulative Update 6 for BizTalk Server 2013 R2

Note: A new setting with name AddMessageBodyForEmptyMessage is provided in JSON decoder pipeline component. Decoder will be able to process empty message if property AddMessageBodyForEmptyMessage is set to True.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


References

For information about the service packs and cumulative update list for BizTalk Server, click the following article number to view the article in the Microsoft Knowledge Base:

2555976 Service pack and cumulative update list for BizTalk Server

For more information about BizTalk Server hotfixes, click the following article number to view the article in the Microsoft Knowledge Base:

2003907 Information about BizTalk hotfixes and Service Pack support

↑ Back to the top


Keywords: kb, kbqfe, kbfix, kbsurveynew, kbexpertiseadvanced

↑ Back to the top

Article Info
Article ID : 4020011
Revision : 12
Created on : 5/15/2017
Published on : 5/26/2017
Exists online : False
Views : 422