« Generic WSE Soap Router | Main | Generic Soap Router Pt. 3 »

2004.06.16

Generic WSE Soap Router Pt.2

I did try out the code I mentioned -- it worked with a caveat.

I needed to change:


envelope.Context.Addressing.Via = newAddress;
ISoapOutputChannel channel
= SoapTransport.StaticGetOutputChannel(envelope.Context.Addressing.Destination);

to something like:


envelope.Context.Addressing.Via = newAddress;
ISoapOutputChannel channel
= SoapTransport.StaticGetOutputChannel(new EndpointReference(envelope.Context.Addressing.To.Value, newAddress));

This may not be the best approach, but it does work, and I don't have to clone the soap envelope, which is nice for response time and memory utilization reasons, as I mentioned before. I don't have the code in front of me, so please forgive if something isn't quite right. You should get the general idea. I want to add async sending and correlation of responses, but I need to think through the ramifications a bit. I am also thinking more about the multi-hop routing. I have a need for multi-hop forward-only routing. I don't have to worry about chaining back through the intermediaries. I would like to provide the facility to reply back to the originating systems, but that would be short-circuited, rather than traveling through the intermediaries. Unfortunately, the politics of the design aren't allowing for it. I think it will come back to haunt us a bit, but the world won't end if it does. They'll just have to do the billing by hand when it screws up :)

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d83451806669e200d8353a699269e2

Listed below are links to weblogs that reference Generic WSE Soap Router Pt.2:

Comments

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Comments are moderated, and will not appear until the author has approved them.

November 2008

Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            
Blog powered by TypePad

We Like