aif

Dynamics AX 2012 R3 - Record Creation through AIF web service

百般思念 提交于 2019-12-25 08:57:28
问题 I am having issues using an AIF web service to create a unique primary key in our contract module in Dynamics AX. Our contract PK's are in a format of 'CON-######', and the contractId is tied to a number sequence in AX. When I call the 'Create' service operation, I am passing a 0 for 'ContractId' and AX is not replacing that 0 with an actual contract Id from the number sequence. The AX service endpoint is configured as an enhanced port. Is there a setting that needs to be enabled on the AX

AX 2012 R3 CU8: System.ServiceModel.FaultException: An error occurred

ⅰ亾dé卋堺 提交于 2019-12-24 08:33:17
问题 I'm trying to update an existing sales order using AIF services. When I invoke the service operation, I get the following error message: System.ServiceModel.FaultException: An error occurred. Server stack trace: at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System

find out aif document service components

怎甘沉沦 提交于 2019-12-24 06:04:09
问题 I'm in an AX 2012 R2 environment. I've a custom document service in our environment. I can see it by opening the AIFService form in the AOT. There may be a better way of browsing all the available document services. I haven't found it yet. Anyway, how do I find out all the parts (query, document name, document class name) associated with this custom service, assuming the standard naming conventions haven't been followed? Thank you. 回答1: To know what document services are available, go to the

find out aif document service components

半世苍凉 提交于 2019-12-24 06:02:04
问题 I'm in an AX 2012 R2 environment. I've a custom document service in our environment. I can see it by opening the AIFService form in the AOT. There may be a better way of browsing all the available document services. I haven't found it yet. Anyway, how do I find out all the parts (query, document name, document class name) associated with this custom service, assuming the standard naming conventions haven't been followed? Thank you. 回答1: To know what document services are available, go to the

Using AIF webservices to connect to Microsoft Dynamics AX 2009

谁说胖子不能爱 提交于 2019-12-24 05:55:21
问题 I'm using AIF webservices to connect to Microsoft Dynamics AX 2009. Proxies are generated for the service in VS2010, but when I want to connect to the service using generate client class, it seems I am not authenticated in the system. I even tried adding a domain user/pass and use windows authentication, like this: var binding = new BasicHttpBinding(); binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Windows; binding.Security.Transport.ProxyCredentialType =

catching the warning message from aif web service

感情迁移 提交于 2019-12-23 10:16:33
问题 I have a aif service in ax 2012 . I pass information into it from .net applications. basically i'm posting to the general journal. But when there is an error, say bad information being passed in, it returns a general error usually "error validating record" . But the warning message displays the actual reason why it caused an error such as the bad data. Is there a way to catch and display the warning message. I tried exception::warning but it just goes right to the exception::error . catch

Can't catch exception inside AIF service

我与影子孤独终老i 提交于 2019-12-19 04:17:10
问题 I have created an AIF service in dynamics AX 2012, when I tested it by calling the entrypoint method from a job, it worked fine, but when it is deployed en the calls are comming from the soap UI, it crashes inside with an error: "Unhandled esception". While debugging I found out the unhandled exception is thrown inside my catch clause of my try catch statement. It gets inside the catch because the method I am calling inside the try clause thows an error. So does anyone know why I can catch

Ax 2012 aif catching warnings

ε祈祈猫儿з 提交于 2019-12-12 04:33:56
问题 I created an AIF web service in ax. I have a vb.net application that calls the aif web service to insert data into the general journal. Now when an error occurs i catch it in vb and it returns the error which is fine. What i want to do is also catch the warning messages. Usually what happens , is if a line is getting entered and its a wrong dimension, it returns a warning message and an error. but i only get the error. So the question is how can i either catch and retrieve the warning message

vb.Net code to use AX 2009 ReturnOrderInService web service

被刻印的时光 ゝ 提交于 2019-12-11 05:48:59
问题 Need to use the create method of the AX 2009 ReturnOrderInService web service in a vb.NET aspx page to create an RMA in AX. The code I've written below creates the RMA in AX, but doesn't show the line details in the AX RMA form, even though the records are in SalesTable and SalesLine. Is a record needed in InventTrans or is there a missing InventRefId value somewhere? Dim rmaClient As ReturnOrderInServiceClient = New ReturnOrderInServiceClient("WSHttpBinding_ReturnOrderInService1") Dim roi As

Updating a salesorder using AIF

只愿长相守 提交于 2019-12-08 13:12:57
问题 I'm running my head against the wall here trying to update a salesorder in C# through AIF (Dynamics AX webservices) I have the following code: /// <summary> /// Updates an order in AX /// </summary> /// <param name="order">Order to update</param> public void UpdateOrder(SalesOrder order) { try { var client = new write.SalesOrderServiceClient(); var callContext = new write.CallContext() { Company = "mcompany" }; var entityKeyList = new write.EntityKey[1]; var entityKey = new write.EntityKey();