2010년 3월 24일 수요일

infopath 웹서비스 호출

infopath 웹서비스 호출


C#

WebServiceAdapter2 wsAdapter = (WebServiceAdapter2)thisXDocument.DataAdapters["DataConnectionName"];
wsAdapter.Timeout = 60; // Increase to 60 seconds - Default is 30
wsAdapter.Query(); // Issue the query
JScript

var wsAdapter = XDocument.DataAdapters["DataConnectionName"];
wsAdapter.Timeout = 60; // Increase to 60 seconds - Default is 30
wsAdapter.Query(); // Issue the query
web.config change





댓글 없음:

댓글 쓰기