Service with name “Accounting” have some API as:
- Create_Account(string id, string pin,string fullname,datetime createdate)
- View_Detail(string id)
- Delete_Account(string id) only call by authenticated user with admin permission
----------------------------------------------------------------------------------------------------------------------------
- Create webservice
- Define all necessary API for it
- Using SoapHeader to config using condition of these above API
- Using SoapException to raise and handle error on server also at the client
- Create webservice client
- ASP.Net website as client
i. AddWebReferrences
ii. Create object proxy
iii. Call service API with SoapHeader
iv. Handle exceptions
- Window form as client same as above
http://youtu.be/BEwhsBMHDaM
Xử lý ngoại lệ trong dịch vụ web
No comments:
Post a Comment