RestFul WCF Web服务POST方法问题

编程入门 行业动态 更新时间:2024-10-28 17:17:01
本文介绍了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""www.w3/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方法问题

本文发布于:2023-10-09 21:04:53,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1476784.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:方法   WCF   RestFul   POST   Web

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!