WCF Extensibility: IEndpointBehavior implementation Gotcha

I feel like an utter amateur for falling down on this one but I am providing my story here in case anyone else out there is pulling their hair out for the same reasons.

I was keen to modify the exported wsdl on a WCF service and checked out the many articles out there in the ether to fast-track my efforts.  I managed to build a simple HelloWorld service (with client console) and added in the plumbing to implement both IWsdlExportExtension and (in my case), IEndPointBehaviour.

After I felt I had everything in place and (seemingly) configured correctly I tested the service by browsing to it and visually checking the wsdl – no, my modified wsdl wasn’t showing.  No errors, just no change in the service description.

I put traces in each of the IWsdlExportExtension and IEndPointBehaviour methods and when I’d hit the service, nothing was coming out in the trace – again, no errors, no output and no change in the wsdl.  Frustration Plus.

I thought I’d change tack and get my worker class to implement IServiceExtension instead (just to see some kind of change in behaviour).  I modified the configuration appropriately and this time saw that each of my IServiceExtension methods were getting hit…something was happening!

After the umpteenth magnifying-glass-close scrutiny of my service web.config (and after combing over an excellent blog by Carlos Figueira) I noticed a discrepancy – the “name” attribute of my “service” node included the service namespace but the name was slightly off – “HelloWorld” instead of “HelloWorldService” in this case.  No match on name, no pointing to the behaviour I had configured!!!  I made the change and voila – everything worked – methods getting hit, wsdl getting modified and emitted as expected.

I’ve included my web.config snippet below.

 

  <system.serviceModel>

    <extensions>

      <behaviorExtensions>

        <add name=simpleBehavior type=Mexia.Framework.TestService.SimpleEndPointBehaviour, Mexia.Framework.TestService, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null />

      </behaviorExtensions>

    </extensions>

    <behaviors>

 

      <endpointBehaviors>

        <behavior name=simpleServiceBehaviour>

          <simpleBehavior />

        </behavior>

      </endpointBehaviors>

 

      <serviceBehaviors>

        <behavior>

          <serviceMetadata httpGetEnabled=true/>

          <serviceDebug includeExceptionDetailInFaults=true/>

        </behavior>

      </serviceBehaviors>

     

    </behaviors>

    <services>

      <service name=Mexia.Framework.TestService.HelloWorldService>

        <endpoint address=“” binding=basicHttpBinding contract=Mexia.Framework.TestService.IHelloWorldService behaviorConfiguration=simpleServiceBehaviour />

        <endpoint address=mex binding=mexHttpBinding contract=IMetadataExchange />

      </service>

    </services>

    <serviceHostingEnvironment multipleSiteBindingsEnabled=true />

  </system.serviceModel>

 

Also for some excellent references on WCF extensibility check out some of Carlos’ blogs:

http://blogs.msdn.com/b/carlosfigueira/archive/2011/10/06/wcf-extensibility-wsdl-export-extension.aspx
http://blogs.msdn.com/b/carlosfigueira/archive/2011/04/05/wcf-extensibility-iendpointbehavior.aspx

Hope this helps!

Matt Warwick

Tags: , ,
Posted in Mexia |
No Comments »

Do you know about the Windows Azure Discovery Pack?

Mexia are currently deep-diving on the Windows Azure platform because, like Microsoft, we are “all in” with the cloud.

We know that the future of system integration will involve the cloud in one way or the other, and as integration specialists working with corporate & government clients, building Hybrid Integration Platforms using both Windows Azure AppFabric Middleware AND BizTalk Server is now our raison d’être.

image

However explaining the cloud to our customers has not been as easy as our decision to follow Microsoft into the cloud.

Interestingly, we’re finding that the main pushback isn’t technical because they generally already know that the cloud gives them immediate agility, better server utilisation and a managed infrastructure service.

The main resistance points that we’ve had are:

    1.  Perception of unquantifiable risks (information security, service uptime etc), which is tackled here.

    2.  Real unwillingness to uproot their business’ IT systems while everything is stable, which is tackled here.

    3.  Perception of unpredictable costs, which is tackled here.

The third & final resistance point is an interesting one, mainly because I genuinely think some of our customers genuinely LIKE buying servers and having control over their environments.  I think this is because provided they can quantify the expense of buying their own infrastructure (however high it is), and as long as they are still making money, why turn everything upside down and change the way they do things?

This is clearly bonkers, however, it’s one of the resistance points we face and we have to know how to deal with it.

Enter stage left the Windows Azure Discovery Pack!

image

