Skip to Content
avatar image
Former Member

Authentication failure message while Calling UMWebService from .Net

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jun 16, 2005 at 10:39 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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