Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
microsoft.public.dotnet.framework.aspnet.webservices
Interfaces and web services in .Net.
Ollie Riches
9/9/2003 1:19:00 PM
Can I specify a custom Interface as the return type for a web service in
..Net?
I can see that you can't define ICollection as the return type but you can
defined IList as the return type?
Why is this?
Cheers
Jim
1 Answer
Dmitriy Lapshin
9/9/2003 2:21:00 PM
0
I don't think it is reasonable, even if technically possible. Providing an
interface as a return value assumes that the client should have an ability
to invoke the methods of the interface and, therefore, have means to perform
calls over the network. So, the actual object instance will have to be
hosted on the server. This is possible with Remoting, but the nature of Web
Services is just not tailored for such purposes, I think.
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/tests...
Bring the power of unit testing to VS .NET IDE
"Ollie" <ollie_riches@hotmail.com> wrote in message
news:eATVHStdDHA.2332@TK2MSFTNGP11.phx.gbl...
> Can I specify a custom Interface as the return type for a web service in
> .Net?
>
> I can see that you can't define ICollection as the return type but you can
> defined IList as the return type?
>
> Why is this?
>
> Cheers
>
> Jim
>
>
>
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Interfaces and web services in .Net.
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password