[Notes] demo-The practice about how to using SAP Xi components to build up the mapping Bridg

Source: Internet
Author: User

Exercise 1

 

Integration Repository

    1. Namespaces have already been created for each user under the Software Component RKT casestudy.
    2. Create a new object of type External definition of category 'xsd 'calledFlightsAnd import the flights. XSD file.

 

 

    1. Create a new message interface calledFlightsin-Category 'inbound'-'asynchronous' and refer to the external definition created in the earlier step.

 

 

    1. Create a new data type calledBookingordersWith the following data structure

 

 

 

 

    1. Create a new message typeBookingordersReferring to the Data Type created in the earlier step (step 4)

 

 

 

 

    1. Create a new outbound message interfaceBookingordersoutReferring to the Message Type created in the earlier step (step 5)

 

 

 

    1. 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.

 

 

 

    1. Create a new interface mapping calledBookingorderstoflightsRelating the two message interfaces 'bookingordersout' and 'flightsin'

 

 

 

 

 

 

 

 

 

 

 

 

 

    1. Create a new context object calledAirlinecodeOf type XSD string. assign the same to the element airlineid in the message interface bookingordersout

 

 

 

    1. 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.

 

    1. 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.

 

    1. 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

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.