Skip to Content
0
Apr 30, 2012 at 03:31 PM

Consumer Proxy WSDL and Authentication

359 Views

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

Attachments

ConsumerProxy1.jpg (81.4 kB)
ConsumerProxy.jpg (615.1 kB)