We currently using OpenFire as our XMPP server and using SoapBox C# library to implement XMPP client. But now we want to move to secure XMPP over HTTP (BOSH) so users can instant chat on different network. I've search for days but could not find any C# examples to implement XMPP over HTTP. Our application is in C# and so I need to find a C# or .NET solution, ideally keep SoapBox if possible. Anyone has any examples or pointers to share?
Just use an HTTPS URL for polling from any library that supports BOSH. Although why you'd use BOSH from a real programming language other than to cut through a particularly virulent firewall, I don't know.
SoapBox mentions that "SoapBox Server,BOSH implementation works well with JSJaC, the most popular XMPP BOSH JavaScript library" on their official website. Even though, they didn't mention anything about BOSH implementation using SoapBox library.
But, MatriX C# library supports http-bind(bosh) implementation. MatriX is a SDK/library for XMPP, written in managed C# dedicated to .NET and Silverlight technologies. But, MatriX is a commercial one.
I'm also looking the sample source for http-bind(bosh) implementation using SoapBox C# library. If anyone found please, share the link in here.
Related
I've been searching around and have not been able to find any concrete examples using gRPC without proto buffers in C#. Does anyone have a URL or example? I've found the "gRPC + JSON" blog post but that is for Java and not easily applicable to c#.
Thanks in advance
Was looking for the same thing and found MagicOnion (injected as service into existing ASP.NET app)
from README.md:
This framework is based on gRPC, which is a fast and compact binary
network transport for HTTP/2. However, unlike plain gRPC, it treats C#
interfaces as a protocol schema, enabling seamless code sharing
between C# projects without .proto (Protocol Buffers IDL).
I am looking out for developing a C# application which posts message to a ebMS3 platform using AS4. I am new to this area. Could anyone please help? Is there any third party libraries to do this easily? If not, how we post messages using AS4 from a c# solution.
I have just implemented our own AS4 solution, and it is hard task to accomplish. Especially because .NET does not support SOAP with attachments out of the box. And there is a lot background knowledge you need to know about - all the different specifications AS4 is based on. I have not been able to find an AS4 API written in .NET without it being a standalone solution as well...
First thing is to understand AS4, and a good place to start is this blog:
https://www.codit.eu/blog/2016/02/03/as4-for-dummies-part-ii-messaging-overview/
And then you will have to understand most of the EBMS3 specification:
http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/core/ebms_core-3.0-spec.html
That being said - it is not impossible.
I have been looking at the AS4.NET framework as Sander talks about, and it is well-written and a very good starting point for exchanging AS4 messages. I have used it as a test-endpoint.
So unless you need to incorporate AS4 directly into an existing product (which we needed to), I can only recommend using AS4.NET.
AS4.NET is also open source (and e-SENS profile conformant), so you can have a look at their code-base and let you inspire by the hard parts in AS4.
For the MIME parts I can recommend Mimekit: https://github.com/jstedfast/MimeKit
And for some of the encryption/signing stuff Bouncycastle is great: http://www.bouncycastle.org/csharp/
Not sure whether it can be used as a library, but for a project within the European Commission an open source .NET based AS4 implementation was developed. You can find it here in the EC's code repository. I don't know if there is any support on this, so if that is important you should probably consider another implementation. A list of solutions tested by the EC for conformance with their own profile of AS4 is available here (or if that link doesn't work by searching for "as4 conformance tested implementations")
Note that most are standalone applications which you connect to for executing the AS4 message exchange. Most offer different integration options, so you should be able to integrate it into your solution.
I am trying an application to write an application on which I have used a client/server architecture. The client side is developed using .NET\C# and the server side is developed on python. To communicate the both sides, I used first tcp/ip socket; so i put my python's methods on a loop then I ask each time from my c# application to run an method. This idea is very bad as it require to cover all use cases that can be happening on network or something like that. After a work of search, I have found three technologies that can answer a client/server architecture which are RPC, RMI and WCF. RMI a java oriented solution so it is rejected. So, my question here is: does RPC and WCF support multi programming languages (interoperability) especially betwenn C# and python?
I'm not sure I completely understand your use case, but I would suggest having a look at a REST API approach if you need to have .Net talk to Python, or vice versa.
An alternative is using Pyro4 to expose Python objects on your Python server side and talking to them via the C# client library provided by Pyrolite. This mostly hides any networking specific programming details.
Mobius is the c# binding for apache spark. I wanted to know if MLlib and graphx can also be used via C#. As in can machine learning and graph processing jobs be made for apache spark via C#.
If your spark driver is working over a Linux plateform, i suggest that you better better use LIVY. In fact, LIVY is Apache REST API, that gathers all the functionalities offered by all Spark api (Pyspark, scala, java ..). you can use LIVY to submit job on spark using pyspark snippets. I this seems to be a good solution for you, at least you don't have to ask each time which is working on mobius or not.
I want to make a chat server by using .NET technology (C# and SQL server) and chat clients with iOS Apps and C# Apps but i don't know where to begin :( Anybody can tell me what i need to know to do it :(
What you are trying to do is perfectly possible.
If you are doing it as homework of for the sake of learning, I would suggest start learning some general Network Programming concepts (sockets, TCP/IP, protocols). After that, you will need to learn of to do Network Programming in .NET and in C (or Objective-C). After that, you will need to design and implement a CHAT protocol (unless you are planning to use an existing one like IRC). Then, jump into coding the server in C# or VB.NET, and the client in C, C++ or Objective-C.
If you are trying to develop a product, try reusing as much components as you can. For example, use Jabber or IRC as your communication protocols. You will find several libraries you can use in C#, Java, Objective-C and C to implement the software you are planning to.