How to remove WS: Policy from the WebService released by SAP

Source: Internet
Author: User
Why remove WS: Policy?

After pi is installed, the WebService released by SAP is also different from the previous one.

The reason why WS: Policy in WSDL should be removed is that the open-source projects currently used to generate Java clients do not support WS: Policy labels well, open source Java projects that have tried to generate Java stub through WSDL include axis-1.4, Axis2-1.5.1, xfire-1.2.6, and apache-cxf-2.2.8. Axis2 can generate executable Java stubCodeHowever, an error is still reported when parsing some policy labels. Although it does not affect usage for the moment, it is always a hidden risk and is not recommended. Other open-source projects cannot generate available Java code based on WSDL.

Therefore, it is not suitable to use the WSDL with WS: Policy labels without affecting business usage.

How to remove WS: Policy
    1. Soamanager: Open the Management Interface
    2. Select Web Service Administration in Business Administration
    3. Search for the service starting with z *, select the service to be viewed, and click Apply Selection
    4. Click"Open WSDL document for selected binding"To view the WSDL
      In the figure, the endpoint is the service and Endpoint generated after manual configuration. If no endpoint is configured, the WSDL cannot be opened.
    5. You can see the words "ws_policy" in the URL.
    6. Replace "ws_policy" with "standard" and re-view the WSDL.

Appendix:

Method To create WebService before installing Pi: http://blog.csdn.net/longgerr/archive/2010/05/25/5623418.aspx

To create a WebService after PI is installed:

Description about WS: Policy: http://msdn.microsoft.com/en-us/library/ms996497.aspx

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.