Using key file authentication with the BizTalk SFTP adapter

Using key file authentication with the BizTalk SFTP adapter

Authentication on an SFTP location can be done with simple username/password credentials… However another way to authenticate the sender is by using a Key Authentication file. But how can this last authentication method be used inside the BizTalk SFTP adapter? the BizTalk SFTP adapter we used to achieve this is the freely available SFTP adapter […]
Blog Post by: Cnext

BizTalk: REST getting nice URLs with IIS Url Rewrite

“Ding ding” after spending 4 rounds(hours) in the ring with this guy, I’m taking the
gloves off and heading for the showers and salts.

I’m in the middle of some BizTalk work (which is nice for a change) and I’m ticking
my tasks off.

I’ve got a REST receive port exposed from BizTalk via IIS and published through the
WCF Publishing Wizard.

(there’s Operations mappings and extracting variables from the URL to Context Properties
under the Configure – omitted for brevity)

Couple of shots of the WCF Service Publishing Wizard:

The issue here is that – once the Wizard completes you’ll get:

http://<servername>/coreapi/customer/Service1.svc as the URL
to call.

The task was simple:

I wanted to call URLs such as

http://<servername>/coreapi/customer/123456789/enquire

http://<servername>/coreapi/customer/123456789/verify

etc. 

And not their equivalents of:

http://<servername>/coreapi/customer/Service1.svc/123456789/enquire

 

The Solution was to use IIS URL Rewrite which looks to be the Swiss
Army knife that MacGuyver uses.. (but he only needs a paperclip to take out an entire
train).

Lots of samples and numerous examples of solutions that work and people are high-fiving
in about 5 mins of startingalas not for me .
The other point to note here also is that a URL Rewrite module exists
for:

  • Default Web Site
  • Each IIS Application under the Root Website.

I wanted to keep things confined to just my IIS Application and not have to have requirements
of changing the Default Web Site for instance.

The tricky part was to find out how IIS works and it’s matching.

Underneath CoreApi I have Customer as an Application
as in

/coreapi/customer

**The part that URL Rewrite appears to do** (that floored me for a while)

It chunks the FULL REQUEST and passes just the part required to your app.

So take the full URL:

http://localhost/coreapi/customer/1234234/enquire

As you traverse down the IIS ’Application tree’ the URL that is passed to each URL
Rewrite in each underlying IIS Application is *different*, as in:

  • /coreapi = ’customer/1234234/enquire’
  • /coreapi/customer = ’1234234/enquire’

This was possibly the hardest piece to figure out. I’d setup failed request tracing
in IIS and those logs, while I feel like I’m walking into the Engineering room of
the century with all the logs, pages and info I wasn’t seeing ’URL Rewrite failed
to apply your rule because ..’  – it just wasn’t appearing plain and simple.

URL Rewrite – the rules that won the show

  1. Under /coreapi/customer in IIS Manager
  2. Started off with a Blank Rule and setup the following:

    >

    So the RegEx Rule (at this level) simply states – if the Request begins with a number,
    then prepend ’Service1.svc/’ to it.

    The key is knowing what the URL being passed to URL Rewrite is at this level in the
    IIS Application/vdir tree.

    What the web.config says at this level:

    <rewrite>
               <rules>
                  
    <rule name=”CoreApi Rule” patternSyntax=”ECMAScript”>
                      
    <match url=”([0-9].*)” />
                      
    <action type=”Rewrite” url=”Service1.svc/{R:1}” appendQueryString=”false” logRewrittenUrl=”true”
    />
                  
    </rule>
               </rules>
           </rewrite>

    I hope I’ve saved you a bit of time on your next endeavour.

    Blog Post by: Mick Badran

Publishing ASP.NET Web Sites to “Windows Azure Web Sites” Service

Publishing ASP.NET Web Sites to “Windows Azure Web Sites” Service

Today, Microsoft made a number of nice updates to their Visual Studio tools and templates. On thing pointed out in Scott Hanselman’s blog post about it (and Scott Guthrie’s post as well), was the update that lets developers publish ASP.NET Web Site projects to WIndows Azure Web Sites. Given that I haven’t messed around with […]
Blog Post by: Richard Seroter

Android Date Time Picker Dialog

While looking for the best way to implement an input widget to retrieve the users’s Date of Birth I came across this input field while editing a contacts information in the generic People List that comes with the Android OS:

When pressed this opens the DatePickerDialog as shown below:

The Android SDK provides a DatePickerDialog which (as […]
Blog Post by: Nick Rubino

Talking about Startup, entrepreneurship at MVP Global Summit 2013

Over the past couple of years I have given lot of talks about BizTalk360 across various countries. It was not a problem at all, you can wake me up in the middle of night and I can start presenting BizTalk360. But for the first time I’m going to talk about my entrepreneurial journey in last […]

The post Talking about Startup, entrepreneurship at MVP Global Summit 2013 appeared first on BizTalk360 Blog.

Blog Post by: Saravana Kumar

Azure: 6 weeks of Azure-let the games begin

Day #1 has been officially launched for the 6 weeks of Azure Program.

Rocky & Christian at Microsoft are busy combining a great community effort with
help from myself & Mahesh, Bill Chesnut and others to bring together a great 6
week program about a Journey through Azure (above and beyond technical aspects, but
they are also included).

Things like:

– taking an onpremise solution and converting to Azure.

– what your solution may look like in Azure.

– what considerations you’ll need to think about when working in Azure.

– Solution landscape

– Technical azure widgets and what each one does and how it can help you in your solution

– Time for you to go away, plan, contact an instructor, see a webcast and come back
to a Q&A session.

It’s got over 340 people registered on it so far and it’s never too late to jump on
board.

Read the full story here – http://www.breeze.net/news/breezetalk/let-the-6-week-challenge-begin!.aspx

Blog Post by: Mick Badran

First flight drama after so many years flying

I boarded BA flight BA0049 to Seattle this afternoon for the MVP Global Summit 2013. It’s pretty standard stuff, normal airport security and boarded the flight at 14:30. After about an hour flying we noticed some panic movements between cabin crew. First they all went to a common area for discussion, then they all rushed […]

The post First flight drama after so many years flying appeared first on BizTalk360 Blog.

Blog Post by: Saravana Kumar

Oporto BizTalk Innovation Day | 14th March 2013 – Oporto, Portugal – Registration process is open

Oporto BizTalk Innovation Day | 14th March 2013 – Oporto, Portugal – Registration process is open

We are really excited to announce all the arrangements for Oporto BizTalk Innovation Day is been finalized and the registration process is finally online here: http://obid.devscope.net/ The Event This unique community event will join together the regional specialists in BizTalk Server. During a full day, all participants will have an opportunity to learn and share […]
Blog Post by: Sandro Pereira