I am trying to implement some WCF and REST service to upload a file on my server, and I have found some code which I am trying to implement but no success yet.
Well I added a virtual directory in IIS called localhost/GetResponse/ and added the files to it, which inclides the GetResponse.svc, but this is never called.
Can you point me to some example I can follow since I am quite new to WCF.
My aim is to have an XML file from a windows app posted on my server and found a tutorial how to do that but I am not successful at the moment in implementing it
Member
34 Points
167 Posts
Cannot open host WCF REST Services
Apr 19, 2011 06:10 AM|monfu|LINK
Dear All,
I am trying to implement some WCF and REST service to upload a file on my server, and I have found some code which I am trying to implement but no success yet.
Basically this is my code :-
Participant
823 Points
397 Posts
Re: Cannot open host WCF REST Services
Apr 19, 2011 06:28 AM|bhavik.y.shah|LINK
Hello,
Please try to host your application in your localhost.
and then try to host or publish your WCF or REST service.
Thanks & Regards.
Skype ID : bhavik.shah2004
Member
34 Points
167 Posts
Re: Cannot open host WCF REST Services
Apr 19, 2011 06:44 AM|monfu|LINK
Hi Bhavik
I am already hosting the application on my localhost
Participant
823 Points
397 Posts
Re: Cannot open host WCF REST Services
Apr 19, 2011 06:53 AM|bhavik.y.shah|LINK
Ok,
So you are publishing that wcf service or not?
Thanks & Regards.
Skype ID : bhavik.shah2004
Member
34 Points
167 Posts
Re: Cannot open host WCF REST Services
Apr 19, 2011 06:58 AM|monfu|LINK
Well I added a virtual directory in IIS called localhost/GetResponse/ and added the files to it, which inclides the GetResponse.svc, but this is never called.
Can you point me to some example I can follow since I am quite new to WCF.
My aim is to have an XML file from a windows app posted on my server and found a tutorial how to do that but I am not successful at the moment in implementing it
Participant
823 Points
397 Posts
Re: Cannot open host WCF REST Services
Apr 19, 2011 07:03 AM|bhavik.y.shah|LINK
Hello,
Please go thru below links.
http://blogs.msdn.com/b/amitlale/archive/2007/05/21/hosting-wcf-service-in-iis.aspx
http://www.techbubbles.com/wcf/host-the-wcf-service-in-iis/
Thanks & Regards.
Skype ID : bhavik.shah2004
Member
34 Points
167 Posts
Re: Cannot open host WCF REST Services
Apr 19, 2011 07:06 AM|monfu|LINK
thanks bhavik
Member
34 Points
167 Posts
Re: Cannot open host WCF REST Services
Apr 20, 2011 06:48 AM|monfu|LINK
Hi bhavik
So I read some tutorials and published my WCF Service on the localhost at http://localhost/UploadService/UploadService.svc/ and that is loading.
Now I am applying the code as follows :-
However the response I am getting is :-
The remote server returned an error: (400) Bad Request.
Am I doing something wrong here?