As you can see it’s a current promotion by Microsoft that gives you a 6 month block of Azure hours for half-price, plus free training, plus free consulting (from Mexia or your preferred Windows Azure partner).

The website also says the offer expires June 30th 2012, but Microsoft’s effervescent Azure marketing specialist Margaret Synan explained to me that if you buy a DP before Xmas 2011, you’ll have time to purchase another one before the offer goes away.  This means you’ll have effectively locked in the 50% discounted Azure pricing for 12 months!

Talk about a way to quantify your Azure costs.

The Discovery Pack is really worth considering if Azure goodness is on your company roadmap for 2012 and you want to control your costs whilst you climb aboard the juggernaut!

Get it while it’s hot, and tell them Mexia sent you! Smile

Posted in Azure, Marketing, Mexia, Training, Windows Azure AppFabric | No Comments »

Windows Azure BizSpark StartUp Camp

If you’re an aspiring young Queensland company building a cloud-hosted service or product, then you could do far worse than to attend the Windows Azure BizSpark Startup Camp in Brisbane on 2-4th December 2011.

Mexia participated in the Melbourne event early 2011 and we loved every bit of it.  You get free Azure developer training, one-on-one developer mentoring from Azure MVP’s such as Steven Nagy, and advice on how to commercialise your idea.

If you’re a Microsoft BizSpark member you can also pitch your idea to a panel of investors & technical gurus, all of whom have real world experience launching technical products into the marketplace.

It doesn’t get much better considering the price, and I heartily recommend the investment of your time to go along.

Posted in Azure, Mexia, Training, Windows Azure AppFabric | No Comments »

Mexia Welcomes Ben Simmonds into the Fold

We are extremely happy to announce that Ben Simmonds has started with Mexia today, based in Canberra as a Senior Integration Specialist focused on building hybrid integration platforms using BizTalk Server and the Azure AppFabric Middleware stack.

He is an extremely bright and talented young developer, whose passion for technology shows through in every conversation you have with him.

Ben represents Mexia’s first permanent member of staff to be based in Canberra, and will help build a team of like-minded integration specialists that work with our Federal Government clients with their integration platform needs.

You can get in touch with Ben directly on bens@mexia.com.au or get him on Twitter at @benjaminify.

Welcome aboard mate, we’re very happy to have you!

Posted in Mexia | No Comments »

Mexia Enters the Next Phase of Our Growth

Mexia was founded in 2008 with a vision to provide specialist architectural & technical consulting services in enterprise integration, with a laser-focus on Microsoft BizTalk Server and Windows Server AppFabric.  Obviously that focus has now extended to include the fantastic new capabilities of the Azure AppFabric Middleware Services, but as a business we are still committed to excellence in purely system integration and business process automation.

However being good at technology and being good in business are two very different beasts, and after starting in 2008 it took me a while to realise that I would need some help on the business side of things.

In early 2009 I was introduced to iLab in Toowong, Queensland, which is a Queensland State Government-funded business incubator that “…turns technology start-ups into successful global ventures”.

iLab

In exchange for an extremely modest monthly fee with no long-tem obligations, I was introduced to the exciting, challenging, potentially complex world of entrepreneurialism.

iLab has several fantastic good things going for it: CEO briefings, networking, introductions to solicitors & accountants, sales training, cheap co-location office space etc etc.  But by far and away the best thing that iLab offered me was the once-a-month Mentor Meetings with a panel of successful entrepreneurs who volunteer their time to help the next generation of young guns to come up through the ranks.

When Mexia joined iLab I had a mentor panel hand-picked for me, with their real world experience being evaluated against the range of experience & skills that I would be needing access to.  This service alone was worth it’s weight in gold.

The Mentor Meetings are run every month like a real Board Meeting where, apart from grilling me on financial performance, strategy, market positioning, HR strategy etc, they teach you how to walk & talk like a grown-up company. 

I’ve said it once and I’ll say it again until I’m blue in the face – if you’re new to business get yourself some mentors!

Mexia has been part of the iLab incubator program now for 2.5 years, and as a business I don’t know where we’d be without them.  They’ve nurtured and supported me whilst I went through the journey from complete novice to (mostly)competent businessman, and have ensured that Mexia now has the strategic & operational foundations from which we will surely grow & succeed in the marketplace.

Since 2008 Mexia has grown from just me and a laptop, to having:

  • 7 full-time staff (and counting)
  • clients in almost every state in Australia
  • an amazing business partner (Mathew Coleman)
  • a formal Board of Directors, and
  • a crystal clear vision of who we are, what we do, and where we’re going.

