• upNcommN
  • NEWBIE
  • 0 Points
  • Member since 2004

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 11
    Questions
  • 5
    Replies
hey,
we are getting regular timeouts on the PHP Curl libraries. I've extended the timeout from 4s to 10s but there are still problems. This mostly occurrs at close-of-business. Any solutions beyond further extending the timeout that would stop this from crippling our web portal? The site is hosted in Cedir Falls, IA, I really don't think there could be need for more than 10s round trip from IA to SFDC servers.

Adrian Fitzpatrick
Verve Software
Is it possible to add a custom reference field to an event to tie it to a custom object?

thanks
aj
hi,
I'm trying to update records from PHP using the PEAR SOAP stuff, and I'm getting java.lang.NumFormatException s returned when i try to update date fields. My dates are in YYYY-MM-DD format, I believe it is because the value is a string.
I'm not aware that it is possible to send a value such as that in PHP without using a string, am I missing something here?

thanks
aj
After setting up apache2, php5 and cURL on my local WinXP machine to test a php-based sforce application, I've discovered that it can only access the SFDC web service when i disable my firewall (norton).
Which part of my setup is being blocked, and is it ocurring on a particular port? I'm running apache on port 8080 as my machine wouldn't let it run on port 80. I find it strange that my firewall doesn't alert me to the activity but just blocks it.
It appears to be a PEAR_Error ocurring in the SOAP_Fault module triggered from the Base.php file.

thanks

Hi,

is it possible to send a contact a templated email via the API?

thanks

I have noticed problems when running applications with different versions of java.exe.  I can only get my software to run properly using the jre binary in j2sdk1.4.2_03\jre\bin\java.exe: if I try to use j2sdk1.4.2_03\bin\java.exe, or any of the jdk5.0 binaries, the login creates a RemoteException which is either a NullPointerException or a javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException:  No trusted certificate found.  Is this a known bug?  I need to know what's going on here to control deployment on different systems.

regards

aj

When passing SOAP XML containing empty tags, if the tags correspond to a number field such as a currency field, it returns a java number format exception because of the empty string.  Is there any value that can be passed as default in the tag that won't actually set a value in the field, but will circumvent this exception?

regards

aj

I know this is a little out of sforce's scope, but i'm trying to improve code efficiency.

Is it possible to convert/cast the sObject's XmlElement array into an MSXML parser object or some similar construct so that the nodes are accessible via XPath strings?  I'm unsure of any other way of locating nodes in sObjects beyond looping through the names which is very messy.  I'm using C#.

thanks

aj

The following is the SOAP XML I am attempting to send:

<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://
www.w3.org/2001/XMLSchema">
 <soap:Header>
  <SessionHeader xmlns="urn:partner.soap.sforce.com">
   <sessionId>rZqNaNMO_o2MKBuw1xwkAPpZemaKvLZD0iu5bafkjUpTVAbfklPDMxhst5paaGcGHMMCIkYJU3INBGFPSBoPCvbtzKggVlhL</sessionId>
  </SessionHeader>
 </soap:Header>
 <soap:Body>
  <create xmlns="urn:partner.soap.sforce.com">
   <sObjects>
    <type xmlns="urn:sobject.partner.soap.sforce.com">Opportunity</type>
    <Id xsi:nil="true" xmlns="urn:sobject.partner.soap.sforce.com"/>
    <Name xmlns="">test opp</Name>
    <Product__c xmlns="">Celotex</Product__c>
    <Description xmlns="">test</Description>
    <Amount xmlns="">0</Amount>
    <AccountID xmlns="">00120000000lVS0AAM</AccountID>
    <CloseDate xmlns="">2004-06-15</CloseDate>
   </sObjects>
  </create>
 </soap:Body>
</soap:Envelope>
 

which returns:

