Deployment and testing from another computer

  • Thread starter Sebastien Lange
  • Start date
S

Sebastien Lange

Hi,

I need to create a web service. This web service should be installed on my
machine, and accessed by other PCs, so my PC should become a server, how can
I achieve this?

I was able to create a web service and tested it successfully on my machine,
using http://localhost/WebServices/service1.asmx . But how would other
machine access it? I don't want to create a website. Is it possible to
access it like this: http://138.203.xxx.xxx/WebServices/service1.asmx (I was
not able to access it from my own machine!)
What settings should I change on my computer to allow other users to access
it?
How can I restrict access to only some users?
Is it due to a firewall?
Any samples is appreciated, or msdn documentation, or a good webservices
book...

Thanks,
Sebastien
 
J

Jacob Yang [MSFT]

Hi Sebastien,

Based on my research and experience, I would like to share the following
information with you.

1. How to access web service.

Please refer to the following Knowledge Base articles for this issue:

HOW TO: Write a Simple Web Service by Using Visual C# .NET
http://support.microsoft.com/default.aspx?scid=kb;en-us;308359
"This step-by-step article shows you how to write a simple Web service,
called MathService, that exposes methods for adding, subtracting, dividing,
and multiplying two numbers."

HOW TO: Write a Simple Web Service by Using Visual Basic .NET
http://support.microsoft.com/default.aspx?scid=kb;en-us;301273

I have tested the sample code. All the following URLs work fine.

http://localhost/MathService/MathService.asmx
http://sha-jiany-2000/MathService/MathService.asmx
http://157.60.69.79/MathService/MathService.asmx

You have mentioned the firewall in your post. Do you mean that you want to
access your web service out of the firewall? It should be the reason of
this issue because of the security consideration. Please refer to the
following Knowledge Base article.

HOW TO: Lock Down an ASP.NET Web Application or Web Service
http://support.microsoft.com/default.aspx?scid=815145

2. The security of web service

Please refer to the following articles carefully regarding this issue:

Security in a Web Services World: A Proposed Architecture and Roadmap
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwssecur/h
tml/securitywhitepaper.asp

Web Services Security
http://msdn.microsoft.com/security/securecode/webservices/default.aspx

Building Secure ASP.NET Applications: Authentication, Authorization, and
Secure Communication
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/ht
ml/secnetch10.asp

I hope it helps

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

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

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top