用于构建任务的应用程序,向HTTP发送HTTP请求 [英] What to Application to use to build the task, of sending HTTP request to API

查看:59
本文介绍了用于构建任务的应用程序,向HTTP发送HTTP请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的目标是创建一个可以执行以下任务的程序/应用程序:



目标:通过HTTPs请求发送数据



1.创建xml字符串



2.将数据库数据传递到xml字符串



3.创建API网址



4.将xml字符串传递给API网址(POST方法)



我不确定,使用哪个.net项目/网站选项。根据我的研究,似乎Web服务和WCF应用程序似乎更适合这些任务。我有使用和创建web-api和Web应用程序的经验,我想知道,是否有可能使用web-application / web-site执行任务。



任何反馈都会非常感激。



非常感谢

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

推荐答案

你的研究给你错误的结果。



您想要做的步骤与WCF无关(只有XML序列化器,正式来说,可以来自WCF技术,但您从未解释过它是什么),与此无关Web服务。在此步骤中,您的代码充当某些Web站点或Web服务的客户端。它几乎可以在任何类型的项目中完成,这些项目可能是也可能不是服务;它可以是任何东西。这取决于你的目标,没有别的。



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


这篇关于用于构建任务的应用程序,向HTTP发送HTTP请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