Skip to Content
avatar image
Former Member

Calling webservice from webdynpro using sso (without EJB)

Hi All

I am calling a web service created in SAP BW from a webdynpro(java) program. It is working if I set username and password from code using _setUser() and _setPassword() method .

If I activate SAP logon ticket and don't give user id and password then it is giving error :

Service call exception; nested exception is: Invalid Response Code: (401) Unauthorized.

In the logical port section I have clicked on "Use SAP Logon Ticket" for activating Log on ticket.

I have also created HTTP destination in visual administrator and setting that destination from code using _setHTTPDestinationName method of model object.

Also configuration for SSO between EP and BW server is working if I execute any URL iview.

Please help.Thanks in advance .



Message was edited by: Raktim Banerjee

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jul 05, 2006 at 11:50 AM

    Only tc/sec/wssec/service is not included in the list of service references, insert it as


    Select the project, open the context menu and choose Properties.

    The Properties for project dialog appears.

    In the left pane, select Web Dynpro References; in the right pane, choose the Service

    References tab page.

    a. Choose Add.

    The Create new reference dialog appears.

    b. Enter tc/sec/wssec/service as the service name for the WS Security service

    and choose OK.



    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 31, 2006 at 03:32 PM

    Try with: tcsecwssec~service

    Don't use: tc/sec/wssec/service

    This worked for me.

    Add comment
    10|10000 characters needed characters exceeded