Wrox Programmer Forums
BOOK: Professional WCF Programming: .NET Dev with Windows Communication Found ISBN: 9780470089842
This is the forum to discuss the Wrox book Professional WCF Programming: .NET Development with the Windows Communication Foundation by Scott Klein; ISBN: 9780470089842
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional WCF Programming: .NET Dev with Windows Communication Found ISBN: 9780470089842 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 21st, 2008, 09:26 PM
Registered User
Join Date: Aug 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default WCF Remote Client Callbacks using wsDualHttpBindin

I am developing an application using WPF and WCF. This app on the server side will need for WCF services hosted in IIS6 to communicate with WCF services that are hosted as Windows services on the same server / or network. Also the WCF services hosted in IIS6 has to communicate with the WPF client apps that will be installed on computers that are not in the same network as the server/s. Right now I am creating small test apps so I can figure out how to get everything to play.

I have sucessfully made calls from WPF to WCF, hit the data store from WCF and passed back complex types to WPF with security etc. That part works great, however trying to do a client callback is kicking my butt. I have walked through several tut's on the net with no sucess. and I think I know why. All of the tut's that I have found are client/server where the client and the server are on the same network. Another problem I have is that my development machine is behind a router (on a different network than the server, and this is the same type of environment all of the users of this app will have) so when I create the custom binding on the client and set the ClientBaseAddress (as follows);

Dim mybinding As WSDualHttpBinding = New WSDualHttpBinding(WSDualHttpSecurityMode.Message)

mybinding.Security.Message.ClientCredentialType = MessageCredentialType.Certificate

mybinding.Security.Message.NegotiateServiceCredent ial = True

Dim context As InstanceContext = New InstanceContext(New CallBack())

Dim myHost As String = Dns.GetHostName()

Dim ipEntry As IPHostEntry = Dns.GetHostByName(myHost)

Dim add As IPAddress() = ipEntry.AddressList

mybinding.ClientBaseAddress = New Uri("http://" + add(0).ToString() + ":" + "4000" + "/")

_client = New TCallSvcClient(context)

_client.Endpoint.Binding = mybinding

the address will be a non public IP in the 192.168.x.x range and the server cant call the client back with that address. I figured that I may try to forward a port in the router config but I could not get that to work either. So I have (3) questions:

1) how do I configure client callbacks using wsDualHttpBinding (This is the only binding I can use) when the client and server are on different networks and the clients will be behind a router?

2) Is it possible for IIS 6.0 hosted WCF services to communicate with Windows hosted WCF services (on the same server / or network) via net.tcp binding? (duplex calls here)

3) Can anyone give or point me to some example implementations of the above?

Oh and right now I receive either a timeout exception (which I think is due to te real exception being dropped because of the one way op) or the 405 method not allowed exception (Fiddler says: The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.)

I thank you in advance.

Similar Threads
Thread Thread Starter Forum Replies Last Post
WCF endpoint error when wrapping WCF service with jdawg1979 Visual Studio 2008 0 July 8th, 2008 11:56 AM
Possible Conflicting Callbacks wirerider ASP.NET 2.0 Professional 0 March 15th, 2007 10:35 AM
2 questions about asynchronous callbacks pooh2006 ASP.NET 2.0 Professional 0 March 24th, 2006 11:20 AM
Cascading dropdowns-Client Callbacks spriya18 ASP.NET 2.0 Professional 0 December 29th, 2005 02:29 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.