bhavna_816 0 Junior Poster

I have a webservice which accesses some methods from the Business layer.
I made a website which uses this webservice, I have given the WEb reference for that web service.

I want to call a WebMethod which uses some structures from the business layer.
I am populating the business layer struct objects in aspx.cs file and sending the input to the Webservice.
It gives compilation error that

Cannot implicitly convert type 'BusinessLayer.ClassName' to 'WebService.ClassName'

I have typecasted the classname as

Webservice.ClassName class1 = new Webservice.ClassName();

But with this I am not able to access class methods.

I am working in C# and ASP.NET 2.0

Can anybody have any idea or suggestion?