public int SubmitContractNote(ContractNoteInfo contractNote)
 {
     object[] results = this.Invoke("SubmitContractNote", new object[] {
         contractNote
     });
     return((int)(results[0]));
 }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            //intantiate web service proxy
            STPProvider.PostTradeService postTradeSvc = new STPProvider.PostTradeService();
            //SignData(postTradeSvc);
            //prepare contract note information
            STPProvider.ContractNoteInfo contractNote = new STPProvider.ContractNoteInfo();
            contractNote.Symbol   = "MSFT";
            contractNote.Price    = 25;
            contractNote.Quantity = 100;
            contractNote.BuySell  = STPProvider.BuySellEnum.Buy;
            //submit contract note information through web service
            int ackId = postTradeSvc.SubmitContractNote(contractNote);

            //display the ack no received from web service
            Console.WriteLine("Acknowledgement Id: " + ackId);
        }
 /// <remarks/>
 public System.IAsyncResult BeginSubmitContractNote(ContractNoteInfo contractNote, System.AsyncCallback callback, object asyncState)
 {
     return(this.BeginInvoke("SubmitContractNote", new object[] {
         contractNote
     }, callback, asyncState));
 }