Creating a web service wrapper
The web services that Dynamics AX creates seem to work best for programming interfaces, and sometimes programs have problems with the format of the web service call. InfoPath is one of these programs. So, we need to wrap the Dynamics AX service within a web service wrapper that InfoPath is able to use. This is not as complicated as it sounds though, and you can quickly do this with Visual Studio.
In this recipe, we will show how you can create a web service wrapper through Microsoft Visual Studio that we can use from within InfoPath.
Getting ready
In order to do this you need to have a copy of Visual Studio. We will be using Visual Studio 2010 in our example, but you should be able to create similar web service wrappers using earlier versions as well.
How to do it...
To create a web service wrapper, follow these steps:
From within Visual Studio, create a new web project and from the template library, select the ASP.NET Web Service Application template.
This will create...