Poser une questionPoser une question
 

TraitéeWhere to start

  • mardi 30 juin 2009 23:37Marc Roussel Médailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     
    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

Réponses

  • mercredi 1 juillet 2009 03:53Yi-Lun LuoMSFT, ModérateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     Traitée
    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.
  • mercredi 8 juillet 2009 05:15Vikas-AhujaMSFT, ModérateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     TraitéeA du code
    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.

Toutes les réponses

  • mercredi 1 juillet 2009 03:53Yi-Lun LuoMSFT, ModérateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     Traitée
    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.
  • jeudi 2 juillet 2009 22:23Marc Roussel Médailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     
    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....
  • mercredi 8 juillet 2009 05:15Vikas-AhujaMSFT, ModérateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     TraitéeA du code
    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.