on 04-21-2005 12:30 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.