I tried the new component code. I had to use file: instead of scheme: in the GOOGLE_WSDL variable. I turned on the GOOGLE_TRACE. The error log contained the following messages (an error and the soap message). I do think that I have expat on our Apache server (I remember having to install it for something). If that is the problem is there a way to get around it?
Note that line 77 points to the following code: 76: } 77: </%init> 78: % if ($results && @{$results->{resultElements}}) { 79: <ul class="results"> 80: % foreach my $res (@{$results->{resultElements}}) { [Sun Aug 20 08:00:51 2006] [error] Can't use string ("main::STDOUT") as a HASH ref while "strict refs" in use at /home/webtree/home/ www.soloseo.com/html/o/testGoogle.html line 77.\t\tStack: [/home/ webtree/home/www.soloseo.com/html/o/testGoogle.html:77], [/home/ webtree/home/www.soloseo.com/html/autohandler:62]\n ------------------------------------------------------------------------ -------- </HTML> </BODY> <H2>Error 400</H2> <H1>Error unmarshalling envelope: SOAP-ENV:VersionMismatch: Envelope element must be associated with the 'http://schemas.xmlsoap.org/soap/ envelope/' namespace.</H1> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> </HEAD> <TITLE>Error unmarshalling envelope: SOAP-ENV:VersionMismatch: Envelope element must be associated with the 'http:// schemas.xmlsoap.org/soap/envelope/' namespace.</TITLE> <HEAD> <HTML> Title: Error unmarshalling envelope: SOAP-ENV:VersionMismatch: Envelope element must be associated with the 'http:// schemas.xmlsoap.org/soap/envelope/' namespace. NnCoection: Close Client-Response-Num: 1 Client-Peer: 216.239.37.104:80 Client-Date: Sun, 20 Aug 2006 14:00:51 GMT Content-Type: text/html Content-Length: 433 Server: GFE/1.3 Date: Sun, 20 Aug 2006 14:00:51 GMT Cache-Control: private HTTP/1.1 400 (Bad Request) Error unmarshalling envelope: SOAP- ENV:VersionMismatch: Envelope element must be associated with the 'http://schemas.xmlsoap.org/soap/envelope/' namespace. ### HTTP::Response: ------------------------------------------------------------------------ -------- ------------------------------------------------------------------------ -------- </soap:Envelope> </soap:Body> </typens:doGoogleSearch> <oe xsi:type="xsd:string">utf-8</oe> <ie xsi:type="xsd:string">utf-8</ie> <lr xsi:type="xsd:string" /> <safeSearch xsi:type="xsd:boolean">true</safeSearch> <restrict xsi:type="xsd:string" /> <filter xsi:type="xsd:boolean">true</filter> <maxResults xsi:type="xsd:int">10</maxResults> <start xsi:type="xsd:int">0</start> <q xsi:type="xsd:string">unique content</q> <key xsi:type="xsd:string">MYGOOGLEKEYWASHERE</key> <typens:doGoogleSearch> <soap:Body> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:typens="urn:GoogleSearch" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" <soap:Envelope <?xml version="1.0" encoding="UTF-8"?> SOAPAction: "urn:GoogleSearchAction" Content-Type: text/xml; charset=utf-8 Content-Length: 1052 Accept: application/soap Accept: multipart/* Accept: text/xml POST http://api.google.com/search/beta2 HTTP/1.1 ### HTTP::Request: On Aug 20, 2006, at 4:03 AM, Marius Feraru wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Michael Jensen wrote: >> Error unmarshalling envelope: SOAP-ENV:VersionMismatch: Envelope >> element must be associated with the >> \'http://schemas.xmlsoap.org/soap/envelope/\' namespace. Error 400 > Tough luck. I've seen this error a million times, "never" the same > cause. You'll need more before going farther. > >> The whole $r is below this message if that helps any. > Bad choice (it includes private info) :( > >> It seems to me that I need to change the namespace that SOAP::Lite >> uses, but I'm not sure where in the module files I would do that and >> what I would change it to. Any suggestions??? > My guess is that your message is badly _composed_ (error 400), so > don't > go so far yet (changing namespaces, etc). Instead trace your SOAP > activity, maybe something relevant comes up. Another guess is that you > use an expat-enabled apache, which usually is a big problem. > > Anyway, for starters, I updated that component (Mason wiki) with a > SOAP > transport trace option. Use it, enhance it (more tracing), hopefully > will help. Even more, I've attached a normal request trace, to be able > to compare it with things your env throws at you (that's why the CC to > your personal address, maybe Mason mailing list will strip it). > > cheers > - -- > Marius Feraru > -----BEGIN PGP SIGNATURE----- > > iD8DBQFE6CVitZHp/AYZiNkRAgKIAJ9D6Syipj1kEY6cOKaQe3Yr/R2w1ACgxIkz > MXc+usq9uN5WsP0IxIUVnh8= > =rtJp > -----END PGP SIGNATURE----- > ---------------------------------------------------------------------- > ---------- > ### HTTP::Request: > POST http://api.google.com/search/beta2 HTTP/1.1 > Accept: text/xml > Accept: multipart/* > Accept: application/soap > Content-Length: 1130 > Content-Type: text/xml; charset=utf-8 > SOAPAction: "urn:GoogleSearchAction" > > <?xml version="1.0" encoding="UTF-8"?> > <soap:Envelope > xmlns:typens="urn:GoogleSearch" > soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > <soap:Body> > <typens:doGoogleSearch> > <c-gensym3 xsi:type="xsd:string">[MY-GOOGLE-KEY]</c-gensym3> > > <c-gensym5 xsi:type="xsd:string">perl</c-gensym5> > > <c-gensym7 xsi:type="xsd:int">0</c-gensym7> > > <c-gensym9 xsi:type="xsd:int">10</c-gensym9> > > <c-gensym11 xsi:type="xsd:boolean">true</c-gensym11> > > <c-gensym13 xsi:type="xsd:string" /> > > <c-gensym15 xsi:type="xsd:boolean">true</c-gensym15> > > <c-gensym17 xsi:type="xsd:string" /> > > <c-gensym19 xsi:type="xsd:string">utf-8</c-gensym19> > > <c-gensym21 xsi:type="xsd:string">utf-8</c-gensym21> > </typens:doGoogleSearch> > </soap:Body> > </soap:Envelope> > ---------------------------------------------------------------------- > ---------- > ---------------------------------------------------------------------- > ---------- > ### HTTP::Response: > HTTP/1.1 200 OK > Cache-Control: private > Date: Sun, 20 Aug 2006 09:01:38 GMT > Server: GFE/1.3 > Content-Type: text/xml; charset=utf-8 > Client-Date: Sun, 20 Aug 2006 09:01:39 GMT > Client-Peer: 216.239.37.104:80 > Client-Response-Num: 1 > Client-Transfer-Encoding: chunked > NnCoection: Close > > <?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 > [1]"> > <item xsi:type="ns1:DirectoryCategory"> > <fullViewableName xsi:type="xsd:string">Top/Computers/Programming/ > Languages/Perl</fullViewableName> > <specialEncoding xsi:type="xsd:string"></specialEncoding> > </item> > </directoryCategories> > <documentFiltering xsi:type="xsd:boolean">true</documentFiltering> > <endIndex xsi:type="xsd:int">10</endIndex> > <estimateIsExact xsi:type="xsd:boolean">false</estimateIsExact> > <estimatedTotalResultsCount xsi:type="xsd:int">329000000</ > estimatedTotalResultsCount> > <resultElements xmlns:ns3="http://schemas.xmlsoap.org/soap/ > encoding/" xsi:type="ns3:Array" ns3:arrayType="ns1:ResultElement[10]"> > <item xsi:type="ns1:ResultElement"> > <URL xsi:type="xsd:string">http://www.perl.com/</URL> > <cachedSize xsi:type="xsd:string">32k</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.perl.com</hostName> > <relatedInformationPresent xsi:type="xsd:boolean">true</ > relatedInformationPresent> > <snippet xsi:type="xsd:string">News site run by O&#39;Reilly. > Contains documentation, weekly articles, <b>Perl</b> > development<br> summaries, blogs, and links to a variety of > resources.</snippet> > <summary xsi:type="xsd:string"></summary> > <title xsi:type="xsd:string"><b>Perl</b>.com</title> > </item> > <item xsi:type="ns1:ResultElement"> > <URL xsi:type="xsd:string">http://www.perl.com/download.csp</URL> > <cachedSize xsi:type="xsd:string">37k</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">Instructions on downloading a > <b>Perl</b> interpreter for your computer platform.</ > snippet> > <summary xsi:type="xsd:string"></summary> > <title xsi:type="xsd:string">Getting <b>Perl</b></title> > </item> > <item xsi:type="ns1:ResultElement"> > <URL xsi:type="xsd:string">http://www.perl.org/</URL> > <cachedSize xsi:type="xsd:string">10k</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">Run by the <b>Perl</b> > Foundation with the aim of being &quot;the central directory of > all<br> things <b>Perl</b>&quot;. Lists > news, applications, documentations, communities, <b>...</ > b></snippet> > <summary xsi:type="xsd:string"></summary> > <title xsi:type="xsd:string"><b>Perl</b>.org</title> > </item> > <item xsi:type="ns1:ResultElement"> > <URL xsi:type="xsd:string">http://www.cpan.org/</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"></hostName> > <relatedInformationPresent xsi:type="xsd:boolean">true</ > relatedInformationPresent> > <snippet xsi:type="xsd:string">The Comprehensive <b>Perl</ > b> Archive Network, the gateway to all things <b>Perl</ > b>. The canonical<br> location for <b>Perl</ > b> code and modules.</snippet> > <summary xsi:type="xsd:string"></summary> > <title xsi:type="xsd:string">CPAN</title> > </item> > <item xsi:type="ns1:ResultElement"> > <URL xsi:type="xsd:string">http://www.activestate.com/</URL> > <cachedSize xsi:type="xsd:string">17k</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">ActiveState Open source technology- > based tools and solutions for <b>Perl</b>, > PHP,<br> Python, Tcl, Ruby, on AIX, HP-UX, Linux, Mac OS X, > Solaris, and Windows.</snippet> > <summary xsi:type="xsd:string"></summary> > <title xsi:type="xsd:string">ActiveState Tool Corp.</title> > </item> > <item xsi:type="ns1:ResultElement"> > <URL xsi:type="xsd:string">http://www.activestate.com/Products/ > ActivePerl/</URL> > <cachedSize xsi:type="xsd:string">20k</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">ActiveState&#39;s quality- > assured, distribution of <b>Perl</b> on Linux, Mac OS > X, Solaris<br> and Windows. ActiveState offers professional > programming tools for <b>Perl</b>, <b>...</ > b></snippet> > <summary xsi:type="xsd:string"></summary> > <title xsi:type="xsd:string">ActiveState - ActivePerl free > <b>Perl</b> open source binary language > <b>...</b></title> > </item> > <item xsi:type="ns1:ResultElement"> > <URL xsi:type="xsd:string">http://archive.ncsa.uiuc.edu/perl.html</ > 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">A tutorial covering a simplified > version of what <b>perl</b> can do. Covers > variables,<br> functions, arrays, flow control, subroutines > and files.</snippet> > <summary xsi:type="xsd:string"></summary> > <title xsi:type="xsd:string"><b>Perl</b> tutorial from > NCSA</title> > </item> > <item xsi:type="ns1:ResultElement"> > <URL xsi:type="xsd:string">http://www.cs.cmu.edu/cgi-bin/perl-man</ > URL> > <cachedSize xsi:type="xsd:string">6k</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">This web document is a re-organized > version of the &quot;<b>perl</b>.1&quot; man > page for <b>PERL</b><br> version 4. (I will not > be producing a revised version for Perl5. <b>...</b></ > snippet> > <summary xsi:type="xsd:string"></summary> > <title xsi:type="xsd:string"><b>Perl</b> 4 Manual</title> > </item> > <item xsi:type="ns1:ResultElement"> > <URL xsi:type="xsd:string">http://perl.apache.org/</URL> > <cachedSize xsi:type="xsd:string">32k</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">mod_perl brings together the full > power of the <b>Perl</b> programming language > <b>...</b><br> mod_perl gives you a persistent > <b>Perl</b> interpreter embedded in your web server. > <b>...</b></snippet> > <summary xsi:type="xsd:string"></summary> > <title xsi:type="xsd:string">mod_perl</title> > </item> > <item xsi:type="ns1:ResultElement"> > <URL xsi:type="xsd:string">http://en.wikipedia.org/wiki/Perl</URL> > <cachedSize xsi:type="xsd:string">97k</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">Provides language history, function > information and code examples.</snippet> > <summary xsi:type="xsd:string"></summary> > <title xsi:type="xsd:string"><b>Perl</b> - Wikipedia</ > title> > </item> > </resultElements> > <searchComments xsi:type="xsd:string"></searchComments> > <searchQuery xsi:type="xsd:string">perl</searchQuery> > <searchTime xsi:type="xsd:double">0.14867</searchTime> > <searchTips xsi:type="xsd:string"></searchTips> > <startIndex xsi:type="xsd:int">1</startIndex> > </return> > </ns1:doGoogleSearchResponse> > > </SOAP-ENV:Body> > </SOAP-ENV:Envelope> > ---------------------------------------------------------------------- > ---------- ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users