How to consume Microsoft Dynamics AX 2009 AIF web service from Java App

5k Views Asked by At

I have received a MS dynamics AX 2009 AIF web service WSDL url from the client and trying to consume it from a Java client. When i connect to IIS server (web service url) and pass the SOAP request with NTLM authentication i get the error message as mention below

     401 - Unauthorized: Access is denied due to invalid credentials.
You do not have permission to view this directory or page using the credentials that you supplied.

can anybody please help & let me know what it the approach one should follow?

In java i am using apache DefaultHttpClient class to establish the connection with IIS server using JCIFS library for NTLM V2 authentication. I am trying to consume the web service without using the MS dynamics AX .Net Business connector in java.

1

There are 1 best solutions below

1
On

Check these two questions:

But maybe your problem is a firewall issue, the address where the service lives is not public.