Questions tagged [wsc]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
54 views

“INVALID_TYPE_ON_FIELD_IN_RECORD” while updating date/dateTime field using SOAP client

I have a SOAP client which connects with Salesforce and do CRUD operations. Earlier I used to use Axis to generate stub and in that case it works perfectly but then I replaced axis with force-wsc due ...
0
votes
0answers
61 views

Not able to connect Salesforce using Soap API/ WSC connector

I am trying to connect salesforce using WSC connector. I have created the metadata.jar file, enterprise.jar file etc. I am getting the connection error. It is working in an open network, but now ...
0
votes
0answers
61 views

Can we upload Multiple files in to SFDC Attachment object using force-wsc jar?

I am using REST Api to upload files in to Salesforce Attachment object but can not upload multiple files in single call (no Batch). Just curious to know whether we can achieve this using force-wsc ...
0
votes
1answer
44 views

WSC Metadata File Creation and Clean Formatting

We are using Force WSC library in Java to create Metadata xml files. Functionality it is working as expected but the files it generates when serialized to file is not clean formatted (with lots of ...
3
votes
3answers
487 views

Unable to build enterprise.jar and metadata.jar

I am trying to build the enterprise and metadata jar files, but I am not successful. I have seen many similar posts but seem to be having a separate issue. I have downloaded the rhino package, the ...
5
votes
2answers
412 views

What kind of actions open a query locator

We use a batched approach for read and update CampaignMember records within an external application (Webservice Connector, or WSC SOAP API). The approach can be described like this: Query campaign ...
3
votes
3answers
649 views

How to login as another user through SOAP API?

I have been using some Java code to run API calls to do integrated testing on webservices in our SFDC org. So far, I used to log in through the browser and get my admin sessionId, then copy / paste it ...
0
votes
1answer
3k views

Error could not find or load main class com.sforce.ws.tools.wsdlc

I want to compile the partner API code from the WSDL using the WSC compile tool. After running java -classpath wsc-22.jar com.sforce.ws.tools.wsdlc partner.wsdl partner.jar I get the error: ...
0
votes
1answer
74 views

How to get salesforce standart objects using API

I'm trying to get all salesforce system objects such as Set, List, System and their methods. I used tooling api, namely SymbolTable class to get methods and variables of specified classes, but i can't ...
1
vote
0answers
594 views

Metadata API returns empty picklist value translations

I try to read translated picklist values with the metadata API. But i am not able to retrieve the translated values. The returned PicklistValueTranslation objects are only contains the masterlabel but ...
1
vote
1answer
71 views

Problem with setAccount using WSC API gives field not indexed field error

I'm trying to create an Event for a specific Account and the WSC api won't let me call setAccount(account). It gives me various errors, the most recent one is Field name provided, Id is not an ...
1
vote
1answer
248 views

Detect changes in picklist values

I have an external system which keeps synchronized with Salesforce. I have triggers in every object that send the inserted/updated/deleted records to my webservice, and every minute I send the ...
5
votes
1answer
411 views

DescribeSObjectResult contains fields of type reference with an unknown relationship name

I use the SOAP API (WSC, partner wsdl) to describe objects and use the field meta information to dynamically build SOQL queries. Today i observed that DescribeSObjectResult can contain fields of type ...
2
votes
1answer
794 views

Enterprise WSDL, fields that are Date in SF, came over as Calendar in Java object classes

I used WSC-23.jar to convert enterprise WSDL file into a JAR. While the WSDL file had the Date fields/elements correctly marked with the type="xsd:date", generated Java classes for the SF objects ...
4
votes
0answers
323 views

How to Login to Salesforce via Tooling/Partner SOAP API with char[] instead of String?

I am working on a tool that makes use of the Tooling API and the Partner API. The Partner API is used to login as I have been unable to login successfully via the Tooling API. Another important thing ...
2
votes
1answer
661 views

How do I set an Account object's type with the Partner API?

I'm trying to use the partner API to upsert Account objects: SObject account = new SObject(); account.setType("Account"); // set some fields account.setField("Name", "Spacely Sprockets"); // write ...
5
votes
1answer
523 views

Call tooling API via WSC or AXIS

Was somebody able to access the new tooling API via the force.com Webservice Connector (WSC) or Axis? The code generation seemed to work fine for both of these stacks and I was also able to login and ...