当前位置:编程学习 > C#/ASP.NET >>

Webservice ContextType

各位大虾,小弟写了一个WebService,其中的WebMethod返回类型为XmlDocument,我在客户端使用post方法调用,当指定request对象的ContextType为application/x-www-form-urlencoded时,可以正常调用,但是客户要求ContextType需要是application/xml,这种方式总是返回一个异常,异常信息是The remote server returned an error: (500) Internal Server Error.请高手指教,小弟不胜感激。 --------------------编程问答-------------------- WebMethod里没有判断contentType吗?

参考:
http://blog.csdn.net/fangxinggood/archive/2011/03/26/6279233.aspx
补充:.NET技术 ,  Web Services
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,