List Info

Thread: Hi, we're having a problem with Keyword Research getRangeDefinitions.




Hi, we're having a problem with Keyword Research getRangeDefinitions.
country flaguser name
United States
2007-10-13 21:23:31

I actually have 2 questions here.

1)
We are coding a client in PHP. We're not having any problems with
anything else so our headers, etc. and endpoints are correct. But I
can't figure out how to structure this in my PHP function.

This is what my request should look like:
==============
<soapenv:Envelope
xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/"
xmlns:sec=&quot;http://schemas.xmlsoap.org/ws/2002/07/secext"
xmlns:v3="http://marketing.ews.yahooapis.com/V3&quot;>
<soapenv:Header>;
<sec:Security>
<UsernameToken>
<Username>*******</Username>
<Password>#######</Password>
</UsernameToken>;
</sec:Security>
<v3:accountID>#########&lt;/v3:accountID>
<v3:license>************</v3:license>
<v3:masterAccountID>#######</v3:masterAccountID>
</soapenv:Header&gt;
<soapenv:Body>
<v3:getRangeDefinitions>
<v3:rangeDefinitionRequest&gt;
<!--Optional:--&gt;
<v3:market>US&lt;/v3:market>
<!--Optional:--&gt;
<v3:rangeName>
<!--Zero or more repetitions:-->
<v3:RangeNameType&gt;Searches</v3:RangeNameType>
</v3:rangeName>
</v3:rangeDefinitionRequest&gt;
</v3:getRangeDefinitions>
</soapenv:Body>
</soapenv:Envelope>
==============

I am calling the function below like this:
==============
==============
$market=&quot;US";
$rangedefinitions = getRangeDefinitions("Searches",$market);
// Call function
================

=================
function getRangeDefinitions($range_names,$market)
{

// I have tried many different combinations here. I'm sure this is
where the problem is, but I haven't been able to figure it out.

$rangeParam = array('rangeDefinitionRequest' => array('market'
=>; $market,'rangeName' => array('RangeNameType' => $range_names)
)
);

$retObj = execute($keywordResearchService, 'getRangeDefinitions',
$rangeParam);

print_r($retObj);

return $retObj-&gt;out;
}

==============

2) How do I generate the full results of my SOAP calls? In
otherwords, how can I get the entire Header, Envelope, Body etc to
verify/debug what I am sending?

Thanks for any help or advice in advance!

__._,_.___
Recent Activity
Visit Your Group
New web site?

Drive traffic now.

Get your business

on Yahoo! search.

Share Photos

Put your favorite

photos and

more online.

Yoga Groups

Exchange insights

with members of

the yoga community.

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )