When writing a WebService, the most painful thing is identity authentication. It is not suitable for anything. At first, I thought it would be nice to use integrated identity verification, but the permissions and users are both Windows-based.
Program I can't control it. In the last few twists and turns, I need to find this example on the Internet (the source cannot be found. If the author sees it, I can add it). It feels better to implement it, the ihttpmodule can be rewritten to implement user-defined user authentication for intercept user names. In this way, you can define the name and role of the Integrated identity, and then use the web method as the rule name for verification by the security module in the enterprise class library, I think it is a better method. (One disadvantage is that adding web references in vs is difficult because it is necessary to verify the web references to be added. Finally, we can use the WSDL and the username and password.
Digest.zip
The following is a reference BAT file added with WSDL:Code(In fact, this is on msdn. It is only here to help people who do not want to check msdn ).
WSDL
Visualstudiodir = D: \ Program Files \ Microsoft Visual Studio 8 \ SDK \ v2 . 0 \ Bin \
Set namespace = Umen. Common. webref
Set outdir = D :\
Set outfilename = Reference. CS
Set Username = Ylx
Set Password = Yan. Lixin
Set webserviceuri = Http :// 10.0.0.19 : 8082 /Webserviceumenmembershipop. asmx
Echo export visualstudiodir%wsdl.exe/namespace: % namespace %/out: % outdir % outfilename %/Username: % username %/password: % password % webserviceuri %
@ Call " %Visualstudiodir1_wsdl.exe " /Namespace: umen. Common. webref/out: reference. CS/Username: ylx/password: Yan. Lixin http :// 10.0.0.19 : 8082 /Webserviceumenmembershipop. asmx