by community-syndication | May 11, 2012 | BizTalk Community Blogs via Syndication
Very simple, but a handy way of viewing nicely-formatted JSON in LINQPad:
I use Json.NET as it does indented formatting, and represents JSON dates properly. To add as an extension, download Json.NET, add a reference to Newtonsoft.Json.dll to your “My Extensions” query and add the following code to your MyExtensions class:
public static object DumpJson(this object value, string description = null)
{
return GetJsonDumpTarget(value).Dump(description);
}
public static object DumpJson(this object value, string description, int depth)
{
return GetJsonDumpTarget(value).Dump(description, depth);
}
public static object DumpJson(this object value, string description, bool toDataGrid)
{
return GetJsonDumpTarget(value).Dump(description, toDataGrid);
}
private static object GetJsonDumpTarget(object value)
{
object dumpTarget = value;
//if this is a string that contains a JSON object, do a round-trip serialization to format it:
var stringValue = value as string;
if (stringValue != null)
{
if (stringValue.Trim().StartsWith(“{“))
{
var obj = JsonConvert.DeserializeObject(stringValue);
dumpTarget = JsonConvert.SerializeObject(obj, Newtonsoft.Json.Formatting.Indented);
}
else
{
dumpTarget = stringValue;
}
}
else
{
dumpTarget = JsonConvert.SerializeObject(value, Newtonsoft.Json.Formatting.Indented);
}
return dumpTarget;
}
Call with .DumpJson() on any object, and it will serialize to formatted JSON and output it. If you pass a string which is already JSON, it round-trip serializes it to get the formatted version (including converting WCF-formatted JSON dates to ISO 8601).
Makes for a very handy testing rig for REST services.
by community-syndication | May 10, 2012 | BizTalk Community Blogs via Syndication
I was thinking about this topic today, and as someone who built the AWS Developer Fundamentals course for Pluralsight, is a Microsoft MVP who plays with Windows Azure a lot, and has an unnatural affinity for PaaS platforms like Cloud Foundry / Iron Foundry and Force.com, I figured that I had some opinions on this […]
Blog Post by: Richard Seroter
by community-syndication | May 9, 2012 | BizTalk Community Blogs via Syndication
It has been a few weeks since my last post. Why, well I have been busy promoting my BizTalk Server 2010 Cookbook, which was published last month. I recommend you to buy a copy (eBook and/or printed version) if you haven’t done so already. A few weeks ago, just before the book was published, I had a conversation through email with Sriram, the person who as a BizTalk community member I like to bring to the foreground now. He has recently been awarded Microsoft Community Contributor. Well done and here is his story.
Sriram Chidambaram Narayanan is 27 years old professional from Chennai located in the southern part of India (State: TamilNadu). He works as a Senior Application Architect for Computer Sciences Corporation(CSC) in Bangalore. Sriram was at Unum for 14 months in the United States and returned back to India a couple of months ago.
Sriram has a total of 6 years of BizTalk experience.He started his career with developing and gradually evolved to a role where he is designing and architecting integration solutions. During his career he started with experimenting and creating connections with BizTalk Server to different applications. More recently his interest shifted towards learning the concepts and technology behind the ESB toolkit and Windows Azure AppFabric Service Bus (now renamed to Service Bus Connect). These are currently the two areas where he is focusing on.
Sriram loves the BizTalk product because I quoted:
- its a fresh approach for designing Business flows and connections through built in shapes and configurations instead of the traditional 20000 lines of code
- provides a clear view on everything that flows through the system via various tracking options and monitoring tools
- it has and is maturing as a product with various enhancements and accelerators since the time I started working on the 2004 version
- it also has many interesting concepts, designs and logics that one has to think on opposed to just configure type products
- it never stopped challenging me and I never stopped dissolving them to feel the exhilaration.
His enthusiasm for the product shows through his contributions on the BizTalk forums (profile) and other channels. Whenever Sriram gets time outside of his regular work he will spend time on the forums. He enjoys doing this as it introduces him to different issues and solutions, which otherwise would take lots of time for him to personally explore. He also maintains a blog, where he shares his experience and knowledge or some times writes a post on issue resolutions that might help others. He also contributes to Codit’s(http://www.codit.eu) technical blogs. To the readers of his personal blog he would like to say:
“Show love, keep learning, be strong and don’t compromise on your goals.Keep a rockin’ attitude!”
Beside blogging Sriram has recently written his first article for the TechNet Wiki.So we have another BizTalk community member as contributor.
In India, cricket is a religion and Sriram is a great fan of Sachin Tendulkar. He support his home team, Chennai Super Kings and enjoys playing tennis once and a while. Besides sports Sriram enjoys listening to music especially to A. R. Rahman. Furthermore he regularly visits his family every weekend and now and then he spends some time with his friends.
Finally Sriram has a word for me and this blog:
“Steef is a great inspiration to all new BizTalk and Integration professionals and his contributions in the forums and TechNet articles are tremendous. I would thank and appreciate Steef for all his contributions and for keeping the ball rolling.Nandri!(Thank you)”
Thanks Sriram for your time and your contributions to forums, your blog and now also the TechNet Wiki.
by community-syndication | May 9, 2012 | BizTalk Community Blogs via Syndication
Great news for the BizTalk community, Overnet Education in collaboration with Microsoft and User Group Italiano Connected System (ugics.org) will organize, for the first time, one of the most interesting free events related to BizTalk Server and integration services with the presence of international speakers. With a very intense, half-day sessions with high technical content, […]
Blog Post by: Sandro Pereira
by community-syndication | May 9, 2012 | BizTalk Community Blogs via Syndication
I took a brief hiatus from my series of interviews with “connected systems” thought leaders, but we’re back with my 39th edition. This month, we’re chatting with Dean Robertson who is a longtime integration architect, BizTalk SME, organizer of the Azure User Group in Brisbane, and both the founder and Technology Director of Australian consulting […]
Blog Post by: Richard Seroter
by community-syndication | May 9, 2012 | BizTalk Community Blogs via Syndication
Xpath is a powerfull tool but we use only small part of it(me the first). Everybody use string or count function but more function exist Xpath query Before introducing function, let’s talk about Xpath query. To build Xpath query you need to respect this protocol : Expression Description nodename Selects all child nodes of the […]
Blog Post by: Jeremy Ronk
by community-syndication | May 8, 2012 | BizTalk Community Blogs via Syndication
I need to access the SharePoint user profile service.
SharePoint quite nicely exposes: http://{Server}/_vti_bin/userprofileservice.asmx
It is authenticated, quite rightly so, however the user I am
accessing it with has permissions, however it still asks for username and
password.
I was getting this error:
The adapter failed to transmit message going to send port
“WcfSendPort_UserProfileServiceSoapOneWay” with URL
“http://{Server}/_vti_bin/userprofileservice.asmx”. It will be retransmitted
after the retry interval specified for this Send Port.
Details:”System.ServiceModel.FaultException: <soap:Envelope
xmlns:soap=”http://schemas.xmlsoap.org/soap/envelope/”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
xmlns:xsd=”http://www.w3.org/2001/XMLSchema”><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Server
was unable to process request. —>
System.ServiceModel.EndpointNotFoundException</faultstring><detail
/></soap:Fault></soap:Body></soap:Envelope>
Server was unable to process request. System.ServiceModel.EndpointNotFoundException
Not much help to me
After some searching I found I needed to use impersonation.
The main reason was from .net I can simply do:
WSService.Credentials = System.Net.CredentialCache.DefaultCredentials;
Now the current user is impersonated and if they have
permissions it works. GREAT.
I’m in BizTalk, and I’m on the WCF port
The port is using wcf-basichttp as the protocol, and it
should be able to just I have no idea how.
Well the solution I found is rather simple.
Use a wcf-custom port.
Setup the basic-httpbinding.
First of all set the transport to client credential type
ntlm
Then flip over to Behavior
It will be blank. Right
click end point behavior:
Select add extension.
Add client credentials and configure like so:
After doing this my error went away.
by community-syndication | May 8, 2012 | BizTalk Community Blogs via Syndication
Enterprise mobility is one of the hottest trends in today’s IT industry. However, like any other emerging technology space, the industry is still trying to learn about the challenges and establish best practices and patterns that can help organizations…(read more)
Blog Post by: gsusx
by community-syndication | May 8, 2012 | BizTalk Community Blogs via Syndication
http://www.neowin.net/news/microsoft-renames-azure-services –
article talks about MS renaming services and essentially dropping the ’Windows’ out
of it.
My experience has seen this will appeal to the non-MS types that see ’Windows’ as
something they don’t want to go near.
I personally think it’s a good move as sure it’s Windows but the Azure Platform offers
so much more..
Here’s some of the proposed changes.
|
Prior Service Name |
New Service Name |
|
Windows Azure Compute |
Cloud Services |
Windows Azure Platform
– All Services |
All Services |
|
Windows Azure CDN |
CDN |
|
Windows Azure Storage |
Storage |
|
Windows Azure Traffic Manager |
Traffic Manager |
|
Windows Azure Virtual Network |
Virtual Network |
|
AppFabric Cache |
Cache |
|
AppFabric Service Bus |
Service Bus |
|
AppFabric Access Control |
Access Control |
|
SQL Azure |
SQL Database |
|
SQL Azure Reporting Service |
SQL Reporting |
Blog Post by: Mick Badran
by community-syndication | May 8, 2012 | BizTalk Community Blogs via Syndication
When it comes to BizTalk environment "Backup and Disaster recovery", the only official supported option is Log shipping.
This applies to all the versions of BizTalk Servers listed below
BizTalk Server 2004 SP1, 2006, 2006 R2, 2009 and 2010
Log shipping was originally introduced in BizTalk 2006 and back ported to 2004 via SP1. MSDN article contains very good resources, explaining the steps involved in setting up and restoring BizTalk databases.
Microsoft story on BizTalk Server backup/restore has never changed for the past 6 years. When it comes to disaster recovery there are 2 standard industry terms people refer to
- Recovery Point Objective (RPO), and
- Recovery Time Objective (RTO)
RPO is the amount of data loss acceptable for business, and RTO is the amount of time it?s acceptable for business without a live environment. With BizTalk Server log shipping default settings, these values will be RPO value of 15 minutes (transaction log back up interval, which can be altered), and RTO will be approximately 1 hour.
Depending on your system volume and amount of background noise it can tackle, you can experiment with reducing the transaction log back up time from default 15 minutes.
Why Log shipping, not any other methods?
BizTalk Server uses multiple databases as part of its runtime requirement. These databases need to be transactionally consistent (including DTC transactions) at any given point of time to ensure integrity of the server.
As part of this solution, BizTalk uses Marked Transactions (http://msdn.microsoft.com/en-us/library/aa577848(v=bts.20).aspx) that guaranties the transactional consistency for all of the databases included in the backup. As part of the installation/configuration, BizTalk creates a SQL Agent Job that uses SQL log shipping for providing backup/recovery of its databases. The backup/restore solution is implemented as an external SQL artifact and is not a native functionality/feature of BizTalk server. The server runtime only expects availability of its databases in a consistent state and does not make any assumptions about the backup/restore mechanism. The task of securing a backup and restoring the database in a transactionally consistent state is assumed to be an external activity.
What’s Microsoft stand on alternate solutions?
If you use BizTalk Server with any 3rd party database solutions other than Microsoft SQL Server Log shipping for backup/restore, your primary support contact is the third-party solution provider for any support issues that are related to this. BizTalk Server was developed and tested by using Microsoft SQL Server Log shipping. The Third-party solution provider should be your primary contact for any installation issues, performance issues, or backup\restoration issues. CSS provides commercially reasonable support for BizTalk server related issues as long as it is not related to the back\restore functionality provided by the 3rd party solution.
Generally, support for any SQL specific 3rd party solutions are within the scope of support as outlined here http://support.microsoft.com/kb/913945
What does the above mean?
Microsoft as a software vendor provides an out of the box solution for BizTalk backup and restore. If you are choosing a third party vendor or custom crafting something for your own benefit (ex: avoiding the extra SQL server instances required for Log shipping). Then the risk is either with you or with the third party vendor to restore the data/environment back. If in case you can?t restore your DR site using a third party solution, then simply don?t call Microsoft support.
If you look at the SQL server case, there are dozen third party vendors who supply backup/restore tools for SQL server. If you use any of them and you can?t recover the data, then logically you call the third party vendor helpline or sue them, rather than calling Microsoft.
Unfortunately for BizTalk server there are not any third party solutions available that can certify and take the risk. So you are left with Log shipping.
Nandri!
Saravana Kumar
Founder – BizTalk360
Subscribe to BizTalk360 updates