Integration Web Services
In addition to the Data Integration module and the Integration framework, which allow you to move data around in bulk, we also provide you with a webservice which allows you to add and update products and users indiviually.
Product Sync
The productSync webservice is available at the url:
http://your.website/Admin/public/webservices/productManagement/ProductSync.asmx
In Visual Studio add a new Service reference pointing to the addresse above. Make sure to use Service reference rather than Webservice reference. Below a service reference with name DwSync has been added, and a product is updated with the following code:
The token is found in the administration under Settings > System > System Information as the Installation checksum.
If the info.ID is not set, a new product will be added to the database, with an auto-generated ID. If the ID, VariantID and LanguageID already exist in the Dynamicweb solution, it will be updated. If the VariantID or LangaugeID are left out, the default product/main product will be updated.
After the product is added/updated, the index is updated.
User Sync
The UserSync webservice is available at:
http://your.website/Admin/public/webservices/userManagement/UserSync.asmx
The implementation is similar to the one described above for Products, with some small differences:
- The user must have an ExternalID – this is used when retrieving the user from the Dynamicweb database.
- By setting the SyncAction on the userInfo object to Delete, it is possible to remove a user from dynamicweb using the service.
Example: