Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Creating a new instance
- AUVService.ServiceClient auvclient = new AUVService.ServiceClient();
- //Setting username and password
- auvclient.ClientCredentials.UserName.UserName = "****";
- auvclient.ClientCredentials.UserName.Password = "****";
- //Open the client (THIS WORKS)
- auvclient.Open();
- //Creating new order object
- AUVService.order or = new AUVService.order();
- //Create new object holding the order lines
- AUVService.orderLine[] ol = new AUVService.orderLine[1];
- //Create one new orderline
- ol[0] = new AUVService.orderLine();
- ol[0].skuNumber = "1211199";
- ol[0].quantity = 1;
- //Set the orderlines
- or.lines = ol;
- //Tell the server that this order is created by Animedic and is only viewable for me
- or.username = "Animedic";
- try
- {
- //Do the job, create the order
- auvclient.CreateOrder(or);
- }
- catch (Exception E)
- {
- MessageBox.Show(E.Message);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement