Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Runtime.Serialization;
|
---|
5 | using System.ServiceModel;
|
---|
6 | using System.Text;
|
---|
7 |
|
---|
8 | namespace Service
|
---|
9 | {
|
---|
10 | // HINWEIS: Wenn Sie hier den Klassennamen "Service1" ändern, müssen Sie ebenfalls den Verweis auf "Service1" in "App.config" aktualisieren.
|
---|
11 | public class Service1 : IService1
|
---|
12 | {
|
---|
13 | public string GetData(int value)
|
---|
14 | {
|
---|
15 | return string.Format("You entered: {0}", value);
|
---|
16 | }
|
---|
17 |
|
---|
18 | public CompositeType GetDataUsingDataContract(CompositeType composite)
|
---|
19 | {
|
---|
20 | if (composite.BoolValue)
|
---|
21 | {
|
---|
22 | composite.StringValue += "Suffix";
|
---|
23 | }
|
---|
24 | return composite;
|
---|
25 | }
|
---|
26 | }
|
---|
27 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.