2 Replies Latest reply: May 6, 2013 4:33 PM by Thorsten Voß RSS

WEB Service Session - Login

Wojciech Nowicki
Currently Being Moderated

Hello Experts,

 

I have to consume a BOBJ Web Service Session in SAP Netweawer.

Hello,

 

We have SAP NetWeaver 2004s and BusinessObjects Enterprise 12.0.

 

I've created an proxy object on the SAP Netweaver side in the following way :

se80->Create->Enterprice Service->Service-Consumer->URL/HTTP Destination-> URL = http://<host>:8080/dswsbobje/services/Session?wsdl

 

Then I've created an Port using soamanager.

 

I't seems to be working, becouse methods like : getServerInfo, getServerInfoDetails are working ok.

Now I have a problem with the method Login. As parameter for this method I see only structure CREDENTIAL, which have only one field CONTROLLER (PRXCTRLTAB).

 

I've expected to have in the Parameters for this method a structure EnterpriceCredential with fields like username, password and so on - but its not.

 

Could You help me ?

 

Greetings

Wojciech

 

 

Here my coding :

 

REPORT  ztest.

 

DATA text TYPE string.

DATA : lr_proxy TYPE REF TO zsco_session_port.  " its my session proxy object

DATA : oref   TYPE REF TO cx_root.

 

TRY.

 

    CREATE OBJECT lr_proxy

      EXPORTING

        logical_port_name = 'LP1'.

  CATCH cx_ai_system_fault INTO oref.

    text = oref->get_text( ).

ENDTRY.

 

 

DATA get_server_info_in TYPE zsget_server_info_soap_in.

DATA get_server_info_out TYPE zsget_server_info_soap_out.

 

 

  • THIS IS WORKING WELL

TRY.

    CALL METHOD lr_proxy->get_server_info

      EXPORTING

        input  = get_server_info_in

      IMPORTING

        output = get_server_info_out.

  CATCH cx_ai_system_fault  INTO oref..

  CATCH zscx_dswsexception  INTO oref..

  CATCH cx_ai_application_fault  INTO oref..

ENDTRY.

 

break-point.

 

 

  • AND THIS IS ENDINNG WITH EXCEPTION

TRY.

    CALL METHOD lr_proxy->login

      EXPORTING

        input  = login_in

      IMPORTING

        output = login_out.

  CATCH cx_ai_system_fault INTO oref.

    text = oref->get_text( ).

_ CATCH zscx_dswsexception INTO oref.   this exeption is being called_

    text = oref->get_text( ).

  CATCH cx_ai_application_fault INTO oref.

    text = oref->get_text( ).

ENDTRY.

Actions