• Julio Cesar Boll
  • NEWBIE
  • 25 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 7
    Replies
Guys, I'm doing an integration using Partner WSDL.

When I try to retrieve more than 15 Leads, it's return NullPointerException and I have 43 Leads.
When I try to retieve all my Contacts, it's just return 23 and I have 43 Contacts.

Important, Contacts doesn't do any error, but Leads do.
Someone can explain?

Hi guys,

I'm trying to create one or more contacts by Java SOAP Enterprise API but I'm getting error.
This is the code:
 

for (int i=0;i<5;i++) {
    	  Contact c = new Contact();
    	  c.setFirstName("aaaa");
    	  c.setLastName("bbbb");
    	  c.setTitle(""+i);
    	  c.setDepartment(""+i);
    	  c.setBirthdate(null);
    	  c.setReportsToId(null);
    	  c.setLeadSource(""+i);
    	  c.setMailingAddress(null);
    	  c.setDescription(""+i);
    	  c.setHomePhone(""+i);
    	  c.setMobilePhone(""+i);
    	  c.setFax(""+i);
    	  c.setEmail("aaa"+i+"@bbb.com");
    	  
    	  contacts[i] = c;
      }
And this is the StackTrace of the error:
[InvalidSObjectFault [ApiQueryFault [ApiFault  exceptionCode='INVALID_TYPE'
 exceptionMessage='Must send a concrete entity type.'
 extendedErrorDetails='{[0]}'
]
 row='-1'
 column='-1'
]
]
Thanks in advance.
 
When I tried with the enterprise.wsdl I was able to generate the enterprise.jar using force-wsc-37.0.jar, js-1.7R2.jar and ST-4.0.8.jar.
Now I'm trying to generate the partner.jar but I'm getting this error:
Error: Not possible to find neither load the main class com.salesforce.ws.tools.wsdlc
I used the same command line to Enterprise and Partner. ($ java -classpath force-wsc-37.0.jar:js-1.7R2.jar:ST-4.0.8.jar com.sforce.ws.tools.wsdlc partner.wsdl partner.jar)
I wanna sync some functions, like contacts and leads, with my company's app.

One solution I thought is use Force.com API v36 to get those contacts and leads, but when i try to do the PartnerConnection connection = new PartnerConnection(config); it says error(java)....

I submited tickets on support about that but no one replyed...

Then I came to the forum search some others ways to do it or, if is possible, try to understand what is my error on connecting with force.com

Sincerly,

~Carla
Hi all, I'm trying to sync contacts and leads from salesforce with mine own app, the same in the other way....
I have and partner account and I tryed the PartnerConnection connection = new PartnerConnection(config) but it's says error...
Someone can help me?
Sincerly,
~Julio

I wanna Sync some function of my company's app and I don't know how can I do that....

Someone can help me?

Sincerly,

~Carla

Guys, I'm doing an integration using Partner WSDL.

When I try to retrieve more than 15 Leads, it's return NullPointerException and I have 43 Leads.
When I try to retieve all my Contacts, it's just return 23 and I have 43 Contacts.

Important, Contacts doesn't do any error, but Leads do.
Someone can explain?

Hi guys,

I'm trying to create one or more contacts by Java SOAP Enterprise API but I'm getting error.
This is the code:
 

for (int i=0;i<5;i++) {
    	  Contact c = new Contact();
    	  c.setFirstName("aaaa");
    	  c.setLastName("bbbb");
    	  c.setTitle(""+i);
    	  c.setDepartment(""+i);
    	  c.setBirthdate(null);
    	  c.setReportsToId(null);
    	  c.setLeadSource(""+i);
    	  c.setMailingAddress(null);
    	  c.setDescription(""+i);
    	  c.setHomePhone(""+i);
    	  c.setMobilePhone(""+i);
    	  c.setFax(""+i);
    	  c.setEmail("aaa"+i+"@bbb.com");
    	  
    	  contacts[i] = c;
      }
And this is the StackTrace of the error:
[InvalidSObjectFault [ApiQueryFault [ApiFault  exceptionCode='INVALID_TYPE'
 exceptionMessage='Must send a concrete entity type.'
 extendedErrorDetails='{[0]}'
]
 row='-1'
 column='-1'
]
]
Thanks in advance.
 
When I tried with the enterprise.wsdl I was able to generate the enterprise.jar using force-wsc-37.0.jar, js-1.7R2.jar and ST-4.0.8.jar.
Now I'm trying to generate the partner.jar but I'm getting this error:
Error: Not possible to find neither load the main class com.salesforce.ws.tools.wsdlc
I used the same command line to Enterprise and Partner. ($ java -classpath force-wsc-37.0.jar:js-1.7R2.jar:ST-4.0.8.jar com.sforce.ws.tools.wsdlc partner.wsdl partner.jar)

I wanna Sync some function of my company's app and I don't know how can I do that....

Someone can help me?

Sincerly,

~Carla