2012-11-29 186 views
0

我的代碼如下:添加引用WCF服務的Silverlight應用程序

   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); 

這裏ServiceReference1未創建如何創建服務引用,並ServiceReference1在xaml.cs提供page.Anyone幫助我大大appriciated

+0

是什麼問題...錯誤???? –

+0

我不做服務referece.how去做?ServiceReference3或ServiceReference1。請使用xaml.cs page.how創建服務引用。 – decoder

+0

是你的工作嗎? –

回答

相關問題