Methods with Nullable Types not working in ASMX Web Service using GET

假装没事ソ 提交于 2019-12-05 05:58:10
Bala R

nullable int is not too complex. it should produce

  <s:element minOccurs="1" maxOccurs="1" name="Param" nillable="true" type="s:int" /> 

in WSDL. Check out this post. The error could be for something else, perhaps?

You must use json text if you have such int? argument because it is an object type not primitive type. The error is misleading because the service exists.

if you have int? a as parameter you must send "{'a':null}" as content to server or some integer instead of null.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!