6 Replies Latest reply: May 2, 2012 4:01 PM by Bernward Henkel RSS

Consumer Proxy WSDL and Authentication

Bernward Henkel
Currently Being Moderated

Hi there,

 

i write an function where i want to call an webservice.

********************************************************************************
* Proxy

********************************************************************************
  clear: ls_request, ls_response.
  TRY.
    CREATE OBJECT wsproxy
      EXPORTING logical_port_name = 'LP_SRM_CM'.

    CATCH cx_ai_system_fault into lo_sys_exception.
  ENDTRY.


********************************************************************************
* Request-Strukture

********************************************************************************
  ls_request-model-keys-CONFIGURATION_ITEM-content = 'H054152'.

  TRY.
      CALL METHOD wsproxy->retrieve_device
        EXPORTING
          input  = ls_request
        IMPORTING
          output = ls_response.

    CATCH cx_ai_system_fault into lo_sys_exception .
    CATCH cx_ai_application_fault .
  ENDTRY.

 

In the framework i will be asked for User/PW for the called method of the SAP generated Proxy-Class I? :-(

ConsumerProxy1.jpg

 

I found these definition in the Enterprise Service definition.

ConsumerProxy.jpg

 

...but i can't fill in the User/PW information.

 

 

  1. Is there another option for User/PW ?
  2. Am i on the wrong way ?

 

 

 

Thanks in advance...

 

--Bernward Henkel

Actions