0

LocationService of marketing API is a 404 (invalid request)

I'm sure I'm doing something wrong here but I've been wrestling with it and cannot figure out what. I'm trying to initiate the marketing API by getting the colocation of my master account, per http://developer.searchmarketing.yahoo.com...g/locations.php However, this generates the SOAP fault Invalid Request: /V6/LocationService

Here are the headers and the SOAP I am POSTing. Does anyone have an idea for what's missing?

REQUEST:

CODE
POST /services/V6/LocationService HTTP/1.0
Host: global.marketing.ews.yahooapis.com
User-agent: SOAPpy 0.12.0 (http://pywebsvcs.sf.net)
Content-type: text/xml; charset="UTF-8"
Content-length: 723
SOAPAction: "getMasterAccountLocation"


CODE
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
>
<SOAP-ENV:Header>
<username SOAP-ENC:root="1">myusername</username>
<masterAccountID SOAP-ENC:root="1">xxx</masterAccountID>
<license SOAP-ENC:root="1">xxx</license>
<accountID SOAP-ENC:root="1">xxx</accountID>
<password SOAP-ENC:root="1">password</password>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<getMasterAccountLocation xmlns="http://marketing.ews.yahooapis.com/V6" SOAP-ENC:root="1">
</getMasterAccountLocation>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


RESPONSE:

CODE
HTTP/1.? 404 Not Found
Date: Thu, 29 Oct 2009 21:32:12 GMT
P3P: policyref="http://p3p.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE GOV"
Connection: close
Content-Type: text/xml;charset=ISO-8859-1


CODE
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body><soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Invalid Request: /V6/LocationService</faultstring></soap:Fault>
</soap:Body>
</soap:Envelope>


thanks in advance,
Kumar

by
0 Replies

Recent Posts

in General Discussion at YDN