File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Sockets and Internet Protocols and the fly likes HttpErrorCode:401 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark " HttpErrorCode:401" Watch " HttpErrorCode:401" New topic
Author HttpErrorCode:401

sanjay patel

Joined: Sep 28, 2007
Posts: 8
I have a webservice which is hosted on sap xi server. I want to invoke that webservice through my tomcat server. The Requirement is to have https ssl handshake between the two servers. For that I imported the sap xi certificate into tomcat's jre cacerts. And As I (tomcat) am a client to SAP XI, I generated the ceritificate, and gave it to xi. They also imported it into their trustStore. Everything seems to be fine, However, when i tried invoking that webservice, i got the {}HttpErrorCode:401 'Unauthorised' exception. I enabled the ssl log and it seems sap xi's server could be found in tomcat's truststore. But not very sure if the tomcat's certificate could be found in sap xi's truststore. and even if it is found, there could be some encryption-decryption problem too............Not sure, because don't know how to debug the ssl log. Can anyone please tell me what is the exact problem ? Its very urgent. Thanks in advance.

I agree. Here's the link:
subject: HttpErrorCode:401
It's not a secret anymore!