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="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:sec="http://schemas.xmlsoap.org/ws/2002/07/secext"
xmlns:v3="http://marketing.ews.yahooapis.com/V3">
<soapenv:Header>
<sec:Security>
<UsernameToken>
<Username>*******</Username>
<Password>#######</Password>
</UsernameToken>
</sec:Security>
<v3:accountID>#########</v3:accountID>
<v3:license>************</v3:license>
<v3:masterAccountID>#######</v3:masterAccountID>
</soapenv:Header>
<soapenv:Body>
<v3:getRangeDefinitions>
<v3:rangeDefinitionRequest>
<!--Optional:-->
<v3:market>US</v3:market>
<!--Optional:-->
<v3:rangeName>
<!--Zero or more repetitions:-->
<v3:RangeNameType>Searches</v3:RangeNameType>
</v3:rangeName>
</v3:rangeDefinitionRequest>
</v3:getRangeDefinitions>
</soapenv:Body>
</soapenv:Envelope>
==============
I am calling the function below like this:
==============
==============
$market="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->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!