Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

MaxProtocolVersion error - SAP Gateway for Microsoft

$
0
0

Hi,

I'm receiving the following error after executing the following code. serviceContext returns MaxProtocolVersion as read only. How to modify MaxProtocolVersion and resolve this issue.

ServiceDetails serviceDetail = ConfigurationReaderHandler.Instance.GetServiceDetails("ZPURCHASE_ORDER_SRV");
serviceContext = new ZPURCHASE_ORDER_SRV(new Uri(serviceDetail.Url));
serviceContext.AddAndUpdateResponsePreference = DataServiceResponsePreference.IncludeContent;//error
//data fill - poItem
serviceContext.AddObject("ZPURCHASE_ORDER_SRV", poItem);
DataServiceResponse response = serviceContext.SaveChanges();
Error:The request requires that version 3.0 of the protocol be used, but the MaxProtocolVersion of the data service context is set to 2.0. Set the MaxProtocolVersion to the higher version, and then retry the operation.

Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>