473,657 Members | 2,538 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WCF Remote Client Callbacks using wsDualHttpBindi ng


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 ClientBaseAddre ss (as follows);

Dim mybinding As WSDualHttpBindi ng = New
WSDualHttpBindi ng(WSDualHttpSe curityMode.Mess age)
mybinding.Secur ity.Message.Cli entCredentialTy pe =
MessageCredenti alType.Certific ate
mybinding.Secur ity.Message.Neg otiateServiceCr edential = True
Dim context As InstanceContext = New InstanceContext (New CallBack())
Dim myHost As String = Dns.GetHostName ()
Dim ipEntry As IPHostEntry = Dns.GetHostByNa me(myHost)
Dim add As IPAddress() = ipEntry.Address List
mybinding.Clien tBaseAddress = New Uri("http://" + add(0).ToString () +
":" + "4000" + "/")
_client = New TCallSvcClient( context)
_client.Endpoin t.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 wsDualHttpBindi ng (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.
--
lmod
Aug 22 '08 #1
1 11396

"lmod" <gu***@unknow n-email.comwrote in message
news:63******** *************** *******@nntp-gateway.com...
>
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:
I think you would have to port forward 80 HTTP, becuase that is what is
being used on IIS6 and use TCP 80 in the solution.

But as far a using a router that can filter out protocols, other than, HTTP
only allowing HTTP to come down TCP port 80 would be a concern here for me,
because port 80 is open to all inbound traffic, solicited and unsolicited
traffic, if the solution is facing the public Internet. I guess it depends
on the router's capabilities and if the solution was facing the public
Internet.
>
1) how do I configure client callbacks using wsDualHttpBindi ng (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?
If it's using TCP 80 the HTTP port becuase IIS6 is using TCP port 80, then
it might work for you.
>
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)
No, IIS 6 does not allow net.tcp, net.pipe or net.msmq binding , only IIS7
allows that.

http://msdn.microsoft.com/en-us/library/aa751792.aspx

<copied>

WCF services hosted in IIS 5.1 and IIS 6.0 are restricted to using
HTTP-based communication. On these IIS platforms, configuring a hosted
service to use a non-HTTP binding results in an error during service
activation. For IIS 7.0, the supported transports include HTTP, Net.TCP,
Net.Pipe, Net.MSMQ, and msmq.formatname for backwards compatibility with
existing MSMQ applications.
Now, if you needed to user Net.TCP in this situation in some kind of
encrypted communications, then you don't need IIS 6, because you can use a
..Net Windows service application to host the WCF service that's using
net.tcp with other ports.


Aug 22 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2519
by: Lain | last post by:
Hi all I'm trying to obtain remote client information to present on a web page using WMI. The problem I have is that no matter how hard I try (and how cross-eyed I get from reading doco) I can't seem to get access to the remote client owing to error 800a0046 - which seems to be a General Access Denied (according to related events in the System Event Log). I've tried configuring the virtual directory as a highly isolated application, then...
1
1709
by: AG | last post by:
Every night i want to send the new records that are created from my remote client to my FTP site, using a application which sets up an internet connection on the client , exports the data to the flat file and downloads the flat file to an FTP site. Would anyone know how to do this? Thanks in anticipation.
0
1890
by: Just D. | last post by:
Does anybody knows the solution if this problem? If we wrote the ASPX page and send the request to the remote browser the remote client browser returns the remote machine IP using by this machine on the remote LAN, but the remote router of this LAN substitutes the LAN address by the correct external, public one and we receive the correct public IP of the remote network. I want to get the same IP using the remote Windows Application, not...
1
2927
by: Suramya | last post by:
Hi Friends, I like to record a video file from remote client machine's webcam(from browser) to the server machine (where IIS is running). I could see an example of video recording for windows application in www.codeproject.com using the directX. Is it possible to develop the same in asp.net web application...?
8
1722
by: david | last post by:
I have made a test: copy a text file to clinet side. But fails. What I did is that create a web method in web services that read a text in server side and return the text file as string. On the client side, the method is called in a windows form client which stores the string and write the string to a file. Though the file contains the original content but it just a one-line string which is not the original copy. Is there a general...
0
882
by: Papanii Okai | last post by:
Hi Guys Quick question. Is it possible to use Asp.net 2.0 client callbacks to refresh/update a datalist/repeater data control without a complete page postback? --Papanii
2
6519
by: O.B. | last post by:
In the following code snippet, the thread successfully makes it to the line where it waits for data to be received. Then the client closes the connection. The thread wakes up and returns from the WaitOne() operation. No exception is thrown when it loops and executes BeginReceive() again. The WaitOne() operation returns immediately. Thus, there's an endless loop. How does one detect that the remote client has closed the connection in...
1
1545
by: =?Utf-8?B?QU5lZWxpbWE=?= | last post by:
I have been reading about asp.net 2.0's client callbacks using the ICallbackEventHandler interface. I have also read that it is pretty much a light-weight AJAX type methodology and that it uses the XmlHttp. Now, my understanding is not all browsers support XmlHttp. Can someone please let me know whether client callbacks will work in all browsers or only specific browswers and if so, which browsers currently support it?
2
2540
by: qwedster | last post by:
Hi Experts! Apropos MSDN link: http://msdn.microsoft.com/en-us/library/ms178208.aspx Implementing Client Callbacks Programmatically Without Postbacks in ASP.NET Web Pages Using the code from the above link in the following code snippet, if you keep a break point on the statement "if (IsPostBack)" in the Page_Load event. The control moves into the "if (IsPostBack)" block after the alert, which mean that it is a Postback.
0
8413
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8324
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8740
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8617
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7352
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2742
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1733
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.