none
WCF Routing Service does not route http headers? RRS feed

  • Question

  • Hi,

    As subject says - a client adds a standard http header but it never arrives at the receiver behind the WCF router. Can it really be that I can't forward/route http headers?

    Thanks.

    -- 
    Werner

    Wednesday, June 11, 2014 12:42 PM

Answers

  • Hi,

    The soapProcessing behavior is added by default to all client endpoints by the WCF Routing Service. But it ignores the HTTP headers that we add in our custom behavior while cloning the message.


    To get around this issue, please try to refer to the following options:

    1)Please disable the soapProcessing behavior for the service or the endpoint you are routing to (in your routing config). This link tells you how to do it:
    #soapProcessing:
    http://msdn.microsoft.com/en-us/library/ee816919.aspx

    2) If the first solution doesn't work for you, please try to use a custom binding element instead of a behavior.

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Thursday, June 12, 2014 9:20 AM
    Moderator

All replies

  • Hi,

    The soapProcessing behavior is added by default to all client endpoints by the WCF Routing Service. But it ignores the HTTP headers that we add in our custom behavior while cloning the message.


    To get around this issue, please try to refer to the following options:

    1)Please disable the soapProcessing behavior for the service or the endpoint you are routing to (in your routing config). This link tells you how to do it:
    #soapProcessing:
    http://msdn.microsoft.com/en-us/library/ee816919.aspx

    2) If the first solution doesn't work for you, please try to use a custom binding element instead of a behavior.

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Thursday, June 12, 2014 9:20 AM
    Moderator
  • Excellent!

    Setting the client behaviour to deactivate soapProcessing/@processMessages worked.

    Thanks Amy.

    Thursday, June 12, 2014 10:18 AM