I solved my metadata connection problem so now have hit the next obstacle, trying to create a com.sforce.soap.metadata.Folder object using
com.sforce.soap.metadata.Folder aFolderObj = new com.sforce.soap.metadata.Folder(); aFolderObj.setFullName("MikeOwesMeABeer"); aFolderObj.setFolderShares( folderShare_arry); Metadata[] meta_arry = new Metadata[1]; meta_arry[0] = (Metadata) aFolderObj; AsyncResult[] ar_arry = theApp.sfConnectionSandboxMetadata.create( meta_arry);
this last line throws error:
Must specify a {http://www.w3.org/2001/XMLSchema-instance}type attribute value for the {http://soap.sforce.com/2006/04/metadata}metadata element
There are references to how create() has problems with custom objects but Folder is not custom. How must I adjust my create() to get this working?
TIA,
Still-learning Steve