[Develop][JAVA][C#] cxf message truncated to 65536 bytes

[Develop][JAVA][C#] cxf message truncated to 65536 bytes


 

【PART I】

cxf message truncated to 65536 bytes

【PART II】JAVA

若要在temp看log訊息,加入以下程式碼。避免字串超過長度限制,遭截斷訊息。

@Logging(limit = -1,inLocation = "<stdout>")

【PART III】C#

C#接收JAVA service回傳的JSON string訊息過長,超過預設長度。透過web.config,調整域值。

<bindings>
	<basicHttpBinding>
		<binding name="MainServiceServiceSoapBinding" maxReceivedMessageSize="1000000"/>
	</basicHttpBinding>
</bindings>



Reference

CXF JAVA message Truncated

BasicHttpBinding.MaxReceivedMessageSize 屬性