180 likes | 303 Vues
AUCKLAND CODE CAMP 2008 . Date: Sunday, 31 August 2008 Time: 9:00a.m.— 6:00p.m. Venue: Crowne Plaza Hotel Thinking in WPF Silverlight for developers WCF ASP.NET MVC Real world TDD – Rob Ensor Lightning Talks Free!. Register Now: http://codecamp.net.nz .
E N D
AUCKLAND CODE CAMP 2008 Date: Sunday, 31 August 2008 Time: 9:00a.m.— 6:00p.m. Venue: Crowne Plaza Hotel Thinking in WPF Silverlightfor developers WCF ASP.NET MVC Real world TDD – Rob Ensor Lightning Talks Free! Register Now: http://codecamp.net.nz
AS2 and EDI Support inBizTalk R2 David Hall
What are AS2 and EDI? AS2 • Applicability Statement 2 • Introduced in RFC 4130 • Business data interchange using HTTP • Specifies a means of transporting data securely • Typically used by large international companies
What are AS2 and EDI? EDI • Electronic Data Interchange • Set of rules to structure data • Collection of standard messages • UN/EDIFACT • ANSI X12
AS2 – More Detail 12 permutations of use: Signed data, unsigned receipt Signed data, signed receipt Encrypted, signed, no receipt Encrypted, signed, unsigned receipt Encrypted, signed, signed receipt • Un-encrypted, no receipt • Un-encrypted, unsigned receipt • Un-encrypted, signed receipt • Encrypted, no receipt • Encrypted, unsigned receipt • Encrypted, signed receipt • Signed data, no receipt
AS2 – More Detail • Final option of encrypted and signed data with a signed receipt offers “The Secure Transmission Loop” and is the most typical AS2 configuration • BizTalk supports all usages • Receipts may be synchronous or asynchronous
AS2 – More Detail • Party identification using HTTP headers: • AS2-From: < AS2-name > • AS2-To: < AS2-name > • Message Disposition Notification (MDN) • Is an AS2 receipt • Used for non-repudiation • May be synchronous or asynchronous
AS2 – More Detail • May be over HTTP or HTTPS • Drummond Certification • AS2 transport usually but not always involves EDI data
EDI – More Detail • Comparison of EDIFACT against X12 • Both formats contain control totals • Both formats implement interchange control numbers • Both formats define schemas for message batches • Generally difficult to map from and to
EDI – More Detail • Message usage is generally by convention and agreement • Include comprehensive range of business documents such as Invoices, Orders and Confirmations
BizTalk’s AS2 Support • AS2 support is not an adaptor • Implemented as custom pipeline components • Receive • AS2 disassembler • AS2 decoder • Send • AS2 encoder
BizTalk’s AS2 Support • Out of the box custom pipelines • AS2EdiReceive • AS2Receive • AS2EdiSend • AS2Send • Allows party specific AS2 settings • Automatically generates MDNs
BizTalk’s AS2 Support • Relies upon BAM to track document receipts • Can be used across any transport (though will usually be HTTP)
BizTalk’s EDI Support • Collection of schemas • \Program Files\Microsoft BizTalk Server 2006\XSD_Schema\EDI\ • Includes • Edifact • X12 • Allows party specific EDI settings • Manages EDI control numbers • Can automatically generate acknowledgement messages
Demo AS2 Processing EDI Processing Based on SDK tutorial http://msdn.microsoft.com/en-us/library/bb245935.aspx
Tips and Gotchas • Binding files contain party information including interchange ids! • Certificate rights can be set using winhttpcertcfg.exe • User for AS2 application pool needs to be member of local IIS_WPG group • OpenAS2 is good for testing
Tips and Gotchas • Always possible to use BizTalk as an AS2 sender to itself • 92Mb size limit for AS2 Decoder • AS2 not supported on 64-bit computers
Questions? email: admin@acsug.co.nz