ServiceReference2.ZMM_PO_CREATE_INTERFACE_NEWClient client = new ServiceReference2.ZMM_PO_CREATE_INTERFACE_NEWClient("ZMM_PO_CREATE_INTERFACE_NEW");
ServiceReference2.ZMM_PO_CREATE_INTERFACE input = new ServiceReference2.ZMM_PO_CREATE_INTERFACE();
ServiceReference2.ZMM_PO_CREATE_INTERFACE1 test2 = new ServiceReference2.ZMM_PO_CREATE_INTERFACE1();
test2.INPUT = new ServiceReference2.ZMM_PO_CREATE_INTERFACE[1100];
for (int i = 0;i < 1100;i++)
{
input.ORDERCODE = "222" + i.ToString();
input.SUPPLIERCODE = "222";
input.LINECODE = "222";
input.FACTORY = "222";
input.MATERIALCODE = "222";
input.BATCHCODE = "222";
input.COUNT = 222;
input.COMPONENTCODE = "222";
input.COMPONENTCOUNT = 222;
input.REQUEST_NO = "222";
input.UNIT = "222";
input.BATCH_COUNT = 222;
input.SHIP_COUNT = 222;
input.SHIP_DATE = "2018-08-24";
input.WO_NO = "X";
input.WO_NO_COUNT = 222;
test2.INPUT[i] = input;
}
try
{
client.ClientCredentials.UserName.UserName = "";
client.ClientCredentials.UserName.Password = "";
client.Open();
ServiceReference2.ZMM_PO_CREATE_INTERFACEResponse response = client.ZMM_PO_CREATE_INTERFACE(test2);
Console.WriteLine(response.MSG);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message + Environment.NewLine + ex.StackTrace);
}
finally
{
client.Close();
}