0

I am trying to pass a file from WCF to asmx web service. I have added reference of asmx service in WCF project... when I call the function in web service it shows the error

cannot convert from System.IO.FileStream to WcfLayer.ServiceReference1.File Stream

The function definition in web service is

[WebMethod]
public void Import(FileStream fs)
{
}

Function call is

  FileStream fStream = new FileStream(fileName,FileMode.Create);
  ServiceReference1.ImportXliffSoapClient client = new  ServiceReference1.ImportXliffSoapClient();
  client.Import(fStream);
4

1 に答える 1