cancel
Showing results for 
Search instead for 
Did you mean: 

Authentication failure message while Calling UMWebService from .Net

Former Member
0 Kudos

I am trying to consume UMWebService published in EP. The URL for this webservice is: "http://<server>:<port>/irj/servlet/prt/soap/UMWebService?Wsdl".

I ceated a web reference to this WebService in my asp.Net project. When I called one of the methods on this webservice, a SOAP exception occured with the following message: "The User Authentification is not correct to access to the Portal Service UMWebService or the service was not found."

I tried setting credential to the the webservice with a network credential using user name and password. Still it won't help.

Request thoughts or suggestions to overcome this problem. If anybody has called this webservice from .Net please let us know the correct approach.

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Here's How you do what Subrat Singh mentioned in SOAP UI:

The base 64 encoded string after "Basic " is "<usrid>:<passwd>" decoded using online base 64 decoder "motobit"

Thanks,

Saquib

Former Member
0 Kudos

Hi Subrat,

At least I am not the only one facing this problem.

I tried the same and also tried to lower the security settings for the service in the portal permission settings. Didn't work either.

If you got any other suggestions, I would be glad to hear them from you.

Cheers,

Theo

Former Member
0 Kudos

Hi Theo,

This web service expects cedentials to be passed in the http header rather than the SOAP message. I put the credentials in the http header of the request (from .net client to portal web service) and it worked.

following is the code snippent.

Dim credArray() As Byte

Dim strCred As String

strCred = "<usrid>:<passwd>"

credArray = Encoding.UTF8.GetBytes(strCred)

request = GetWebRequest(uri)

request.Headers("Authorization") = "Basic " + Convert.ToBase64String(credArray)

This is how it worked for me..

Regards,

Subrat