users@glassfish.java.net

Calling ASP URL from JSF

From: Vijaya Maddela <vijay.reddy_at_eaiesb.com>
Date: Tue, 20 Apr 2010 21:49:06 +0530

Hi

I want to call ASP URL from JSP by setting parameters

 

String URL1 =
"http://eaiesb.com/Webservice.aspx?User=va&passwd=demo&mobilenumber=97041799
93"; --- It works fine with below code

 

HttpClient httpclient = new DefaultHttpClient();

            HttpGet httpget = new HttpGet(URL1);

        HttpResponse response = httpclient.execute(httpget);

 

 

If I use below code ( Dynamically generating URL String ).

 

String smsURL = "http://eaiesb.com/Webservice.aspx?User=va&passwd=demo";

        String MobileNumber = "&mobilenumber="
+tmobileNumber.getText().toString() ;

        

HttpClient httpclient = new DefaultHttpClient();

            HttpGet httpget = new HttpGet(URL1);

        HttpResponse response = httpclient.execute(httpget);

 

 

I compared both strings both are same but I am not able to call asp page if
I generate url dynamically.

 

Appreciate your help.

 

 

 

 

 

 

Thank You

Much Respect

Vijaya Kumar Reddy.Maddela

vijay.reddy_at_eaiesb.in

Mobile:9704179993|40-40119993

US:978-306-3751

UK:173-730-6078

www.eaiesb.in