I have some code which works fine:

RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, "http://
localhost:8500/test.cfm");
                 rb.setHeader("Content-Type", 
"application/x-www-form-urlencoded");

                 try {
                 Request response = rb.sendRequest("stuff", new 
RequestCallback()
                 {

                 public void onError(Request request, Throwable exception) {
                 }
                 public void onResponseReceived(Request request, Response 
response)
{
                 }
                 });
                 }
                 catch (RequestException e) {
                 Window.alert("Failed to send the request: " + e.getMessage());
                 }

                 submitProject.addClickListener(new ClickListener(){
        public void onClick(Widget w) {

        RequestBuilder.Method method=RequestBuilder.GET;
        final String url1="http://localhost:8500/test.cfm";;
        Window.alert(url1);
        RequestBuilder rb=new RequestBuilder(method, url1);

        try {
        rb.sendRequest(null, new RequestCallback() {

        public void onResponseReceived(Request request, Response
response) {
        Window.alert(""+response.getStatusCode());
        }

        public void onError(Request arg0, Throwable arg1) {
        Window.alert("error");
        }
        });

        } catch (RequestException e) {
        } } });

However, I can't figure out any methods that return the actual XML
response text!  When trying to turn the request into a string, I quite
obviously get nothing of use.  I have a simple page setup that only
has some text on it (the number 2) so how would I return that?

After figuring that out I can pretty much finish this project I'm
working on :p
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to