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

            //Fetch service endpoint information using UDDI
            postTradeSvc.Url = GetServiceLocation();

            //submit contract note through web service
            int ackNo = postTradeSvc.SubmitContractNote(contractNote);

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