Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 766727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T17:05:43+00:00 2026-05-14T17:05:43+00:00

My company uses MS Office Communicator Server (OCS) 2007 R2, and I am accessing

  • 0

My company uses MS Office Communicator Server (OCS) 2007 R2, and I am accessing with C# with the SDK.

If I right click on a contact in OCS, I get the option to ‘View Contact Card’. I want access to this via the API!

Unfortunately I can find nothing in the SDK documentation to get at this. There is a method called ‘ViewProfile’ which is unsupported, and I can find nothing out there about it.

I could of course go directly to the Active Directory account of the contact, but that would require my machine to connect to the organization via VPN. Since most of us work ‘offline’ I would prefer not to do this. (The data I need is anyway in OCS!)

Thanks in advance, Andrew

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T17:05:43+00:00Added an answer on May 14, 2026 at 5:05 pm

    If you subscribe to the targeted user’s presence updates, you can capture this information using the ‘contactCard’ presence protocol type…

    // Event handler to process remote target's presence notifications
    void RemotePresence_PresenceNotificationReceived(object sender, RemotePresenceNotificationEventArgs e)
    {
        // Notifications contain all the notifications for one user.
        foreach (RemotePresentityNotificationData notification in e.Notifications)
        {
            // Each user will send a list of updated categories. We will choose the ones we're interested in and process them.
            foreach (PresenceCategoryWithMetaData category in notification.Categories)
            {
                if (category.Name.Equals("contactCard"))
                {
                    //get the xml data
                    string rawXml = category.CreateInnerDataXml();
                    if (rawXml == null || rawXml.Trim().Length == 0)
                    {
                        break;
                    }
    
                    StringReader reader = new StringReader(rawXml);
                    XmlDocument metadataDocument = new XmlDocument();
                    metadataDocument.Load(reader);
                    // Traverse the xml to get the phone numbers
                }
            }
        }
    }
    

    The above code in a bit more detail and information on how to subscribe to remote user(s)’ presence updates can be found here…

    http://blogs.claritycon.com/blogs/michael_greenlee/archive/2009/03/10/subscribe-to-presence-in-ucma-v2-0.aspx (Dead)

    http://blog.greenl.ee/2009/03/11/subscribing-to-presence-in-ucma-2-0/ (Alive)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a project for my company that uses a socket server (php)
My company uses Team Foundation Server for project tracking. I use OneNote for personal
My company uses usenet groups on an internal nntp server and I would like
Our company uses Citrix to remote into a terminal server for remote users to
I recently discovered that the commercial printing company that my office uses does not
My company uses a lot of legacy cookies that contain '=' and ',' in
My company uses Accurev for source control, and for all its benefits, there's one
My company uses the following algorithm to hash passwords before store it in the
The software my company uses has a web service which signature is more or
So my company uses Castle Windsor IoC container , but in a way that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.