cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid Response Code: (401) Unauthorized.

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

I am having a similar problem. Have you managed to fix this?

Regards.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Sameer,

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

Regards, Anilkumar

Former Member
0 Kudos

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.