Enjoy with new release of Visual Studio and SQL SERVER :)

Dear All,

Although, I am bit late to share this information and might be possible most of you people aware of this.Recently Microsoft released Visual Studio 2015

and SQL SERVER 2016 CTP. Not needed to say that there are various awesome features in both build.

You can download latest Visual Studio 2015 from below link

https://www.visualstudio.com/downloads/download-visual-studio-vs

and SQL SERVER 2016 CTP from below link

https://www.microsoft.com/en-us/evalcenter/evaluate-sql-server-2016 

In future post you will be find tips & tricks related to SQL SERVER 2016 & Visual Studio 2015.

Enjoy Learning !!!

Thanks

RJ

How easy to reduce efforts in retesting a asp.net web application?

 

Most of the time when you write code for a web application you need to test it again and again. You have to run a whole flow of positive or negative test cases to check whether your application is working or not.

Now suppose your application have 20 pages and you need to traverse each individual page and may be perform some operation and on each change of your development you need to perform same thing.

sometimes, this thing will irritate you and you will skip testing which may be harmful because most of the time it happens when you skipped something Smile you took a deep breath  and at that moment your application crashed Sad smile.

So , as a responsible developer we do not have to skip any test scenario but next question is how to reduce this effort which you feel boring sometime.

I can say we can reduce this effort by a installing a simple  Firefox add-in which is absolutely free. The add in “Selenium add in”

you can download it from https://addons.mozilla.org/en-US/firefox/addon/selenium-expert-selenium-ide/

once you have installed this you will find the selenium icon near by search bar as shown below

selenium_icon

when you click this icon you will get a selenium interface as shown below

selenium_interface

The basic concept of this tool is what ever you will run in browser it has capability of recording those steps so it is just play button and pause button game, no rocket science. You can easily run and use this.

I am sure it will reduce your testing effort and when when selenium ide will play your test cases you can take a deep breath and enjoy your coffee and snacks.

I hope this tip may be helpful to you somewhere.

Happy Holidays.

Regards,

RJ

Easy steps to call WCF service in Windows Phone 7

Dear All,

Today we will learn how to connect WCF service with Windows phone.

So let’s start with step by step I am using one of the best templates which Windows Phone 7 support it is data bound template.

We add WCF service project to same solution.

Image

We have created a WCF service which returns Category Id, Category name, Category description from Games database. For this we have created a custom data contract as shown in below fig

Image

Now we added the reference of this service to our windows phone project using add service reference menu which comes when we right click on windows phone project.

Once the service reference is added we won half battle now the next challenge is call the method of this service in our windows phone 7 projects. As you know the first step is to create an object of this service which we can do with following code.

 DataServiceFreeTips.CategoryInterfaceClient proxy = new DataServiceFreeTips.CategoryInterfaceClient();

Now all the services which we call using service reference always support asynchronous calling so.

We first create a handler which give us hint when the service get all the data to do this we write following code. And after this service call we call the actual service asynchronous method.

   proxy.GetCategoryCompleted += new EventHandler<DataServiceFreeTips.GetCategoryCompletedEventArgs>(proxy_GetCategoryCompleted);
            proxy.GetCategoryAsync();

Now we are good to go and now we will run it and see. We will get the entire category game list as shown in below fig.

Image

In this way we can call a WCF service.

For detail you can download the code from

You can download the code at https://skydrive.live.com/?cid=1eda2012469ff8ad&id=1EDA2012469FF8AD!243

Thanks & Best Regards,

Rajat Jaiswal

 

 

A new milestone 125th post on Indiandotnet.wordpress.com so far so good

Dear Friends,
This post is different post from my regular technical articles and it is my 125th post on Indiandotnet.wordpress.com.

I would like to thank all of my friends, family members, colleges & most valuable the reader of this blog who continuously giving feedback and improving my skill also.
So thank you very very much.
Keep reading, Keep commenting, and keep giving feedback.
I need more improvement and I know you people will help me in sharing my thoughts.
God bless you all.


Happy Holidays.


Merry Christmas.
Thanks
Rajat Jaiswal

Project List on which we will work in future

Dear Friends,

 Merry Christmas!

I Hope you are enjoying  the holidays.

 After seeing the market trend and requirements I am interested in making following projects which will help me and other friends to understand basic project development and use latest technologies with some productive output.

 In coming up sessions i am going to use this project topic and create sample with latest technologies like Silverlight, Windows phone 7, VS 2010 etc.

 So here we go

 1) College Management

 2) School Management

3) Job Portal

 4) Forums

5) Blog

6) Employee Management

7) Bug Tracker

8) Time Sheet

9) Address Book

10) Project Management

11) Survey engine

 12) Stock Manager

13) Property Broker

14) Shop Management

15) Matrimonial

 16) Social Networking

