i'm using microsoft commerce server and I recently learned how to use the xml web service. I need to update some products using the 'updateitems' method.
The SOAP envelope looks like this:
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<UpdateItems xmlns="http://schemas.microsoft.com/CommerceServer/2006/06/CatalogWebService">
<catalogName>string</catalogName>
<searchClause>string</searchClause>
<propertyName>string</propertyName>
<replacementValue />
<classTypes>None or CategoryClass or ProductVariantClass or ProductClass or ProductFamilyClass or ProductFamilyForVariantsClass or ProductVariantsForFamilyClass or AllClassTypesClass</classTypes>
<language>string</language>
</UpdateItems>
</soap:Body>
</soap:Envelope>
My request using nuSoap looks like this:
$client = new nusoap_client($wsdl, TRUE);
$client->setCredentials('', '', 'ntlm');
$client->setUseCurl(true);
$client->useHTTPPersistentConnection();
$client->setCurlOption(CURLOPT_USERPWD, *);
$m = array(
'catalogName' => 'cat',
'propertyName => 'itemdesc',
'replacementValue' => 'somevalue'
);
$resp = ($client->call('UpdateItems', $m));
What I am not understanding is the searchClause. I don't know what any of the table or columns are named and since I am working with sensitive data, and a lot of it, I don't want to test via trial and error. I want to do something like 'ProductID = 159999' in the search clause, but it is not having it.