Skip to Content
avatar image
Former Member

Invalid Response Code: (401) Unauthorized.

Hi,

I am calling a WebService from a Adobe Form designed using WebDynpro.

When the Webservice is called an exception is raised and the following message is shown.

"Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized"

Anbody has any idea why this exception is raised.

Thanks,

Sameer

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Aug 01, 2005 at 09:47 AM

    Hi Sameer,

    I think your webservice is protected with userid/Password.If you are using Anonymous user,you might get this kind of error.

    Probably you have to issue log on ticket to your webservice.Please check your webservice configurations.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 01, 2005 at 09:54 AM

    Hi Sameer,

    Check the documents SDN on How to call "Secured Webservices".

    Regards, Anilkumar

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 01, 2005 at 10:10 AM

    Hi,

    Check this link for details of the error code and analysis.

    http://help.sap.com/saphelp_nw04/helpdata/en/10/661841a66af223e10000000a155106/content.htm

    Regards,

    Vijith

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 01, 2005 at 10:19 AM

    Hi Sameer,

    This webservice is deployed on your own WAS server or it is external webservice?

    If it is external webservice then may be due to Proxy authentication, it is giving you unauthorized error. You have to first authenticate first agaist your Proxy server.

    Regards,

    Bhavik

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Bhavik,

      We created the Webservice for an RFC using the WEBSERVICEBROWSER BSP application on our ERP system.

      We are calling that Web Service from Web Dynpro Adobe Form.

      Thanks,

      Sameer

  • avatar image
    Former Member
    Oct 08, 2009 at 08:58 PM

    Hi All,

    I am working on PI-Trex connection for payload based message search.

    After configuring all of the steps as per the guide.

    when i tried to activate Index Administration for Runtime workbench for Adapter Engine I got this runtime exception.

    An error occurred: Class: com.sap.aii.rwb.web.trex.CentralTrexException : Message: RemoteException in Method: CentralTrexManager: activateIndex( String ). TrexException: Failed to activate Trex service. Message: Service call exception;

    nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://pitestdaea9d:57000/TrexProcessor/basic?style=document"; To-String: java.rmi.RemoteException: Service call exception;

    nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://pitestdaea9d:57000/TrexProcessor/basic?style=document"

    does any body have any clue ?

    Regards,

    Divyesh

    Add comment
    10|10000 characters needed characters exceeded