Cannot merge schemas with targetNamespace='http://tempuri.org/'. Several mismatched declarations were found: Schema item 'complexType' named 'Page' from namespace 'http://tempuri.org/'.
geçersiz:
[WebMethod]
public void Create(Page page, out string errors)
{
PageController controller = new PageController();
controller.Create(page, out errors);
}
geçerli:
[WebMethod]
public void Create(string title, out string errors)
{
PageController controller = new PageController();
var page = new Page();
page.Title = title;
controller.Create(page, out errors);
}
daha iyi bir çözüm:
[WebMethod]
public void Create(SerializableEntity
{
_controller.Create(page.Entity, out errors);
}
Parametre olarak Page'i (yani complextype'ı) kabul etmiyor.
Not: LinqSqlSerialization.dll
web service - Cannot merge schemas with targetNamespace='http://tempuri.org/'. Several mismatched declarations were found: Schema item 'complexType' named 'Page'...
Gönderen
pantepember
5 Kasım 2009 Perşembe
Etiketler: complextype , web service