Add and Remove roster in eJabberd via asp.net web application - c#

Hihi, would like to automate the adding and removing of eJabberd roster from my web application on asp.net, c#. Is there any advice on this?
I have been looking and trying on jsjac and jabber-net with no luck. Appreciate any guide on this.
Thanks in advance!
:)

you can do this by creating a new Ejabberd http Request handler module.
Create New http Request Handler Module. http://www.process-one.net/en/wiki/ejabberd_HTTP_request_handlers/ which accepts the data and processes it as you need,
asign that module a url address in ejabberd config, then call that http-handler with a curl like serive (in php I used CURL, I don't know what is the replacement for this in ASP.NET).

Eventually, I have switched my eJabberd db to MySQL, and established a connection directly into the MySQL db from my web application for manipulating all the eJabberd's actions.
:)

Related

How do i broadcast a message to all clients via Web API

I have two Projects, an Asp.net WebAPI & a separate Single Page Web Application. My requirement is that when a form is submitted via the web application it is processed at the Web API. Once the Request has been handled successfully i want to broadcast a message to all the clients notifying them that a new request had been submitted.
How can I do it? Any help would be appreciated.
I looked into SignalR, but couldn't find an implementation for this requirement.
Pusher's got libraries you can use to handle anything notifications https://pusher.com/docs/libraries
I suggest you use signalR to cater your requirement. You can go thru this link https://learn.microsoft.com/en-us/aspnet/signalr/overview/getting-started/ for more details.
If your project is small use pusher "https://pusher.com/"
when you use that well It may be cheaper than you make And less resources.

Using NancyFx as proxy

Is there a way to use proxy concept with NancyFx? I mean, I would like to access a service and record the response in my Nancy application (as proxy), either on a JSON file (similiar to wiremock) or in memory (similar to mountebank)
Thanks in advance.
Have you considered WireMock.net as it has a proxy feature and saves the results to json files.
Towards the end of this article is an example of using the proxy feature of wiremock.
You could certainly write a load of code to log the request and response, and use one of the standard web clients to pass the request back to the service, but Nancy has no built in system for this - Nancy is an MVC web framework, not a proxy server.
Perhaps you need something more along the lines of Nginx?

C # Winform : Sending data from sql to web service

I will try to explain it as shortly as I can.
We use 'proxy' for the connection.
The web service that I can try to connect is Oracle Weblogic.I have got the username and the password.
I can connect to the web service without any problem by using the progrqm soapUI.And on the program I choose this option.Becaue I can only connect to the web service by choosing this.
Authenticate Preemptively : Send Authentication headers with each request without first receiving an authentication challenge. This is a potential security hazard but will improve performance since only one request will be required for authenticated endpoints instead of two.
I can not connect to the web service by using C# winform.I made a lot of research but I could not find anything helpful.
Could you give me an example?
Please have a look at the sample here in connecting to a web service via C#. Or you can use a code first method. which ever suites your needs.
Happy Coding :)

Windows application and website server communication

In my project I have created an application in windows using C#.
In the application I want to connect to my web server (or domain) and send a request to it,
and then in my web server I want to create a page or a web application to answer the request !
For example I want to send a request like 'Name?' from my windows application,
then I should be able to get the request text in my web server (www.mydomain.com) and answer properly. (e.g. 'jack').
How should I do this !?
should I use chat server? (if so, isn't there any easiest way?)
Any other Idea?
Thanks in advanced.
I would recommend taking a look at the .net WebRequest class.
http://msdn.microsoft.com/en-us/library/system.net.webrequest.aspx
You should take a look at web service, I think that is what you want. Here is code project link http://www.codeproject.com/Articles/16325/NET-Web-Services-Concepts. And you should also take a look at WCF, that would also help you.

File Upload to HTTP server from iPhone application. Server side C# API method

Could someone please tell me/link me to how I could create a method similar to those posted below:
http://www.vimeo.com/api/docs/upload
http://www.flickr.com/services/api/upload.api.html
(I am providing the links as I'm not sure how to articulate this question without them!)
I'm using C# ASP.NET. IIS 6.
I have an existing web server with other public API methods. I do not want the iPhone user to have to open a web browser, and post to an aspx page. I want the iPhone developer to be able to call my method, and have one of the parameters be a handle to the file which gets POSTed.
Thanks in advance for any help.
You'll need to create a WCF Service Application. You can use this as a webservice that can be exposed to your clients. You can create a RESTful service using WCF where clients can POST video's to.
When searching for 'REST, API, WCF' you'll probably find all the resources you are looking for.

Categories