我有这样的 WCF 服务:
public IEnumerable<int> AddProperty(string productId, string propertyClass, Property properties)
我用以下数据调用它:
{
"Class":{"Name":"aoeu","Restricted":false,"Type":"ScalarProperty"},
"DisplayName":"aoeu",
"Id":"560",
"Value":"aoeu"
}
它工作得很好。现在我想像这样向Property
服务中添加另一个:
public IEnumerable<int> AddProperty(string productId, string propertyClass, Property properties, Property properties2)
我应该传递什么数据?我试过这个:
{
properties: {
"Class":{"Name":"aoeu","Restricted":false,"Type":"ScalarProperty"},
"DisplayName":"aoeu",
"Id":"560",
"Value":"aoeu"
},
properties2: {
"Class":{"Name":"aoeu","Restricted":false,"Type":"ScalarProperty"},
"DisplayName":"aoeu",
"Id":"560",
"Value":"aoeu"
}
}
但它没有用!我尝试了一些不同的方法,但它们都不起作用:(有什么帮助吗?