|
29.02.2012, 20:34 | #1 |
Участник
|
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 |
Участник
|
Is it possible to call AIF functions without creating and consuming the webservice???
|
|
01.03.2012, 05:46 | #4 |
Участник
|
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 |
Участник
|
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 |
Модератор
|
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 |
Участник
|
Цитата:
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 |
Участник
|
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 |
Участник
|
Maybe, create AifFileSystemSendMailAdapter extends AifFileSystemAdapter
And into AifFileSystemSendAdapter.sendMessage – send Email partner Цитата:
or configure “classes of the AIF to create” the XML Message required schema. or use BizTalk |
|
Теги |
aif |
|
|