Step By Step Procedure to Implement Soap to JDBC Scenario Applies to This scenario is implemented in PI 7.0 server, service pack: 14. For more information, visit the SOA Management homepage. Summary This article will explain you clear step by step procedure to implement SOAP to JDBC synchronous scenario. Author: Leela Ratnam Morampudi Company: Satyam Computers Services Ltd Created on: 12 December, 2008 Author Bio Leela Ratnam Morampudi is a SAP Netweaver Consultant in Satyam Computer Services Ltd. 2008 SAP AG 1
Table of Contents Introduction...3 Pre-requisites...3 Integration Repository...3 Data Types...3 Message Types...6 Message Interfaces...8 Message Mapping:...9 Interface Mapping....10 Integration Directory...11 Business Services and Communication Channels...11 Sender Agreement...13 Receiver Determinations:...14 Interface Determinations:...15 Receiver Agreements:...15 Generating the WSDL file:...16 Executing the Scenario in Microsoft Info path:...18 Testing...25 Runtime Environment:...26 Messages in MONI...26 Related Content...27 Disclaimer and Liability Notice...28 2008 SAP AG 2
Introduction This document will explain you the Soap to JDBC communication using SAP XI. At sender side SOAP adapter is used and JDBC adapter is used to update the record in the data base table. If the record is updated we can know the response as the record is successfully updated or not. Here we are going to update the record in the data base table. The company name should be updated based on the Id which the Soap client provides. Pre-requisites SQL Server 2000 is the DB Server used in this scenario. Data base table Employee with the Id, Name, and Company Using the data base name as AccPayDBV2 Integration Repository Import the software component. Create the namespace. Data Types Create 4 data types. Soap Request ---DT_Sender Soap Response DT_Receiver JDBC_Request DT_Employee JDBC_Response DT_Employee_response Create data type for the Soap Request 2008 SAP AG 3
Create the data type for the soap response Create data type for the JDBC Request 2008 SAP AG 4
Create the data type for the JDBC Response 2008 SAP AG 5
Message Types Create the message types for the above data types Message type for the Soap Request Message type for the soap response 2008 SAP AG 6
Message type for the Jdbc Request Message type for the Jdbc Response 2008 SAP AG 7
Message Interfaces Create outbound synchronous message interface for the soap Create inbound synchronous message interface for the JDBC 2008 SAP AG 8
Message Mapping: Request mapping to update the record in the data base table. Response mapping whether the record is updated in the data base table 2008 SAP AG 9
Interface Mapping. Create one interface mapping. Click on read interfaces and select the corresponding message mapping. Activate all the IR objects. Integration Repository part completed. 2008 SAP AG 10
Integration Directory Business Services and Communication Channels Create Business service and select the sender and receiver interface Create the sender communication channel. Select the adapter as soap. Enter the Sender interface and the namespace. 2008 SAP AG 11
Create the Receiver JDBC communication channel JDBC Driver: com.microsoft.sqlserver.jdbc.sqlserverdriver Connection: jdbc:sqlserver://hostname:1433;databasename=accpaydbv2 Replace host name with the IP address of the SQL Server. Check whether you are using the correct port name Specify the username and password for the connecting to the database. 2008 SAP AG 12
Sender Agreement Create the sender agreement for connecting to the sender communication channel 2008 SAP AG 13
Receiver Determinations: Create the receiver determination as shown below 2008 SAP AG 14
Interface Determinations: Create the interface determination. Interface mapping is specified here. Receiver Agreements: Create the receiver agreement 2008 SAP AG 15
Generating the WSDL file: In the Integration Directory, from the menu bar, select the Tools----Define Web Service Click on continue Click on the propose URL and click on the continue 2008 SAP AG 16
Select the Sender interface and namespace. Specify the sender interface, sender namespace, and sender service. It will display all the sender details. Then click finish. 2008 SAP AG 17
Save the generated wsdl file. Executing the Scenario in Microsoft Info path: Open the Microsoft info path from start programs---microsoft office---microsoft office info path. Click on the design a from template 2008 SAP AG 18
Select the Webservice icon and click ok Select the radio button receives and submits data and click on next. Enter the path of the generated wsdl which u have saved and click next. 2008 SAP AG 19
Select the interface and click next. Click next 2008 SAP AG 20
Click next 2008 SAP AG 21
Select the interface and click next. Double click on the parameters 2008 SAP AG 22
Double click on the parameter (material). Then click on the query field and click ok. 2008 SAP AG 23
Click next. And click Finish. Now drag the query fields on the data fields to the left side. And click preview. 2008 SAP AG 24
Testing Before updating the table, the Company name is Wipro for the Id =3. After the updating the record 2008 SAP AG 25
Runtime Environment: Messages in MONI 2008 SAP AG 26
Related Content http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/frameset.htm For more information, visit the SOA Management homepage. 2008 SAP AG 27
Disclaimer and Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document. 2008 SAP AG 28