0

我正在实施像这里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> 

有来自示例https://github.com/MetricsHub/AzureStoreRP/blob/master/AzureStoreRP.Data/Contracts/EntityEvent.cs的命名空间类

    [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。但我不知道我应该使用哪个命名空间。可能是有人实施的吗?

4

0 回答 0