This part for updating a sharepoint contentType for a uploaded Document in a SharePoint Library. So Once you have uploaded a File into a SharePoint Library, you needs it's ID for changing the metadata or contentType of a Document. So first of all call my function below for getting the ID.
My Code below will change the ContentType of your Document and also some extra Metadata. Now it is posible that you would not want to change the ContentType, so if not, put the call in comment. The reason why you need the change of your ContentType and the rest of your Metadata in a different XML update block is because by changing the ContentType, other Columns/MetaData becomes at your position, as examle your colums that you have created in your ContentType are not at your position before you have changed your ContentType. Only the default Columns are available.
At least you also need the function for the real update... otherwise you have your batch XML document, but your data isn't updated yet. So you also need my function below for executing your Batch Element by using the Lists.asmx webservice.
If you have questions, don't hesitate to contact me... I only use the webservices to be undependent of the environment to run the code on... So it hasn't to be on a sharepoint Environment ! If there are problems with my code, please let me know...