Unable to get Generic type safe response from WCF service

Posted by Kirankumarsanka under WCF on 2/25/2011 | Points: 10 | Views : 2376 | Status : [Member] | Replies : 5
Hi,

I have written the code as:

IResponse<DTO> getData(DataItemdt);

I tried with all the scenarios like keep ServiceknowType.

am getting following error response

An error occurred while receiving the HTTP response to
service. This could be due to the service endpoint binding not using the HTTP protocol.
This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down).
See server logs for more details.




Responses

Posted by: Naimishforu on: 2/26/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
umm..nver faced such kind of prb...need expert's advice....

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

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

Posted by: Madhu.b.rokkam on: 2/26/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Please provide more details .. Unable to get your point

Thanks and Regards
Madhu

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

Posted by: Naimishforu on: 2/26/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Are you using SOAP format??

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

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

Posted by: Madhu.b.rokkam on: 2/26/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Make sure that your generic return type object is serialized ...

Thanks and Regards
Madhu

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

Posted by: Naimishforu on: 2/26/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
If he's using SOAP format, it will automatically be serialised.

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

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

Login to post response