Saturday, November 13, 2010

I am working on integration project which mainly deals with two other system.
when this task comes to me I designed a question airs for other teams.In this development. I have learned some good points during integration analysis.
These points are under mentioned.
1) Always go through details analysis of front end application(which helps you to understand about system functionality)
2) System back office knowledge (It will help you to understand about the technical complexity which you will faced during integration,existing work-flow)
3) Existing system's deployment architecture so will be aware how you communicate with them.
I am also attaching my question air with this post,It will guide in you integration development.



System(Service Name)



what is purpose of this webmethod

Nature of Interaction


Response Time (Approx.)

response time of this service mthod

Transactional Integrity

How you ensure transactional integrity

Message Format

Xml string/DataObject....


one dataset can entertain multiple time

Security Implementation

security mechnaism


Is it availabe 24/7

Change Management

what if you are releasing new version of Service then forward or back comptible

Proposed Scheduling

any downtime


service is depened on any other service

Expected Messages Frequency

500 per day


responsible person of this service

Tuesday, August 24, 2010

how to get file from resources

Today I was busy in two issues
First one was something refactoring I have to deal with some objects and their property name
and object property will be called by name Like I want name).setvalue("")
Any how I achieved this by reflection. lemme me share code with u

private static void LoadPropertiesValues(object dataObject )
if(dataObject != null)
PropertyInfo[] properties = dataObject.GetType().GetProperties();
foreach (PropertyInfo objInfo in properties)
XmlNode xmlMapNode =
_xmlMappingDoc.SelectSingleNode("/parentElement/ChildName[@fieldname='" +
objInfo.Name + "']");
if (xmlMapNode != null && xmlMapNode.Attributes[1] != null &&
xmlMapNode.Attributes[1].Value != string.Empty)
string mapGroupName = xmlMapNode.Attributes[1].InnerText;
Mapping mapping = _dataMapperDao.GetMappingByCodeAndResidencyValue(mapGroupName,
if (mapping != null)


Second issue was access file from resources
Actually I have to load some values from xml file and then I have to take care about its path because in production Envoirnment I cann't guarantee that path will be same neither I can enforce it. It will be changed so I want to get rid of this issue I put this file inside resources, then I put little effort on accessing this file.

Assembly objAssembly = Assembly.GetAssembly(typeof (ClassName));
Stream stream = objAssembly.
if (stream != null)
var xmlTextReader = new XmlTextReader(stream);



So, this is all about today :)

Tuesday, August 17, 2010

breakpoints connot be set in method or class with the debuggerstep through attribute just my code is enable

Today I face this problem I was unable to debug my code and I spent several hours to solve it.
I got this exception when I put debug point and it displays this message on runtime.
Anyhow I found two solution
[assembly:System.Diagnostics.Debuggable(true,true)] attribute at assembly level.
I declare this attribute in assemblyinfo.cs

second solution is I change my webservice project from website to web application and everything is going smoothly :) Happy!!

Wednesday, August 4, 2010

Cannot import wsdl:port

Error: Cannot import wsdl:port
Detail: There was an error importing a wsdl:binding that the wsdl:port is depend
ent on.
XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='']/wsdl:binding[@name='ISyncRiskBinding']
XPath to Error Source: //wsdl:definitions[@targetNamespace='']/wsdl:service[@name='SyncRiskxxx']/wsdl:port[@name='ISyncRiskService']

Solution is very simple actually svcutil looking for xsd's if you are using multiple xsd ,beacuse it's unable to load xsd. so, give xsd paths with spaces.

Sunday, April 11, 2010

The request failed with HTTP status 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the W

I got this error , it is very amazing for me because sometimes it works and sometimes it throws me error. Actually firewall needs your credentials to verify you so, use this code snippet .

WebProxy wbProxy = new WebProxy();
wbProxy.Credentials = CredentialCache.DefaultCredentials;
objService.Proxy = wbProxy;
It works for me!!

Tuesday, February 23, 2010

Visual Studio VS plugin for Apache Maven

I found after a long search on maven plugin for .net
please share your experience also because, its very new so,if anyone has any problem or got any appropriate solution share it.

Tuesday, February 16, 2010

No template information found. See the application log in Event Viewer for more details.

No template information found.
See the application log in Event Viewer for more details.

I got this problem I found solution of this problem is very easy fix is
use visual studio command prompt type devenv/installvstemplates

hope this help you out!

Monday, February 8, 2010

How to Enable AdHoc Quaries

I want to save my records in excel file for this I have to use openrowset in my query . It throws my error of AdHoc Quaries is disable on you server contact your administrator.
If you are using sqlserver 2005 or 2008 then follow this pictorial represenstation this is one way

and easy way :)

click on surface area configuraiton for feature and then you see screen below.

enable this adhoc query option and enjoy.
there is another way which is manual way for this follow this link

Sunday, February 7, 2010

Becoming a Great Developer

Becoming a Great Developer

You are very good programmer, problem solver and algorithms writer.

If your code is not good enough to deliver your knowledge,however,your team and your company will suffer in logn run.It is crucial that as a great developer you are not passionate about code.

We talk consistantly about design patterns,refacotring and code readablity, but when it gets right down to it, we often ignore infromation due to constraints of time.

The fact remains that we must consider some important points begin to always right code in this manner.
Here are some techniques that I have learned,which we can include in our daily programming practice.

1. Use common template in whole code ,it shows your code consisitancy in whole proj/prod.

2. Repitative code should be in single method.
3. Try to use factory method where ever object creation is concern.
4. Variable name should be self descriptive.
if (HasInstantiationAwareBeanPostProcessors)
foreach (IObjectPostProcessor processor in ObjectPostProcessors)
IInstantiationAwareObjectPostProcessor inProc = processor as IInstantiationAwareObjectPostProcessor;
if (inProc != null)
if (!inProc.PostProcessAfterInstantiationwrapper.WrappedInstance,name))
continueWithPropertyPopulation = false;
} }
5. Use singleton on your Service and Dao layer, it creates a hell on each call of new object creation.
6. These objects are useless to create at every call.

7. Use at least one line summary of method in your comments area.
8. KIS principle.(Keep it Simple)Your method should contain single respoinsiblity don’t make your method monolithic.
/// Checks if a string has length.
/// if the string has length and is not
/// StringUtils.HasLength(null) = false
/// StringUtils.HasLength("") = false
/// StringUtils.HasLength(" ") = true
/// StringUtils.HasLength("Hello") = true

public static bool HasLength(string target)
return (target != null && target.Length > 0);
9. Your calss should be single responsible of your logic means userservice should have method of only related with user related.

10. Declare interface for your each layer’s object.Mean to say userservice should have IUserservice same with other service layer object either it is infrastructure,Dao,persistnance.

Writing software is not just one time activity as codes have to dealt with 90% of the time.It's a life time activity and I think that code maintanance should be a part of everyday.Code maintanance is understanding that the easier code is to write the easier it is to maintain.