I have a callback service that is hosted over wsDualHttpBinding. I'm looking to add a client that will poll for the data rather than receive the callback (will be a mobile device using wince for demo purposes). I was curious what the best way to do this is? You cannot create a client proxy using NetCFSvcUtil with a service hosted with wsDualHttpBinding (I understand that), but you cannot host a callback service over basicHttpBinding. I really need the same service hosted over both basicaHttpBinding (clients will poll for data) and wsDualHttpBinding (callback will notify clients of data). Any ideas on the best way to handle this without creating two separate services to host the same data?
WCF Callback Service hosted over basicHttpBinding and wsDualHttpBinding
1.7k views Asked by Sean At
1
There are 1 answers
Related Questions in WCF
- Migrate ASMX web method to WCF which accepts string array
- Handling WCF enums when client and server have different versions of enum
- Objective tools for monitoring WCF APIs for latency, failures, and breakdowns?
- ASP.NET Core Web api + WCF
- WCF Authentification Android App - Maui WCF Webservice Basic
- WCF to WCFCore - Help Menu
- Problem with hashtag (#) character in httpclient and WCF
- How to add REST API to a .NET Framework Solution with existing WCF Services?
- How to run WCF service in VSCODE
- Adding HTTP Headers using MessageInspector in WCF (VB.NET) Not Working
- The data returned by the WCF service contains special characters, causing an error when the client attempts to receive it!"
- How to configure rest api’s in WCF project , making it hybrid solution
- WCF + PostgresQL. Npqsql connection is not open
- CORS Error that is not fixed with usual solution
- .NET project hosted on IIS is timing out in 5 minutes but works fine on localhost
Related Questions in CALLBACK
- TelephonyCallback.CallStateListener with LiveData and ViewModel
- M-Pesa Daraja API STK Push Callback Not Triggering in Node.js Application
- Qt: running callback in the main thread from the worker thread
- Why am I getting MethodErrors when using continuous callback in Julia ODE solver?
- In Rails 7, what is the right ActiveRecord callback to use if I need to prevent (or rollback) persistance on error?
- How to get variable from GWT Callback
- How to execute code "before_serialize"? or How can I sanitize attributes before they are serialized?
- Is there a way to add a pre-hook in R?
- Understanding use of closure in callback in javascript
- How can I make firebase realtime dtabase to act as a webhook endpoint
- How do you sort a list view in Visual C++?
- Second useState doesn't update in promise chain
- How to wait for one api call to complete before making another api call without using `await` in vue pinia store
- Kotlin labmda invoke alternatve
- Sveltekit on change function not being called when added to a component
Related Questions in BASICHTTPBINDING
- I cannot connect to soap service with https
- Can I migrate WCF SOAP service to .Net 6 with no changes at client side?
- Using WCF connection in Blazor .NET6 throwing error
- System.ServiceModel.Security.MessageSecurityException: The HTTP request was forbidden with client authentication scheme 'Anonymous'
- The maximum message size quota for incoming messages has been exceeded
- CoreWCF Basic Authentication - .NET 6
- The maximum message size quota for incoming messages (65536) has been exceeded - set maxReceivedMessageSize="2147483647" updated but not working
- Request Entity Too Large I've tried everything
- Dotnet Core - Self-contained very low performance when call Soap Service over WCF
- Getting error "the provided uri scheme 'https' is invalid expected 'http" from service
- c# wcf web-service client https connection never close
- .Net Core 3.1: The text encoding 'iso-8859-1' used in the text message format is not supported. (Parameter 'encoding')
- is InstanceContextMode.Single available for WCF basicHttpBinding?
- Cannot process the message because the content type 'text/xml;charset=UTF-8' was not the expected type 'application/soap+xml; charset=utf-8'
- WCF basicHttpBinding streamed keep alive
Related Questions in WSDUALHTTPBINDING
- The remote server returned an error: 400 Bad Request (WCF)
- [WCF Duplex]Could not find endpoint element that references contract in the ServiceModel client configuration section
- Problem with WCF dual binding callback channel: channel is faulty
- Share windows identity between WCF services with WSDualHttpBinding
- Error CS0433 The type 'InstanceContext' exists in both 'System.ServiceModel.Duplex, Version=4.0.1.2, ' and 'System.ServiceModel, Version=4.0.0.0'
- WCF Timeout - WSDualHttpBinding, How to set OperationTimeout
- WCF service hangs when calling method, however method is working
- Changing from WSDualHttpBinding to NetTcpBinding doesn't seem to work
- Wcf wsDualHttpBinding Max message length 16384 reached
- WCF client cannot connect to WCF service hosted in IIS via ServiceHost?
- WCF wsDualHttpBinding stop sending callbacks
- Allotted timeout while logging System.Net on Trace level
- The HTTP request was forbidden with client authentication scheme 'Anonymous' on wsDualHttpBinding
- is it possible to apply https on WsDuallHttpBinding in WCF?
- Implementing WCF callback in MVC
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
What do you mean by two separate services hosting the same data? Do you expect to share same service instance to handle both wsDualHttpBinding and basicHttpBinding requests?
Your current problem is that service interface for duplex communication cannot be used for basicHttpBinding. You have to create second service contract and implement it in the same service. In that case you can expose two endpoints for the service: one duplex with WSDualHttpBinding and one with BasicHttpBinding. Endpoints must have different relative addresses. From the perspective of the client those endpoints are separate services - each of them requires separate client proxy. So unless your service is singleton you will have new service instance for each client proxy. New service instance means no data sharing.
Thera are some possibilities to modify this behavior but it means replacing Instance provider.