17) Hotel Management

 18) Inventory Management

19) Accounting

20) Transport Management

21) Hospital Management

22) Ecommerce

Etc are the project list on which I will work in future to enhance my knowledge with productive work.

I will share code base and case study also in future

Hope you like it Once again wish you Merry Christmas.

 Thanks

 Rajat Jaiswal



Some useful Terminology (acronyms)

Hello friends,
Cheers!
Here I am with some useful terminology and these acronyms are generally used now days in broad way take a look.
1) ESB : Enterprise Service Bus
2) POX : Plain OLD XML
3) REST: Representational State Transfer
4) SOAP: Simple Object Access Protocol
5) RIA : Rich Internet Application
6) XML : Extensible Markup Language
7) JASON: Java Script Object Notation
8) DOM : Document Object Modeling
9) XAML : Extensible Application Markup Language
10) LINQ : Language Integrated Query
11) RSS: Really Simple Syndication
12) WCF: Windows Communication Foundation
13) WF: Windows Foundation
14) WPF: Windows Presentation Foundation
15) AJAX: Asynchronous Java script and XML
16) XLST: Extensible Style Sheet Language Transformation
17) INDIGO: Code name of Microsoft windows Communication foundation Technology
18) OSLO: Code name of Microsoft Modeling Technology
19) SOA: Service Oriented Architecture
20) ORCAS: dot net 3.5 Version called ORCAS
21) AVALON: code name of Microsoft Windows Presentation foundation Technology
22) Azure: Microsoft new Operation system Related to Cloud computing
23) Astoria : Code name of Ado.net Data services

I hope you people like it.
Enjoy life with dot net.

Your host
Rajat Jaiswal

WCF Windows Communication Foundation in 5 minutes Part 1

Hello Friends,

Today I am going to discuss new topic which is WCF.

As you know today market demand is Services. Every company needed Service Oriented Architecture (SOA) and in SOA first and basic thing is communication for service so Microsoft provide a  new way of communication for services which is WCF. So let’s start with our questionnaires.

1. What is WCF?

Its full name is Windows Communication Foundation. It’s also called Indigo. Its basically introduce in Dot net 3.0.

WCF is new way of communication between client & server. Its technology by which a client & server can communicate with each other. It provides direct support for Service orientation. Its help in distributed application creation its work as separate layer for communication.

Or in other way we can say that its combination of

1) .Net Remoting

2) MSMQ

3) Web Services

4) COM +

Its basically provide Service.

The Mail dll for this is “System.ServiceModel.dll” and main Namespace Is ” System.ServiceModel”

In WCF there are 3 basic conceptual parts.

1) Services: – The Services are programs which respond to clients. They can send or receive Messages.

2) Client: – Client is that program which consume services the request for services. They either send messages or receive messages or both.

3) Intermediaries: – that’s server as bridge between client & services as shown in below fig.

 clip_image0012

2. What’s advantage?

Now as a human tendency you will think “Why?”  While we have Dot net Remotings, Web Services MSMQ, DCOM then why Microsoft introduces the “WCF” indigo.

So I will say that Microsoft Sees future. Now the era is For SOA (Service Oriented Architecture). So that’s the time demand to come with solid technology which can communicate Dot net to dot net application  + dot net to Other language Application too.

When you talking about dot net to dot net application then in that case Remoting is perfect.

But when you talking about dot net to other application Web Services is perfect. But when you talking about both the things at same time then?

At that time WCF is most perfect.

Now here if you go in deep Remoting use TCP/IP protocols for communication & web services stick with SOAP or http.

So Microsoft takes WCF in picture which is much flexible.

Other than that there are few more advantages

SOA: – Its provide Service Oriented Architecture. It provides developer to make just a simple Config base communication model.

 So just define your services and use those services according to you.

Interpretability: – WCF provide Interpretability. It integrates with other technologies also and gives great way to work with them.

Ws-* :- WCF follows Ws-* specification  which are define by Microsoft, SUN, IBM and many other big company together so that they can expose there services with common protocol.

3. Necessary component?

There are following WCF which are as below:-

1) Contract Definition: – A Service must have a service contact. It can contain multiple Service contract, Data Contract or operational contract.

2) End point Definition: – Address binding contract for binding necessary

3)  Hosting code: Some hosting code needed to create service & start services

In other word we can say service class also needed.

 

4. How it works?

To understand the WCF you have to learn ABC doesn’t laugh on it: D. Here ABC means Address Binding Contact.

 Here A- Address says where there is service or which services we have to contact.

        B- Binding says How to contact with services which ways we have to connect.

       C- Contract means what part of services which we have to access.

 clip_image002

We will study in detail in my next post with sample code.

So just wait for 2nd part of this till than

Thanks & Esteemed Regards

Rajat