on 01-30-2008 7:39 AM
Hi Experts,
I have some web services which use destinations which I maintained in Visual Admin under Web Service Security. For authentication I use SAP Logon Tickets. Everything worked fine until I applied SPS14 for nw04s. No I suddenly get the following Exeption:
com.sap.engine.services.webservices.espbase.discovery.BaseIOException: Invalid Response Code 401 while accessing URL: http://localhost:80/inspection.wsil. Response Message: Unauthorized. Content Type: text/html. Body Content: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Error Report</title> <style> td {font-family : Arial, Tahoma, Helvetica, sans-serif; font-size : 14px;} A:link A:visited A:active </style> </head> <body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0"> <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75"> <tr bgcolor="#FFFFFF"> <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="4" color="#666666"><b> 401   Unauthorized</b></font></td> </tr> <tr bgcolor="#3F73A3"> <td height="23" width="84"><img width=1 height=1 border=0 alt=""></td> <td height="23"><img width=1 height=1 border=0 alt=""></td> <td align="right" height="23"><font face="Arial, Verdana, Helvetica" size="2" color="#FFFFFF"><b>SAP J2EE Engine/7.00 </b></font></td> </tr> <tr bgcolor="#9DCDFD"> <td height="4" colspan="3"><img width=1 height=1 border=0 alt=""></td> </tr> </table> <br><br><br><br><br><br> <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75"> <tr bgcolor="#FFFFFF"> <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><b> No login module succeeded.</b></font></td> </tr> <tr bgcolor="#FFFFFF"> <td align="left" valign="top" height="48"><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><b> Details:</b></font></td> <td align="left" valign="top" height="48"><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><pre> No details available</pre></font></td> </tr> </body> </html>
at com.sap.engine.services.webservices.server.management.discovery.DestinationsResolver.resolveURL(DestinationsResolver.java:220)
at com.sap.engine.services.webservices.server.management.discovery.DestinationsResolver.resolveEntity(DestinationsResolver.java:120)
at com.sap.engine.services.webservices.espbase.query.WSQueryImpl.initialize(WSQueryImpl.java:184)
at com.sap.engine.services.webservices.espbase.query.WSQueryImpl.findWSInterfaces(WSQueryImpl.java:151)
at com.sap.engine.services.webservices.server.management.discovery.ServiceDiscoveryImpl.getWSDLUrl(ServiceDiscoveryImpl.java:71)
... 58 more
The strange thing is, when I set the destination to use basic authentication with user and pwd it works again. But then the given user account is used for authentication and not the account of the calling user. If I return to logonTickets it works correctly! When I restart the server I get the error again.
Strange problem. I have this problem since I applied SPS14. Do I have to configure something additionally? I know there were changes made in the topic of web service security. Or could it be a bug of sps14?
Any help is appreciated!
Regards Manuel
check this sap note 1052659
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Manuel,
I have the same problem as you...after applied SPS14 (NW04s), we services does not work.
When I test Destiantion sap.com/DynamicWSProxies/COMUN_WS_METADATA_DEST ( URL
http://sapportaldes:50000/inspection.wsil), I get error:
"Error during ping operation :Received HTTP response 401"
Did you solved the problem¿?
I have an OSS message with SAP but they have not answer yet !
Thanks and Regards
Noemí
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
in sps14 the security levels are a bit stricter than before. So in my case, I was not allowed to access the inspection.wsil with web services. I solved my problem by changing the
[sap.com/com.sap.engine.services.webservices.tool*inspection.wsil] authentication stack (policy configuration) to look like this:
EvaluateTicketLoginModule SUFFICIENT
BasicPasswordLoginModule REQUIRED
CreateTicketLoginModule SUFFICIENT
and additionally I had to map the WSIL_SecurityRole security role only to the
role SAP-J2EE-Engine/all.
I hope this helps.
Regards Manuel
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.