2 messages in com.googlegroups.adwords-apiSOAP::Lite and v5?
FromSent OnAttachments
Matthew Runo31 Aug 2006 08:28 
Bartek Jakubski01 Sep 2006 01:41 
Subject:SOAP::Lite and v5?
From:Matthew Runo (mr.@zappos.com)
Date:08/31/2006 08:28:54 AM
List:com.googlegroups.adwords-api

Hey-

I'm using SOAP::Lite 0.65_6, which has worked over all pretty well in the past. However, now that I'm migrating to version 5 of the API, I keep getting an error that my request does not include the 'email' header.

Here's the way I create the headers..

93 sub z_headers { 94 my @headers = 95 (SOAP::Header->name("email")->value($email)->uri ($namespace)->prefix("impl"), 96 SOAP::Header->name("password")->value($password)->uri ($namespace)->prefix("impl"), 97 SOAP::Header->name("useragent")->value($useragent)-

uri($namespace)->prefix("impl"),

98 SOAP::Header->name("developerToken")->value ($dev_token)->uri($namespace)->prefix("impl"), 99 SOAP::Header->name("applicationToken")->value ($app_token)->uri($namespace)->prefix("impl")); 100 return @headers; 101 }

...and this is the response I get..

SOAP Fault: The request did not contain a header named 'email'. Stacktrace: "no trace" (Error Code ???) at /usr/lib/perl5/site_perl/ 5.8.6/SOAP/Lite.pm line 3312

...has anyone successfully used v5 of the API with SOAP::Lite, and, if so, did you need to change the way you generated your headers?

-Matthew