You can generate a Web service for the function module of the XML DataSource that provides a WSDL description that you can use independent of the communication technology to send data to SAP BW.
You have created an XML DataSource.
You have activated the data transfer to the delta queue of SAP BW.
...
1. Using the function library (transaction SE37), call the Web service creation wizard.
To do this, select the desired function module in the function library and choose Utilities ®Generate Web Service ® From the Function Module.
2. Go through the following steps, shown in the wizard:
a. Create a virtual interface.
The virtual interface represents the interface between the Web Service and the outside.
b. Choose the end point.
The name of the function module that is to be offered as Web service is already entered here.
c. Create the Web service definition.
The Web service definition helps with assigning the Web service features, such as how security can be guaranteed in data transfer.
d. Release the Web service.
The wizard generates the object virtual interface and Web service definition in the object navigator.
The function group that was generated when the XML DataSource was created is not transportable and is thus assigned to a local package. To prevent errors due to transports, make sure that the objects that were generated in the Web service creation wizard are assigned to a local non-transportable package.
The Web service is released for the SOAP runtime.
3. In the virtual interface for the import parameter DATASOURCE, define the name of the XML DataSource as the fixed value.
A separate function group is generated for each XML DataSource. It makes sense to pre-assign the parameter DATASOURCE with the name of the XML DataSource in the virtual interface of the Web service for which the function group was generated.
If you do not pre-assign the parameter, it will be necessary to transfer the data sent with the appropriate filled DataSource element, for example, by setting the value in the application that implements the Web service.
a. In the object navigator, choose the name of the package in which the Web service was created and choose Enterprise Services ® Web Service Library ® Virtual Interfaces.
b. Choose Change in the context menu for the virtual interface.
c. For the virtual interface, remove the flags exposed and initial and enter the name of the XML DataSource in apostrophes, for example ’6ADATASOURCENAME’.
d. Activate the virtual interface.
You have created a Web service for the XML DataSource and have release it for the SOAP runtime. You can now send data to the delta queue of SAP BW using the Web service.
Using Web Service ® WSDL () in the Administration for the SOAP Runtime (transaction WSADMIN), you can call the WSDL description of the Web service. A test function to call and test the Web service is available under Web Service ® Web Service Homepage () (see Web Service Homepage).