Changes for page WebServices
on 2012/02/08 14:22
on 2012/02/08 14:25
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -36,6 +36,27 @@ 36 36 37 37 === invoking the client === 38 38 39 +Here is a sample of client code: 40 + 41 +{{code language="java"}} 42 + 43 + BookClient client = new BookClient(); 44 + client.ClientCredentials.UserName.UserName = "RequeaDev"; 45 + client.ClientCredentials.UserName.Password = "RequeaDev"; 46 + 47 + 48 + custBook bk = new custBook(); 49 + bk.custTitle = tbCouleur.Text; 50 + bk.custAuthor = tbNom.Text; 51 + 52 + bk = client.Save(bk); 53 + lblSysId.Text = bk.sysId; 54 +{{/code}} 55 + 56 + 57 +Note that the authentication is BASIC (HTTP) and requires an update of your app.config to specify the HTTP basic authentication: 58 + 59 + 39 39 <?xml version="1.0" encoding="utf-8" ?> 40 40 <configuration> 41 41 <system.serviceModel>