You need to sign in to do that
Don't have an account?
Saikat Mukherjee 9
api version 37.0 problems
We have created instance of SforceServiceBindingStub object called stub. The we are storing the result of login inside the stub using stub = LoginUtil.getStub(loginResult).
Then we have written one query like:
Stub.query(select Id, Name, Body from ApexTrigger where Name IN (‘className’));
Problem:
-------------
When the login end point is https://login.salesforce.com/services/Soap/u/30.0, https://login.salesforce.com/services/Soap/u/31.0 , https://login.salesforce.com/services/Soap/u/32.0, https://login.salesforce.com/services/Soap/u/33.0, then the corresponding testclasses are getting generated with proper api version which we are passing in login end point parameter. Since the salesforce now allows us to use 37.0 version, I changed the end point as https://login.salesforce.com/services/Soap/u/37.0. then am getting the following error as:
Invalid element in com.sforce.soap.tooling.SObject – Id.
But when I test the query in the workbench with API version 37.0, it is working without any issue.
I have checked the tooling wsdl and the generated stub class. The Id property is present everywhere for SObject type.
Can anybody help on this?
Then we have written one query like:
Stub.query(select Id, Name, Body from ApexTrigger where Name IN (‘className’));
Problem:
-------------
When the login end point is https://login.salesforce.com/services/Soap/u/30.0, https://login.salesforce.com/services/Soap/u/31.0 , https://login.salesforce.com/services/Soap/u/32.0, https://login.salesforce.com/services/Soap/u/33.0, then the corresponding testclasses are getting generated with proper api version which we are passing in login end point parameter. Since the salesforce now allows us to use 37.0 version, I changed the end point as https://login.salesforce.com/services/Soap/u/37.0. then am getting the following error as:
Invalid element in com.sforce.soap.tooling.SObject – Id.
But when I test the query in the workbench with API version 37.0, it is working without any issue.
I have checked the tooling wsdl and the generated stub class. The Id property is present everywhere for SObject type.
Can anybody help on this?
Which API wsdl you are using Enterprise or Partner WSDL?
Please check whether using https://login.salesforce.com/services/Soap/c/37.0 resolves the issue if you use enterprise wsdl?