Skip to Content

Consuming Microsoft SharePoint Web Services in SAP using Basic Authentication

Requirement was to use Microsoft SharePoint as a repository to store the documents and also to access the same. There could be multiple possibilities to achieve this integration, one of the ways is to Consume the Web Services provided by the Microsoft SharePoint System. For example we have made use of Copy.asmx to Upload the documents and Lists.asmx to Update the documents in a List and also Delete them.

Following are the three steps to achieve the integration;

  1. Create a Consumer Proxy.
  2. Configure Logical Port.
  3. Call the required method in your application.

Create a Consumer Proxy:

  • Logon to SAP, and then start the Repository Browser (transaction code SE80).
  • Open a package for which you want to generate the consumer proxy.
  • Select the package and right click to open the context menu for the package, choose Create  Enterprise Service.
  • When you are prompted, select Service Consumer.


  • Continue.
  • Select the generation source i.e., external WSDL.


  • Continue.
  • Select the WSDL source; this can be a URL or a local file. In this case, it is URL.


  • Continue.
  • Specify a URL for example http://<SharePointSiteName>/_vti_bin/Lists.asmx.


  • Continue.
  • Specify a package, a prefix (ZAS_), and a transport request.
  • Continue.
  • The consumer proxy is generated. During generation, proxies objects for all the related data types and message types are generated.
  • The Configuration tab displays the default properties, which are extracted from the WSDL document. These properties determine the settings of a runtime configuration, which will be generated when the proxy is used.
  • Save & Activate.
  • When the consumer proxy is activated, the proxy class and the related structures and methods are automatically created and activated.

Configure Logical Port using Manual mode:

  • Launch SOA Manager using transaction code SOAMANAGER.
  • From the main screen of the SOA Manager go to the Service Administration tab.
  • Select Web Service Configuration.
  • Specify or search for a consumer proxy.


  • Select the consumer proxy from the overview and choose Apply Selection to display design-time information about the consumer proxy.
  • Go to the Configurations tab.
  • To create a new logical port, choose Create Logical Port.
  • A dialog box is displayed.
  • Specify a name for the new logical port.
  • To make this logical port the default logical port, select Logical Port is Default. If a consumer application is not configured to call a specific logical port, it calls the default logical port.
  • Select the configuration type Manual Configuration. In this type the system uses a user-specified endpoint URL to create a logical port. You need to specify a unique name for the logical port.


  • Choose Apply Settings.  And provide User credentials of the SharePoint system along with the domain (if you have any). Note: SAP does not support NTLM authentication, however supports Basic Authentication or Secured Basic Authentication.


  • In the message tab select the Message ID Protocol as Suppress ID Transfer.
  • In the transport tab; provide the URL Access Path, Computer Name of the Access URL, Port & Transport Binding TYPE (SOAP 1.1 or SOAP 1.2).


  • Save the configuration. Now the consumer proxy is now generated and configured.

Call the required method in your application.

Call the Proxy Class method in your application by instantiating the same (also can pass the logical port as an importing parameter in case there is no default logical port) and passing the required parameters.

You must be Logged on to comment or reply to a post.
  • Hi ,

    Very useful content..!

    Amar would like to ask you a question on this topic.

    we had a RFC function module for credit card validation

    I had created a service provider and service consumer .

    This web service sends information to another system and gets answer from third party system.can you please let me know which wsdl do I need to use in the configuration of service consumer ?

    1) third party wsdl


    2) wsdl obtained for the rfc in soamanager

    then how will the web service work? If am calling this function module for which we created web service inside another program ? will it work?

    if so how?

    Do we need to use third party URL while consuming ?

    If we use then how can it work for the function module in a method?

    Pls help me.

    Thanks in advance,


    • Gowthami,  We can create a consumer proxy using WSDL for an SAP provided web service or an external web service.   Unfortunately your question wasn’t clear to me, are you trying to consume a web service from they third party system? Or you want the web service generated from RFC FM to be consumed in third party system?  Amar.
      • Hi Amar,

        RFC has import and export parameters.this parameters sends information to third party system  and gets answer from it to sap.Can you please let me know how this communication to be done..?

        • Gowthami,

          If I understand you correctly you are trying to call an RFC residing at the third party system. And the best way to call it is, create a web service in the third party system and consume it in your SAP system by creating a consumer proxy. Otherwise you should be able to call the RFC directly.

          I could help you more if you could provide me information in detail.


  • Hi Amarnath,

    When I try to create my Service Customer , after providing the link to the .asmx file , i get an error stating –> Incorrect value: Entity “<<document>>”(60 /2934 ). end tag ‘ul’ does not match begin tag ‘p’.
    Does this mean there is a problem with my asmx file ?

    • Johan,

      Yes, seems one of the entity (notes) has some incompatible tag. Please check for the consistency with relevant tags. Also could you check if this can be saved as WSDL file and you can remove/correct this tag if it is possible and try to create the consumer proxy using the local file.



  • Hi,

    Does the web service have to be configured by a SAP Basis person or can it be done by a Developer?

    Also would you be able to help me on what checks/configurations need to be done to get the Web Service to work?

    I am currently trying to consume a SharePoint Web Service, and I am new to SAP.

    Thank You,


  • Hi Amar,

    I am n the project of SAP integration with Magento web portal , we created Wsdl in SAp Abap and tested it’s working , But when we test it in soapui we get error SAOP authorization can i get a detail documentation regarding the process , communication using wsdl between SAP and Megento