我的代码如下:
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 页面中可用。任何帮助我的人都非常感谢