Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Web Services and interfaces

Reply
Thread Tools

Web Services and interfaces

 
 
msnews.microsoft.com
Guest
Posts: n/a
 
      07-14-2003
Hi!
I wrote a simple web service that has four web methods in it. This web
service is designed to run on four different machines. There is a central
asp.net application which consumes the web services running on four
different machines. I want to run these web service methods by using
interfaces only.
I wrote an interface, and implemented the methods of interface in my web
service class, but when I cast the web service to the interface I receive an
invalid cast exception. Isn't it possible to use web services with
interfaces?

Any advices?

Thanks...


 
Reply With Quote
 
 
 
 
Jackie_ol
Guest
Posts: n/a
 
      07-14-2003
Ok, I've found an article which describes the process:

http://www.fawcette.com/archives/pre...0/ws0110-1.asp

"Andy Fish" <> wrote in message
news:_jwQa.6120$...
> the short answer is that no, it isn't possible to user interfaces

directly.
> For all the web service knows, it could be consumed by a java application,
> perl script or any language that has no concept of interfaces. If you want

a
> "rich" interface and are prepared to limit yourself to .net clients,
> consider using remoting instead.
>
> what I did for a web service was write a thin layer in the consuming side
> that implements the same interface and calls the web service.
>
> Andy
>
>
> "msnews.microsoft.com" <> wrote in message
> news:%...
> > Hi!
> > I wrote a simple web service that has four web methods in it. This web
> > service is designed to run on four different machines. There is a

central
> > asp.net application which consumes the web services running on four
> > different machines. I want to run these web service methods by using
> > interfaces only.
> > I wrote an interface, and implemented the methods of interface in my web
> > service class, but when I cast the web service to the interface I

receive
> an
> > invalid cast exception. Isn't it possible to use web services with
> > interfaces?
> >
> > Any advices?
> >
> > Thanks...
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How .NET web services client handles exceptions from Java web services? John ASP .Net Web Services 4 03-31-2006 10:13 PM
What is the difference between C# windows Services and web services in vs.net? Nick ASP .Net 1 09-12-2005 02:33 PM
Interfaces And Web Services Joe ASP .Net Web Services 4 10-06-2003 01:03 PM
Interfaces and web services in .Net. Ollie ASP .Net Web Services 1 09-09-2003 02:20 PM
Interfaces and web services in .Net. Ollie ASP .Net 0 09-09-2003 01:18 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57