<?xml version="1.0"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode>soapenv:Server.userException</faultcode>
   <faultstring>common.exception.ApiException: Must send a concrete entity type.</faultstring>
   <detail>
    <sf:fault xsi:type="sf:InvalidSObjectFault" xmlns:sf="urn:fault.enterprise.soap.sforce.com">
     <sf:exceptionCode>INVALID_TYPE</sf:exceptionCode>
     <sf:exceptionMessage>Must send a concrete entity type.</sf:exceptionMessage>
    </sf:fault>
   </detail>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>

What could be causing this?  I don't see anything wrong with the SOAP.  I am using a JavaScript-based IDE so I'm basically just working with raw SOAP.

thanks

Hi,

If I make a  create or update partner API call and pass an object that has XMLElements that do not correspond to defined fields within the SalesForce system object, will an exception be thrown or will said fields simply be ignored?

thanks

aj

Does the sforce API handle locks on records to cater for concurrent accesses?

Also: If I create a class that inherits from the sObject class (using partner wsdl) and give it member properties to help identify it, then cast it back to an sObject when passing to the API, will this cause problems? 

Thirdly: If I pass an array of sObjects where not all array slots have been initialised, will the create/update API calls ignore the empty slots?

thanks

aj

Hi,

is it possible to send a contact a templated email via the API?

thanks

I have noticed problems when running applications with different versions of java.exe.  I can only get my software to run properly using the jre binary in j2sdk1.4.2_03\jre\bin\java.exe: if I try to use j2sdk1.4.2_03\bin\java.exe, or any of the jdk5.0 binaries, the login creates a RemoteException which is either a NullPointerException or a javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException:  No trusted certificate found.  Is this a known bug?  I need to know what's going on here to control deployment on different systems.

regards

aj

I know this is a little out of sforce's scope, but i'm trying to improve code efficiency.

Is it possible to convert/cast the sObject's XmlElement array into an MSXML parser object or some similar construct so that the nodes are accessible via XPath strings?  I'm unsure of any other way of locating nodes in sObjects beyond looping through the names which is very messy.  I'm using C#.

thanks

aj

The following is the SOAP XML I am attempting to send:

<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://
www.w3.org/2001/XMLSchema">
 <soap:Header>
  <SessionHeader xmlns="urn:partner.soap.sforce.com">
   <sessionId>rZqNaNMO_o2MKBuw1xwkAPpZemaKvLZD0iu5bafkjUpTVAbfklPDMxhst5paaGcGHMMCIkYJU3INBGFPSBoPCvbtzKggVlhL</sessionId>
  </SessionHeader>
 </soap:Header>
 <soap:Body>
  <create xmlns="urn:partner.soap.sforce.com">
   <sObjects>
    <type xmlns="urn:sobject.partner.soap.sforce.com">Opportunity</type>
    <Id xsi:nil="true" xmlns="urn:sobject.partner.soap.sforce.com"/>
    <Name xmlns="">test opp</Name>
    <Product__c xmlns="">Celotex</Product__c>
    <Description xmlns="">test</Description>
    <Amount xmlns="">0</Amount>
    <AccountID xmlns="">00120000000lVS0AAM</AccountID>
    <CloseDate xmlns="">2004-06-15</CloseDate>
   </sObjects>
  </create>
 </soap:Body>
</soap:Envelope>
 

which returns:

<?xml version="1.0"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode>soapenv:Server.userException</faultcode>
   <faultstring>common.exception.ApiException: Must send a concrete entity type.</faultstring>
   <detail>
    <sf:fault xsi:type="sf:InvalidSObjectFault" xmlns:sf="urn:fault.enterprise.soap.sforce.com">
     <sf:exceptionCode>INVALID_TYPE</sf:exceptionCode>
     <sf:exceptionMessage>Must send a concrete entity type.</sf:exceptionMessage>
    </sf:fault>
   </detail>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>

What could be causing this?  I don't see anything wrong with the SOAP.  I am using a JavaScript-based IDE so I'm basically just working with raw SOAP.

thanks