Skip to Content

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.

/wp-content/uploads/2012/12/b1_164077.png

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

/wp-content/uploads/2012/12/b2_164096.png

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

/wp-content/uploads/2012/12/b3_164097.png

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

/wp-content/uploads/2012/12/b4_164099.png

  • 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.

/wp-content/uploads/2012/12/b5_164101.png

  • 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.

/wp-content/uploads/2012/12/b6_164102.png

  • 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.

/wp-content/uploads/2012/12/b7_164103.png

  • 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).

/wp-content/uploads/2012/12/b8_164104.png

  • 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.

To report this post you need to login first.

14 Comments

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

  1. Former Member

    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

    or

    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

    (0) 
    1. Amarnath Singanamala Post author
      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.
      (0) 
      1. Former Member

        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..?

        (0) 
        1. Amarnath Singanamala Post author

          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.

          Amar.

          (0) 
  2. Former Member

    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 ?

    (0) 
    1. Amarnath Singanamala Post author

      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.

      Thanks

      Amar

      (0) 
  3. Former Member

    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,

    Shaneel. 

    (0) 
  4. Former Member

    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

    Regards

    SROY

    (0) 
    1. Amarnath Singanamala Post author

      Hi Sunil ,

      You can test using the Ping service in SAP (SOAMANAGER). Perhaps you are missing to pass the basic authentication(User/pwd) details in SOAPUI. Similar steps should work for Magento as well. Unfortunately I do not have any specific document for this.

      Amar.

      (0) 

Leave a Reply