Skip to Content

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

ConsumerProxy1.jpg (81.4 kB)
ConsumerProxy.jpg (615.1 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on May 02, 2012 at 01:44 PM

    Hi Bernward,

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

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Jitendra,

      i got it.

      when i defined the logical port in SOAMANAGER as a "manual configuration" i was possible to fill in an User/PW. The transport-binding was the same as the transport-binding from the wsdl-generated logical port.

      So, now it works fine.

      Thanks for your questions... they motivite me to continue :-)

      --Bernward

  • Posted on Apr 30, 2012 at 05:22 PM
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.