Thanks for showing me that component, Marius, nice for debugging it. Below is the Data::Dumper of $r because that first sub that has the $r->log->debug is hit. It gives me the following: Error unmarshalling envelope: SOAP-ENV:VersionMismatch: Envelope element must be associated with the \'http://schemas.xmlsoap.org/soap/envelope/\' namespace. Error 400 The whole $r is below this message if that helps any. 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??? -Michael $VAR1 = \bless( { '_context' => bless( { '_autoresult' => 0, '_schema' => undef, '_on_nonserialized' => sub { "DUMMY" }, '_packager' => bless( { '_env_location' => '/main_envelope', '_parser' => undef, '_content_encoding' => '8bit', '_env_id' => '', '_parts' => [], '_persist_parts' => 0 }, 'SOAP::Packager::MIME' ), '_deserializer' => bless( { '_xmlschemas' => { 'http://www.w3.org/2003/05/soap-encoding' => 'SOAP::XMLSchemaSOAP1_2::Deserializer', 'http://schemas.xmlsoap.org/soap/encoding/' => 'SOAP::XMLSchemaSOAP1_1::Deserializer', 'http://www.w3.org/1999/XMLSchema' => 'SOAP::XMLSchema1999::Deserializer', 'http://www.w3.org/2001/XMLSchema' => 'SOAP::XMLSchema2001::Deserializer', 'http://xml.apache.org/xml-soap' => 'SOAP::XMLSchemaApacheSOAP::Deserializer' }, '_parser' => bless( { '_parser' => bless( { '_HNDL_TYPES' => { 'CdataEnd' => sub { "DUMMY" }, 'XMLDecl' => sub { "DUMMY" }, 'ExternEntFin' => sub { "DUMMY" }, 'End' => sub { "DUMMY" }, 'Notation' => sub { "DUMMY" }, 'Entity' => sub { "DUMMY" }, 'Element' => sub { "DUMMY" }, 'Start' => sub { "DUMMY" }, 'Unparsed' => sub { "DUMMY" }, 'Doctype' => sub { "DUMMY" }, 'CdataStart' => sub { "DUMMY" }, 'Proc' => sub { "DUMMY" }, 'Final' => 1, 'Attlist' => sub { "DUMMY" }, 'DoctypeFin' => sub { "DUMMY" }, 'ExternEnt' => sub { "DUMMY" }, 'Char' => sub { "DUMMY" }, 'Default' => sub { "DUMMY" }, 'Init' => 1, 'Comment' => sub { "DUMMY" } }, 'Handlers' => { 'Char' => undef, 'ExternEnt' => undef, 'End' => undef, 'Start' => undef, 'Final' => undef }, 'Non_Expat_Options' => { '_HNDL_TYPES' => 1, 'Style' => 1, 'Handlers' => 1, 'Non_Expat_Options' => 1, 'NoLWP' => 1 }, 'Pkg' => 'SOAP::Parser' }, 'XML::Parser' ), '_done' => [ 'HTML', {}, [ [ 'HEAD', {}, [ [ 'TITLE', {}, 'Error unmarshalling envelope: SOAP-ENV:VersionMismatch: Envelope element must be associated with the \'http://schemas.xmlsoap.org/soap/envelope/\' namespace.', undef, 'Error unmarshalling envelope: SOAP-ENV:VersionMismatch: Envelope element must be associated with the \'http://schemas.xmlsoap.org/soap/envelope/\' namespace.', 'TITLE', {} ] ], undef, { 'TITLE' => 'Error unmarshalling envelope: SOAP-ENV:VersionMismatch: Envelope element must be associated with the \'http://schemas.xmlsoap.org/soap/envelope/\' namespace.' }, 'HEAD', {} ], [ 'BODY', { 'BGCOLOR' => '#FFFFFF', 'TEXT' => '#000000' }, [ [ 'H1', {}, 'Error unmarshalling envelope: SOAP-ENV:VersionMismatch: Envelope element must be associated with the \'http://schemas.xmlsoap.org/soap/envelope/\' namespace.', undef, 'Error unmarshalling envelope: SOAP-ENV:VersionMismatch: Envelope element must be associated with the \'http://schemas.xmlsoap.org/soap/envelope/\' namespace.', 'H1', {} ], [ 'H2', {}, 'Error 400', undef, 'Error 400', 'H2', {} ] ], undef, { 'H1' => 'Error unmarshalling envelope: SOAP-ENV:VersionMismatch: Envelope element must be associated with the \'http://schemas.xmlsoap.org/soap/envelope/\' namespace.', 'H2' => 'Error 400' }, 'BODY', { 'BGCOLOR' => '#FFFFFF', 'TEXT' => '#000000' } ] ], undef, { 'BODY' => ${$VAR1}->{'_context'}->{'_deserializer'}->{'_parser'}->{'_done'}->[2]->[1]->[4], 'HEAD' => ${$VAR1}->{'_context'}->{'_deserializer'}->{'_parser'}->{'_done'}->[2]->[0]->[4] }, 'HTML', {} ], '_values' => undef }, 'SOAP::Parser' ), '_context' => ${$VAR1}->{'_context'}, '_hrefs' => {}, '_ids' => ${$VAR1}->{'_context'}->{'_deserializer'}->{'_parser'}->{'_done'} }, 'SOAP::Deserializer' ), '_call' => ${$VAR1}, '_on_action' => sub { "DUMMY" }, '_transport' => bless( { '_proxy' => bless( { 'max_redirect' => 7, 'use_eval' => 1, 'max_size' => undef, '_is_success' => '', '_http_request' => bless( { '_headers' => bless( { 'soapaction' => '"urn:GoogleSearchAction"', 'content-length' => 907, 'user-agent' => 'SOAP::Lite/Perl/0.68', 'accept' => [ 'text/xml', 'multipart/*', 'application/soap' ], 'content-type' => 'text/xml; charset=utf-8' }, 'HTTP::Headers' ), '_uri' => bless( do{\(my $o = 'http://api.google.com/search/beta2')}, 'URI::http' ), '_protocol' => 'HTTP/1.1', '_method' => 'POST', '_content' => 'u/iX941QFHLenUkkYJbQxSW36jaLxzxA“unique content”010truetrueutf-8utf-8' }, 'HTTP::Request' ), '_options' => { 'is_compress' => '' }, 'protocols_allowed' => undef, 'agent' => 'SOAP::Lite/Perl/0.68', 'protocols_forbidden' => undef, '_message' => 'Error unmarshalling envelope: SOAP-ENV:VersionMismatch: Envelope element must be associated with the \'http://schemas.xmlsoap.org/soap/envelope/\' namespace.', '_http_response' => bless( { '_headers' => bless( { 'client-peer' => '216.239.37.104:80', 'date' => 'Sun, 20 Aug 2006 05:44:50 GMT', 'client-response-num' => 1, 'content-length' => '433', 'nncoection' => 'Close', 'cache-control' => 'private', 'client-date' => 'Sun, 20 Aug 2006 05:44:50 GMT', 'server' => 'GFE/1.3', 'title' => 'Error unmarshalling envelope: SOAP-ENV:VersionMismatch: Envelope element must be associated with the \'http://schemas.xmlsoap.org/soap/envelope/\' namespace.', 'content-type' => 'text/html' }, 'HTTP::Headers' ), '_msg' => 'Error unmarshalling envelope: SOAP-ENV:VersionMismatch: Envelope element must be associated with the \'http://schemas.xmlsoap.org/soap/envelope/\' namespace.', '_rc' => 400, '_protocol' => 'HTTP/1.1', '_content' => ' Error unmarshalling envelope: SOAP-ENV:VersionMismatch: Envelope element must be associated with the \'http://schemas.xmlsoap.org/soap/envelope/\' namespace. Error 400 ', '_request' => ${$VAR1}->{'_context'}->{'_transport'}->{'_proxy'}->{'_http_request'} }, 'HTTP::Response' ), 'from' => undef, 'timeout' => 180, '_status' => '400 Error unmarshalling envelope: SOAP-ENV:VersionMismatch: Envelope element must be associated with the \'http://schemas.xmlsoap.org/soap/envelope/\' namespace.', 'parse_head' => 1, 'def_headers' => undef, 'requests_redirectable' => [ 'GET', 'HEAD' ], 'proxy' => {}, '_code' => '400', 'no_proxy' => [], '_endpoint' => 'http://api.google.com/search/beta2' }, 'SOAP::Transport::HTTP::Client' ) }, 'SOAP::Transport' ), '_endpoint' => 'http://api.google.com/search/beta2', '_on_fault' => sub { "DUMMY" }, '_serializer' => bless( { '_typelookup' => { 'boolean' => [ 90, sub { "DUMMY" }, 'as_boolean' ], 'string' => [ 100, sub { "DUMMY" }, 'as_string' ], 'gDay' => [ 40, sub { "DUMMY" }, 'as_gDay' ], 'gMonth' => [ 35, sub { "DUMMY" }, 'as_gMonth' ], 'gYearMonth' => [ 55, sub { "DUMMY" }, 'as_gYearMonth' ], 'date' => [ 60, sub { "DUMMY" }, 'as_date' ], 'gYear' => [ 45, sub { "DUMMY" }, 'as_gYear' ], 'time' => [ 70, sub { "DUMMY" }, 'as_time' ], 'float' => [ 30, sub { "DUMMY" }, 'as_float' ], 'gMonthDay' => [ 50, sub { "DUMMY" }, 'as_gMonthDay' ], 'base64Binary' => [ 10, sub { "DUMMY" }, 'as_base64Binary' ], 'duration' => [ 80, sub { "DUMMY" }, 'as_duration' ], 'int' => [ 20, sub { "DUMMY" }, 'as_int' ], 'dateTime' => [ 75, sub { "DUMMY" }, 'as_dateTime' ], 'anyURI' => [ 95, sub { "DUMMY" }, 'as_anyURI' ], 'long' => [ 25, sub { "DUMMY" }, 'as_long' ] }, '_level' => 0, '_readable' => 0, '_encodingStyle' => 'http://schemas.xmlsoap.org/soap/encoding/', '_encoding' => 'UTF-8', '_context' => ${$VAR1}->{'_context'}, '_namespaces' => { 'http://schemas.xmlsoap.org/wsdl/' => 'wsdl', 'http://schemas.xmlsoap.org/soap/encoding/' => 'soapenc', 'urn:GoogleSearch' => 'typens', 'http://www.w3.org/2001/XMLSchema-instance' => 'xsi', 'http://www.w3.org/2001/XMLSchema' => 'xsd', 'http://schemas.xmlsoap.org/soap/envelope/' => 'soap', 'http://schemas.xmlsoap.org/wsdl/soap/' => 'soap' }, '_autotype' => 1, '_attr' => { '{http://schemas.xmlsoap.org/soap/envelope/}encodingStyle' => 'http://schemas.xmlsoap.org/soap/encoding/' }, '_maptype' => {}, '_use_default_ns' => 0, '_ns_prefix' => 'namesp53', '_seen' => { '19904200' => { 'count' => 1, 'value' => bless( { '_name' => undef, '_signature' => [ 'keystring', 'qstring', 'startint', 'maxResultsint', 'filterboolean', 'restrictstring', 'safeSearchboolean', 'lrstring', 'iestring', 'oestring' ], '_attr' => {}, '_value' => [ bless( { '_type' => 'xsd:string', '_name' => 'key', '_signature' => [ 'keystring' ], '_attr' => {}, '_value' => [ 'u/iX941QFHLenUkkYJbQxSW36jaLxzxA' ] }, 'SOAP::Data' ), bless( { '_type' => 'xsd:string', '_name' => 'q', '_signature' => [ 'qstring' ], '_attr' => {}, '_value' => [ 'unique content' ] }, 'SOAP::Data' ), bless( { '_type' => 'xsd:int', '_name' => 'start', '_signature' => [ 'startint' ], '_attr' => {}, '_value' => [ 0 ] }, 'SOAP::Data' ), bless( { '_type' => 'xsd:int', '_name' => 'maxResults', '_signature' => [ 'maxResultsint' ], '_attr' => {}, '_value' => [ 10 ] }, 'SOAP::Data' ), bless( { '_type' => 'xsd:boolean', '_name' => 'filter', '_signature' => [ 'filterboolean' ], '_attr' => {}, '_value' => [ 'true' ] }, 'SOAP::Data' ), bless( { '_type' => 'xsd:string', '_name' => 'restrict', '_signature' => [ 'restrictstring' ], '_attr' => {}, '_value' => [ '' ] }, 'SOAP::Data' ), bless( { '_type' => 'xsd:boolean', '_name' => 'safeSearch', '_signature' => [ 'safeSearchboolean' ], '_attr' => {}, '_value' => [ 'true' ] }, 'SOAP::Data' ), bless( { '_type' => 'xsd:string', '_name' => 'lr', '_signature' => [ 'lrstring' ], '_attr' => {}, '_value' => [ '' ] }, 'SOAP::Data' ), bless( { '_type' => 'xsd:string', '_name' => 'ie', '_signature' => [ 'iestring' ], '_attr' => {}, '_value' => [ 'utf-8' ] }, 'SOAP::Data' ), bless( { '_type' => 'xsd:string', '_name' => 'oe', '_signature' => [ 'oestring' ], '_attr' => {}, '_value' => [ 'utf-8' ] }, 'SOAP::Data' ) ] }, 'SOAP::Data' ), 'recursive' => 0, 'multiref' => '' }, '116164424' => { 'count' => 1, 'value' => \${$VAR1}->{'_context'}->{'_serializer'}->{'_seen'}->{'19904200'}->{'value'}, 'recursive' => 0, 'multiref' => '' }, '22334064' => { 'count' => 1, 'value' => ${$VAR1}->{'_context'}->{'_serializer'}->{'_seen'}->{'19904200'}->{'value'}->{'_value'}->[1], 'recursive' => 0, 'multiref' => '' }, '24649192' => { 'count' => 1, 'value' => ${$VAR1}->{'_context'}->{'_serializer'}->{'_seen'}->{'19904200'}->{'value'}->{'_value'}->[3], 'recursive' => 0, 'multiref' => '' }, '20830336' => { 'count' => 1, 'value' => bless( { '_name' => 'doGoogleSearch', '_signature' => [ 'typens:doGoogleSearch' ], '_attr' => {}, '_prefix' => 'typens', '_value' => [ ${$VAR1}->{'_context'}->{'_serializer'}->{'_seen'}->{'116164424'}->{'value'} ] }, 'SOAP::Data' ), 'recursive' => 0, 'multiref' => '' }, '24233920' => { 'count' => 1, 'value' => ${$VAR1}->{'_context'}->{'_serializer'}->{'_seen'}->{'19904200'}->{'value'}->{'_value'}->[8], 'recursive' => 0, 'multiref' => '' }, '20091380' => { 'count' => 1, 'value' => bless( { '_name' => 'Body', '_signature' => [ 'soap:Body' ], '_attr' => {}, '_prefix' => 'soap', '_value' => [ \${$VAR1}->{'_context'}->{'_serializer'}->{'_seen'}->{'20830336'}->{'value'} ] }, 'SOAP::Data' ), 'recursive' => 0, 'multiref' => '' }, '71656460' => { 'count' => 1, 'value' => ${$VAR1}->{'_context'}->{'_serializer'}->{'_seen'}->{'19904200'}->{'value'}->{'_value'}->[2], 'recursive' => 0, 'multiref' => '' }, '22398984' => { 'count' => 1, 'value' => ${$VAR1}->{'_context'}->{'_serializer'}->{'_seen'}->{'19904200'}->{'value'}->{'_value'}->[9], 'recursive' => 0, 'multiref' => '' }, '112429740' => { 'count' => 1, 'value' => \bless( { '_name' => undef, '_signature' => [ 'soap:Body' ], '_attr' => {}, '_value' => [ ${$VAR1}->{'_context'}->{'_serializer'}->{'_seen'}->{'20091380'}->{'value'} ] }, 'SOAP::Data' ), 'recursive' => 0, 'multiref' => '' }, '75262072' => { 'count' => 1, 'value' => ${$VAR1}->{'_context'}->{'_serializer'}->{'_seen'}->{'20091380'}->{'value'}->{'_value'}->[0], 'recursive' => 0, 'multiref' => '' }, '94380440' => { 'count' => 1, 'value' => ${$VAR1}->{'_context'}->{'_serializer'}->{'_seen'}->{'19904200'}->{'value'}->{'_value'}->[7], 'recursive' => 0, 'multiref' => '' }, '37902860' => { 'count' => 1, 'value' => ${$VAR1}->{'_context'}->{'_serializer'}->{'_seen'}->{'19904200'}->{'value'}->{'_value'}->[6], 'recursive' => 0, 'multiref' => '' }, '111449484' => { 'count' => 1, 'value' => ${$VAR1}->{'_context'}->{'_serializer'}->{'_seen'}->{'19904200'}->{'value'}->{'_value'}->[5], 'recursive' => 0, 'multiref' => '' }, '116725952' => { 'count' => 1, 'value' => ${$VAR1}->{'_context'}->{'_serializer'}->{'_seen'}->{'19904200'}->{'value'}->{'_value'}->[0], 'recursive' => 0, 'multiref' => '' }, '115941240' => { 'count' => 1, 'value' => ${${$VAR1}->{'_context'}->{'_serializer'}->{'_seen'}->{'112429740'}->{'value'}}, 'recursive' => 0, 'multiref' => '' }, '111009332' => { 'count' => 1, 'value' => bless( { '_name' => 'Envelope', '_signature' => [ 'soap:Envelope' ], '_attr' => ${$VAR1}->{'_context'}->{'_serializer'}->{'_attr'}, '_prefix' => 'soap', '_value' => [ ${$VAR1}->{'_context'}->{'_serializer'}->{'_seen'}->{'112429740'}->{'value'} ] }, 'SOAP::Data' ), 'recursive' => 0, 'multiref' => '' }, '20672836' => { 'count' => 1, 'value' => ${$VAR1}->{'_context'}->{'_serializer'}->{'_seen'}->{'19904200'}->{'value'}->{'_value'}->[4], 'recursive' => 0, 'multiref' => '' } }, '_on_nonserialized' => ${$VAR1}->{'_context'}->{'_on_nonserialized'}, '_objectstack' => {}, '_xmlschema' => 'http://www.w3.org/2001/XMLSchema', '_multirefinplace' => 0, '_signature' => ${$VAR1}->{'_context'}->{'_serializer'}->{'_seen'}->{'19904200'}->{'value'}->{'_signature'}, '_soapversion' => '1.1', '_ns_uri' => 'urn:GoogleSearch' }, 'SOAP::Serializer' ) }, 'GoogleSearchService' ), '_content' => ${$VAR1}->{'_context'}->{'_deserializer'}->{'_parser'}->{'_done'}, '_current' => [ ${$VAR1}->{'_context'}->{'_deserializer'}->{'_parser'}->{'_done'} ] }, 'SOAP::SOM' ); On Aug 18, 2006, at 12:28 PM, Marius Feraru wrote:
|
------------------------------------------------------------------------- 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