• indreshms
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 0
    Replies

Hi,

I am right now working on prerelna1.pre.salesforce.com to evaluate REST API. I am at a point where I am trying to create a managed package (which includes these rest classes).

When I click on upload, I get the following error message "Packages containing Apex REST classes cannot be uploaded."

 

Does these mean that ISVs cannot create apps using REST?

 

Best Regards, Indresh

I have the following code;

 

 

public class Base {
    public String stringify(Blob b, System.Type apexType) {
        return JSON.deserialize(b.toString(), apexType);
    }
}

public class Input{
   ...
}
 
public class Derived1 extends Base{
    public doSomething(b){
        String s = stringify(b, Input.class);
        ...
    }
}

public class Derived2 extends Base{
    public doSomething(b){
        String s = stringify(b, Input.class);
        ...
    }
}

Usage:
Derived1 d1 = new Derived1();
d1.doSomething(Blob.valueOf(""));

Derived1 d2 = new Derived2();
d2.doSomething(Blob.valueOf(""));

All of the classes are parent classes (in separate class files).

When doSomething is executed, I am getting the following error occassionally;

[{"message":"System.TypeException: The configuration of your org has changed, please reload the page. Missing dependent object: Class: Input.class

 

Any help?

 

Thanks. 

Hi,

 

May be this is a fundamental question (I also see a ton of queries regarding the same, but could not find any answer).

 

Is there a reason why th VF endpoint is not the same as API endpoint for REST API (unlike the SOAP API which happens to be the same). Because of different domains, one has to fallback on reverse proxies to make calls using Javascript clients.

 

I know that this restriction exists for a reason. Just curious to know why this is.

 

Thanks, Indresh