Hi all,
when i'm checking the eConnect enabled status ,the system throws below error
Method not found: 'Void Microsoft.Dynamics.GP.eConnect.Serialization.eConnectOut.set_DOCTYPE(System.String)
and even it is not showing where is the error occurs (line wise).My code is below .please tell me why i'm getting this error
bool isEnable = false;
using (eConnectMethods eConnectMethod = new eConnectMethods())
{
try
{
string result = string.Empty;
eConnectOut myRequest = new eConnectOut();
myRequest.DOCTYPE = defaultUOM;
I95DevLog.LoggingIntoText(myRequest.DOCTYPE, I95DevLogMessages.GPConnectionTest, I95DevLog.LogType.Information);
myRequest.OUTPUTTYPE = 1;
myRequest.FORLIST = 0;
myRequest.ACTION = 0;
// Create the eConnect requester XML document object
RQeConnectOutType[] eConnectOutType = new RQeConnectOutType[1] { new RQeConnectOutType() };
eConnectOutType[0].eConnectOut = myRequest;
eConnectType eConnectDoc = new eConnectType();
eConnectDoc.RQeConnectOutType = eConnectOutType;
// Serialize the object to produce an XML document
MemoryStream memoryStream = new MemoryStream();
XmlSerializer serializer = new XmlSerializer(typeof(eConnectType));
serializer.Serialize(memoryStream, eConnectDoc);
memoryStream.Position = 0;
XmlDocument gpConnectDocument = new XmlDocument();
gpConnectDocument.Load(memoryStream);
result = eConnectMethod.GetEntity(sConnectionString, gpConnectDocument.OuterXml);
if (!string.IsNullOrEmpty(result))
{
isEnable = true;
}
}
*This post is locked for comments