Thanks a lot Ramon.

I see that in the following sentences,* getURL() *is a method that retrieve
the content of a PHP file this is "
http://127.0.0.1:8888/ldbn/../php/comment.php";

protected void send() {
RequestBuilder rb = new RequestBuilder(getMethod(), getURL());
rb.setHeader("Content-type", "application/x-www-form-urlencoded");
try {
rb.sendRequest(getData(), new RequestCallback() {
public void onError(Request request, Throwable exception) {
Log.error("Request Callback Error", exception);
}
public void onResponseReceived(Request request, Response response) {
if (Common.checkResponse(response)) {
boolean isOK = handleResponce();
if(!isOK) {
Log.warn("Invalid response by the server:\n");
Log.warn(response.getText());
}
}
}
});
} catch (Exception e) {
Log.error("Request failed", e);
}
}

And then when the method:
 XMLParce(String a) {
    ...
  }
is called. But the parameter a is the PHP content file instead the
XML retrieved from the database query.

Do you know what kind of problem is it  ?


best regards
Facundo






2010/11/24 Ramon Buckland <ra...@thebuckland.com>

> Facundo,
>
> Your question is very confusing. But I think, what you are saying is:
>
> You have a method declared like
>
>   XMLParce(String a) {
>     ...
>   }
>
> and it currently parses XML when a is an XML String.
> You want it to, also, if needed, to Connect to some URL (presumably
> phpMyAdmin PHP Page that provides XML) and parse that XML returned
> from the URL.
>
> If that is the case, You need to look at the GWT class,
> com.google.gwt.http.client.RequestBuilder
>
>
> Hope that helps.
> Regards, ramon.
>
> On Nov 24, 12:18 pm, facundo schwindt <facu0...@gmail.com> wrote:
> > Hi everybody
> >
> > I'm new in GWT. I'm developing a tool that have been started that use
> > MyphpAdministrator to connect to the database mysql.
> > to do the parser from XML to java clases to pick up all data from Mysql
> tha
> > program uses XMLParce (string A) function.
> > if A is an XML no problem
> > if A is an file PHP to make a connection to the database. It's doesn't
> work.
> >
> > Could someone give me a tip, please ?
> >
> > Regards
> > Facundo
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> .
> 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 google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to