开发者

how is the behaviour of webservice in infopath?

I have webservice in asp.net. it h开发者_如何学编程aving the webmethod with return type as bool. I am inserting the record from infopath repeating table to xml file using my web method InsertRecord(). this is boolean type method. it returns true in insert record successful else returns false. but how to get return value in infopath.


For InfoPath 2007 MSDN states: “For a submit operation, you can set the XML payload, but you cannot retrieve the XML response.” For InfoPath 2010 I can't see a similar article on MSDN.

You have two options:

  1. redesign the web service to throw an exception in case of failure which will lead to a SOAP fault, and in turn a submit failure in InfoPath;
  2. use custom code to call the web service and submit the data yourself.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