webservice Interface problem

Posted by Saravanan05 under ASP.NET on 12/3/2010 | Points: 10 | Views : 1684 | Status : [Member] | Replies : 4
hi to all

The below function return type IFeatureReader is a interface..

In interface webservices not accept..how can i achive this in webservice..

public IFeatureReader GetSite (IConnection connection,
long site_id)

I referrd google and many links,i didnt get clear idea on this.




Responses

Posted by: Vuyiswamb on: 12/21/2010 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
What Exactly is your Problem ?

Thank you for posting at Dotnetfunda
[Administrator]

Saravanan05, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 1/8/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi,

Your questions is to make use of Webservice in Interface?

Thanks
Karthik
www.f5Debug.net

Saravanan05, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Suresh.mekkattil on: 1/9/2011 [Member] Bronze | Points: 25

Up
0
Down
Sorry,
The question was not clear!!!

-----
Suresh M

Saravanan05, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Atal.upadhyay on: 1/9/2011 [Member] Starter | Points: 25

Up
0
Down
If I understood your question correctly, you want to ask how to pass the object into web service.
Method signature:
public IFeatureReader GetSite (IConnection connection,
long site_id)

Call to Web Service:

IFeatureReader myFeatureReader;
myFeatureReader=GetSite(conn);

In myFeatureReader, object, you will get the concrete implementation of the object which is derived from IFeatureReader interface. This means you should have objects having concrete implementation of the IFeatureReader in your project.

Hope this help.

Saravanan05, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response