axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krishna <kris...@lac.uic.edu>
Subject Google with Axis C++
Date Fri, 04 Mar 2005 18:45:24 GMT
Hi Samisa

I got the service to work (partially)with google by changing the 
generated stubs to the same order as that in the Google wsdl.
The Google Service is sending me a SOAP response which I can see when i 
run tcpdump but somehow while parsing the XML it errors out with a 
segmentation fault.

Please find the SOAP message below

POST /search/beta2 HTTP/1.1
Host: api.google.com:80
Content-Type: text/xml; charset=UTF-8
SOAPAction: "urn:GoogleSearchAction"
Content-Length: 784
 
<?xml version='1.0' encoding='utf-8' ?>
<SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<ns1:doGoogleSearch xmlns:ns1="urn:GoogleSearch">
<key xsi:type="xsd:string">XXXXXXXXXXcensoredXXXXXX</key>
<q xsi:type="xsd:string">LAC UIC</q>
<start xsi:type="xsd:int">1</start>
<maxResults xsi:type="xsd:int">3</maxResults>
<filter xsi:type="xsd:boolean">true</filter>
<restrict xsi:type="xsd:string">no</restrict>
<safeSearch xsi:type="xsd:boolean">false</safeSearch>
<lr xsi:type="xsd:string">blank</lr>
<ie xsi:type="xsd:string">utf</ie>
<oe xsi:type="xsd:string">blank</oe>
</ns1:doGoogleSearch>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Cache-control: private
Transfer-Encoding: chunked
Date: Fri, 04 Mar 2005 18:40:44 GMT
Server: GFE/1.3
 
108e
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:doGoogleSearchResponse xmlns:ns1="urn:GoogleSearch" 
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xsi:type="ns1:GoogleSearchResult">
<directoryCategories 
xmlns:ns2="http://schemas.xmlsoap.org/soap/encoding/" 
xsi:type="ns2:Array" ns2:arrayType="ns1:DirectoryCategory[0]">
</directoryCategories>
<documentFiltering xsi:type="xsd:boolean">true</documentFiltering>
<endIndex xsi:type="xsd:int">4</endIndex>
<estimateIsExact xsi:type="xsd:boolean">false</estimateIsExact>
<estimatedTotalResultsCount 
xsi:type="xsd:int">1960</estimatedTotalResultsCount>
<resultElements xmlns:ns3="http://schemas.xmlsoap.org/soap/encoding/" 
xsi:type="ns3:Array" ns3:arrayType="ns1:ResultElement[3]">
<item xsi:type="ns1:ResultElement">
<URL xsi:type="xsd:string">http://www.lac.uic.edu/~grossman/</URL>
<cachedSize xsi:type="xsd:string">7k</cachedSize>
<directoryCategory xsi:type="ns1:DirectoryCategory">
<fullViewableName xsi:type="xsd:string"></fullViewableName>
<specialEncoding xsi:type="xsd:string"></specialEncoding>
</directoryCategory>
<directoryTitle xsi:type="xsd:string"></directoryTitle>
<hostName xsi:type="xsd:string">www.lac.uic.edu</hostName>
<relatedInformationPresent 
xsi:type="xsd:boolean">true</relatedInformationPresent>
<snippet xsi:type="xsd:string">&lt;b&gt;...&lt;/b&gt; I am the Director

of the Laboratory for Advanced Computing (&lt;b&gt;LAC&lt;/b&gt;) and 
the&lt;br&gt; National Center for Data Mining (NCDM) at 
&lt;b&gt;UIC&lt;/b&gt;. I am also &lt;b&gt;...&lt;/b&gt; 
</snippet>
<summary xsi:type="xsd:string"></summary>
<title xsi:type="xsd:string">Robert Grossman &lt;b&gt;LAC&lt;/b&gt;
Home 
Page</title>
</item>
<item xsi:type="ns1:ResultElement">
<URL xsi:type="xsd:string">http://131.193.181.142/staff.htm</URL>
<cachedSize xsi:type="xsd:string">9k</cachedSize>
<directoryCategory xsi:type="ns1:DirectoryCategory">
<fullViewableName xsi:type="xsd:string"></fullViewableName>
<specialEncoding xsi:type="xsd:string"></specialEncoding>
</directoryCategory>
<directoryTitle xsi:type="xsd:string"></directoryTitle>
<hostName xsi:type="xsd:string"></hostName>
<relatedInformationPresent 
xsi:type="xsd:boolean">true</relatedInformationPresent>
<snippet xsi:type="xsd:string">&lt;b&gt;...&lt;/b&gt; Shirley Connelly

shirley@&lt;b&gt;lac&lt;/b&gt;.&lt;b&gt;uic&lt;/b&gt;.edu
Associate 
Director, Laboratory for Advanced&lt;br&gt; Computing 715 Science and 
Engineering Offices Office: (312) 413-2176. &lt;b&gt;...&lt;/b&gt;  
</snippet>
<summary xsi:type="xsd:string"></summary>
<title xsi:type="xsd:string">DataSpace</title>
</item>
<item xsi:type="ns1:ResultElement">
<URL 
xsi:type="xsd:string">http://www.kyushu.jgn2.jp/research/r_050102/doc/apan_udt.pdf</URL>
<cachedSize xsi:type="xsd:string"></cachedSize>
<directoryCategory xsi:type="ns1:DirectoryCategory">
<fullViewableName xsi:type="xsd:string"></fullViewableName>
<specialEncoding xsi:type="xsd:string"></specialEncoding>
</directoryCategory>
<directoryTitle xsi:type="xsd:string"></directoryTitle>
<hostName xsi:type="xsd:string"></hostName>
<relatedInformationPresent 
xsi:type="xsd:boolean">true</relatedInformationPresent>
<snippet xsi:type="xsd:string">Page 1. The 
&lt;b&gt;LAC&lt;/b&gt;/&lt;b&gt;UIC&lt;/b&gt; experiences
through 
JGN2/APAN during SC04 &lt;b&gt;...&lt;/b&gt; &lt;b&gt;LAC&lt;/b&gt;:

Laboratory for&lt;br&gt; Advanced Computing 
&lt;b&gt;LAC&lt;/b&gt;/&lt;b&gt;UIC&lt;/b&gt; activities ...
data 
intensive computing &lt;b&gt;...&lt;/b&gt;  </snippet>
<summary xsi:type="xsd:string"></summary>
<title xsi:type="xsd:string">The 
&lt;b&gt;LAC&lt;/b&gt;/&lt;b&gt;UIC&lt;/b&gt; experiences
through 
JGN2/APAN during SC04</title>
</item>
</resultElements>
<searchComments xsi:type="xsd:string"></searchComments>
<searchQuery xsi:type="xsd:string">LAC UIC</searchQuery>
<searchTime xsi:type="xsd:double">0.14103</searchTime>
<searchTips xsi:type="xsd:string"></searchTips>
<startIndex xsi:type="xsd:int">2</startIndex>
</return>
</ns1:doGoogleSearchResponse>

</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
 
0
 


Cheers
Krishna
uic.edu/~krajag2

>>>>> Hi Krishna,
>>>>>
>>>>>     Is it possible for you to capture the SOAP message sent by client
>>>>> as well as that sent by the server?
>>>>>
>>>>> Samisa...
>>>>>
>>>>>
>>>>> On Fri, 25 Feb 2005 22:11:18 -0600, krishna <krishna@lac.uic.edu>

>>>>> wrote:
>>>>>         
>>>>>
>>>>>> Hi
>>>>>>
>>>>>> I am trying to develop a Simple Client for Google Search Service

>>>>>> using
>>>>>> AXIS.I have downloaded the Google API and registered with 
>>>>>> Google.I ran
>>>>>> the following simple program given below but it seems to error out.

>>>>>


Mime
View raw message