Which library should i use to connect my WCF Service (remote) to a Websocket server ?
I found this library Microsoft.ServiceModel.Websocket.dll but i didn't found how to use in the case where the webservice is the client and not the server.
PS : I'm using .net 4.0.
Thanks!
You would need a WCF binding with websocket protocol support. Unfortunately it doesn't exist in .net 4.0.
It will be available in .net 4.5, though.
Related
I have a sever written in C# using the .NET Framework and running as a Windows service. It communicates via gRPC to clients written in Unity. Is it possible to use SSL to secure the connection? Is HTTP/2 required which is not supported by the .NET Framework?
I am new to IBM websphere MQ and am looking for best way to send message from win CE 6 device using c# .net CF 3.5 app to MQ.
I have searched and found that WebSphere MQ Telemetry and a MQTT client can do this.
Is there any other way? Can i do it with plain IBM websphere MQ 6 or 7.5 ?
If WebSphere MQ Telemetry and a MQTT client is the only way.... can someone please explain the architecture for this. How to setup MQ and how to start writing a client?
Thanks for reading and apologies if i didn't make my query clear.
Regards,
Zia
MQ .NET client is available for a full fledged .NET Framework, not available for Compact .NET Framework. So you will need to use a MQTT .NET client and connect to MQ. There are number of MQTT .NET clients available. You can use any of them to develop your application.
Here is some information on setting up MQTT channel in MQ: http://www.ibm.com/support/knowledgecenter/SSFKSJ_9.0.0/com.ibm.mq.adm.doc/q021270_.htm
Regarding the MQTT client for Windows CE and .Net Compact Framework 3.5, there is the M2Mqtt library as part of the Eclipse Paho project :
https://github.com/eclipse/paho.mqtt.m2mqtt
Paolo.
facing the same concerns to connect to AWS.IoT from cfnet 3.5 + wince 6...
the big issue with working in cfnet 3.5 is that there is no support for System.Net.Security and System.Security.Authentication (afaik); so you can't use SSL.
If SSL is needed, you'll need to use native libraries such as paho.mqtt.c + openssl.
The scenario is like this:
I have a .NET 4.0 client-Server application that works fine.
I need to create a UserControl that can access the Server, but it needs to be created in .NET 2.0 (because customer application is .NET 2.0)
Does it exist a way to access .NET 4.0 WCF service from a 2.0 client?
NOTE:
it is not a Web service, but a standalone .exe server
No autentication used
Data transfered are almost basic (class with arrays and basic types within)
it uses client callbacks so protocol il net.tcp
optionally I can change protocol if I can still be able to use callbacks
You need to expose the WCF as a Web Service:
How to: Expose WCF service also as ASMX web-service
Expose WCF Service as Traditional Style Web Service .asmx
The you work as if it was a good old .asmx service (add reference and so on).
It doesn't matter if your WCF service is hosted in a .exe, a web app, a windows service...
Supporting callbacks is not possible in .NET 2.0 with .asmx services, so that you have to simulate a callbak using something like TcpListener and TcpClient.
Unfortunately this has to de done from scratch, but you can use the logic in the WCF implementation.
If your WCF 4.0 service is using basic http binding, you can use it in .NET 2.0 or in any other language.
Just use WSDL.exe to generate the proxy and use it in .NET or in any other language.
Yes you can use the WCF service in .net 2.0 client by adding the reference of the .cs file (proxy class) in your client project.
Question solved a while ago.
Well, not really solved...
After looking at an article about performance on .NET WCF, I decided to use .NET remoting.
It is faster, compatible native .NET 2.0 and it works.
I have a WCF Service built with .NET Framework 3.5. I have a task to develop a WCF Client which only uses .NET Framework 2.0. The WCF Client will receive messages which is broadcasted from WCF Service. Can I do this?
The WCF Client runs well on a computer has .NET Framework 3.5. However on a computer which only has .NET Framework 2.0, and including WCF's DLLs in application's folder, WCF Client only send message to service ok but can't receive message from WCF Service.
WCF Client ---> WCF Service : OK
WCF Client <--- WCF Service : Not OK
Please help me. Thanks.
If your service exposes a basicHttpBinding endpoint, then you should be able to consume it in a .NET 2.0 application by using "Add Web Reference".
I want to communicate with server to run my c# application and so I need to connect with server through sock communication. Is it possible using .net framework 4 ?
Socks and Sockets are different ..
Indeed if you wish to use sockets you could use System.Net.Sockets but,
if you wish to use SOCKS (SOCKS client/server that can be used to provide convenient and secure network connectivity) you could use next example http://www.cknotes.com/?p=204
You could use the System.Net.Sockets class to connect to port on a remote server.
If you are looking for SOCKS C# libs you could go for these which works with HTTP, Socks4, Socks4a, and Socks5 proxy servers and comes with integrated help. It also works with Mono.
http://www.starksoft.com/prod_proxy.html
http://sourceforge.net/projects/starksoftproxyc/
Was looking for same thing and ran across this: Socks4/5 proxy in .net
It isn't .net 4.0 but it is a good jumping off point.1