Hi All,
I have a little problem I hope could be figured out with the MSN Search API.
The problem is there doesn't appear to be anyway to parse through the php5 soap extension a value for elements with the same name.
The request envelope appears as follows:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://schemas.microsoft.com/MSNSearch/2005/09/fex">
<SOAP-ENV:Body>
<ns1:Search>
<ns1:Request>
<ns1:AppID>my api id</ns1:AppID>
<ns1:Query>search string</ns1:Query>
<ns1:CultureInfo>en-US</ns1:CultureInfo>
<ns1:SafeSearch>Off</ns1:SafeSearch>
<ns1:Flags>None</ns1:Flags>
<ns1:Requests>
<ns1:SourceRequest/>
<ns1:SourceRequest/>
<ns1:SourceRequest/>
<ns1:SourceRequest/>
</ns1:Requests>
</ns1:Request>
</ns1:Search>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Notice the SourceRequest elements, they are supposed to contain child elements, but I can't find a way to populate this. To get the soap client to work an associative array is parsed into the function, but how do you reference parameters that have the same name? I've tried to create an indexed array for the SourceRequest parameters, but that doesn't work either.
Apparently nuSoap does it fine, but php5's soap extension does not. Is this a known bug?
Any help would be appreciated. Thanks.
Update...
I found this <!-- m --><a class="postlink" href="http://bugs.php.net/bug.php?id=28321">http://bugs.php.net/bug.php?id=28321</a><!-- m -->, which relates to my issue.
I have a little problem I hope could be figured out with the MSN Search API.
The problem is there doesn't appear to be anyway to parse through the php5 soap extension a value for elements with the same name.
The request envelope appears as follows:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://schemas.microsoft.com/MSNSearch/2005/09/fex">
<SOAP-ENV:Body>
<ns1:Search>
<ns1:Request>
<ns1:AppID>my api id</ns1:AppID>
<ns1:Query>search string</ns1:Query>
<ns1:CultureInfo>en-US</ns1:CultureInfo>
<ns1:SafeSearch>Off</ns1:SafeSearch>
<ns1:Flags>None</ns1:Flags>
<ns1:Requests>
<ns1:SourceRequest/>
<ns1:SourceRequest/>
<ns1:SourceRequest/>
<ns1:SourceRequest/>
</ns1:Requests>
</ns1:Request>
</ns1:Search>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Notice the SourceRequest elements, they are supposed to contain child elements, but I can't find a way to populate this. To get the soap client to work an associative array is parsed into the function, but how do you reference parameters that have the same name? I've tried to create an indexed array for the SourceRequest parameters, but that doesn't work either.
Apparently nuSoap does it fine, but php5's soap extension does not. Is this a known bug?
Any help would be appreciated. Thanks.
Update...
I found this <!-- m --><a class="postlink" href="http://bugs.php.net/bug.php?id=28321">http://bugs.php.net/bug.php?id=28321</a><!-- m -->, which relates to my issue.