A. Firstly, Create a Service Group in AX 2012 (Go to AOT > Service Groups > Create SalesOrderServiceGroup1 - in this case.)
B. Next, drag and drop the SalesSalesOrderService from AOT > Services > to the newly created Service Group in Step A
C. Deploy the SalesOrderServiceGroup1
D. Now, the Service should list in System Administration > Setup > Services and Application Integration Framework > Inbound Ports
E. You should be able to browse the wsdl now.
F. Now Open Visual Studio, File > New Project Create a Windows Application (Windows Form or Console) and Add the above Service in Service References node.
G. Below is a sample sales order input form (I just created a simple UI as the whole purpose here is to show how to consume Dynamics AX 2012 Services from VS.Net), so this UI takes customer, item and qty and creates an order in AX.
H. Below is the sales order view from AX
Below is the .Net code which consumes the service. It's pretty much the same which we have been using with previous versions of Dynamics AX alongwith VS.Net i.e. It constructs the Sales Order Document and Entity Objects, then populates it, finally calling the create method.
Thanks to Murray for sharing this presentation which helped me with my demo.