users@glassfish.java.net

Re: Calling ASP URL from JSF

From: Major Péter <majorpetya_at_sch.bme.hu>
Date: Tue, 20 Apr 2010 18:38:26 +0200

Hi,

> *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.

Where do you concatenate the smsURL with MobileNumber? And why are you
using in the HttpGet still the URL1 variable??

Regards,
Peter