AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX: За рубежом > DAX in English
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 29.02.2012, 20:34   #1  
ideveloper is offline
ideveloper
Участник
 
34 / 11 (1) +
Регистрация: 11.05.2011
Create XML-Export with AIF
Hi everybody.

We need to create a XML-Export from the invoice table which have a custom XSD-schema.
Could we achieve it using the AIF Objects which we create based on the query running the AIF-Wizard (without the webservices)
If yes, how can we do it?

(You can anser in russian too)
Старый 29.02.2012, 21:10   #3  
ideveloper is offline
ideveloper
Участник
 
34 / 11 (1) +
Регистрация: 11.05.2011
Is it possible to call AIF functions without creating and consuming the webservice???
Старый 01.03.2012, 05:46   #4  
kaw is offline
kaw
Участник
 
122 / 35 (2) +++
Регистрация: 23.03.2004
Адрес: Новосибирск
See form AifAdapter
AIF can export: AifWebServiceAdapter / AifMSMQAdapter / AifBizTalkAdapter / AifFileSystemAdapter
Use last

see also
Document Schema Rules
Generate a Document Schema
Старый 01.03.2012, 14:41   #5  
ideveloper is offline
ideveloper
Участник
 
34 / 11 (1) +
Регистрация: 11.05.2011
After a couple of hours I found the following link with a detailed explanation of calling AIF-Functions from a button:

http://www.dynamicscare.com/blog/ind...d-aif-document

I think using the AifFileSystemAdapter and customizing outbound pipelines should be the solution.

Is it possible to get the filename of the XML-Message which was saved by the AifFileSystemAdapter?
За это сообщение автора поблагодарили: S.Kuskov (1).
Старый 01.03.2012, 15:26   #6  
Vadik is offline
Vadik
Модератор
Аватар для Vadik
Лучший по профессии 2017
Лучший по профессии 2015
 
3,631 / 1849 (69) ++++++++
Регистрация: 18.11.2002
Адрес: гражданин Москвы
Provided that AIF is set up, all you need to do to push sales invoice while posting it is customizing SalesFormLetter_Invoice.updateNow() (see also printJournal() method):
X++:
boolean updateNow()
{
    ///

    this.postJournal();

    // ->
    if (custInvoiceJour.canXMLBeSent())
    {
        custInvoiceJour.sendElectronically(XMLDocPurpose::Original, AifSendMode::Async);
    }
    // <-

    #if.never//    #speedtest
    if (speedExecute_Sales)
        speedExecute_Sales.timing(SpeedSalesTiming::InvoiceEnd,'');
    #endif

    return true;
}
__________________
-ТСЯ или -ТЬСЯ ?
Старый 02.03.2012, 12:03   #7  
kaw is offline
kaw
Участник
 
122 / 35 (2) +++
Регистрация: 23.03.2004
Адрес: Новосибирск
Цитата:
Сообщение от ideveloper Посмотреть сообщение
Is it possible to get the filename of the XML-Message which was saved by the AifFileSystemAdapter?
When you send document, add record to table AifOutboundProcessingQueue.

The next stage of the, start
new AifOutboundProcessingService().run();
new AifGatewaySendService().run();

and the system generates filename, see:
AifFileSystemSendAdapter. getNewOutFileName
AifFileSystemSendAdapter. sendMessage

How you want to use filename ?
Старый 02.03.2012, 13:00   #8  
ideveloper is offline
ideveloper
Участник
 
34 / 11 (1) +
Регистрация: 11.05.2011
We have a job to send a XML file to the customer per email.
Therefor we must map the data to a predefined XML schema.
The idea was to use the queries and classes of the AIF to create the standard XML Message and use the transformation abilities (after the answers here) of the outbound pipeline to map the XML mesasge into another schema.

The another idea is using the job to gererate the XML file through the AIF BizTalk (or File) Adapther which will be send the XML message to BizTalk.

Последний раз редактировалось ideveloper; 02.03.2012 в 13:06.
Старый 05.03.2012, 10:18   #9  
kaw is offline
kaw
Участник
 
122 / 35 (2) +++
Регистрация: 23.03.2004
Адрес: Новосибирск
Цитата:
Сообщение от ideveloper Посмотреть сообщение
We have a job to send a XML file to the customer per email.
Maybe, create AifFileSystemSendMailAdapter extends AifFileSystemAdapter
And into AifFileSystemSendAdapter.sendMessage – send Email partner

Цитата:
Сообщение от ideveloper Посмотреть сообщение
... and use the transformation abilities (after the answers here) of the outbound pipeline to map the XML mesasge into another schema.
I don't like this idea.
or configure “classes of the AIF to create” the XML Message required schema.
or use BizTalk
Теги
aif

 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
emeadaxsupport: Cannot create Enterprise portal site with SharePoint 2010. Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml' Blog bot DAX Blogs 0 15.08.2011 23:11
emeadaxsupport: Error when trying to register the AIF services - "Cannot create a record in Data Policy Schema Information (AifDocumentField)" Blog bot DAX Blogs 0 29.03.2010 21:05
Dynamics AX FAQ: How to import and export data in XML format using AIF framework? Blog bot DAX Blogs 0 19.10.2008 18:05
axStart: How to use XSLT in AIF and what’s wrong with empty xml Nodes. Blog bot DAX Blogs 0 27.04.2008 18:07
Dynamics AX FAQ: How to import and export data in XML format using AIF framework? Blog bot DAX Blogs 0 25.03.2008 03:58

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 16:16.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.