Monday, 15 June 2015

c# - Call one-way method -



c# - Call one-way method -

i'm trying implement task requires long time complete, one-way method of single web service.the thought method returns command , began perform task without forcing user wait. on local machine works fine, when deployed server - looks one-way method not called @ all. added logging, not 1 of methods of new web service has not been called. server supports anonymous access. windows business relationship anonymous access set , other services no problems. advise problem. give thanks you.

//main service ... string directory = server.mappath(...); using(onewaylauncherservice.onewaylauncher onewaylauncher= new onewaylauncherservice.onewaylauncher()) { onewaylauncher.launch(directory, doc); } ... /// oneway service namespace onewaylauncher { [webservice(namespace = "http://tempuri.org/")] [webservicebinding(conformsto = wsiprofiles.basicprofile1_1)] [toolboxitem(false)] public class onewaylauncher: system.web.services.webservice { [soapdocumentmethod(oneway = true)] [webmethod] public void launch(string directory, string doc) { processor requestprocessor = new processor(templatedirectory); string processingresult = string.empty; processingresult = requestprocessor.process(doc); } } }

if comment [soapdocumentmethod (oneway = true)] - works. think may premature cleanup, without using exact same situation.

c#

No comments:

Post a Comment