decoder
decoder

Reputation: 926

Add reference to wcf service to silverlight application

my code is as follows:

                ServiceReference1.ImageFile imagefile = new ServiceReference3.ImageFile();
            imagefile.ImageName = fileName;
            imagefile.Imagestream = bytes;

            ServiceReference3.Service1Client service = new ServiceReference3.Service1Client();
            service.UploadCompleted += new EventHandler<ServiceReference3.UploadCompletedEventArgs>(service_UploadCompleted);
            service.UploadAsync(imagefile);

here ServiceReference1 is not created how to create service reference and make ServiceReference1 available in xaml.cs page.Anyone helps me is greatly appriciated

Upvotes: 0

Views: 494

Answers (1)

Pranay Rana
Pranay Rana

Reputation: 176896

MSDN turotial : How to: Access a Service from Silverlight fir adding service reference

or for web reference

You can do like this check this article for detail : Add Web Reference to Silverlight Application

enter image description here

Upvotes: 1

Related Questions