Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Services (http://www.velocityreviews.com/forums/f64-asp-net-web-services.html)
-   -   Custom interfaces (http://www.velocityreviews.com/forums/t782929-custom-interfaces.html)

Robert Scheer 04-19-2004 01:33 AM

Custom interfaces
 
Hi.

My web service class implements a custom interface. When I see the
service description, my custom interface is not there. In my client, I
add a reference to the web service and my custom interface does not
appear. Are custom interfaces supported on web services? Are there
special considerations when using them?

Thanks,
Robert Scheer

Jan Tielens 04-19-2004 05:35 AM

Re: Custom interfaces
 
Which class implements your interface? Is it your webservice class or a
class that serves as a return value or parameter? Maybe some code snippets
could help...

--
Greetz,
Jan
________________________
Read my weblog: http://weblogs.asp.net/jan

"Robert Scheer" <rbscheer@my-deja.com> schreef in bericht
news:cfd22ab6.0404181733.1ca2f916@posting.google.c om...
> Hi.
>
> My web service class implements a custom interface. When I see the
> service description, my custom interface is not there. In my client, I
> add a reference to the web service and my custom interface does not
> appear. Are custom interfaces supported on web services? Are there
> special considerations when using them?
>
> Thanks,
> Robert Scheer




Robert Scheer 04-19-2004 12:37 PM

Re: Custom interfaces
 
Hi Jan.

That's the relevant part of my web service:

Public Interface IWebTest
Sub TryIt()
End Interface

<System.Web.Services.WebService(Namespace:="http ://tempuri.org/FirstWs/Testcomp")>
_
Public Class FirstWs
Inherits System.Web.Services.WebService
Implements IWebTest

<WebMethod()> _
Public Sub TryIt() Implements IWebTest.TryIt
Dim s As String = "First Web Service"
End Sub
End Class

When I look at the wsdl, the IWebTest interface does not appear. The
client will not show the interface too. I am using vs.net 2003.

Thanks,
Robert Scheer


"Jan Tielens" <jan@no.spam.please.leadit.be> wrote in message news:<#PrvsAdJEHA.3848@TK2MSFTNGP09.phx.gbl>...
> Which class implements your interface? Is it your webservice class or a
> class that serves as a return value or parameter? Maybe some code snippets
> could help...
>
> --
> Greetz,
> Jan
> ________________________
> Read my weblog: http://weblogs.asp.net/jan
>
> "Robert Scheer" <rbscheer@my-deja.com> schreef in bericht
> news:cfd22ab6.0404181733.1ca2f916@posting.google.c om...
> > Hi.
> >
> > My web service class implements a custom interface. When I see the
> > service description, my custom interface is not there. In my client, I
> > add a reference to the web service and my custom interface does not
> > appear. Are custom interfaces supported on web services? Are there
> > special considerations when using them?
> >
> > Thanks,
> > Robert Scheer


Jan Tielens 04-19-2004 02:50 PM

Re: Custom interfaces
 
I don't think interfaces on webservice class level can be made visible in a
wsdl.

--
Greetz,
Jan
________________________
Read my weblog: http://weblogs.asp.net/jan

"Robert Scheer" <rbscheer@my-deja.com> schreef in bericht
news:cfd22ab6.0404190437.1076eaf8@posting.google.c om...
> Hi Jan.
>
> That's the relevant part of my web service:
>
> Public Interface IWebTest
> Sub TryIt()
> End Interface
>
>

<System.Web.Services.WebService(Namespace:="http ://tempuri.org/FirstWs/Testc
omp")>
> _
> Public Class FirstWs
> Inherits System.Web.Services.WebService
> Implements IWebTest
>
> <WebMethod()> _
> Public Sub TryIt() Implements IWebTest.TryIt
> Dim s As String = "First Web Service"
> End Sub
> End Class
>
> When I look at the wsdl, the IWebTest interface does not appear. The
> client will not show the interface too. I am using vs.net 2003.
>
> Thanks,
> Robert Scheer
>
>
> "Jan Tielens" <jan@no.spam.please.leadit.be> wrote in message

news:<#PrvsAdJEHA.3848@TK2MSFTNGP09.phx.gbl>...
> > Which class implements your interface? Is it your webservice class or a
> > class that serves as a return value or parameter? Maybe some code

snippets
> > could help...
> >
> > --
> > Greetz,
> > Jan
> > ________________________
> > Read my weblog: http://weblogs.asp.net/jan
> >
> > "Robert Scheer" <rbscheer@my-deja.com> schreef in bericht
> > news:cfd22ab6.0404181733.1ca2f916@posting.google.c om...
> > > Hi.
> > >
> > > My web service class implements a custom interface. When I see the
> > > service description, my custom interface is not there. In my client, I
> > > add a reference to the web service and my custom interface does not
> > > appear. Are custom interfaces supported on web services? Are there
> > > special considerations when using them?
> > >
> > > Thanks,
> > > Robert Scheer





All times are GMT. The time now is 02:46 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


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