本文整理汇总了C#中Service1Client.SubmitData方法的典型用法代码示例。如果您正苦于以下问题:C# Service1Client.SubmitData方法的具体用法?C# Service1Client.SubmitData怎么用?C# Service1Client.SubmitData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Service1Client
的用法示例。
在下文中一共展示了Service1Client.SubmitData方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CallWebServiceAllIDs
private static void CallWebServiceAllIDs()
{
Console.WriteLine("Press Enter to call Server");
string enteredString = Console.ReadLine();
Service1Client client = new Service1Client();
ACATestDAL.DAL dal = new ACATestDAL.DAL();
IEnumerable<int> ids = dal.getTransmissionIDs("2015");
foreach (int id in ids)
{
Transmission trans = dal.getTransmissionByID(id);
Console.WriteLine(string.Format("Processing transmission ID {0}.", trans.TransmissionIdentifier));
Submission s = trans.Submissions.FirstOrDefault();
Record1094C record = s.Record1094C.translate();
string receiptID = client.SubmitData(record);
trans.ReceiptID = receiptID;
dal.saveTransmissionReceiptID(trans);
Console.WriteLine(String.Format(">>> Received Receipt ID {0}.", receiptID));
}
Console.ReadLine();
}
示例2: CallWebServiceSingleID
private static void CallWebServiceSingleID()
{
Console.WriteLine("Press Enter to call Server");
string enteredString = Console.ReadLine();
Service1Client client = new Service1Client();
ACATestDAL.DAL dal = new ACATestDAL.DAL();
Record1094C record = dal.getRecord1094CByID(5).translate();
string message = client.SubmitData(record);
Console.WriteLine(message);
Console.ReadLine();
}