Dynamics Ax AIF Web Service reference credential problem

 

At a customer’s site, I was creating some extra AIF wcf services so that some extra tables would be externally available. For creating the WCF service, I was using the service wizard in Ax 2009 which is described here : http://msdn.microsoft.com/en-us/library/aa609947.aspx

The newly created service was deployed to the Internet Information Server but when the .Net application tried to reference the webservice, the following happened : The service was prompting for credentials and did not work properly.

WCF Service Reference Credential Prompt

After a certain amount of searching time and nearly giving up,  I was browsing the configuration file of the web services directory and discovered that the BindingMethod of the deployed services was configured to use basicHttpBinding.

Endpoint binding method basicHttpBinding

This was the actual problem because the wsdl looked like this : (negotiate authentication tags were added, …)

 

Wrong WSDL with negotiateAuthentication tag

Changing the binding method to wsHttpBinding creates the service without the negotiateAuthentication and takes care of our annoying credential problem.

Endpoint binding method wsHttpBinding

Warning: count(): Parameter must be an array or an object that implements Countable in /customers/5/2/1/ksaelen.be/httpd.www/wordpresses/dynamicsaxblog/wp-includes/class-wp-comment-query.php on line 399

4 thoughts on “Dynamics Ax AIF Web Service reference credential problem

  1. Pingback: Art Of Creation – Dynamics AX Blog » Recap: TechDays 2010 Antwerp – Day two

  2. hi,
    i am successfully integrate the AIf Web service with .net but i can’t integrate with PHP. so please provide your guidance how to integrate the AIF web service in php. i do that but it is give “Fatal error: Uncaught SoapFault exception: [HTTP] Unauthorized” .

  3. Hi, I can’t integrate with .net. Show the message “FileNotFoundException”: Could not load file or assembly ‘Microsoft.Dynamics.Integration.WebService.Process’. What could it be?

  4. Hi,

    thank you for your article.
    I have browsed the configuration file of the web services directory but the BindingMethod of the deployed services was configured to use wsHttpBinding.

    Can I replace ClientCredentilTYpe = “Windows” by ClientCredentilTYpe = “Non” for an Anonymous connection?

    Thank you

    Best Regards
    William

Leave a Comment Yourself

Your email address will not be published. Required fields are marked *