正确的格式以将数据添加到Web服务

时间:2012-03-06 14:13:25

标签: c# web-services soap

我正在尝试向此web service发送数据。

使用以下代码,我如何调整我在C#中发送CorrelationId的内容?

www.SyncroWebService ws = new www.SyncroWebService();

ws.addNewProduct(new www.AddProductRequest(){
   Products = new www.Product[]
   {
      new www.Product() { categoryName = "Cat_Rory", departmentName = "Dept_Rory", productName = "Product_Rory", productPrice = 100, productQty = 1000},
      new www.Product() { categoryName = "Cat_Test", departmentName = "Dept_Test", productName = "Product_Test", productPrice = 100, productQty = 1000 }
   }
});

由于

1 个答案:

答案 0 :(得分:1)

使用:

ws.addNewProduct(new www.AddProductRequest {
   CorrelationId = "id here",
   Products = ...