简体   繁体   English

AX 2009 AIF架构错误:未声明SalesOrder:AxdEnum_Timezone'或它不是简单类型

[英]AX 2009 AIF Schema error: SalesOrder:AxdEnum_Timezone' is not declared, or is not a simple type

I've been changing the SalesOrderService document service. 我一直在更改SalesOrderService文档服务。 Initially I'd added the new datasource at the wrong level, deployed the service, and later corrected it. 最初,我以错误的级别添加了新的数据源,部署了服务,然后对其进行了更正。 The new datasource I've added is Address and now it hangs off of CreditCardCust datasource. 我添加的新数据源是Address,现在它已脱离CreditCardCust数据源。

I've updated the document service using the wizard (checked the boxes for regenerating the document and AxBC class) and deployed the service again. 我已经使用向导更新了文档服务(选中了用于重新生成文档和AxBC类的复选框)并再次部署了该服务。

When I try to test the service using the XML file adapter, I get the following error: Type ' http://schemas.microsoft.com/dynamics/2008/01/documents/SalesOrder:AxdEnum_Timezone ' is not declared, or is not a simple type. 当我尝试使用XML文件适配器测试服务时,出现以下错误:键入' http://schemas.microsoft.com/dynamics/2008/01/documents/SalesOrder:AxdEnum_Timezone '未声明或未声明一个简单的类型。

I can reproduce the error by navigating to EndPoints, selecting the sales order inbound endpoint, Action policies, Parameter schema, View schema. 我可以通过导航到“端点”,选择销售订单入站端点,“操作”策略,“参数”架构,“视图”架构来重现错误。 Clearly, the schema is messed up. 显然,该架构是混乱的。

I tried to regenerate the schema using the GenerateXSDSchema_AxdSalesOrder to no avail. 我试图使用GenerateXSDSchema_AxdSalesOrder重新生成架构,但无济于事。

Is there a way for me to clear the schema and regenerate again? 我有办法清除架构并重新生成吗?

Thank you. 谢谢。

I took out the Address datasource on the query and updated the service. 我在查询中取出了地址数据源,并更新了服务。 That got rid of the problem and restored the service to a good state. 这样就解决了问题,并使服务恢复到良好状态。

Looking through the list of available services, I found DirAddress service. 通过查看可用服务列表,我发现了DirAddress服务。 That indicates to me that I cannot add address directly in SalesOrder service, but have to make a separate call to add the address. 这向我表明,我不能直接在SalesOrder服务中添加地址,而必须进行单独的调用以添加地址。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM