Sorry...
my mistake.
i tested for nullity (gsr == null) and i got false.
then i tried to output the gsr, as is, to the screen and got "null"
but i have the traffic. i can see it in the sniffer.
what's going on there?
help!!! :-)
Moshe Bar-Nachoom wrote:
thanks Arun.
1) gsr is not a null. i've tested it in various ways.
2) the stack i get is very simple. it tells me i have an error:
"Exception in thread "Thread-1" java.lang.NullPointerException at
axisThread.run(Glycerine.java:637)".
this is the line that i use to print some of the values i should'va
gotten in response from the server. although the communication seens to
be ok, i still get this null ppinter exception when trying to:
gsr.getEndIndex() (for example)
an important thing to note is that the gsp.doGoogleSearch(..) method
works and creates a request and gets a response (i've
monitored that using etherea)
thanks for the help so far.
desparately looking for the light at the end :)
Soactive Inc wrote:
Moshe,
I am not an expert on this but will try to help...
Seems like gsr itself is null...Is that true? Also, do you have the stack trace?
-Arun
On 7/3/05, Moshe Bar-Nachoom <[EMAIL PROTECTED]> wrote:
hi all,
i'm new here and hope i can find some answers.
i used the wsdl2java utility to create the stub of the google api so i can
call it from axis.
i try a simple search and look for a reply, which i try and print one of
its returning data.
the call is very simple:
GoogleSearchService gss = new GoogleSearchServiceLocator();
GoogleSearchPort gsp = gss.getGoogleSearchPort();
GoogleSearchResult gsr = gsp.doGoogleSearch(googleKey, "search word" 0, 10,
true, "", false, "", "", "");
what i try and do in return is display the value of:
gsr.getEstimatedTotalResultsCount() and / or
gsr.getSearchTime()
for which i get an error:
SOAP messaging exception: null
java.lang.NullPointerException
i ran ethereal to review traffic and it seems there's a full qualified SOAP
messaging going around where the client sends the request object and gets
the response object.SOAP messaging exception: null
java.lang.NullPointerException
it seems to me the ptoblem is in the way i read and use the data from the
returning response.
can you please help? this is rather urgent and i need every bit of info i
can put my hands on.
thank you very much.
moshe
|
- Re: help with wsdl and google api Moshe Bar-Nachoom
-