Questions tagged [wsc]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
883 views

Using Mutual Authentication and I receive 403 Forbidden error from Salesforce API

I have set up Mutual Authentication on my Salesforce org so that my project can use two ways SSL with Salesforce. Here are my steps: 1- I use a CA sign certificate (GoDaddy) and upload it to the Set ...
NoName's user avatar
  • 111
1 vote
0 answers
58 views

Bulk Query with PK Chunking via WSC -- error reading extracted records with CSVReader

I'm having an issue with the CSVReader class in the Salesforce WSC. The error I get when trying to read the contents of a batch is "com.sforce.async.CSVReader$CSVParseException: Found unescaped quote. ...
sfdcburger's user avatar
2 votes
0 answers
116 views

Incompatible type class com.sforce.soap.partner.QueryResult specified as xsi:type.It must be a subclass of 'class com.sforce.soap.partner.QueryResult

I'm using SOAP client to do CRUD operations on Salesforce. I'm getting the following issue in query operation . For example get pushTopic list. I have generated stub classes from Partner WSDL version ...
Dipankar Dey's user avatar
0 votes
0 answers
1k 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 ...
Dipankar Dey's user avatar
0 votes
0 answers
133 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 ...
amit patil's user avatar
1 vote
1 answer
119 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 ...
metasync's user avatar
  • 1,762
4 votes
3 answers
1k 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 ...
user3979986's user avatar
5 votes
2 answers
1k 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 ...
lgraf's user avatar
  • 443
3 votes
3 answers
2k 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 ...
jimpudar's user avatar
  • 233
0 votes
1 answer
5k 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: ...
Rohit Patil's user avatar
0 votes
1 answer
98 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 ...
podhornyi96's user avatar
1 vote
0 answers
1k 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 ...
lgraf's user avatar
  • 443
1 vote
1 answer
85 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 ...
K.Nicholas's user avatar
1 vote
1 answer
460 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 ...
momo's user avatar
  • 55
5 votes
1 answer
581 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 ...
lgraf's user avatar
  • 443
2 votes
1 answer
971 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 ...
Kirill Yunussov's user avatar
4 votes
0 answers
329 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 ...
jsnbdly's user avatar
  • 133
2 votes
1 answer
755 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 ...
Matt Ball's user avatar
  • 265
5 votes
1 answer
581 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 ...
h9nry's user avatar
  • 1,091