Sei sulla pagina 1di 10

FILE TO FILE XSLT MAPPING.

Author: Srinath Ravi


Design Steps in Integration builer
Create source and target Data Type for your scenario. Follow these screen shots.


Source Data type

Target data Type
Creation of Message type for both the Data Types


Creation of Message Interface

"
Step ow go to! Message ob"ects and using I#ported $rchives! i#port your %slt
Mapping. It should be in .&ip ' ."ar file.

Author: Srinath Ravi((((((((((((((((((((((((((((((((((((File to file)%slt*
scenario page+ , - .
XSLT Mapping
!"#$l %ersion&'(.)' "*
!#sl:trans+or$ %ersion&,(.), #$lns:#sl&,http:--...../.org-(000-XSL-Trans+or$,
#$lns:sap&,http:--....sap.1o$-sap#sl, #$lns:aash&,urn:Aash:#sltMapping,
#$lns:ns)&,urn:Aash:#sltMapping,*
!#sl:te$plate $at1h&,-,*
!aash:MT2Stuent23esult*
!Data*
!Na$e*
!#sl:%alue4o+
sele1t&,1on1at5ns):MT2Stuent-Data-FNa$e6ns):MT2Stuent-Data-LNa$e7,-*
!-Na$e*
!Mar8s*
!Total2Mar8s*
!#sl:%alue4o+ sele1t&,5ns):MT2Stuent-Data-Mar8s-Maths79
5ns):MT2Stuent-Data-Mar8s-S1ien1e7 ,-*
!-Total2Mar8s*
!-Mar8s*
!-Data*
!-aash:MT2Stuent23esult*
!-#sl:te$plate*
!-#sl:trans+or$*
ow! create Interface #apping
ow activate the Change /ist and you are done with design part.
To test your 0S/T #apping! go to Test tab in Display Interface #apping and provide data
to see the desired result. See below+


Clic1 on e%ecute to run this! inside baloon! chec1 the result shown.

:on+iguration steps

ow create a co##unication channel for your 2usiness syste# for receiver and sender.
Sender channel

Receiver channel

Create sender agree#ent.
Create receiver agree#ent.

Create receiver deter#ination and also with the help of this step you will create Interface
deter#ination.
Interface Deter#ination
ow we are done with configuration part. $nd activate these to run your scenario.
Input XML
!"#$l %ersion&,(.), en1oing&,;TF4<,"*
!ns):MT2Stuent #$lns:ns)&,urn:Aash:#sltMapping,*
!Data*
!FNa$e*Tho$as!-FNa$e*
!LNa$e*=arghese!-LNa$e*
!Mar8s*
!Maths*0>!-Maths*
!S1ien1e*0/!-S1ien1e*
!-Mar8s*
!-Data*
!-ns):MT2Stuent*
3ut your input file at target location that you have provided in Co##unication channel.
ow go to s%#b(#oni and loo1 for your #essage.

Output XML
!"#$l %ersion&,(.), en1oing&,ut+4<, "*
!aash:MT2Stuent23esult #$lns:aash&,urn+$ash+%sltMapping,*
!Data*
!Na$e*Tho#as 4arghese!-Na$e*
!Mar8s* !Total2Mar8s*,56!-Total2Mar8s* !-Mar8s*
!-Data*
!-aash:MT2Stuent23esult*

Potrebbero piacerti anche