how to call wcf application?


hi all,

i have sl , wcf application. wcf appliation seperate project intermediate of sl application. doubt i'm calling wcf methods sl wcf methods not calling wcf event raised, put break point @ wcf application wcfimageprocessing.svc file control coming here.

private wcfapplicationref.wcfimageserviceclient webservice;
       
        public page()
        {
            initializecomponent();
            compositiontarget.rendering += compositiontarget_rendering;
           
            initializevalues();
            try
            {
                blnfimorrim = true;
                initializevalues();

                dblcurrenttotalangle = 0;

                eventofimagemanager();
        

            }
            catch (exception ex)
            {
                messagebox.show(ex.message + " innerexception " + ex.innerexception.tostring());
            }
        }

        private void eventofimagemanager()
        {
            address = new uri(application.current.host.source, "/mywcfprojectname/wcfimageservice.svc");
            webservice = new wcfapplicationref.wcfimageserviceclient("basichttpbinding_wcfimageservice", address.absoluteuri);
            webservice.callimagemanagercompleted += new eventhandler<silverlightimageprocessing.wcfapplicationref.callimagemanagercompletedeventargs>(webservice_callimagemanagercompleted);
            webservice.callimagemanagerasync(blnfimorrim);
        }

        void webservice_callimagemanagercompleted(object sender, silverlightimageprocessing.wcfapplicationref.callimagemanagercompletedeventargs e)
        {
            try
            {
                bindbytearray(e);
            }

            catch (exception ex)
            {
                messagebox.show(ex.message + " innerexception " + ex.innerexception.tostring());
            }

        }

experts please tell me problem in code.

 

if webserice working, publish on iis

when if can reach webservice typing in url browser (a view quite compareable ftp views) reachable.

since compatible silverlight (when works local while debugging is), need clientaccesspolicy.xml in rootfolder of webservice (you can open via http://server:port/clientaccesspolicy.xml ) should work.

 

hold eye on namespace giving webservice , app.

else tell me exact point isnt working following list of above?



Silverlight  >  Programming Silverlight with .NET – General



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........