banner



What Is A Proxy Consumer Service In Sap

Contents


How to configure a Service Consumer

To configure a consumer to admission a particular service, you demand to create and configure one or more logical ports.
A logical port is created for a specific consumer proxy to access ane particular bounden on the provider system.
You can create more than one logical port for the same consumer proxy. Nonetheless, each logical port can point to only one bounden.

Concept

The logical port is based on the WSDL document generated for a binding. The WSDL document describes how to access the binding, and includes the URLs for all the bindings defined for a service.

Prerequisites

You tin create a logical port based on a WSDL document or manually.

To use the WSDL based configuration the binding WSDL has to be used, not the design time WSDL. The binding WSDL can only be generated afterwards a binding was created for the provider in transaction SOAMANAGER.

Depending on the way you cull to create a logical port, y'all need the post-obit information:

Method to Create a Logical Port

What You Need to Know

Based on the WSDL document for a service

  • The URL that points to the WSDL document for the service.
    This is the URL for the binding that was generated for the Web service provider.
  • The access parameters for the WSDL document
    (Alternatively, you accept the WSDL certificate stored as a file.)

Manually
If a WSDL document is not available, you demand to create a logical port manually.

  • The URL of the binding
  • The configuration settings that the provider expects

Procedure

  1. From the main screen of SOA Manager, go to the Service Administration tab.
  2. Select Spider web Service Configuration.
  3. In the Search by menu, cull Consumer Proxy.
  4. In the Search Pattern field, specify a consumer proxy or a search string.
    Here, we will use CO_SRT_TEST_PROVIDER.

  5. Select the row with the consumer proxy and choose Apply Pick.
    Design-time information about the consumer proxy is displayed.
  6. Become to the Configurations tab.
    An overview of logical ports is displayed if any have been created.

  7. To create a new logical port, cull Create.
    A dialog box is displayed.
  8. Specify the following information for the new logical port.

    Here, we will use the name CO_SRT_TEST_PROVIDER2.

  9. Select the configuration type WSDL-Based Configuration.
    For WSDL-Based Configuration, the system extracts the binding URL from the WSDL document for the service.
  10. Specify the WSDL access settings.
    Hither, use Via HTTP access. Additionally, you need to specify the path to the WSDL document and a user and password.

    The user for WSDL Access needs to be authorized to admission the WSDL in the system you are working in.


    For URL for WSDL Access, you need the URL for the bounden generated for the Web service provider.

  11. Choose Apply Settings.
    A dialog box displays overview of bindings that could exist used for this logical port.

  12. Select the appropriate bounden for your logical port.
  13. Cull Apply Settings.
    The logical port is now created in memory.
  14. If an authentication method is used, go to the Consumer Security tab and specify a user and a password.

    The user must have runtime access and awarding say-so.

  15. Save.
    The new logical port with the default settings is created and displayed in the overview.
  16. Optionally, you can check whether the logical port can access the bounden past selecting the consumer proxy and choose Ping Web Service.

Result

You now take created a logical port which tin can be used in your application to send a Soap bulletin to the respective Web Service Provider.

Example Application Code Snippet

To invoke a Web Service you could employ the following code snippet every bit an case:

information lr_consumer_proxy type ref to co_my_consumer_proxy.

" instantiate consumer proxy
CREATE OBJECT lr_consumer_proxy
EXPORTING
logical_port_name = 'MY_LOGICAL_PORT_NAME'.

" invoke WebService operation
lr_consumer_proxy->my_webservice_operation( ... ).

Quick Testing

It'south also possible to test the Consumer Proxy without creating a program, using transaction SE80. Follow these steps to trigger a examination-call:

  1. Go totransaction SE80 and brandish the Consumer Proxy object (Edit Object > Enhanced Options > Enterprise Services > Client Proxy).
  2. Click on theTest (F8)push.
  3. On the choice screenspecify the Logical Port and select theMethod.
  4. Click onExecute (F8).
  5. With theXML Editor (Ctrl+F2) y'all can edit the input values of the request XML.
  6. To trigger the call, click onExecute (F8).

What Is A Proxy Consumer Service In Sap,

Source: https://wiki.scn.sap.com/wiki/display/ABAPConn/How+to+configure+a+Service+Consumer

Posted by: cartertheope.blogspot.com

0 Response to "What Is A Proxy Consumer Service In Sap"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel