HTTP的SOAP \ GET \ POST [英] HTTP SOAP\GET\POST

查看:181
本文介绍了HTTP的SOAP \ GET \ POST的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VS 2008中创建了我的第一个Web服务,3天前,并思考消耗它,当我遇到了以下问题,您的Web服务:

I created my first web service 2 days ago in VS 2008 and was thinking about consuming it when I came across the following questions about web services:

1)我的Web服务测试调用页面(罐头页这是作为.NET Framework的一部分)不显示任何样本HTTP GET请求\响应消息。唯一的消息则显示为HTTP POST,SOAP 1.1和SOAP 1.2。我将假定Web服务是一些如何不鼓励使用HTTP GET协议来调用它们?

1) My web service Test Invocation page(canned page which comes as a part of .NET framework) does not displays any sample HTTP GET request\response messages. The only messages it displays are of HTTP POST, SOAP 1.1 and SOAP 1.2 . Shall I assume that web services are some how not encouraging the use of HTTP GET protocol for calling them?

2)要通过浏览器的HTTP-POST调用,我创建了一个示例HTML页面。我可以这样做,以使样本HTTP的SOAP调用呢?如果是的话,将反应在SOAP格式?任何人都可以给我这样一个HTML页面。

2) To make an HTTP-POST call through browser, I created a sample html page. Can I do the same to make sample HTTP-SOAP call as well? If yes, would the response be in SOAP format? Can anyone send me such an html page.

3)我们如何发送主机的头信息,而通过浏览器进行调用Web服务?

3) How do we send Host Header information while make a call to web service through a browser?

4)为什么我们把它叫做HTTP的SOAP调用当我们打电话到Web服务使用POST方法(方法='后')?

4) Why do we call it a 'HTTP-SOAP call' when we make a call to web service using POST method(method='post')?

5)为什么HTTP的SOAP应采取precedence通过HTTP-GET和HTTP-POST?

5) Why HTTP-SOAP should take precedence over HTTP-GET and HTTP-POST?

感谢和问候 米兰

推荐答案

,因为它们需要复杂的SOAP请求(XML),它可以不包括在查询字符串只使用HTTP POST。标准的SOAP服务

Standard SOAP services are using only HTTP POST because they require complex SOAP request (XML) which cannot be included in query string.

当你想调用web页面的SOAP服务,你的页面必须建立有效的SOAP请求。正因为如此,SOAP调用通常是从自动生成的客户端提供服务的服务器端creted。

When you want to make call to your SOAP service from web page, your page must built valid SOAP request. Because of that, SOAP calls are usually creted from autogenerated service clients on server side.

我们可以把它叫做HTTP,SOAP,因为它是通过HTTP协议与POST方法传输SOAP请求。

We can call it HTTP-SOAP because it is SOAP request transported by HTTP protocol with POST method.

它并不需要precedence。这是怎么SOAP服务通常工作。如果你想使用HTTP GET和HTTP POST,你应该检查REST服务。

It doesn't take precedence. It is how SOAP services usually work. If you want to use HTTP GET and HTTP POST you should check REST services.

这篇关于HTTP的SOAP \ GET \ POST的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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