Last post Aug 02, 2013 05:16 AM by ogsim07
Jul 25, 2013 03:51 AM|silly_dude|LINK
I am developing a generic ETL platform that is totally configurable. It needs to be able to call any web servcie - a .NET service or a non .NET service such as a PeopleSoft web servcie, a webMethod one, a SAP one, or any other possible web services in the
Following link is a good start - it dynamically gets the WSDL of a given URL and create and compile the web service proxy. From there I can get the Type of the proxy then use standard reflection techniques to interogate and invoke the methods. The URL of
the web service and the web method name will be provided as configuration. The list of parameters provided to call the method will be compared with the parameters of the method acquired through reflection, and exception will be thrown if it doesn't match.
All seems doable until you think of security! I know to access .NET services we use NetworkCredential. Some suggests setting the HTTP Authorization header explicitly.
Is there a generic way to pass credentials to any possible web service in the world?
Jul 31, 2013 10:04 PM|Amy Peng - MSFT|LINK
In my mind, I do not think we can pass credentials to any possible web services in the world.
And I see you have post a same question in:
Jul 31, 2013 10:09 PM|jjkk|LINK
I found a KB related with how to pass current credentials to an ASP.NET Web Service, maybe it will hep you!
For more information about how to pass current credentials to an ASP.NET Web Service, visit the website
Aug 02, 2013 05:16 AM|ogsim07|LINK
are you looking for something like this:-
Dim myWebService As New servicename.Service()
myWebService.Credentials = System.Net.CredentialCache.DefaultCredentials
myWebService.UseDefaultCredentials = True
Label1.Text = "User: " + myWebService.functionname