Posts

Showing posts from November, 2011

How to install Mercurial and Tortoise hg in Ubuntu 11.10

A simple article on how to install the version control tool Mercurial on Ubuntu 11.10. Tortoise-HG is a GUI based tool for using Mercurial. Here's the link to the installation steps

http://texnical.wordpress.com/2011/09/13/install-tortoisehg-mercurial-gui-in-ubuntu/

Installing Java6 JDK in Ubuntu 11.10

Hi, I recently came to know that by default the ppa for java has been removed from Ubuntu, so for installing Java in Ubuntu, use the following steps. Plain and simple.

http://leo.gaggl.com/2011/10/installing-java6-jdk-on-ubuntu-11-10/


How to create a java SOAP Client to test a .Net web service

Image
This is how you can test your web service in Java without creating any SOAP Client. Using this you can access Web Services created using any technology, in specific .Net.


/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.fugoconsulting;

import java.io.InputStreamReader;
import java.net.URL;

/**
 *
 * @author pandi
 */
public class sendRequest {

    public String sendRequestToIRDA(String request) {

    String response = "";
    try {
            String soapXml = request;
            URL url = new URL("http://127.0.0.1/Service/TestService.asmx"); //for testing .Net Service
            java.net.HttpURLConnection conn = (java.net.HttpURLConnection) url.openConnection();
            conn.setRequestProperty("Content-Type", "text/xml; charset=utf-8");
   conn.setRequestProperty("SOAPAction", "http://test/Service/Test");
   conn.setRequestProperty("Content-Length"…