on 07-05-2011 8:57 AM
Hi,
I do a bottom up web service on NetWeaver 7.3 by annotating a stateless session bean with
@WebService(endpointInterface = "com.sap.research.meregio.businesslogic.common.UserManagementWeb", portName = "UserManagementPort", serviceName = "UserManagementService", targetNamespace = "http://sap.com/research/meregio/businesslogic/common/")
@AuthenticationDT(authenticationLevel=AuthenticationEnumsAuthenticationLevel.NONE)
@Stateless
to make it only accessible by sending user name and password. As soon as I add the @AuthenticationDT annotation and deploy, the web service vanishes from the server. It cannot be found in web service explorer any more. If I access the address of the WSDL directly, I get a 404 error.
As soon as I remove the @AuthenticationDT annotation again, everything works like a charm. Is this a bug? Is there a workaround?
Regards,
Patrik
Hi Patrik,
You have to set the authentication to BASIC:
@AuthenticationDT(authenticationLevel = AuthenticationEnumsAuthenticationLevel.BASIC)
The NONE means the Web Service will be public and anyone can call it. When you deploy the new version. Basic means you can activate autentication with user/paswd. When your Web Service is deployed on the server, you should be able to create the necessary configuration iin the Web Service Explorer.
Regards,
Thibault
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It seems you have done only design time changes (by adding @AuthenticationDT). You have to do the runtime changes as well.
Refer http://help.sap.com/saphelp_nw72/helpdata/en/44/4d2bb1c6b00597e10000000a155369/content.htm
Once it is done, the WSDL can be found in 'Single Service Administration'. This WSDL is slightly different from the one where @AuthenticationDT is not used. This WSDL contains entire namespace in the URL. This is the reason you were getting 404.
Hope it helps
Regards,
Gopal
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.