wsdl file in sap
TRANSCRIPT
8/11/2019 Wsdl File in Sap
http://slidepdf.com/reader/full/wsdl-file-in-sap 1/11
WSDL file in SAP
Normally when a third party calls SAP, it does an RFC function module or BAPI call
through Middleware !hey can also do direct we" ser#ice calls thus "y$passingMiddleware In such we" ser#ice calls, %S&' files come into picture %S&' is a file
which is recogni(ed "y the third party as well as SAP
!echnically spea)ing this means there must "e a SAP %e" Ser#ice and then the third party has to communicate with this %e" Ser#ice in some language *say N+!
WSDL – What is it?
&efinition - %S&' is the a""re#iation of %e" Ser#ice &efinition 'anguage %S&' is a
document written in .M' !he document descri"es a %e" ser#ice It specifies the
operations *or methods the ser#ice e/poses
Some Scenario-+#ery time anyone from the third party *say 0nline Shopping does some e/penditure or
purchase, they need to call SAP for #alidation of some fields li)e, company code, costcenter, 12' account etc and also to chec) for "udget a#aila"ility !raditionally, that third
party*0nline Shopping communicates with Middleware and Middleware in turn calls the
RFC function module to do the #alidations in SAP RFC function module in SAP returnsrele#ant message to Middleware and Middleware communicates the same to the party
*0nline Shopping
!he a"o#e scenario wor)s well and good Suppose, in future, Middleware was to shut
down and that party *0nline Shopping would interact directly with SAP In such case,
that party *0nline Shopping would not "e a"le to call the RFC function module directly,thus, concept of %S&' file come into picture
Solution:
Con#ert RFC 2 BAPI to %S&' and use it instead of RFC
!o create a %e" Ser#ice in SAP we do not need to write any ABAP or 3a#a code %e do
not e#en need to ha#e any prior )nowledge of any other programming language
For this we 4ust need to run the %e" Ser#ice Creation %i(ard %e can select a BAPI or a
Remote Function module in transaction S+56 or S+78 and start the %e" Ser#ice Creation
%i(ard for it !he wi(ard directs step "y step and creates a %S&' file for the RFC or theBAPI
Please note- in order to create %S&' file, the function module must "e an RFC functionmodule %e cannot create %S&' for normal function modules
Updated WSDL Creation Steps in SAP -
8/11/2019 Wsdl File in Sap
http://slidepdf.com/reader/full/wsdl-file-in-sap 2/11
1o to transaction S+78 0pen the function group and the RFC Function module for
which you want to create the %S&' For demo 9!+S!%S&' RFC FM is considered
Right clic) on the FM$:Create$:%e" Ser#ice
I ha#e selected the No Authentication re;uired Profile <ou can choose any other as per
your re;uirement from the drop down list
8/11/2019 Wsdl File in Sap
http://slidepdf.com/reader/full/wsdl-file-in-sap 3/11
1i#e the pac)age, transport num"er andcomplete the wi(ard
0nce the wi(ard is complete, acti#ate the ser#ice definition
WSDL Configuration in SAP(Updated steps) -
+/ecute transaction SA!A"A#$% and log into the SAP Net%ea#er with your SAP
userid and password
Application and Scenario Communication !a"$:Single Ser#ice Administration
Search for your Ser#ice Select the row
and hit Apply Selection "utton
1o to Configuration$:Create Ser#ice
1i#e the Ser#ice Name and the Binding Name and hit Apply Settings
8/11/2019 Wsdl File in Sap
http://slidepdf.com/reader/full/wsdl-file-in-sap 4/11
Select the suita"le authentication andsecurity option and Sa#e it
Chec) the ser#ice created should "e in
Acti#e Status
Now the %S&' configuration iscomplete and it should "e ready to "e e/posed to the e/ternal system
1o to 0#er#iew !a" and clic) on the lin) =0pen %S&' document for selected "inding=
!his will show the %S&' file
Clic) the lin) >&isplay selected Binding=s %S&' ?R'= Share this lin) to the e/ternalsystem for them to call
8/11/2019 Wsdl File in Sap
http://slidepdf.com/reader/full/wsdl-file-in-sap 5/11
$CC %ole needed to access We& Ser'ice-
%hen the third party tries to call the ?R' *SAP %S&', we might need to pro#ide them
a user id and password !he user for which the %e" Ser#ice call is to "e ena"led should
ha#e the role >SAPCW$S$%*+C$S$%*+C$US$% = Chec) your role in t$codeS?8@
,esting the WSDL-
In order to simulate whether the %S&' is wor)ing correctly or not, we can use some
free2trial #ersion of some software a#aila"le in we" I ha#e used soap?I demo #ersion
&ownload the free trial #ersion and install it
Prere;uisite- Sa#e the %S&'*.M' file from S0AMANA1+R at your des)top as wsdl
e/tension
+/ecute the soap?I application which you ha#e downloaded and installed
1i#e a Pro4ect name and "rowse the wsdl file which you ha#e sa#ed at your des)top
Clic) the Re;uest @ on the left hand side +nter the SAP user id and password in the
Re;uest @ middle su"$window area in !a" Aut "elow !hen e/ecute the Su"mit re;uest
to specified endpoint ?R' "utton
8/11/2019 Wsdl File in Sap
http://slidepdf.com/reader/full/wsdl-file-in-sap 6/11
+nter the input parameter for the FM !he 0utput message >Response successful fromSAP= is the e/pected e/port parameter #alue from SAP FM !his shows the configuration
is all correct and you ha#e all authori(ation in place
,he &elo- steps to generate WSDL and configuration steps are onl. for those users
-ho are in $CC / 'ersion0
WSDL Creation Steps in SAP -1o to transaction S+56 0pen one RFC Function module 1o to ?tilities $$$: More
?tilities $$: Create %e" Ser#ice $$: From the Function Module
ere one RFC Function module 9FIFMIN!B?&1+!ADAI'ABI'I!< is ta)en fordemonstration
A wi(ard opens Press Continue
8/11/2019 Wsdl File in Sap
http://slidepdf.com/reader/full/wsdl-file-in-sap 7/11
+nter Ser#ice definition name *"egin
with 9 and short te/t and clic) Continue
Chec) the Chec) Bo/ and clic) Continue
Select Profile- Basic Authori(ation-S0AP Profile and Chec) the chec) "o/ and Clic) Continue
8/11/2019 Wsdl File in Sap
http://slidepdf.com/reader/full/wsdl-file-in-sap 8/11
%S&' is created Press Complete
Sa#e in the desired pac)age and C!S ere it is sa#ed as local o"4ect
8/11/2019 Wsdl File in Sap
http://slidepdf.com/reader/full/wsdl-file-in-sap 9/11
%e" Ser#ice is created 1o to !ransaction Code WSAD!+"
Chec) for S0AP Application for RFC$Compliant FMs Chec) the %S&',9&+M0%S&' we 4ust created
In order to display the %S&' file
which is created, select the 9&+M0%S&' and press CtrlEF@
8/11/2019 Wsdl File in Sap
http://slidepdf.com/reader/full/wsdl-file-in-sap 10/11
Pop up comes Select &ocument Style
Brower opens +nter your SAP 'og on
?S+R I& and Password *same SAP user I& and password used for creation of the%S&'
<ou will see the %S&' File Copy the ?R' from the address "ar or sa#e the %S&' as
file and the third party can use this %S&'
8/11/2019 Wsdl File in Sap
http://slidepdf.com/reader/full/wsdl-file-in-sap 11/11
enefits of WSDL:
@ For Pro4ects where any third party which normally cannot call RFCs or BAPIs "utwhich can call %e" Ser#ices can call the %S&' of these RFCs or BAPIs and meet the
same functionality which the RFC or BAPI would ha#e met
Middleware can "e "y$passed