RestFul WCF Web服务POST方法问题 [英] RestFul WCF webservice POST method issue

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

问题描述

在这里,我创建了一个RESTful WCF Web服务POST方法&我想通过这种方法在数据库中添加一些内容.但是,我的要求是,使用GET WebService方法&中的结果xml.要通过POST方法发布.

追随者,提琴手中的错误....

Here,I create a RESTful WCF webservices POST method & want to add some content in database from this method .But ,my requirement is that,consume Resulted xml from GET WebService method & want to post it from POST method.

Followings,the error in fiddler....

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Length Required</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Length Required</h2>
<hr><p>HTTP Error 411. The request must be chunked or have a content length.</p>
</BODY></HTML>

推荐答案

我也有同样的问题.在带有IIS 7.5的Windows 7专业版中,测试是成功的良好测试.将其部署到具有IIS 7的Windows 2008 Server(标准版)中,然后所有HTTP POST都会出现此错误411内容长度问题.
帮助!!!我需要将其推广到生产环境.
I have the same issue too. Testings are good and successful in Windows 7 Premium with IIS 7.5. Roll it out to Windows 2008 server (standard version) with IIS 7, then all HTTP POST are having this error 411 content lenght issues.
HELP!!! I need to roll it out to production.


这篇关于RestFul WCF Web服务POST方法问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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