This article explains how to create a WebService in SAP.
Note: SAP has changed its WebService since sr3. Because our system is Sr2, we still use the old method.
1. Create an RFC
For how to create RFC, refer to my other blog: http://www.cnblogs.com/mengxin523/archive/2011/08/10/2134285.html
The RFC function in this article is to enter a product number and then return the product number type. If the product number does not exist or is null, an exception is thrown.
RFC name: zwbs_getwrkst
2. Create a WebService in se37
First: utlities -- more utlities -- create Web Service -- From the function module
Web service name: zwbs_for_wrkst
I remember that name mapping is only a web service mode problem. The difference is the case sensitivity of attributes. I usually check it.
A check mark indicates automatic activation. Select!
3. T-CODE: wsconfig
Service Definition and variant are all the same as the preceding WebService names! Press enter, and the following turns green, indicating OK.
4. T-CODE: wsadmin get WSDL.
The system will pop up IE browser to browse the WSDL, And the account password must be provided
PS: if the version is sr3 or later, use the following steps to obtain the WSDL:
Execute T-CODE: soamanager
The system will open an IE page with the address WSDL
In this way, the WSDL required to use the Web Service is obtained. It can be used by. Net to call...
Next blog posts ~