+ All Categories
Home > Documents > EX7 - RFC to WebService

EX7 - RFC to WebService

Date post: 26-Feb-2018
Category:
Upload: hema
View: 227 times
Download: 0 times
Share this document with a friend

of 14

Transcript
  • 7/25/2019 EX7 - RFC to WebService

    1/14

    Exercise 7: RFC to WebService to Retrieve ZipCode data

    Overview

    The purpose of this exercise is to implement a synchronous execution of a webService usingRFC from a R/3 system via XI !s a result of this exercise" you will become familiar with the basic

    se#uence of steps to implement a simple interface with XI along with RFC sen$er a$apter an$S%!& receiver a$apter This exercise will also intro$uce import of 'S() $ocuments intointegration repository

    Prerequisites

    *asic +nowle$ge of XI architecture

    Description

    ! 'ebService that is available at the following site will be invo+e$ from R/3 system using anRFC The input parameter for this webService is a ,ipCo$e-.S an$ it returns informationregar$ing this ,ipCo$e li+e city" county" state" longitu$e an$ latitu$e" etc If an incorrect ,ipCo$eis entere$ an error message is returne$

    X! "endor DataZipCode

    ZipCode#n$o

    S%PR&' ()*C

    #nternet%pp+ication

    SO%PRFC

  • 7/25/2019 EX7 - RFC to WebService

    2/14

    Exercise steps

    0&lease note" as a general rule" all $evelopment an$ configuration ob1ects in XI are C!S2S24SITI52

    Step 6 7 S)(

    In this exercise" we will $efine a software component version which will house all our

    $evelopment ob1ects This is $one in the system lan$scape $irectory -S)( 'e will create a newSoftware Component version 'e will also $efine a technical system an$ business system forthe webService service

    In this exercise there is no nee$ to $efine any software

    66 'e will be using the &ro$uct as $efine$ before

    666 )og in to the Integration Server client via S!&8ui an$ change your passwor$

    669 From the main menu select :Start Integration *uil$er; -transaction SX

  • 7/25/2019 EX7 - RFC to WebService

    3/14

    ?ou can go bac+ to the main page by clic+ing :bac+ to Software Catalog;

    66@ 'hen you are finishe$ browsing" from the software catalog screen select :SoftwareComponent; from the $rop$own list

    66A Select :4ew Component; This will ta+e you to the wi,ar$ for creating a new SoftwareComponent -S'C

    66B The pro$uct we will use is calle$ :XI RI8 .S 'or+shop; of ven$or :S!& XI RI8 .S;Select this pro$uct from the $rop$own list Fill out the remaining fiel$s as specifie$below Then clic+ :Create; 4ote after the S'C is create$" you will see a confirmationmessage in a green box at the top of the screen The fiel$s of the wi,ar$ will be reset inor$er to allow you to create another S'C if necessary Clic+ :Cancel; to get out of thewi,ar$

    5en$or S!& XI RI8 .S4ame XI RI8 .S wor+shop XX -replace XX with your group number5ersion 6D

    69 Create technical system

    696 8o to the S)( homepage -clic+ :home; in the upper left corner

    699 Choose :Technical lan$scape; In the technical system browser" select technical systemtype :thir$party;

    693 Select :4ew Technical SystemE; This will ta+e you to the wi,ar$

    69> For the type of technical system" select :Thir$&arty; Clic+ :4ext;

  • 7/25/2019 EX7 - RFC to WebService

    4/14

    69@ System 4ame XI'S=legacy=TS=XX -replace XX with your group numberGost 4ame Hyour host nameClic+ :4ext;

    69A From the list of available pro$ucts" select :XI RI8 .S 'or+shop" 6D; then clic+ :!$$;The pro$uct will appear in the :Selecte$ &ro$ucts; list 5erify that the softwarecomponent you create$ in the previous step is present an$ is chec+e$ Clic+ :Finish;

    69B 5erify in the technical system browser that the newly create$ ob1ect appears in the listun$er TS type :thir$party;

    63 Create *usiness System

    636 In the S)( homepage" select :*usiness )an$scape;

    639 Select :4ew business system; This will ta+e you to the wi,ar$

    633 For the business system name" enter :XI'S=legacy=*S=XX -replace XX with your groupnumber Clic+ :4ext;

    63> !s technical system type" select :thir$party;

  • 7/25/2019 EX7 - RFC to WebService

    5/14

    63@ Select your technical system

    63A !s logical system name" enter :'SXXJ; -replace XX with your group number This willbe the :!)2 name; of the business system

    63B In the next screen" verify that pro$uct an$ software component are correct Create un$er external $efinitions using the 'S() provi$e$ 'S() $escribes awebservice with the import of which will automatically $efine the re#uest an$ response$ata $efinitions

    9>6 Rightclic+ on :2xternal (efinitions; an$ select :4ew; 'e will create a $efinition calle$:,ipCo$e;

  • 7/25/2019 EX7 - RFC to WebService

    6/14

  • 7/25/2019 EX7 - RFC to WebService

    7/14

    9A3 %n the left si$e of the mapping choose the RFC M *egin mapping an$ this being a re#uest si$e of mapping it only has one fiel$ to mapSave the ob1ect after mapping is $one

    9A@ Creat another message map with the name :,ipCo$e=Resp; Since we are not changingthe output from the webService call" the mapping is pretty straight forwar$ The left si$eof the map will be MipCo$esSoap%ut an$ the right si$e of the map will beM

  • 7/25/2019 EX7 - RFC to WebService

    8/14

    9AA Since some the names an$ structures are same" we can ma+e use of a mapping featurewherein" the fiel$s with same names an$ similar structure will get mappe$ automatically

    To $o this" highlight the top no$es as shown above an$ clic+ on icon at the top of thescreen !ll the fiel$ which have the same name will get automatically mappe$

  • 7/25/2019 EX7 - RFC to WebService

    9/14

    Save the ob1ect This conclu$es the steps re#uire$ in Integration *uil$er (esign

    9B> Finally" in the lefthan$ frame" go to your change list an$ activate it This conclu$es thesteps re#uire$ in Integration *uil$er (esign

    Step 3 7 (irectory

    36 From the Integration *uil$er home page" select :Integration (irectory;39 'e will be creating a new Communication Channel un$er

  • 7/25/2019 EX7 - RFC to WebService

    10/14

    3@ !$$ an inboun$ interface in the receiver tab .se F> to pull up values an$ select:,ipCo$e=in; inboun$ interface from your software component version an$ the rightnamespace Save the ob1ect

    3A 4ow create a communication channel The communication channel is essentially thephysical connectivity to/from the application system This is where the a$apterconfiguration ta+es place In this case we nee$ to configure the S%!& a$apter to poll fornew files an$ sen$ them to the Integration Server

    3A6 2xpan$ your service an$ rightclic+ on :communication channel;4ew 4ame your

    communication channel :S%!&=Receiver;

    3A9 For the a$apter type" use the F> help an$ select :S%!&;3A3 Specify :Receiver; since the a$apter will be receiving the messages from the IS3A> Specify the following parameters

    Transport &rotocol GTT&

  • 7/25/2019 EX7 - RFC to WebService

    11/14

    3K The next step is to create a :Receiver !greement; ob1ect This $efines a bin$ing betweenthe communication channel you 1ust create$" an$ the inboun$ interface

    3K6 In the left frame" rightclic+ on :Receiver !greement;4ew

    3K9 Specify the following parameters Sen$er Service

  • 7/25/2019 EX7 - RFC to WebService

    12/14

    36D In the following steps" you will create an :Interface (etermination; ob1ect 4ow that wehave $efine$ a receiver for the message" we nee$ to assign an inboun$ interface" an$ aninterface mapping -if necessary

    36D6 In the area :Configuration %verview for Receiver (etermination; at the bottom of yourscreen" hit refresh

    36D9 In the column :Receiver -&artner/Service; rightclic+ an$ select :4ew Specific;" in or$erto create a new interface $etermination ob1ect

    36D3 ?ou are now in the screen :2$it Interface (etermination; In the section :Configure$inboun$ interfaces; select the following using F> help 'hen you are $one" please savethe Interface (etermination ob1ect Inboun$ interface ,ipCo$e=in Interface mapping ,ipCo$e=Re#Resp

    366 Finally you will create a :Receiver !greement; ob1ect This will allow you to assign areceiver communication channel to the receiver service/interface you have chosen

    3666 8o bac+ to the main screen for your receiver $etermination In the area :Configuration%verview for Receiver (etermination; at the bottom of the screen" hit :Refresh;

    3669 In the column :Receiver (etermination -Communication Channel; right clic+ an$ select:4ew Specific;

    3663 In the screen :2$it Receiver !greement;" for the fiel$ :Receiver Communication Channel;use the input help -F>" an$ select the communication channel :S%!&=Receiver; Savethe Receiver !greement

    369 8o bac+ to the main receiver $etermination screen an$ refresh ?our configuration isnow complete an$ activate your ob1ects

    Step > 7 Testing

    >6 Testing is very straight forwar$ for this exercise 8o to S23B transaction in

  • 7/25/2019 EX7 - RFC to WebService

    13/14

  • 7/25/2019 EX7 - RFC to WebService

    14/14

    %ppendix: na,in- conventions and ter,ino+o-.

    2xercise 6

    %rea Ob/) t.pe Ob/ect na,e Description

    S)( TS XI'S=legacy=TS=XXDD3DJ Technical system for legacy app

    *S XI'S=legacy=*S=XXDD3DJ *usiness system for legacy app)ogSys XI'S=XX )ogical system name for *S

    S'C XI RI8 .S wor+shop DD3DJ In$ivi$ual S'C for exercises

    Int Rep 4S urnxiwor+shopgroupXXDD3DJlegacy 4amespace for legacy ob1ects

    (ata type 5en$or=(T 5en$or $ata type

    !$$ress=(T 4este$ (T

    service XI'S=legacy=*S=XXDD3DJ (erive$ from *S -no party

    Sen$ cc File=sen$er Sen$er comm channel

    Rec cc XI'S=I(oc=receiver Receiver cc use$ for wor+shopR/3 I(oc CR2

    )ogSys 'SXXDD3DJ Same as above

    File sys fol$er OOhostnameOwor+shopOgroupXXDD3DJ (Owor+shopOgroupXXDD3DJ

    http://smb//nspad271/groupXX%5B00..30http://smb//nspad271/groupXX%5B00..30http://smb//nspad271/groupXX%5B00..30

Recommended