我正在实施像这里https://github.com/MetricsHub/AzureStoreRP这样的天蓝色商店提供程序。我也在使用 SDK https://github.com/WindowsAzure/azure-resource-provider-sdk。在https://github.com/WindowsAzure/azure-resource-provider-sdk/blob/master/docs/api-subscription.md上有 SDK 中的示例请求
<?xml version="1.0" encoding="utf-8"?>
<EntityEvent>
...
</EntityEvent>
[DataContract(Namespace = "http://schemas.datacontract.org/2004/07/Microsoft.Cis.DevExp.Services.Rdfe.ServiceManagement")]
public class EntityEvent : IExtensibleDataObject
{
...
}
当我发送 sdk sample 的请求时,我得到了异常
<ExceptionMessage>Error in line 1 position 14. Expecting element 'EntityEvent'
from namespace 'http://schemas.datacontract.org/2004/07/Microsoft.Cis.DevExp.Services.Rdfe.ServiceManagement'..
Encountered 'Element' with name 'EntityEvent', namespace ''.
</ExceptionMessage>
Microsoft 将在 staging 中测试我的 RP。但我不知道我应该使用哪个命名空间。可能是有人实施的吗?