Where to start
- With all those library, I'm lost I don't know where to start. I just want to send a Windows Live Messenger message to an online user from my C# WCF service application used by my Silverlight application
What do I have to download and how it works.
Thank you.
Gear- 編集済みMarc Roussel 2009年6月30日 23:39
回答
- Hello, do you want to send the message from the service side or from the client side? Currently you cannot use server side WCF code to send messages. We only provide you with a JavaScript API. From the client side, however you can use the html Conversation Controls to send messages without too much code. I would suggest you to use the Conversation Control. It supports AJAX that gives you similar performance of Silverlight, and provides you with a nice UI by default. If you have to use Silverlight rather than html, you'll have to invoke the JavaScript APIs directly from your Silverlight application. You can get a sample about how to send messages using JavaScript API from http://msdn.microsoft.com/en-us/library/cc298451.aspx. The sample gets the message from an html TextBox. But you can also use the Silverlight JavaScript bridge to get the message from a Silverlight TextBox. You need to authenticate the user using delegated authentication. You can get a complete set of samples from http://messenger.mslivelabs.com/Samples.zip.
Lante, shanaolanxing This posting is provided "AS IS" with no warranties, and confers no rights.- 回答の候補に設定Vikas-AhujaMSFT, モデレータ2009年7月2日 6:08
- 回答としてマークVikas-AhujaMSFT, モデレータ2009年7月22日 4:50
- Marc -
Here's the link for Messenger Web Toolkit. give it a try in Learn tab:
http://messenger.mslivelabs.com/
JavaScript API - you have to include reference to API in the web pages:
http://www.wlmessenger.net/api/3.1/loader.js
e.g.:
<script type="text/javascript" src="http://www.wlmessenger.net/api/3.1/loader.js"></script> <script type="text/javascript"> Microsoft.Live.Core.Loader.load(['Messenger.UI', 'Messenger.UI.Styles.Core'], null); </script>
This posting is provided "AS IS" with no warranties, and confers no rights.- 回答としてマークVikas-AhujaMSFT, モデレータ2009年7月22日 4:51
すべての返信
- Hello, do you want to send the message from the service side or from the client side? Currently you cannot use server side WCF code to send messages. We only provide you with a JavaScript API. From the client side, however you can use the html Conversation Controls to send messages without too much code. I would suggest you to use the Conversation Control. It supports AJAX that gives you similar performance of Silverlight, and provides you with a nice UI by default. If you have to use Silverlight rather than html, you'll have to invoke the JavaScript APIs directly from your Silverlight application. You can get a sample about how to send messages using JavaScript API from http://msdn.microsoft.com/en-us/library/cc298451.aspx. The sample gets the message from an html TextBox. But you can also use the Silverlight JavaScript bridge to get the message from a Silverlight TextBox. You need to authenticate the user using delegated authentication. You can get a complete set of samples from http://messenger.mslivelabs.com/Samples.zip.
Lante, shanaolanxing This posting is provided "AS IS" with no warranties, and confers no rights.- 回答の候補に設定Vikas-AhujaMSFT, モデレータ2009年7月2日 6:08
- 回答としてマークVikas-AhujaMSFT, モデレータ2009年7月22日 4:50
- Nah thank you. I never did any HTML or JAVASCRIPT or ASP.NET or AJAX and I will never put my hands on that. I just do SilverLight code in C# and I do use WCF service so I need a SDK or some kind that can be used by a WCF service to send a message to someone that is actually online and will receive the message immediatly.
If there's no way. I'll pass.
By the way your sample : Wow this is so huge. Full of stuff inside that and of course I don't know anything about JavaScript and How do I know where to start with this ? I mean, I want the simpliest WAY to achieve it like adding a reference to a dll and use the method AuthenticateAsync or whatever but you see what I mean,
API.AuthenticateAsync();
Then in the callback, API.SendMessage("UserNameOrAnything", "MyMessage");
Oh yeah baby !
Oh and last but not least. Where do I find this JavaScript API to download it. I mean, I've looked into the entire live.com site about the dev and possible download but each time it redirect me into MSDN for help and never get me to a real download
It's all very complicated I thing....- 編集済みMarc Roussel 2009年7月2日 22:28
- Marc -
Here's the link for Messenger Web Toolkit. give it a try in Learn tab:
http://messenger.mslivelabs.com/
JavaScript API - you have to include reference to API in the web pages:
http://www.wlmessenger.net/api/3.1/loader.js
e.g.:
<script type="text/javascript" src="http://www.wlmessenger.net/api/3.1/loader.js"></script> <script type="text/javascript"> Microsoft.Live.Core.Loader.load(['Messenger.UI', 'Messenger.UI.Styles.Core'], null); </script>
This posting is provided "AS IS" with no warranties, and confers no rights.- 回答としてマークVikas-AhujaMSFT, モデレータ2009年7月22日 4:51

