none
Transfere Data Between WCF service and Client Consumer RRS feed

  • Question

  • Hi,

    I have consumed a readymade  WCF web service inside another WCF web service, and I have consumed the last one inside Console Application.

    Everything is good and when I debug the code using breakpoints the last service brings the data from the first serivce, but when it returns the data object, the debug session terminated and it does not come back to the client Console Application again.

    Note: The first service is not mine, I just consume it in another service.

    Note 2: The returned data are not too big to be returned to the client Console application.

    Any help?

    Thanks & Best regards,

    Abdelfattah


    Wednesday, May 17, 2017 11:58 AM

All replies

  • Did your structure follow below scenario?

    There are ServiceA, ServiceB and Console application. ServiceB calls ServiceA, console application calls ServiceB. Console Application get the expected resolve from ServiceB, but the handler did not return to console application.

    Could you share us related code in console application and service contact interface and class in ServiceB?

    To check whether it is related with ServiceA, I would suggest you try to comment out the ServiceA related code, return a generated value from ServiceB, will this issue still exist?


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, May 18, 2017 1:52 AM
  • Hi Edward,

    Thanks for your reply.

    Actually, this exception appears in the Console app

    "An error occurred while receiving the HTTP response to http://localhost:3821/MyService.svc. 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."

    Could you check that  please?

    Thanks,


    Thursday, May 18, 2017 6:59 AM
  • This is widely error message.

    >> This could be due to the service endpoint binding not using the HTTP protocol

    For this error, did you host ServiceB by http?

    >> This could also be due to an HTTP request context being aborted by the server

    It seems there is an error in service side which abort the request. Will you get this error for all ServiceB method or the specific method?

    I would suggest you enable WCF Tracing in both client and service side to check depth error.

    It would be helpful if you could share us related code, and then we could try to reproduce your issue.

    Per to this error, I would suggest you check whether below links are helpful.

    # This could be due to the service endpoint binding not using the HTTP protocol

    http://stackoverflow.com/questions/5870958/this-could-be-due-to-the-service-endpoint-binding-not-using-the-http-protocol


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, May 19, 2017 2:20 AM