Thanks for the reply I am making use of RPC call.I get back XML response.My server side code is what i pasted in previous mail. Similarly i need some modification so that i can post the request as well.Right now i am able to get XML response from RESTful web service.
Thanks On Thu, Mar 1, 2012 at 2:57 PM, FrugoFrog <[email protected]> wrote: > What sort of content are you getting back? > Would a RequestBuilder be right thing for you? > ( > http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html > # HTTP client types ) > > > Am 1. März 2012 06:04 schrieb jayalakshmi jahagirdar > <[email protected]>: > > Hi all, > > I am trying to make a REST call to get the response from Web Service. > The > > code is as below and it works. > > public static String makeRestCall(String service) { > > StringBuilder sb = new StringBuilder(); > > String baseURL = urlsrc; > > try { > > //set URL > > URL url = new URL(baseURL + service); > > //make connection > > URLConnection urlc = url.openConnection(); > > BufferedReader br = new BufferedReader(new > > InputStreamReader(urlc.getInputStream())); > > String l = null; > > while ((l=br.readLine())!=null) { > > sb.append(l); > > } > > br.close(); > > } catch (Exception ex){ > > ex.getMessage(); > > } > > return sb.toString(); > > } > > > > > > But what are the changes that i need to make so that i can make a POST > call > > to Web service. > > Any help is appreciated. > > > > Thanks > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to [email protected] > . > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group at > > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
