locked
WCF SSL callback RRS feed

  • Question

  • Hi Guys,

    Can anyone shows me how I can write a custom binding which supports SSL + Callback?


    Actually I need Session, SSL security and Callback capability on a custom binding....
    • Edited by mcmilad Saturday, August 25, 2012 10:57 PM to update
    Saturday, August 25, 2012 10:56 PM

Answers

  • Hi,

    You should add <OneWay> to the Binding:

        <bindings>
          <customBinding>
            <binding name="NewBinding">
              <textMessageEncoding />
              <reliableSession />
              <compositeDuplex />
              <oneWay />
              <httpTransport />
            </binding>
          </customBinding>
        </bindings>

    Hope helpful.
    • Marked as answer by Otomii Lu Friday, August 31, 2012 6:12 AM
    Tuesday, August 28, 2012 3:22 AM
  • Hi,

    Please try to use <httpsTransport /> instead of <httpTransport />

    • Marked as answer by mcmilad Monday, September 10, 2012 12:19 PM
    Monday, September 10, 2012 1:52 AM

All replies

  • Tried by using:

    <binding name="NewBinding">

    <textMessageEncoding />

    <reliableSession />

    <compositeDuplex />

    <httpTransport />

    </binding>

    and also:

    <binding name="NewBinding">

    <binaryMessageEncoding/>

    <reliableSession />

    <compositeDuplex />

    <httpTransport />

    </binding>

    didn't help as it says:

    "Binding 'CustomBinding' doesn't support creating any channel types. This often indicates that the BindingElements in a CustomBinding have been stacked incorrectly"

    But I believe the order should be correct







    • Edited by mcmilad Sunday, August 26, 2012 1:31 AM
    Saturday, August 25, 2012 11:36 PM
  • Hi,

    You should add <OneWay> to the Binding:

        <bindings>
          <customBinding>
            <binding name="NewBinding">
              <textMessageEncoding />
              <reliableSession />
              <compositeDuplex />
              <oneWay />
              <httpTransport />
            </binding>
          </customBinding>
        </bindings>

    Hope helpful.
    • Marked as answer by Otomii Lu Friday, August 31, 2012 6:12 AM
    Tuesday, August 28, 2012 3:22 AM
  • thank  you for your help mate,

    that worked with http endpoint address but didn't work with https, it says

    System.ArgumentException: The provided URI scheme 'https' is invalid; expected 'http'.

    I used https://localhost:1000/test as endpoint address but if I change to http, that works alright

    any idea?

    • Marked as answer by mcmilad Sunday, September 9, 2012 4:09 AM
    • Unmarked as answer by mcmilad Sunday, September 9, 2012 4:09 AM
    Saturday, September 8, 2012 5:13 AM
  • Hi,

    Please try to use <httpsTransport /> instead of <httpTransport />

    • Marked as answer by mcmilad Monday, September 10, 2012 12:19 PM
    Monday, September 10, 2012 1:52 AM
  • Fantastic,

    Awesome job mate, thank you

    Monday, September 10, 2012 12:20 PM
  • Guys,

    any way that I can add <Security> to the binding? 'cause everywhere I add it, it comes up with an error.

    Friday, September 28, 2012 10:57 PM