cancel
Showing results for 
Search instead for 
Did you mean: 

Consumer Proxy WSDL and Authentication

former_member429661
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

jitendra_it
Active Contributor
0 Kudos

Hi Bernward,

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

former_member429661
Participant
0 Kudos

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

Answers (1)

Answers (1)

jitendra_it
Active Contributor
0 Kudos
former_member429661
Participant
0 Kudos

Hi Jitendra,

thanks for the link. It guides me to an example working with PI. I want to connect to a NoneSAP System. There must be a place in SAP definition, where i can define User/PW. I found neither nothing in SICF nor in SM59. In SOAMANAGER, where i defined the logical port... i can't fill in logon credential in edit mode !?

.

There must be a place for the logon credentials. But where to find it ?

--Bernward

jitendra_it
Active Contributor
0 Kudos

Hi Bernward,

Right now I do not have access to SOMANAGER so unable to give you snapshots.. you can check two things.

1.In logical port definition there is check box "Username/Password" ,have u checked it ?

2.Some times we have to maintain proxy credentials in SM59 in Extras->Http Proxy Configuration

->Http/Https log tab.

Many Thanks,

Jitendra soni

former_member429661
Participant
0 Kudos

Hi Jitendra,

on logical port definition with SOAMANAGER i found these...

...but that didn't work. Than, there is another tab for USer/PW...

... it doesn't work too... because it's only for defining the proxy-server himself.

But the logical port definition creates automatically an proxy entry in SM59 unter http log tab.

But here i can't edit the login credentials. I think it's because it was automatically generated.

Any suggestions where to find/create User/PW to access the wsdl in ABAP program without to ask for User/PW !?

Thanks and regards

--Bernward