Last active
February 23, 2021 09:24
-
-
Save amarodeabreu/c3e4eeece52832caac6efddf42290ac1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Do SYSPRO login | |
/// </summary> | |
/// <param name="businessObjectName"></param> | |
/// <param name="xmlParameters"></param> | |
/// <param name="xmlIn"></param> | |
/// <returns>XmlDocument</returns> | |
public static void DoTransaction(string businessObjectName,string xmlParameters, string xmlIn) | |
{ | |
//the binding to use | |
var clientPrim = new SYSPROWCFServicesPrimitiveClient(Properties.Settings.Default.WCF_Rest, SYSPROWCFBinding.NetTcp); | |
//Subscribe to the Transaction Callback event | |
clientPrim.TransactionPostCallBack += TransactionCallBack; | |
//Finally call the Asynchronous method for Posting | |
clientPrim.TransactionPostAsync(Guid, businessObjectName, xmlParameters, xmlIn); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment