WSDL file in SAP – Part I

WSDL file in SAP – Part I

Typically, when an external system calls SAP, it performs an RFC function module or BAPI call through Middleware. They can also integrate web service calls in a similar manner, bypassing Middleware. In such web service calls, the WSDL file in SAP comes into play. WSDL is a document that is recognized both by the external system and by SAP.

In fact, this implies there should be an SAP web service available, and then the external system needs to communicate with this web service in some language (such as .NET). To facilitate this communication, the WSDL file in SAP is used to define the web service’s interface and operations, allowing seamless integration between SAP and the external system.

WSDL – What is it?

Definition : WSDL is the contraction of Web Administration Definition Language. WSDL is a report written in XML. The report portrays an Internet administration. It indicates the activities (or techniques) the assistance uncovered.

Some Scenario:
Each time anybody from the outsider (say Internet Shopping) does some use or buy, they need to call SAP for approval of certain fields like, organization code, cost focus, G/L record and so on and furthermore to check for financial plan accessibility. Generally, that third party(Online Shopping) speaks with Middleware and Middleware thusly calls the RFC capability module to do the approvals in SAP. RFC capability module in SAP returns applicable message to Middleware and Middleware imparts something very similar to the party (Web based Shopping).

The above situation functions admirably and great. Assume, in future, Middleware was to close down and that party (Web based Shopping) would associate straightforwardly with SAP. In such case, that party (Web based Shopping) wouldn’t have the option to call the RFC capability module straightforwardly, hence, idea of WSDL document come into picture.

Solution:
Convert RFC/BAPI to WSDL and use it rather than RFC.

To make an Internet Administration in SAP we don’t have to compose any ABAP or Java code. We don’t have to have any earlier information on some other programming language.

For this we simply have to run the Internet Administration Creation Wizard. We can choose a BAPI or a Remote Capability module in exchange SE37 or SE80 and begin the Internet Administration Creation Wizard for it. The wizard coordinates bit by bit and makes a WSDL record for the RFC or the BAPI.

Kindly note: to make WSDL document, the capability module should be a RFC capability module. We can’t make WSDL for typical capability modules.

Refreshed WSDL Creation Steps in SAP :
Go to exchange SE80. Open the capability bunch and the RFC Capability module for which you need to make the WSDL. For demo ZTESTWSDL RFC FM is thought of.
Right snap on the FM->Create->Web Administration.

I have chosen the No Confirmation required Profile. You can pick some other according to your prerequisite starting from the drop list.
Give the bundle, transport number and complete the wizard.

When the wizard is finished, initiate the help definition.

WSDL Arrangement in SAP(Updated steps) :

Execute exchange SOAMANAGER and sign into the SAP NetWeaver with your SAP userid and secret word.

Application and Situation Correspondence Tab->Single Administration Organization
Look for your Administration. Select the column and hit Apply Choice button.
Go to Arrangement >Create Administration
Give the Assistance Name and the Limiting Name and hit Apply Settings.
Select the reasonable validation and security choice and Save it.
Check the assistance made ought to be in Dynamic Status.
Presently the WSDL design is finished and it ought to be fit to be presented to the outside framework.

Go to Outline Tab and snap on the connection ‘Open WSDL archive for chosen restricting’. This will show the WSDL document.

Click the connection ‘Show chosen Restricting’s WSDL URL’. Share this connect to the outer framework for them to call.

ECC Role needed to access Web Service:

At the point when the outsider attempts to call the URL (SAP WSDL), we could have to give them a client id and secret key. The client for which the Internet Administration call is to be empowered ought to play the part ‘SAP_BC_WEBSERVICE_SERVICE_USER’. Check your part in t-code SU01.

Testing the WSDL:

To reenact regardless of whether the WSDL is working accurately, we can utilize some free/preliminary form of some product accessible in web. I have utilized soapUI demo form. Download the free preliminary variant and introduce it.

Essential: Save the WSDL(XML) record from SOAMANAGER at your work area as .wsdl expansion.

Execute the soapUI application which you have downloaded and introduced.
Give a Venture name and peruse the wsdl document which you have saved at your work area.

Click the Solicitation 1 on the left hand side. Enter the SAP client id and secret word in the Solicitation 1 center sub-window region in Tab ‘Aut’ underneath. Then execute the ‘Submit solicitation to determined endpoint URL’ button.

Enter the info boundary for the FM. The Result message ‘Reaction effective from SAP’ is the normal product boundary esteem from SAP FM. This shows the arrangement is all right and you have all approval set up.

The below steps to generate WSDL and configuration steps are only for those users who are in ECC 5 version.

WSDL Creation Steps in SAP :
Go to exchange SE37. Open one RFC Capability module. Go to Utilities — > More Utilities – > Make Web Administration – > From the Capability Module.

Here one RFC Capability module ZFIFM_INT_BUDGET_AVAILABILITY is taken for showing.

A wizard opens. Press Proceed.

Enter Administration definition name (start with Z) and short text and snap Proceed.

Check the Check Box and snap Proceed.

Select Profile: Essential Approval: Cleanser Profile and Check the check box and Snap Proceed.

WSDL is made. Press Total.

Save in the ideal bundle and CTS. Here it is saved as neighborhood object.

Web Administration is made. Go to Exchange Code WSADMIN
Check for Cleanser Application for RFC-Agreeable FMs. Check the WSDL, Z_DEMO_WSDL we recently made.

To show the WSDL document which is made, select the Z_DEMO_WSDL and press Ctrl+F1.

Spring up comes. Select Record Style.

Brower opens. Enter your SAP Sign on Client ID and Secret word (same SAP client ID and secret word utilized for production of the WSDL).

You will see the WSDL Document. Duplicate the URL from the location bar or save the WSDL as document and the outsider can utilize this WSDL.

Benefits of WSDL:
1) For Tasks where any outsider which regularly can’t call RFCs or BAPIs yet which can call Web Administrations can call the WSDL of these RFCs or BAPIs and meet a similar usefulness which the RFC or BAPI would have met.
2) Middleware can be by-passed.

 

YOU MAY BE INTERESTED IN

Unleashing the Power of Search Help Exit in SAP ABAP

SAP ABAP Online Training: Advanced Business Application

Do Amazon hire SAP consultants?

 

WhatsApp WhatsApp us