Click here to Skip to main content
15,887,175 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have written a sample web service in c# named service.asmx
i have published it in local IIS under the default web site.
Then i accessed the service from another c# project. It works fine.

Now i want to host this service service.asmx into my web server which is
hosted in godaddy.com
so i have published the service into my web folder in the web server.
my ftp path is "ftp://ftp.abc.com/httpdocs/Service1/ "

Now, how can i access it from another application.
I tried by giving the above ftp path, but showing error.

Please advice.

What I have tried:

accessing web service from web server
Posted
Updated 28-Jan-17 1:29am
v2
Comments
Afzaal Ahmad Zeeshan 28-Jan-17 7:22am    
You have just deployed the content, FTP paths are just used for the deployment, where you will access it, depends on what domain name you bought from them etc.

1 solution

Please see the comment to your question.

The FTP urls are just used for FTP communication, the communication where you share files over the network. To access the WCF from HTTP, you need an endpoint where you can perform an HTTP communication, or other communication based on the protocols that are supported by WCF.

To know which protocols are supported, have a look at the following links,
what are the protocols supported in WCF? | The ASP.NET Forums[^]
c# - Which protocols are there, that can be used with WCF? - Stack Overflow[^]
Configuring System-Provided Bindings[^]

Then finally, it is under the GoDaddy control panel where you can access the details about endpoints of your WCF application. You need to then access the service from that URL. IF you are new to this, you should read the following links to learn more on this topic,
Hosting a WCF Service on GoDaddy[^]
Customize IIS settings | Web & Classic Hosting - GoDaddy Help PK[^]

These links will guide you setup the bindings that are required by your application in order to actually run the WCF service on GoDaddy and to be able to communicate over the network.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900