using WebService; SalesOrder_Service salesOrder; SalesOrder_Service_Service service; salesOrder = new SalesOrder_Service(); service = new SalesOrder_Service_Service(); service.UseDefaultCredentials = true; service.Create(ref salesOrder); Sales_Order_Line[] salesOrderLine = new Sales_Order_Line[1]; salesOrderLine[0] = new Sales_Order_Line(); salesOrderLine[0].Type = WebService.Type.Item; salesOrderLine[0].Document_No = salesOrder.No; // put SalesOrderLine into Header like this salesOrder.SalesLines = salesOrderLine; service.Update(ref salesOrder);
SalesOrder soHeader = soPort.read(docNo); //method for set SalesLines requires SalesOrderLineList variable soHeader.setSalesLines(SaleOrderLineList arg); // So, I created the SalesOrderLineList SalesOrderLineList lineList = new SalesOrderLineList(); // But.. lineList has only get method. lineList.getSalesOrderLine(); // More information // This is another class for set data to SalesLine SalesOrderLine saleOrderline = new SalesOrderLine(); saleOrderline.setNo(docNo); saleOrderline.setDescription("zzZ");
Comments
We finally found. \:D/