SAP WebService (2): Create a WebService in SAP

Source: Internet
Author: User

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 ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.