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 (1)

Accepted Solutions (1)

former_member187339
Active Contributor
0 Kudos

Hi Subrat,

You can type the following code

Dim your_object As New Soap2DB.WebReference3.soapin_MIService()

object.PreAuthenticate = True

object.Credentials = System.Net.CredentialCache.DefaultCredentials

object.Credentials = New Net.NetworkCredential("username", "password")

If this is of some help, do award points

Regards

Suraj

Former Member
0 Kudos

Suraj,

Thanks for your reply. Please correct me if I am wrong, in the code snippet you have posted, "Soap2DB.WebReference3.soapin_MIService() " is the Websevice proxy class. I had tried this approach with little success.

UMWebservice (EP6, SP9) expects credentials to be passed in http Header rather than SOAP Envelope. I could call the web service when I passed credentilas in the http header.

Thanks anyway.

Regards,

Subrat

former_member187339
Active Contributor
0 Kudos

Hi Subrat

Yes that is my Webservice proxy class. I am making an object of the class and after doing necessary steps for authorization, the appropriate method is called.

Earlier I had also faced with the authorization problem but by this code snippet it was removed.

For any further queries kindly revert back.

Regards

Suraj

Answers (0)