However, as in life all good things must come to an end, and we’ve decided it’s time for Mexia to ‘graduate’ from iLab and move out into the real world.  We’ve grown up, and just like our kids, we need to move out of home.

So yesterday I had my final iLab Mentor Meeting, and as usual it was an intense, challenging, rewarding and fulfilling experience.

photo

If it wasn’t for these guys sitting around the table Mexia would not be the quickly-growing company that it is today.

From left to right around the table:

  • Chris Tia
  • Andrew Campbell
  • Calvin Treacy (and the Chairman of Mexia’s new Board of Directors)
  • David Clarke
  • Paul Watts
  • Mathew Coleman (my new business partner & Mexia’s National Projects Director)

NB: I’d also like to say a special thanks to Colin Kinner, Anne-Marie Birkill, Peter Allison, Michael Good and Helen Vince for for their respective roles in Mexia’s time at iLab.

 

Just like you can’t tell someone what it’s like to have kids until you’ve had them, you can’t tell someone what it’s like to start & grow a business until you’ve lived through the emotional stress-coaster yourself.  These guys “get it”, and we have a bond forged through a shared appreciation of having to make payroll every fortnight with never enough money in the bank :-)

So this post is an indulgent THANK YOU from me to my iLab Mentor Panel.  It’s been a privilege to have you all pick apart my (our) business every month.  I feel sad today for the end of this fabulous process, but I also feel so incredibly proud!

Posted in Mexia | 5 Comments »

Brisbane BizTalk User Group–Wed 29th Sept

This is just a quick reminder about the next Brisbane BizTalk User Group being held Wednesday 29th Sept.

There will be two talks for the night:

1.  Geoff Clarke (Integration Specialist, Microsoft) will talk about the Future of BizTalk.

2.  Dean Robertson (Technical Director, Mexia) will demonstrate the awesome simplicity of Azure ServiceBus Queues & Topics.

Register here http://briztalk.org/ and I hope to see you there.

Posted in BizTalk, Mexia | No Comments »

Welcome Mathew!

Mexia has rolled out the red carpet this week for Mathew Coleman, our new National Projects Director based out of our equally new Melbourne office location!

http://au.linkedin.com/in/mathewcoleman

https://twitter.com/#!/Mat_Coleman

With 12 years industry experience across both Tier-1 consulting firms, banking & financial services clients, he’s got some seriously strong Microsoft Application Platform implementation expertise.

Specifically Mat’s role will entail:

  • working directly with our clients to ensure their BizTalk & Azure Middleware projects are always a success;
  • working with our technical team to ensure we deliver on-time and on-budget;
  • continually refining our implementation methodology to ensure we execute our day to day activities with purpose;
  • growing the Melbourne office so we’re even better placed to work with our Victorian clients; and most importantly
  • ensuring that when a client chooses to use BizTalk Server, they have a trusted partner they can rely on throughout the journey.

When I started Mexia back in 2008 I always knew that I’d eventually need someone like Mat to help me run the business.  He’s always been the benchmark in my mind of what a good delivery specialist looks like, and to actually have him now as part of the management team is both an honour and an exciting milestone in the growth of our business.

Onwards and upwards!

Posted in Mexia | 1 Comment »

BizTalk Server 2010 Developer Training – Melbourne – 15th Aug 2011

Bill Chesnut (aka BizTalk Bill & Principal Consultant at Mexia) is delivering the new BizTalk Server 2010 Developer training in Melbourne the week of August 15th 2011.  So if you have been waiting for BizTalk Server 2010 developer training this is your chance!

The new course material follows closely to the previous Microsoft training for 2006, but has been update to 2010 and has modules for WCF send and receive adapter and a new BizTalk Patterns module.

We have a discounted early bird registration through the 29th of July. For details and registration please go to: https://register.eventarc.com/event/view/4089/tickets/biztalk-2010-developer-training-melbourne. For group discounts or additional information please contact us at training@mexia.com.au.

Tags: , ,
Posted in BizTalk, Mexia, Training |
No Comments »

An Azure Promo Video

I had the pleasure of being flown to Sydney a month ago to take part in a recent Microsoft Azure promotion on www.lifehacker.com.au and www.gizmodo.com.

It was a fun experience and I’d definitely do it again, if for nothing less than getting to see the amazing Microsoft Sydney offices one more time.

Here’s the LH clip:http://www.lifehacker.com.au/2011/06/viral-ambitions-dont-have-to-cost-the-earth/

And here’s the Social Trading Platform that I talk about in the video – it’s still very much a side-business but one that I’d love to spend more time on.  www.trendfrendz.com

Dean

Tags: , ,
Posted in Azure, Marketing, Mexia |
No Comments »