WS-Addressing

Hey!

Where can I find a simple code example of WCF using WS-Addressing.
I'm using January CTP.
Thanks.

[melack]


Answer this question

WS-Addressing

  • Hardi

    Scott, I have one question more. You showed me how the envelopes look like.
    Where can I find them

    [melack]


  • JasonJackson

    Hi Scott,

    The 1st link is unavailable. Could you post an existing WS-Addressing sample link

    Thanks,

    Hellen


  • eshl

    Scott, I think that's what I'm looking for. Can you post me the link to that sample
    Thanks.

    [melack]

  • Jamie MacLennan

    That looks like you're looking for the duplex sample in the SDK. The client uses a oneway call to the server and passes the return address in the <From> element. When the server is ready to reply it makes another oneway call back to the client using the address it received in the first message from the client.

    Thus you get your asynchronous behaviour. If you look at the envelopes they will look simliar to this:

    <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:r="http://schemas.xmlsoap.org/ws/2005/02/rm" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing">

    - <s:Header>
    <a:Action s:mustUnderstand="1">urn:DuplexTest/IDuplexTest/DoSomething</a:Action>
    - <a:From>
    <a:Address>http://localhost:8000/DuplexTestUsingCode/Client/b0c7fc2f-95fc-4b49-bd40-ced7f682b881</a:Address>
    </a:From>
    <a:To s:mustUnderstand="1">http://localhost:12000/DuplexTestUsingCode/Server</a:To>
    </s:Header>
    - <s:Body>
    <DoSomething xmlns="urn:DuplexTest" />
    </s:Body>
    </s:Envelope>
    Is this what you're looking for
    Thanks,
    Scott


  • Charles Brownmiller

    What you can do to see your envelopes is set up a message logger.

    http://windowssdk.msdn.microsoft.com/library/en-us/WCF_Con/html/0ff4c857-8f09-4b85-9dc0-89084706e4c9.asp frame=true

    Once you have your traces, you can view them in the svctraceviewer tool.

    http://windowssdk.msdn.microsoft.com/library/en-us/WCF_tools/html/9027efd3-df8d-47ed-8bcd-f53d55ed803c.asp frame=true

    Thanks,

    Scott



  • jpfette

  • Dr. Thunder

    Thanks for reply.
    I'm trying to do an asynchronus client callback with WS-Addressing.

  • FabioTv13

    Thanks, Scott.

    I made my own duplex sample and it works.
    Now, I read some articles about WS-Addressing, so I have some knowledge about it.
    How can I demonstrate it within my duplex communication channel

    I was playing with OperationContextScope() and OperationContext.Current.OutgoingMessageHeaders on the clients side and OperationContext.Current.RequestContext.RequestMessage.Headers on the server side.

    I could add additional headers and display them but is that enough to demonstrate ws-addressing purpose

    [melack]

  • humble.apprentice

    What are you trying to do specifically

    Thanks



  • tdat

    I was looking for something like this

    http://mdavey.wordpress.com/2005/11/28/wcf-duplex/
    (duplex communication)

    and this

    http://www.webserviceshelp.org/wsh/Standards/Web+Services+Addressing/
    (WS-Addressing)

    Cheers!

    [melack]

  • WS-Addressing