[newbie] Web Service always open source?

G

Guest

Hi,

just one newbie question: When I connect to a WebService, I specify the *.asmx file as a destination in my client - but this file also contains my source code - does that mean that every web service is basically open source?

thanks
Gordon
 
J

Jon Skeet [C# MVP]

Gordon Knote said:
just one newbie question: When I connect to a WebService, I specify
the *.asmx file as a destination in my client - but this file also
contains my source code - does that mean that every web service is
basically open source?

I don't know much about Web Services, I'm afraid, but specifying a URL
doesn't mean the source of that URL is available. Similarly, specifying
the interface of a web service doesn't mean that the implementation is
visible.
 
C

Cor Ligthert

Hi Gordon,

When you want to know more about this, you can ask this question as well to
the newsgroup.

microsoft.public.dotnet.framework.aspnet.security

I hope this helps?

Cor
 
N

Niki Estner

Gordon Knote said:
Hi,

just one newbie question: When I connect to a WebService, I specify the
*.asmx file as a destination in my client - but this file also contains my
source code - does that mean that every web service is basically open
source?

Heavens no!
When you navigate to an ASPX page, the URL will be sent to the server
(usually IIS), which loads the file, compiles it if neccessary, executes it
(on the server) and sends the ouput (!) back to the client.

This is quite similar to an ASP page or CGI script: the content is executed
on the server, the output sent to the client. The client won't see and code.

I hope this answers your question.

Niki
 
G

Guest

Hi Gordon

Infact any webserver is not supposed to send source code when it gets a request for a page hosted on that. If you request an asmx page, IIS checks whether that page exists or not, if exists, it passes the control to registered handler (asp.net runtime). The runtime executes the request and send the reponse stream back to IIS to send it back to client

HT
Sudhakar Sadasivun
Microsoft .NET MV
http://weblogs.asp.net/ssadasivun


----- Gordon Knote wrote: ----

Hi

just one newbie question: When I connect to a WebService, I specify the *.asmx file as a destination in my client - but this file also contains my source code - does that mean that every web service is basically open source

thank
Gordon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top