cancel
Showing results for 
Search instead for 
Did you mean: 

Authentication error while consuming web service published in SR of CE 7.1

Former Member
0 Kudos

Hi,

I am having this error while trying to consume a web service published in local services registry. Authentication level is set as Basic in the web service and in end point. I am receiving this error in security log files.

Message:Authentication for web service ServicesRegistrySiService, configuration ServicesRegistrySiPort using security policy sap.com/tcesiuddisrws~earServicesRegistrySiServiceServicesRegistrySiPort*ws failed: Login failed.. (See SAP Note 880896 for further info).

Category: /System/Security/WS/Authentication

Location: com.sap.engine.services.wssec.authentication.authenticate

Application: sap.com/tcesiuddisrws~ear

Thread: HTTP Worker [1]

Data Source: j2ee\cluster\server0\log\system\security_00.log

Correlator ID: 33747500000034965

Argument Objects:

Arguments:

DSR Component:

DSR Transaction: 72b226c009ed11dd9a3e000c29c818ce

DSR User:

Message Code:

Session: 4196

Transaction:

User: Guest

Host: ########

System: ###

Instance: J00

Node: server0

following is the code in a C# .Net 2.0 from where the service is called.

CnarService srv = new CnarService();

NetworkCredential ic = new NetworkCredential("user", "password");

CredentialCache cache = new CredentialCache();

srv.UseDefaultCredentials = false;

srv.PreAuthenticate = true;

srv.Credentials = ic;

try

{

srv.Timeout = 600;

cnarobject cnObj = srv.GetObject("1");

fnameTextBox.Text = cnObj.firstname;

lnameTextBox.Text = cnObj.lastname;

mnameTextBox.Text = cnObj.middlename;

}

catch (WebException wex)

{

MessageBox.Show(wex.Message + wex.Response + wex.StackTrace);

}

I tried to find the SAP Note 880896 but note doesn't exists. I am receiving similar error while trying to connect Enterprise Services explorer for .Net

Please help.

Regards

Monty

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Solved it.

I updated all the patches of NW CE 7.1 SP05. J2EE kernel to Patch 99, JVM to Patch 17. It seems to solve the problem.

Must have been something in SP05 patch levels.

Regards

Monty

Former Member
0 Kudos

Hi,

maybe you should see the settings for the ServicesRegistrySiService too. Under nwa->SOA.

I am not sure, but the error seems like not able to use the ServicesRegistrySiPort, which is to be authenticated against.

It is then used for retrieval of web services and publishing to the registry... i suppose.

I am not sure though.

Best regards,

Vera

Former Member
0 Kudos

Hi Vera,

I have checked the settings for the ServicesRegistrySiPort. They are correct. I can even use the web service from wsnavigator and it asks the authentication and executes the method correctly. Its strange that this happens only when web service is called from external application like .Net program.

Regards

Monty