Closed hadesara closed 11 years ago
Apologies for the delay in responding. This page is not ment to be viewed, it is a JSON data source used by the the Metadata Browser page and the Sencha Data Store within. If you want to get it to work to see what it returns you need to pass it a URL parameter called node, e.g. https://c.na15.visual.force.com/apex/metadatadata?node=root
Actually the issue was that some of the endpoints have changed, and couple of class names have changed too (probably winter 2013 release?) I followed the steps you mentioned and made few other changes and then it worked. I cant thank enuf.I will write a detailed post about that here later.
Your very welcome. I've tried the code in a Spring'13 org and it seems to work fine. I tested the three demo tabs and the createObject and createField example methods. Look forward to seeing a blog or detailed post soon, love to know what you've been doing with this! Thanks again! :-)
Sorry afawcett, I got busier.
Essentially (from what I recall now) I had to create a new class from the new wsdl url given by salesforce, make the changes that you mentioned by as pertaining to the new url and change few class names for E.g. Group to Group_x. I have suffixed all the troubled class name changes with _x. Here is the code for api version 26. Gosh! I can't attached or paste. Here is the link: http://adesara.com/OtherStuff/wsdl2apex.txt
In a brand new org, all I did was to deploy this package and add a remove site as the self: in my case: https://c.na15.visual.force.com. I am able move around in all the other pages but when I visit metadatadata. I get the following error, what am I missing?
Visualforce Page: /apex/metadatadata
caused by: System.CalloutException: Web service callout failed: WebService returned a SOAP Fault: INVALID_TYPE: Unknown type: faultcode=sf:INVALID_TYPE faultactor=
Error is in expression '{!constructResponse}' in component apex:page in page metadatadata
Class.MetadataService.MetadataPort.listMetadata: line 1506, column 1 Class.MetadataDataController.constructResponse: line 58, column 1