From version 1.2
edited by Pierre Dubois
on 2012/02/08 14:22
To version 1.3
edited by Pierre Dubois
on 2012/02/08 14:25
Change comment: There is no comment for this version

Summary

Details

Icon 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>
This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 9.11.5 - Documentation