BizTalk - EDI & B2B - Biztalkusergroup.se

advertisement
4
• What is EDI with BizTalk?
• EDIFACT message structure
• Parties, Profiles & Agreements
• EDI Receive
• EDI Send
• EDI Send Batch
• Handing CONTRL messages
• What is EDI with Azure Service Bus?
TPM
BRE
3
RFID
ESB Toolkit
EDI/B2B
Process Engine
BAM
2
LOB Adapters
Accelerators
(SWIFT/HL7)
1
Messaging
Pub/Sub, Transformations, Adapters
6
•
EDI
• ANSI X12 or ASC X12
• Created 1979
• Numbered messages, e.g. 850 (Purchase Order), 810
(Invoice)
• Using “version” and “release”, e.g. Version 4 Release 1
(typed as: 004010)
SAMPLE MESSAGE:
ISA*00* *00* *08*9251750000 *08*1234567890 *030627*1304*U*00401*000001403*0*P*>~
GS*PO*8019721193*1234567890*20030627*1304*1403*X*004010~
ST*850*01403001~
BEG*00*SA*548177**20030627~
REF*AN*547794~
PER*BD*JOHN JONES*TE*5552225555~
…….
SE*30*01403001~
GE*1*1403~
IEA*1*000001403~
•
EDI
• EDIFACT
• Approved by United Nations 1986, based 1978
• ISO standard ISO-9735
• Named messages (6 letters), e.g. ORDERS, INVOIC
• Two releases yearly: D[YY].A and D[YY].B
•
E.g. D96.A (NB! S-releases exist)
SAMPLE MESSAGE:
UNA:+.? '
UNB+UNOA:3+ZYSTEMS:1+DATADIRECT:1+20051107:1159+6002'
UNH+SSDD1+ORDERS:D:03B:UN:EAN008'
BGM+220+BKOD99+9'
DTM+137:20051107:102'
NAD+BY+5412345000176::9'
NAD+SU+4012345000094::9'
CNT+2:4'
UNT+22+SSDD1'
UNZ+1+6002'
UNA:+.? '
UNB+UNOA:3+ZYSTEMS:1+DATADIRECT:1+20051107:1159+6002'
UNH+SSDD1+ORDERS:D:03B:UN:EAN008'
BGM+220+BKOD99+9'
DTM+137:20051107:102'
NAD+BY+5412345000176::9'
NAD+SU+4012345000094::9'
CNT+2:4'
UNT+22+SSDD1'
UNZ+1+6002'
SegmentTerminator
=‘
ElementSeparator
ComponentDataElementSeparator
=+
=:
11
UNB+UNOA:3+ZYSTEMS:1+DATADIRECT:1+20051107:1159+6002'
SegmentTerminator
ElementSeparator
ComponentDataElementSeparator
=‘
=+
=:
12
UNA Service String Advice
UNB Interchange Control Header
UNG Functional Group Header
UNH Message Header
UNT Message Trailer
UNE Functional Group Trailer
UNZ Interchange Control Trailer
UNA:
UNZ:
UNG:
UNB:
UNT:
UNH:
Specifies
The
special
is used
characters
to indicate
that
the
are
to
of
be
an used
interchange
to
interpret
and
the
to
check
remainder
interchange
the
message.
reference
and
function
of
this
segment
is related
to
actend
as
a header
identifying
and
a of
functional
group.
Identifies
an
interchange,
-the
parties
and
interchange
identifier.
Message
This segment
is thethe
Trailer
Message
segment
Header
of
segment
an
EDIFACT
of
an
document.
EDIFACT
Itdocument.
includes
the
Thespecifying
elements
UNHthe
segment
document
elements
reference
provide
and
number
of documents
thedocument.
interchange.
information
segments
about theinin
message
the
type, and
. the agency responsible for maintaining the publication of the
& time and the type of
Eg:
message type. This segment indicates the start of a document in anDate
interchange
Number
of Segments
messages
in the message
of preparation Interchange id
UNA:+.?
' follows.
document
that
Sender
Receiver
Interchange
id
Reference Number
Eg:
UNZ+3+37'
UNB+UNOB:1+5790000000555:14+5790000016662:14+111129:1130+37++++2++0'
UNT+97+109'Message type and version
Eg:
UNH+109+INVOIC:D:93A:UN:EAN007'
13
Party
Party
Profiles
Profiles
Internal/External, Certificates & General properties
Identifiers & Protocol settings
Agreement
Acknowledgements, Validation, Batching and more
BizTalk
UNH+100+ORDER:D:93A:UN:EAN007‘
…
UNH+100+ORDER:D:93A:UN:EAN007‘
…
UNH+100+ORDER:D:93A:UN:EAN007‘
…
Agreement?
Pipeline
EDI
Pipeline
XML
XML
XML
XML
XML
15
UNH+100+ORDER:D:93A:UN:EAN007‘
…
UNH+100+ORDER:D:93A:UN:EAN007‘
…
UNH+100+ORDER:D:93A:UN:EAN007‘
…
BizTalk
Agreement?
Pipeline
XML
XML
XML
EDI
Pipeline
EDI
XML
Pipeline
XML
16
BizTalk
UNH+100+INVOIC:D:93A:UN:EAN007‘
BGM+380:::DVA001V02+1018083+9‘
DTM+3:20111027:102‘
DTM+137:20111027:102‘
RFF+ON:18046697‘ ….
Agreement?
Pipeline
XML
Pipeline
XML
EDI
EDI
17
BizTalk
Batch Orchestration
Filter: customer == Contoso
Release: Group = 3
UNH+100+INVOIC:D:93A:UN:EAN007‘
…
UNH+100+INVOIC:D:93A:UN:EAN007‘
…
Agreement?
UNH+100+INVOIC:D:93A:UN:EAN007‘
…
Pipeline
XML
Pipeline
XML
EDI
EDI
Filter:
ReceivingParty = Contoso &
ToBeBatched = false
18
19
Bridge
Bridge
customerType == “VIP”
LOB Target
BizTalk
IIS
customerType == “Default”
Client
SapBinding
RelayBinding
20
Bridge
EDI
21
Bridge
EDI
22
Download