• upNcommN
  • NEWBIE
  • 0 Points
  • Member since 2004

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 11
    Questions
  • 5
    Replies

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