Archived discussions are read-only. Learn more about SAP Q&A

Consumer Proxy WSDL and Authentication

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? :-(

I found these definition in the Enterprise Service definition.

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

Tags:
replied

Hi Bernward,

Can u tell me what is  " Ressource : CASM " in your first screen shot (In first Post).

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question