From: Jason B. <ja...@sh...> - 2005-06-29 19:47:04
|
Multiple calls of the same method on same object don't work Using 0.65_6, after creating a module for eBay's SOAP interface doing: my $ebay = new eBayAPIInterfaceService(); $ebay->GeteBayOfficialTime(@params, @headers); $ebay->GeteBayOfficialTime(@params, @headers); Does not work. The first GeteBayOfficialTime() call works but the second generates a fault. Looking at the HTTP headers and XML generated shows the problem the first call's HTTP headers are: POST https://api.sandbox.ebay.com/wsapi?callname=GeteBayOfficialTime&siteid=0&version=413&Routing=default HTTP/1.1 Accept: text/xml Accept: multipart/* Accept: application/soap Content-Length: 1828 Content-Type: text/xml; charset=utf-8 SOAPAction: "" while the seconds's is: POST https://api.sandbox.ebay.com/wsapi?callname=GeteBayOfficialTime&siteid=0&version=413&Routing=default HTTP/1.1 Accept: text/xml Accept: multipart/* Accept: application/soap User-Agent: SOAP::Lite/Perl/0.65_6 Content-Length: 1828 Content-Type: text/xml; charset=utf-8; charset=utf-8 SOAPAction: "" The User-Agent header is added, as well as a second "charset=utf8" to the Content-Type. I'm not sure which is causing the problem. 0.60 creates identical headers and does not have this problem. -- Jason Bodnar ja...@sh... http://www.shakabuku.org "You want free speech? Let's see you acknowledge a man whose words make your blood boil who is standing center stage advocating at the top of his lungs that which you would spend a lifetime opposing at the top of yours." -- President Andrew Shephard, "The American President" |