asp.net - how to secure SOAP message in WCF? -
i used wcf servicee library implement simple web services , works, found wcf uses ws-security standard secure soap messages.
in project have built simple web service enhance web service using different methods secure it, without using <wsss>
i don't know if selection implement web service utilize wcf or have utilize approach that. have work on soap message secure soap message.
using system; using system.collections.generic; using system.linq; using system.runtime.serialization; using system.servicemodel; using system.text; using system.data; using system.data.sqlclient; namespace wcfbookaddress { [servicecontract] public interface iservice1 { [operationcontract] string getdata(int value); [operationcontract] boolean addaddress(string vname, string vfathername, string vstreet, string vcity, int64 vphoneno); [operationcontract] dataset getalladdress(); [operationcontract] dataset getaddressbyname(string vname); [operationcontract] compositetype getdatausingdatacontract(compositetype composite); // todo: add together service operations here } // utilize info contract illustrated in sample below add together composite types service operations [datacontract] public class compositetype { bool boolvalue = true; string stringvalue = "hello "; [datamember] public bool boolvalue { { homecoming boolvalue; } set { boolvalue = value; } } [datamember] public string stringvalue { { homecoming stringvalue; } set { stringvalue = value; } } }
}
asp.net wcf web-services ws-security
No comments:
Post a Comment