Exercise 1
Integration Repository
- Namespaces have already been created for each user under the Software Component RKT casestudy.
- Create a new object of type External definition of category 'xsd 'calledFlightsAnd import the flights. XSD file.
- Create a new message interface calledFlightsin-Category 'inbound'-'asynchronous' and refer to the external definition created in the earlier step.
- Create a new data type calledBookingordersWith the following data structure
- Create a new message typeBookingordersReferring to the Data Type created in the earlier step (step 4)
- Create a new outbound message interfaceBookingordersoutReferring to the Message Type created in the earlier step (step 5)
- Create a new object of type message mapping calledBookingorderstoflights_reqUse the mapping as defined below
Define the User-Defined Function copytoline as shown below.
Complete the mapping by assigning Source Field to target field as explained by policuctor.
- Create a new interface mapping calledBookingorderstoflightsRelating the two message interfaces 'bookingordersout' and 'flightsin'
- Create a new context object calledAirlinecodeOf type XSD string. assign the same to the element airlineid in the message interface bookingordersout
- Create a new business scenario calledFlightbookingWith two application components called 'travelagency 'and 'reservationsystem' referring to the product version 'Xi RKT workshop 100 '.
Add Application Component reservationsystem in the similar way.
- Create two actions calledBookingorders_outReferring to the message interface 'bookingordersout' andFlights_inReferring to the message interface 'flightsin' created earlier
Add the action flights_in in the similar way.
- Include these actions into the respective application components and connect them as an asynchronous communication. Refer to the mapping program that was created in the earlier step.
Integration directory
1)Create a new business scenarioFlightbooking ##. Expand your node which contains the business scenario.
2)Select the 'objects' tab and select your business system'Travel agencycs 'and 'reservationsystemcs'Right click and 'add to scenario 'flightbooking ##
3)Go to your business scenario in edit mode-choose the icon 'business scenario configurator'-assign the two business services to the roles-configure connections-and generate the same (not in simulation mode) (use the standard changelist and not the option to create a new changelist)
4)Create a new communication channel calledFileout ##Under the business service reservationsystem. this shoshould refer to the adapter type 'Xi '(because you are sending your message to the j2se adapter engine), Message Protocol-xi 3.0, for the target system give the IP address of the system where you installed the file adapter I. e. your local IP address, and the port number from the adapter configuration screen as well as the name of the service from the adapter Configuration
5)In the generated generator er determination specify add this channel as the generator er agreement. Right click and choose the option 'new specific 'and add the created communication channel.
6)In the specified er determination specify your conditions-using the context object created in the repository earlier. (EX. airlinecode = aa)
7)Save and activate all your change. Finally, check and make sure you have the following configuration as shown in the screens below:
Executing the scenario
1)Open the file client_httpadaptor.html
2)Specify the sever Host Name of the Integration Server
3)Specify the http port of the Integration Server-/nsmicm
4)Specify the sender service name as 'travelagencycs'
5)Specify the sender interface name as 'bookingordersout'
6)Specify the sender namespace
7)Delete the optional parameters
8)Upload File 'bookingorders. xml' after having made sure that it contains the right namespace.
9)Click on the 'send' button