Web Service To File Scenario In Sap Pi Sheet

 admin  
  1. Web Service To File Scenario In Sap Pi Sheets

Introducing the Content Services for SAP node of the WebAdmin GUI.. Export certificate from the keystore to a file. Example: 'error,Cannot open file'. Example: PI sheet. This example creates a custom filter which extracts specific attributes from archived documents. Hello, I am working on a scenario in SAP PI where in i have one Webservice. I will pass multiple call to SOAP where in 1 st request 's response to be passed in Next call to web service / 2nd call. I do not want to call ECC in this again and again.

In SAP PI file to file scenario, we transfer a file from source system to target system. Once the components are built in SAP PI, you can transfer a file in SAP PI system by creating objects in the Enterprise Service Builder.

SAP PI — File to File Scenario Execution

Web service to file scenario in sap pi sheets

Step 1 − Go to SAP PI Tools Page → Enterprise Service Builder under ESR.

Step 2 − To find the name of component under which objects have to be created, expand the component to find out the software component version.

Step 3 − Select the component → Right click, click New to create an object under this component.

Step 4 − The first object that we create is a namespace. Enter the namespace in the form of URL and click Create button at the bottom.

Step 5 − Once the object is created under software component, save and activate the object.

Step 6 − To Activate, click Activate as shown in the following screenshot −

Step 7 − Once the Namespace is saved and activated, create a data type. Go to software component → Right click → New. In the next window, select interface objects → data type.

Step 8 − Enter the name of Data Type and Namespace and click Create as above. Next is to insert sub element into the Data Type.

Step 9 − Enter the name of the element.

Step 10 − Insert sub element to add child employee id and name.

Step 11 − Define the type and occurrence. Occurrence defines how many times that element will appear in the file. You can select minimum occurrence and maximum occurrence value.

Step 12 − Click the Save button.

Web Service To File Scenario In Sap Pi Sheets

Step 13 − Activate the data type. Go to Data type → Activate.

Creating a Message Type

Step 1 − Right click Namespace → New

Step 2 − Under Interface Objects, select Message Type. Enter the fields.

Step 3 − Enter the name of Message Type.

Step 4 − By default, it takes the name of Namespace and Software components. If it doesn’t, you can select manually. Then, click Create.

Step 5 − Now, define the Data Type that you will be using for Message Type. Drag the Data Type from the left bar to the Data Type option under Message Type ( ). Click Save button.

Step 6 − Activate Message Type → Activate.

Note − If the structure of your input file and output file is the same, you can use one Data Type and one Message Type only. If the structure is different, you have to create two data types and message types for inbound and outbound. In this example we are using the same structure for both input and output file.

A Web service is an application function or a service and can be used through Internet standard. It is an independent, modular, and self-describing application function or service.

It can be described, made available, located and transformed or called using standard Internet Protocols.

Each Web service encapsulates a function which is used to perform many tasks. A service provider is used to provide access to a web service. A service provider has WSDL document.

A Web service user is called a service requester who uses the web service with the help of a web browser. In a normal scenario, a service requester is an application that access Web service. An application takes all the necessary details to access a Web service from service description and this information is maintained in the service registry.

The following illustration shows a common Web service scenario −

Web Service – Key Features

The following are the key features of a Web service −

  • Web service allows programs running on different platforms, operating systems and different languages to communicate with each other.

  • Web service is an application function or a service.

  • Web service can be used through internet standard.

  • Web services can be published and traced.

  • Web services form a basis for Enterprise Services Architecture (ESA) which is known as SAP's enhanced version of service-oriented architecture SOA.

How to Analyze Different Web Services?

Perform the following steps to analyze different Web services −

Step 1 − Login to ECC system, use Transaction code — SOAMANAGER

Step 2 − Select the Web service checkbox → Apply Selection.

Web service to file scenario in sap pi sheets

Step 3 − Verify if the Overview tab contains the entry SERVICE → binding is displayed. In case SERVICE binding is not displayed, it means that binding must be completed.

Step 4 − To show the Web service and its binding, choose the Open WSDL document for the selected binding or service link.

Step 5 − A Web browser showing the WSDL opens → you can scroll down at the end of the WSDL. You will find the endpoint under the node WSDL port.

Where SAP PI is Not Recommended?

SAP PI is not recommended for a synchronous request/response scenario. In synchronous communication, it is invoked by request and response operation and process output is returned immediately after the operation. The load is more on infrastructure in case of synchronous communication.

In a non-SAP backend like Java, DOT NET, SAP PI is not recommended as middleware tool in UI driven scenario.

When a backend system is exposed as UI service, SAP PI is not recommended for UI driven scenarios.

   Coments are closed