简体   繁体   English

C#Dynamics AX实现contactinfoview字段始终为null

[英]C# Dynamics AX implementation contactinfoview fields always null

I'm currently trying to integrate Dynamics AX (2012) data into my ASP.NET MVC project by calling the SOAP webservices that AX exposes. 我目前正在尝试通过调用AX公开的SOAP Web服务将Dynamics AX(2012)数据集成到我的ASP.NET MVC项目中。

When calling the ContactPersonService I get all the fields from each ContactPerson and the Person entity which works fine. 当调用ContactPersonService时,我从每个ContactPersonPerson实体获取所有字段,它们工作正常。 However, when I access the ContactInfoView (and PostalAddressView for the matter) entities, all of it's fields are null (and bool fields are False ) even though I have set the contact information on the person in AX. 但是,当我访问ContactInfoView (以及该问题的PostalAddressView )实体时,即使我在AX中设置了与该人的联系信息,其所有字段均为空(布尔字段为False )。

What is strange is that if I use soapUI to make the exact same call to the service, I get all the fields with data as it should. 奇怪的是,如果我使用soapUI对该服务进行完全相同的调用,则会获得所有包含数据的字段。

There are no exceptions thrown in my MVC project that I'm aware of. 我知道我的MVC项目中没有抛出任何异常。

Does anyone know why these entities are not filled in with data? 有谁知道为什么这些实体没有填充数据? :-) :-)

Thanks in advance! 提前致谢!

一个简单的AX服务器重新启动立即解决了问题:-)

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

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