AXForum  
Zurück   AXForum > Microsoft Dynamics AX > DAX: Программирование
All
Kennwort vergessen?
Registrieren Forum Rules Hilfe Benutzerliste Heutige Beiträge Suchen

 
 
Themen-Optionen Thema durchsuchen Ansicht
Alt 06.05.2015, 16:39   #1  
kpoxa ist offline
kpoxa
Участник
 
7 / 11 (1) +
Registriert seit: 09.11.2012
Ошибка в проекте AIF web services
Добрый день!

Ошибка на этапе выполнения в консольном проекте на C#. Веб-сервис родной аксаптовский InventOnhandDimService. Включен, обнаружен в IIS, ссылка скопирована, в проект добавлена успешно.

Code:
public void connect()
{
    cl= new InventOnhandDimServiceClient();
    cl.ClientCredentials.Windows.ClientCredential.Domain = @"xxx";
    cl.ClientCredentials.Windows.ClientCredential.UserName = @"xxx";
    cl.ClientCredentials.Windows.ClientCredential.Password = @"xxx";
}
public InventOnhandDimSvc.EntityKey[] findAllInvent()
{
    Console.WriteLine("Start");
    InventOnhandDimSvc.QueryCriteria qc = new InventOnhandDimSvc.QueryCriteria();
            
    InventOnhandDimSvc.EntityKey[] entityKey = { new InventOnhandDimSvc.EntityKey() };

    //findKeys service operation will return list of unique fields that meet query criteria
    entityKey = cl.findKeys(qc); //error!
    // smth else
}
Ошибки в IntelliTrace
Zitat:
+ Thrown: "The remote server returned an error: (500) Internal Server Error." (System.Net.WebException) Exception Message = "The remote server returned an error: (500) Internal Server Error.", Exception Type = "System.Net.WebException", Exception WinRT Data = null
+ Thrown: "'EndElement' 'AifFault' from namespace 'http://schemas.microsoft.com/dynamics/2008/01/documents/Fault' is not expected. Expecting element 'PropertyChanged'." (System.Runtime.Serialization.SerializationException) Exception Message = "'EndElement' 'AifFault' from namespace 'http://schemas.microsoft.com/dynamics/2008/01/documents/Fault' is not expected. Expecting element 'PropertyChanged'.", Exception Type = "System.Runtime.Serialization.SerializationException", Exception WinRT Data = null
+ Caught: "Не удалось выполнить запрос. Подробности см. в журнале исключений." (System.ServiceModel.FaultException) Exception Message = "Не удалось выполнить запрос. Подробности см. в журнале исключений.", Exception Type = "System.ServiceModel.FaultException", Exception WinRT Data = null
Помогите, пожалуйста, разобраться, в чем конкретно проблема?

----
IIS 7.5, Dynamics Ax 2009
Stichworte
aif, webservice

 

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
daxdilip: How to: Configure Dynamics AX AIF Services to listen for SSL Requests (https) Blog bot DAX Blogs 0 23.01.2011 10:12
daxdilip: Fiddler - Good tool to check EP web page, custom websites, performance and AIF Web services Blog bot DAX Blogs 0 04.12.2010 14:11
emeadaxsupport: What changes are required if we change the Business Connector Proxy used by AX 2009 Generated AIF Web services Blog bot DAX Blogs 0 29.03.2010 15:05
Channel9: Microsoft Dynamics AX 2009 AIF Web Services Screencast Blog bot DAX Blogs 0 17.06.2009 17:05
axStart: InfoPath with default AIF web services Blog bot DAX Blogs 1 15.05.2008 02:27

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Gehe zu

Рейтинг@Mail.ru
Alle Zeitangaben in WEZ +3. Es ist jetzt 09:08 Uhr.
Powered by vBulletin® Version 3.8.5 (Deutsch)
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.