• Anton Mochalin
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
We created a managed package of our application, uploaded a Managed - Released version and installed it on another org. Then we decided to change some components and add some - and uploaded a new version from the same dev org - also Managed - Released. When trying to update the existing install with that new version we get the following message:

Your requested install failed. Please try this again.

None of the data or setup information in your Salesforce organization should have been affected by this error.

If this error persists, contact Support through your normal channels and reference number: 1477849749-1261 (-95349298)


So the functionality of managed packages actually don't work. Keep that in mind when you consider creating a managed package (and maybe consider using Force.com platform).

Hi.

 

I'm trying to access apex clases via PHP. But got error - 

 

Fatal error: Uncaught SoapFault exception: [soapenv:Client] Element {}item invalid at this location in /home/oleg/sites/site.php:30 Stack trace: #0 [internal function]: SoapClient->__call('Test', Array) #1 /home/oleg/sites/site.php(30): SoapClient->Test() #2 {main} thrown in /home/oleg/sites/site.php on line 30

 

Apex Code:

 

 

global class Test1 {

webservice static String Test2() {
return 'Got it';

}

 

 PHP Code:

 

 

<html>
<head>
<title> PHP SalesForce Test </title>
</head>
<body>

<?php
ini_set("soap.wsdl_cache_enabled", "0");
require_once('salesforceAPI/SforcePartnerClient.php');
require_once('salesforceAPI/SforceHeaderOptions.php');

$sfdc = new SforcePartnerClient();
$SoapClient = $sfdc->createConnection('salesforceAPI/wsdl.xml');

$loginResult = false;
$loginResult = $sfdc->login('login@login', 'password' . 'token');
$parsedURL = parse_url($sfdc->getLocation());

define ("_SFDC_SERVER_", substr($parsedURL['host'],0,strpos($parsedURL['host'], '.')));
define ("_WS_NAME_", 'Test1');
define ("_WS_WSDL_", _WS_NAME_ . '.xml');
define ("_WS_ENDPOINT_", 'https://' . _SFDC_SERVER_ . '.salesforce.com/services/wsdl/class/' . _WS_NAME_);
define ("_WS_NAMESPACE_", 'http://soap.sforce.com/schemas/class/' . _WS_NAME_);

$client = new SoapClient(_WS_WSDL_);
$sforce_header = new SoapHeader(_WS_NAMESPACE_, "SessionHeader", array("sessionId" => $sfdc->getSessionId()));
$client->__setSoapHeaders(array($sforce_header));

$responce = $client->Test2();

echo "Message is " . $response;

?>
</body>
</html>

 

 Thank you.

 

 

 

We created a managed package of our application, uploaded a Managed - Released version and installed it on another org. Then we decided to change some components and add some - and uploaded a new version from the same dev org - also Managed - Released. When trying to update the existing install with that new version we get the following message:

Your requested install failed. Please try this again.

None of the data or setup information in your Salesforce organization should have been affected by this error.

If this error persists, contact Support through your normal channels and reference number: 1477849749-1261 (-95349298)


So the functionality of managed packages actually don't work. Keep that in mind when you consider creating a managed package (and maybe consider using Force.com platform).