Link to home
Start Free TrialLog in
Avatar of noulouk
noulouk

asked on

Webservice : Unable to serialize the interface

Hi Experts,

I have a project with contains my interface ( ITest ).

public interface ITest
{
void myfunction(string data);            
}

In my webservices project (second one), I build the service1.asmx like this:

[WebMethod]
public string HelloWorld(ITest test)
{
      return "Hello World";
}

When I add a webreference to my last project to test my webservice service1.asmx, Visual Studio throw me the exception:
Unable to serialize the interface.

Thanks in advance for helping me to solve my problem.
ASKER CERTIFIED SOLUTION
Avatar of Jesse Houwing
Jesse Houwing
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ofcourse ;)