Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I aiming to create a program/application which can do the following task:

Aim : To send data to through HTTPs request

1. create xml string

2. pass database data into the xml string

3. create API url

4. pass xml string to API url (POST Method)

I am not sure, which .net project/web site option to use. From my research, it seems web service and WCF applications seems to be better for these tasks. I have experience using and creating, web-api and web applications and I was wondering, if it was possible to carry out the task using web-application/web-site.

Any feedback would be most appreciated.

Many thanks
Posted
Comments
Sergey Alexandrovich Kryukov 1-Sep-14 12:14pm    
This is a totally wrong question. It's not important what type of project to use; it depends on what you want to achieve. You can send an HTTP request, get HTTP response and handle the data in any kind of project.
—SA

1 solution

Your "research" got you wrong results.

The steps you want to do have nothing to do with WCF (only the XML serializer, formally, can be from WCF technology, but you never explained what it is), and nothing to do with the Web service. In this steps, your code acts as a client of some Web site or Web service. And it can be done in nearly any type of project, which may or may not be a service; it can be anything. It depends on your goals, nothing else.

—SA
 
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