Yahoo Messenger servers for use in API - c#

I'm making a C# Wrapper for Yahoo IM API. Sometimes when I'm using the server developer.messenger.yahoo.com, it gave me errors (4xx or 5xx).
After hours searching on the web, I found this link https://help.yahoo.com/kb/SLN1227.html. The link contains information about Yahoo Messenger Servers, Port and Protocols.
I want to know can I use these servers to replace developer.messenger.yahooapis.com server?

In the link you've posted, the configurations are supposed to be used by the IM client itself, not to use with the API.
So, probably they'll NOT work.

In this link appear a different server: developer.messenger.yahooapis.com
Be aware that 4xx errors means that the request was malformed (problem in your side, be sure your code it´s correct) while 5xx errors means that there is a internal error in the server.

Related

System.Net.WebException: 'The server committed a protocol violation. Section=ResponseStatusLine'

I'm trying to contact an HTTP endpoint used to remotely control a smart strip. Everything done locally in my LAN, and i figured out using an HTTP proxy, that calls are done directly to the strip if the client device is connected to the same WLAN network.
I tried to call the endpoint using Postman and did work like a charm. It just took me to copy the proxy-intercepted body and make a POST.
Now I'm trying to make the same call from some C# code, and I'm getting the exception shown in the question title.
I found another post here on SO that shows a way to solve this by changing something server-side, which is not an option in my case. Any ideas on how can I solve this?
I already tried to include all the headers Postman generates automatically, but nothing did help.
Also using different libraries to achieve http communication (RestSharp, native WebRequest) i obtain always the same result.

How to find the Servers response in a C# ClientBase with BasicHTTPBinding

I am using C# with Visual Studio. I have imported a WSDL file into my project, so that VS automatically created a class for me to use the appropriate services.
Now I got an error from the server and for debugging purposes I would like to see the RAW response of the server. It looks that this is quite complicated to obtain.
Please take a look at the screenshot below:
I've got only the "base.channel" object. But also after a long time of digging into all the attributes and sub-objects, I'm still not able to find the actual servers response.
The code on line 6776 is the first and only one where I can stop. So there is no possibility to look into some objects earlier.
I'm quite new to Server Client based applications with C# and WSDL. I really hope, that the mechanism, how the requests work, are always the same, so that someone could give me a hint how I can retrieve the servers raw response.
Since it is HTTPS, wireshark is no option.
Thanks
Found the solution:
I used Fiddler which is able to decrypt also SSL traffic!

How to create a simple restful server / client solution in c#

I'm trying to create a server based around the restful api (basically a client - server system which listens on a specific port but all the tutorials I've seen were using asp.net, some databases or not suited / too complex.
I've tried The Msdn Tutorial, That One CodeProject and That Other CodeProject Tutorial and also haven't found a simple solution here either.
I was thinking of a solution like:
Server listens on specific port for restful requests (Lets call it "ServerListener") and handles the request then in a static "CheckNumber" if its either positive or negative. It'll then reply to the client with the value "positve" or "negative" (depending on its value). The client then shows a MessageBox with the result.
The final idea would be having the server being proxied by an nginx server which handles the the encryption with the client and sanitizing the request.
Please check https://msdn.microsoft.com/en-us/library/windows/desktop/aa364510(v=vs.85).aspx
The Http API will give you the freedom to implement your server without Asp.Net, without WCF, and even without IIS.
Check my post, it contains several examples for simple REST server implementations, including C#, Java, PHP and node.js.

Talk to javascript with c# and vice versa

I am creating a website where I need to have access to the clients files. I know that the client will have to accept some warning message and also run my progam.
I have reaserched on the internet and I know that I can acomplish this with Web Sockets. I have been able to establish a tcp connection localy from c# and google chrom html 5 websocket. the problem with websockets is that it did not work with other browsers.
Another solution that I was thinking was to use cookies to exchange messages. I havent tried that and I dont think that will be efficient.
Some websites when giving them privilades are able to use java. I have no idea how they exchange messages but maybe there is a similar way of doing it with c#
Look at SignalR -- https://github.com/SignalR/SignalR. Be careful though, web sockets (and any other "per user" type connection has server resource implications -- see http://robrich.org/archive/2012/04/05/The-real-time-web-in-ASP-NET-MVC.aspx

send a text message via .net

All: Are there any free solutions out there for sending text messages (SMS) via .net? (maybe a web service or something?).
EDIT
What I'm really looking for is a reference for a reputable online service that I can use for sending SMS messages. Has anyone out there used such a service, and if so, can you give me a recommendation/warning?
EDIT
(first the disclaimer: I'm not in any way associated with this company, I'm just posting back what I found, in case anyone else out there is looking)
An update: I ended up going with www.clickatel.com My work was for a technology exploration and demo project,and I could buy credits on that system cheap. In my case, I started out using their REST API. I had problems with that api (sometimes the commands would timeout). So I switched to the web service API (SOAP) It worked very well for me.
Most accept email but it is vendor specific.

Categories

Resources