• Lalit Sharma Cybage
  • NEWBIE
  • 55 Points
  • Member since 2012

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 4
    Replies

Would you please give clarity on both of those.

I found this:
https://help.salesforce.com/apex/HTViewSolution?id=000003781&language=en_US

Is this also related to the REST API? If so, how can I achieve the same results with the REST API?
Thanks,
Uzi
 
  • December 17, 2014
  • Like
  • 0
Hi,

List, Set and Map are this classes are interfaces in Selasforce?

Regards,
Anil Kumar

I have a webservice setup in my salesforce instance that is called CheckUserPermissions(String param1, String param2).  I am able to use the PHP code below to successfully login and execute the command.  HOWEVER, I am only able to pass the first parameter to the method -- the second parameter doesn't seem to come through.

 

I've verified that the param1 value comes through successfully, but param2 is always NULL.

 

PHP CODE:

  $sessionID = $mySforceConnection->getSessionId();
 
                $value1 = 'value1';
                $value2 = "value2";
 
 
 
                $wsdl="soapclient/ContractMgtUtils.wsdl.xml";
                $NAMESPACE = "http://soap.sforce.com/schemas/class/ContractMgtUtils";
 
    $sforce_header = new SoapHeader($NAMESPACE, "SessionHeader",
                        array("sessionId" => $sessionID, "param1" => $value1, "param2" => $value2));
    $client = new soapclient($wsdl);
    $client->__setSoapHeaders(array($sforce_header));
 
  //           $client->
                
 
    try {
                   $response =  $client->CheckUserPermissions();
                  
                echo $response->result;
//        print_r($response);   
    }
    catch(Exception $e) {
        print "<pre>";
        print_r($e);
        exit;
    }

 

Would you please give clarity on both of those.