The Tryst with MAPI

by ipsit 16. June 2009 08:12

For the past two weeks I was up against MAPI. I must admit, its a amazing piece of work and liked it, the more I delved into it.

Let me delve a bit more into the specifics of the problem a bit more.

We have a piece of software, and it is used to synch up contacts across Exchange and a custom application using Mapi Server Client. Now this works fine if the Systems are Exchange Server 2003 on Win2k3, and Our Application is on Windows 2008. But the problem started appearing when we tried the same thing out when the combination is Exchange 2007 on Win2k8 and our application on Win 2k8. 

I dug deep and I resorted to aprroach, the only guy who I knew blogs about MAPI - SGriffin. And he did respond and put us on the right track.

If you face same kind of problems that we faced, the things that you need to check is:

  • There is a issue with with IPv6 - Click Here and Click Here
  • Ensure that you create the Service Account properly - Click Here
  • Make sure your user with whom you created your profile is a member of "Exchange Organization Administrator"
  • Ensure you download and install the latest Exchange MAPI server client
Hope this heps.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

MAPI

ASMX Style Authentication in WCF

by editor 28. May 2009 10:12
I thought twice before actually posting this. It was mostly because, of a guilt, that I might be recommending a wrong way of doing things. But then I did realize, that, even if it seems to wrong, it does provide some benefits. Anything that is beneficial, is not necessarily wrong.

The problem at hand is, we want to enable ASMX style Authentication in WCF. Its not that WCF does not do a good job when it comes to Security, but because people are more inclined to send the credentials in clear text. The WCF security model is much more elaborate and it goes a step further to ensure that, ASMX style credentials are really very difficult to implement. Any ways, rather than mandating about wrongs and rights, I would say, the reason migh be not appropriate but this is a important technique which can be utilized. So how do we do it.

Important Interfaces

IEndpointBehavior Interface

Implements methods that can be used to extend run-time behavior for an endpoint in either a service or client application.

IClientMessageInspector Interface

Defines a message inspector object that can be added to the MessageInspectors collection to view or modify messages.


IDispatchMessageInspector Interface

Defines the methods that enable custom inspection or modification of inbound and outbound application messages in service applications.

How does the three work together?

So behaviour is a way of extending an endpoint in WCF. When we try and communicate, with WCF, what it essentially does is, establishes two endpoints on either side, and takes care of sending the message{yes it is SOAP message oriented} from one end point to another. Which means if we add the Service Behaviour on both the side, then we can manipulate the messages before they are sent from one end point and like wise I can play around with the message after it has been recieved it at another endpoint.

That explains IEndpointBehaviorin some good light. What about the other two:
Well as you can guess from the names: IClientMessageInspector is when you can inspect and do something with the message at Endpoint at the client side.

Like wise IDispatchMessageInspector is when you can inspect and do something with the message at Endpoint at the server side.

Need a Sample...here you have got one. Till then enjoy coding and do not make me the villian for showing you a wrong way of doing things. It might be that the example is weak but the technique is not. :)

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Lord of the Rings - I am a Fan

by editor 11. May 2009 06:11
Frodo: I can't do this Sam.
Sam: I know. It's all wrong. By rights we shouldn't even be here. But we are. It's like in the great stories, Mr. Frodo. The ones that really mattered. Full of darkness and danger, they were. And sometimes you didn't want to know the end. Because how could the end be happy? How could the world go back to the way it was when so much bad had happened? But in the end, it's only a passing thing, this shadow. Even darkness must pass. A new day will come. And when the sun shines it will shine out the clearer. Those were the stories that stayed with you. That meant something, even if you were too small to understand why. But I think, Mr. Frodo, I do understand. I know now. Folk in those stories had lots of chances of turning back, only they didn't. They kept going. Because they were holding on to something.
Frodo: What are we holding on to Sam?
Sam: That there's some good in this world, Mr. Frodo... and it's worth fighting for.

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

A brief Introduction to WCF

by ipsit 4. May 2009 17:34

Just published a brief intro to WCF. Its a birds view of the awesome wcf framework. Do comment on it and let me know how to further improve it.

http://coderslog.info/page/WCF-Introduction-2.aspx

:) 

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

General | WCF

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen


About Coderslog

One fine day we thought, we need to be contributing to our community.

So good sense prevailed, and that's how coderslog got started. That's about us.

Calendar

<<  July 2009  >>
MoTuWeThFrSaSu
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789

View posts in large calendar

RecentPosts

External Links