EVERYBODY IS CULPRIT HERE….

Ten years ago, I was a student. Looking at the situation, I hated the Indian police all the time.

I saw the traffic police taking a silly bribe of 10/- excusing his fault.

I have gone to police station and begged the officer to lodge an FIR when one of the stupid snatched the mobile phone from my friend’s hand.

They took 50/- from me for clicking a snap to a restricted area of a waterfall in a botanical garden. They took it but did not give any receipt.

A police man stopped me at Mumbai CST station, took my mobile phone, looking into all the snaps I had in my mobile, browsed all the videos. I am not sure was he trying to find a secret information about planting a BOMB in BSE Sensex building or a porn video upon which he can ask me a 6″ long 500/- currency!

Just now I called my wife and enquired if she has encountered any such problems. Politely she said – Not exactly. What she has hated about RPFs (Railway Police Forces) behaving miserably in vendor coaches and in general class of bogies in train. They proclaimed the right meaning of Sarkar Raj.

I am a software engineer now. Felt those police would have changed in these many years. But it remains same. May be those 10/- became 100/- now and so 50/- became 500/-. Look at the magic of zero. Good! That’s how the economy has grown to our country in last one decade.

Don’t know how many times abused them, cursing them, making fun of their lathis, Khakhi topis, junk donali bandook, unbalanced abdomen… ha ha ha. No more they should be considered as protector of society, beneath harming the society.

It’s really so easy to find a fault in other person and blame them for every genuine or silly matters.

Once again – I am a software engineer. Oh come-on! Already you said it. Why are you repeating?

Yes proudly speaking – I am a software engineer. I took my job with my own guts. I had a skill set, I have not begged anyone for a reference neither I asked my parents to give me a cheque of Rs. 50000 for serving it under the table.

I am into a job profile where nothing like bribe. I don’t take a bribe like those police men or any other government official. I am into a job profile where everything is systematic, well organized, recorded at each step.

Just a silly thinking about this job profile; if all the software engineers are so well human being, then probably heaven will have the scarcity of keeping the people.

So what? What is that I want to prove myself? – I am an honest man with a clean chit. Aaaah!

Let me explore myself or my job carefully. Reader of this blog should not consider me as a victim; hence I will take up the cases here across the software industry relating live situation around me, my friends or a 2nd or Nth degree of friends. Though we don’t have a blood relation, but still connected. Connected via Facebook!

Knowingly I quoted to my client for 100 hours to complete a module in Java against an actual effort of 50 or 60 hrs.

I just messaged my boss “I am not keeping well, hence cannot come to office …” while the fact was my kid needs a pair of new shoes right now.

Several times I updated the status to my USA client as “Today it was a connection issue while accessing those remote servers and hence could not finish the task…”

I remember when I resigned from one of my past company tried to take as much as codes I can paste into my Gmail account. These were the programming codes either wrote by me or by my colleagues taking so much pain. I would have invested weeks to run that SQL query perfectly but stolen it in just few seconds.

When I see the consumed space in my laptop, I find 30% of space is reserved by eBooks. I did not have any internet connection or dongle for my personal computer. But still every week I used to download 2-3 books, copy it to my pen drive and make my eLibrary richer. 3 yrs. back when I counted I could find I got eBooks for more than 60,000 INR at zero cost. They were either downloaded from a right link or were torrented illegally.

We got a printer in our working environment and I use it for my credit card statements, IRCTC ticket booking, resume, recipes for my wife, images for interior design, Lyrics of MLTR songs, Ganesha festival details for society’s notice board …… Hardly have I taken a print out which says “How does a Java compiler works?”

Every time I take a leave for 5 days to visit my native but it is always a delay of 1 day; as my train used to be late while reaching Mumbai.

I know my juniors are not taking the work seriously. I called them for a quick meeting and said I got a call from senior management and he wants us to deliver this module by today EOD. Let’s do it forgetting that there is a night for sleep.

We rejected several candidates despite they did very well in interviews; just for a reason that they expected a high salary or it was a long notice period.

Overall I lie, I misuse things, I misguide people, I steal things – Hence I am a culprit too. How can I blame those police man when myself as a big fault?

Web Service Sender and Listener in Mirth

Mirth Connect Version : 2.0.1.5164

Here is a short demonstration on implementing Web Services in Mirth.
Based on this tutorial any web service can be implemented in a similar manner.
In order to reduce the complexity and make it a true demo (Yes even you can try your own! – Don’t worry you NEED NOT to write any web service here either in JAVA or .NET); I am using the default web service provided in Mirth.
 
Create two channels in Mirth:
This is organized in below sections:

1. Creating channel WS_Listener
2. Creating channel WS_Sender
3. Running the application
4. Important note

============== 1. Creating channel WS_Listener ==============
Create a new channel name as “WS_Listener”.

———— Source: ————
Source -> Connector Type -> Web Service Listener
Listener Address : “Listen on all interfaces”
Port: 8082 (You can have any port – that must be free for your Operating System)
Web Service : “Default service”
Service Name: Mirth (By Default it should appear)
WSDL URL: http://localhost:8082/services/Mirth?wsdl ( By default)
Method: String acceptMessage(String message) (By default)
Respond from: None
Basic Authentication : Leave empty as of now.

————  Destination: ————
Create a new destination.
Connector Type : Channel Writer
Channel Name : None
Template : ${message.encodedData}

Save the channel and deploy.
============== 2. Creating channel WS_Sender  ==============
Create a new channel name as “WS_Sender”.

———— Source: ————
Source -> Connector Type -> Channel Reader [You can have your own connector] – So that you can send a sample message “Hello World” from that dashboard.
From left panel select the “Edit Transformer” just to define a very simple message type otherwise by default you need to have a HL7 message to process it.
Click on “Message Template”. From drop down -> Delimited text as data type.
In box – just paste a sample text message -> just|a|test|message
In the outbound message template you can set the same.
Data Type – Delimited Text
In Box – just|a|test|message
Respond from : None

————  Destination: ————
Create a new destination.
Connector type -> Wes Service Sender [Select From drow down]
WSDL URL : http://localhost:8082/services/Mirth?wsdl
Click on “Get Operations” button. -> This should fill up several key-values automatically [Service, Port]
Authentication -> As of now select No as radio button.
Send Response to : None. [Select it from drop down; if you want to send to other channel]
Use Persistent Queues : No as radio button
Invocation Type : Two-Way as radio button
Operation : acceptMessage (This is the only operation defined under default Mirth’s web service).
Click on Generate Envelope – You can find a XML i.e SOAP Envelope
Look for the line:
    <!–Optional:–>
      <arg0>SCHOOLHOOD – Learn To Enjoy.</arg0>
Use MTOM – No as radio button
Save this channel and deploy it.
============== 3. Running the application ==============
 From the deployed dashboard, double click on “WS_Sender” app.
 From left panel select “Send Message”.
 Type in the pop up text box -> just|a|test|message
 And press the “Process Message” button.
 
 Come back to the dashboard list.
 Now double click on “WS_Listener” app.
 Check the message details. You should be able to see the string[SCHOOLHOOD – Learn To Enjoy.] passed by you in SOAP envelope under Raw Message tab.

 ============== 4. Important Note  ==============
 1. Only after deploying WS_Listener channel ; the WSDL url becomes active
 http://localhost:8082/services/Mirth?wsdl
 You can try out it on normal IE, Mozilla or any browser
 
 2. In the SOAP envelope, you can use any transformed values passed either from java script or through any processing lagic
 <arg0>SCHOOLHOOD – Learn To Enjoy.</arg0>
 this can take a shape of
 <arg0>${myVariable}</arg0>