Re: Beginner with Questions re: WPF, WCF, LINQ



OK I think I understand. I guess my confusion was that I thought the service
only returned XML data. Returning data this way is much better.

Thanks

"Arne Vajhøj" wrote:

Dave wrote:
I was thinking the webserver would do something like:

User sends "Account Number" to service
Service replies with "Account Information, Balance, etc etc".
Then the front end would display the returned information somehow.

When you say "Let .NET unpack it" to get the same "data structure", are you
saying the Service can return data in a dat structure instead of just XML
data? If so, what is the technical term for this so I can start investigating
this way?

yes

web reference
web service stub

Let me give an example.

Oldfashioned .asmx not WCF, but anyway.

Server side:

public class Test : WebService
{
[WebMethod]
public Foobar TestIt()
{
Foobar res = new Foobar();
res.Iv = 123;
res.Sv = "ABC";
return res;
}
}

Client side:

Test serv = new Test();
Foobar tst = serv.TestIt();

The Test and Foobar class used client side are generated
from the WSDL of the web service.

Remoting works similar.

And WCF as well (from what I have read - I have not used WCF yet).

Arne



.


Loading