• Ako
  • NEWBIE
  • 35 Points
  • Member since 2007

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

Do you have an example of php code I can used to update the chatter current status ?

Thank you !

  • November 22, 2010
  • Like
  • 0
I am building a plugin that connects to Salesforce via OAuth. It is working flawlessly on one server, but on a customers it is randomly getting the "Stronger security is required" TLS error message from Salesforce.
It is doing a CURL request to get an access token from Salesforce. Sometimes it works, sometimes it gets the TLS 1.0 error.
The only difference I can see from my own server (which always works) is that the customer is using "NSS/3.21 Basic ECC" for cURL (my own server is "OpenSSL/1.0.1f").

Does anyone know why such sporadic behaviour might be happening? I am out of ideas.
 
  • September 12, 2016
  • Like
  • 0
Hello,
I have been using Apex to do an httprequest to a specific website. All it does is a form post to a page. I have found that about 10% of the time, it fails with a "System.CalloutException: Read timed out" error. I've been testing this in the developer console.
I also have access to a separate Salesforce org, and I have run the exact same tests from there, and it has never gotten the Read Timed Out error.

I even wrapped the request in a try statement, and it will re-attempt if it fails the first time, but the second attempt fails 100% of the time.

I am wondering why one Salesforce org would be experiencing the issue whereas another one doesn't. The one having issues is on na5.

The code I am testing with is as follows, but I have replaced the website URL as I don't really want to post it publically, but the page is very simple and typically returns instantly, even if you post garbage content.
 
    HttpRequest req = new HttpRequest(); 
	integer debug=0;
	Map<String,String> headers = new Map<String, String>{};
	headers.put('content-type','application/x-www-form-urlencoded');
	String method = 'POST';
	String body='cmd=test';
	req.setMethod(method);
	req.setTimeout(30000);
	if(method == 'POST') { 
		system.debug('content-type is >' +headers.get('content-type'));
		req.setHeader('content-type', headers.get('content-type') );

		req.setBody(body); 
		req.setCompressed(false); // otherwise we hit a limit of 32000
	}

	req.setEndpoint('http://WEBSITEURLHERE.COM/');

	if ( ! headers.isEmpty() ) { 
		for(string k:headers.keySet() ) { 
			system.debug('setheader ' + k + ' => ' +headers.get(k) ); 
			req.setHeader(k, headers.get(k) ); 
		}
	}

	Http http = new Http();
	HttpResponse res;

	String resultString;
	String resToString;
	String resBody;
	String resStatus;
	Integer resStatusCode=0;
     
	resultString='';
	try {
		res = http.send(req);
	} catch(System.CalloutException e) {
		system.debug('Error...will retry');
    		System.debug(e);
    		res = http.send(req);
	}
	resToString=res.toString();
	resBody=res.getBody();
	resStatusCode = res.getStatusCode();
	resStatus = res.getStatus();
	resultString = resBody;
	System.debug(resStatusCode) ;

Does anyone have any idea why a certain SF org might experience sporadic time outs?
Thanks for any help.

 
  • November 30, 2015
  • Like
  • 0
I am having an issue with some Apex code for a managed package I maintain. It uses an HTTPRequest to send messages to a user configured external site.
One of our customers has a site with SSL and our messages are getting an apex error.
The error is:
---
System.CalloutException: java.security.cert.CertificateException: No subject alternative DNS name matching connect.maximizedliving.com found.
----

From what I've read in forums it is because Salesforce does not support SNI (server name indication). To get around this, the customer's host put their site on a unique IP address, rather than the shared IP it was on. However, the error is still occurring.


To reproduce the error, I used this code in the Developer Console:
---
HttpRequest httpReq = new HttpRequest();
Http httpObj = new Http();
HttpResponse httpResp = new HttpResponse();

httpReq.setEndPoint('https://customersUrlGoesHere.com');
httpReq.setMethod('GET');
httpResp = httpObj.send(httpReq);

return 1;
---

I don't know why the error is still happening as everything with the certificate seems correct to me. Can you help me figure out why it's still causing this java error?
It is a showstopper with our integration right now.
  • June 09, 2014
  • Like
  • 0
I am having an issue with some Apex code for our AppExchange product called "EnlightenCRM". It uses an HTTPRequest to send messages to a user configured external site.

One of our customers has a site with SSL and our messages are getting an apex error.
The error is:
---
System.CalloutException: java.security.cert.CertificateException: No subject alternative DNS name matching connect.maximizedliving.com found.
----

From what I've read in forums it is possibly because Salesforce does not support SNI (server name indication). To get around this, the customer's host put their site on a unique IP address, rather than the shared IP it was on. However, the error is still occurring.

To reproduce the error, I used this code in the Developer Console:
---
HttpRequest httpReq = new HttpRequest();
Http httpObj = new Http();
HttpResponse httpResp = new HttpResponse();

httpReq.setEndPoint('https://CUSTOMERSITE.com');
httpReq.setMethod('GET');
httpResp = httpObj.send(httpReq);

return 1;
---
I removed the actual customer site from the example since this is a public forum.

I don't know why the error is still happening as everything with the certificate seems correct to me. Can you help me figure out why it's still causing this java error?

The explanations I have seen suggest to ensure:
-The certificate contains a DNS subject alternative name (this is a standard extension) entry matching the hostname
-the last CN of your subject distinguished name (this is the main name if you want) matches the hostname.

I have checked the certificate and both of these are correct, so I don't understand where the issue is.

--Jeff

  • June 06, 2014
  • Like
  • 0
Hello,
I am the maintainer of a managed package which sends HTTP Posts to an external website configured by the customer using custom settings for the package. The messages provide integration between Salesforce and their external site which hosts scripts we provide.

We have a customer whos website the package is unable to send an httprequest to. It is an https site.

To discover the specific error I attempted a simple post via the developer console. The error is:

System.CalloutException: java.security.cert.CertificateException: No subject alternative DNS name matching customer.website.com found.
(customers website is obviously changed for this example, but I assure you it is the correct URL).

I found a forum post about this type of error here: https://developer.salesforce.com/forums/ForumsMain?id=906F0000000919hIAA

The description said this happens when the sites SSL certificate has its CN (Common Name) set to an IP address, but doesn't have a SAN (Subject Alternative Name) IP Address Record that matches the address in the CN. However after investigating the details of this customers SSL certificate in my browser (chrome), it looks like this customer's CN is NOT an IP address, it is the proper URL ("customer.website.com" in my example). So I'm not sure what the problem is.
I don't know how to tell the customer to fix their certificate, if it's possible.

Our package depends on making an httprequest to a script on an external website in order to achive the integration we provide.
Does anyone know how to prevent this error from happening?

I will paste the full code that I ran anonmously from the developer console when testing. It throws the error mentioned above. I have changed the URL of the customer's site for this example since they probably don't want me posting it in a forum.

HttpRequest req = new HttpRequest(); 
	integer debug=0;
	Map<String,String> headers = new Map<String, String>{};
	headers.put('content-type','application/x-www-form-urlencoded');

	String body='test=1';
	req.setMethod('POST');

	system.debug('content-type is >' +headers.get('content-type'));
	req.setHeader('content-type', headers.get('content-type') );

	req.setBody(body); 
	req.setCompressed(false); // otherwise we hit a limit of 32000
	req.setEndpoint('https://customer.website.com/salesforce/listenerscript.php');

	if ( ! headers.isEmpty() ) { 
		for(string k:headers.keySet() ) { 
			system.debug('setheader ' + k + ' => ' +headers.get(k) ); 
			req.setHeader(k, headers.get(k) ); 
		}
	}

	Http http = new Http();
	HttpResponse res;

	String resultString;
	String resToString;
	String resBody;
	String resStatus;
	Integer resStatusCode=0;
     
	resultString='';
	res = http.send(req);
	resToString=res.toString();
	resBody=res.getBody();
	resStatusCode = res.getStatusCode();
	resStatus = res.getStatus();
	resultString = resBody;
	System.debug(resStatusCode) ;






  • May 06, 2014
  • Like
  • 0
Hello,
I have a customer who is installing an updated version of one of our Managed Packages.
They have several user profiles with various permissions settings relating to our custom objects and fields.

They are wondering if they will need to re-setup all the permissions relating to our custom objects once they install the updated version. They are at the screen which asks you whether you want to give permissions to Admins, All Users or Selected Profiles.

I am wondering what the correct process would be to keep the permissions the same way as they are before installing the updated package. The update has no new fields or objects, just some Apex code changes.

Would selecting "All Users" end up affecting objects/fields in the package that haven't changed in this update?
  • March 27, 2014
  • Like
  • 0

Hello,

I am working on a Salesforce App which I am hoping will meet Aloha requirements, so it can run in Group and Professional edition.

My app integrates with an external website which means it will have to work with the Salesforce API. From what I understand, if it passes the security review, I can get a Client ID which will be used for the external site to call the Salesforce API.

My question is, does this Client ID need to be protected from customers? The reason I ask is the external sites code will be installed by the customer and is written in PHP meaning the source code will be visible. Since the Client ID would have to be in the code, it would be visible by the customer. Is this a security issue, or does it even matter since the Client ID is specific to my app?

 

Thanks for any help.

-Jeff

  • September 10, 2012
  • Like
  • 0

I am wondering if its possible to get info about packages via the API. For example, what version of a Managed Package a person might have installed. My package integrates heavily with an external website, and I need my external website to know what version of a package a person has installed so I can modify the appropriate API calls. 

 

Is this possible? I know with Apex you can call Package.Version.Request for example...

  • May 03, 2011
  • Like
  • 0

Hello,

I'm wondering if its possible for someone to post a link to Chatter from an external website, similar to how you would "Tweet an article" for example. Many sites have a string of icons (Twitter, Facebook, Digg, etc) that you click and it opens up the appropriate social media site and auto-fills in a the posting for you.

Is there a way to do this with Chatter?

For example, Twitter does it this way:

 

http://twitter.com/home?status=Checking out this sweet blog entry http://tinyurl.com/blah

 

Any sort of shorthand for Salesforce+Chatter?

Thanks!

-Jeff

  • December 01, 2010
  • Like
  • 0

I am developing a package which I am planning on making into a Managed Package to allow for upgrades in the future. It uses a few Outbound Messages to call external web services. My issue is that the endpoints for these Outbound Messages will be different per customers installation. I am wondering:

 

1) Will the customer be able to edit the endpoint URLs once they install the package if it is a Managed Package?

 

2) Is there any sort of way to create a configuration screen where a customer might enter those URL values to avoid them having to edit the Outbound Messages? Almost like a config file for a traditional application install.

 

If a customer can't somehow change those values I'm not sure if I can really use Managed Packages unless I can think of some clever workaround.

 

Any help appreciated!

-Jeff

  • August 09, 2010
  • Like
  • 0

Hello,

I had previously implemented webservices calls using the Outbound Messages system. The feature I liked about this was that if a webservice call failed for whatever reason, Salesforce would retry the call several times before giving up (visible from the "Outbound Messaging Delivery Status" screen).

 

For various reasons I have re-implemented my webservice calls in an Apex class. The call gets made via an Apex Trigger which calls an Apex Class function which does the actual webservice call.

 

Anyways, that is all working nicely, but I am wondering what happens if the call fails? I know you can see the status of calls in the "Apex Jobs" screen, but it doesn't seem to retry upon a failure. It's possible I'm not quite implementing things correctly, as I can see "Status" as "Failed", yet the "Failures" column always shows as 0. "Total Batches" and "Batches Processed" is always 0 as well. Is there maybe a step I'm missing, or do Ajax Jobs not work in the way that Outbound Messages do? Is there a way I can set things up so Salesforce would re-attempt an Ajax Job until the status is "Completed"?

 

Thanks!

-Jeff

  • August 06, 2010
  • Like
  • 0
I am wondering how to create a certain type of Report in Salesforce, or if it is even possible. I have 2 different custom objects, which each have "Contact" as a Master-Detail relationship. Therefore, a Contact can have many occurances of each type of object associated with it. We'll call them ObjectA and ObjectB.

In the Report wizard, I can create a report "Contacts with ObjectA" or "Contacts with ObjectB", but I am wondering if it is possible to create a report with something like "Contacts with ObjectA and ObjectB"?
My only other option is to make ObjectB have a Master-detail relationship to ObjectA, but that isn't neccessarily an accurate reflection of my relational data.

Forgive me if I am missing out on some key concepts of Salesforce reporting, this part of SF is pretty new to me

Thanks!
  • March 06, 2008
  • Like
  • 0
I have created a custom button which I use on the Contact Detail page. I am wondering if there is any way to show or hide the button based on the users security settings (profile)? Is this possible? I only want certain profile types to be able to use the button.
I couldn't find any security settings based around Custom Buttons.
Thanks for any help!
-Jeff
  • January 23, 2008
  • Like
  • 0
I am trying to do an upsert on a custom object I created and can't seem to get it to work. I was going to the upsert sample provided in the PHP Toolkit area. I am able to create a new record just fine, but upsert gives the following error (here is just the start of the error)
SoapFault Object ( [message:protected] => INVALID_FIELD: Field name provided, NewUserID__c does not match an External ID for Contact ..
Some background. New custom object is called "New User" (New_User__C to the api) and has an external ID named NewUserID which is a text field which must be unique. All I am trying to do is change the value of one of the fields and do an update (in this example I am trying to alter the Last Name field of my record).

Here is the PHP code I am running:

Code:
<—php
define("SOAP_CLIENT_BASEDIR", "./soapclient");
require_once (SOAP_CLIENT_BASEDIR.'/SforceEnterpriseClient.php');
require_once (SOAP_CLIENT_BASEDIR.'/SforceHeaderOptions.php');

try {
  $mySforceConnection = new SforceEnterpriseClient();
  $mySoapClient = $mySforceConnection->createConnection(SOAP_CLIENT_BASEDIR.'/enterprise.wsdl.xml');
  $mylogin = $mySforceConnection->login("my username", "my password");

  $sObject = new stdclass();
  $sObject->Email_Address__c = 'fake@svc.com';
  $sObject->First_Name__c = 'UserFirst';
  $sObject->Last_Name__c = 'UserLast';
  $sObject->NewUserID__c = 'aaa';

  $createResponse = $mySforceConnection->create(array($sObject), 'New_User__c');
  print_r($createResponse);

  $sObject->Last_Name__c = 'UserLast_Change';

  $upsertResponse = $mySforceConnection->upsert("NewUserID__c", array ($sObject));
  print_r($upsertResponse);

} catch (Exception $ex) {
  print_r($ex);
  echo $mySforceConnection->getLastRequestHeaders();
  echo $mySforceConnection->getLastRequest();
}
–>

So, the create statement works fine, it's just the upsert that doesn't work. What am I missing about how upsert is supposed to work? I'm pretty sure I am not grasping the way External IDs are supposed to be setup. Also, looking at the error message, it seems like it is trying to work on the Contact object?

Thanks for any help!





Message Edited by Ako on 12-05-2007 08:40 PM
  • December 06, 2007
  • Like
  • 0
Hi. I am trying to initiate a login via SOAP using the WSDL (Enterprise or Partner) within Python. I keep getting an INVALID_LOGIN error. I am using the username and password and I use in the Developer Login on Salesforce.com, which I assume is correct?

Here is the outgoing and incoming SOAP (I have only altered the email and PW for this example, but I assure you they are correct)

Code:
*** Outgoing SOAP ******************************************************
<—xml version="1.0" encoding="UTF-8"–>
<SOAP-ENV:Envelope
  SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
  xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
  xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:xsd="http://www.w3.org/1999/XMLSchema"
>
<SOAP-ENV:Body>
<login SOAP-ENC:root="1">
<v1 xsi:type="xsd:string">ako@myemail.com</v1>
<v2 xsi:type="xsd:string">mypassword</v2>
</login>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
************************************************************************
*** Incoming SOAP ******************************************************
<˜xml version="1.0" encoding="UTF-8"™>
<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 xmlns:ns1="urn:fault.partner.soap.sforce.com">ns1:INVALID_LOGIN</faultcode>
   <faultstring>INVALID_LOGIN: Invalid username or password or locked out.</faultstring>
   <detail>
    <sf:fault xsi:type="sf:LoginFault" xmlns:sf="urn:fault.partner.soap.sforce.com">
     <sf:exceptionCode>INVALID_LOGIN</sf:exceptionCode>
     <sf:exceptionMessage>Invalid username or password or locked out.</sf:exceptionMessage>
    </sf:fault>
   </detail>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>
************************************************************************
I really don't know what I'm missing here. Can anyone offer any ideas? I am pretty new to this (obviously).

  • October 17, 2007
  • Like
  • 0
I have a issue when rendering a visual force page in salesforce1 IOS. This happens only on iOS and not Android. Visualforce page is not displaying at all. But in Android it displays well. Is there any setting to do in ipad?
I am having an issue with some Apex code for a managed package I maintain. It uses an HTTPRequest to send messages to a user configured external site.
One of our customers has a site with SSL and our messages are getting an apex error.
The error is:
---
System.CalloutException: java.security.cert.CertificateException: No subject alternative DNS name matching connect.maximizedliving.com found.
----

From what I've read in forums it is because Salesforce does not support SNI (server name indication). To get around this, the customer's host put their site on a unique IP address, rather than the shared IP it was on. However, the error is still occurring.


To reproduce the error, I used this code in the Developer Console:
---
HttpRequest httpReq = new HttpRequest();
Http httpObj = new Http();
HttpResponse httpResp = new HttpResponse();

httpReq.setEndPoint('https://customersUrlGoesHere.com');
httpReq.setMethod('GET');
httpResp = httpObj.send(httpReq);

return 1;
---

I don't know why the error is still happening as everything with the certificate seems correct to me. Can you help me figure out why it's still causing this java error?
It is a showstopper with our integration right now.
  • June 09, 2014
  • Like
  • 0
Hello,
I am the maintainer of a managed package which sends HTTP Posts to an external website configured by the customer using custom settings for the package. The messages provide integration between Salesforce and their external site which hosts scripts we provide.

We have a customer whos website the package is unable to send an httprequest to. It is an https site.

To discover the specific error I attempted a simple post via the developer console. The error is:

System.CalloutException: java.security.cert.CertificateException: No subject alternative DNS name matching customer.website.com found.
(customers website is obviously changed for this example, but I assure you it is the correct URL).

I found a forum post about this type of error here: https://developer.salesforce.com/forums/ForumsMain?id=906F0000000919hIAA

The description said this happens when the sites SSL certificate has its CN (Common Name) set to an IP address, but doesn't have a SAN (Subject Alternative Name) IP Address Record that matches the address in the CN. However after investigating the details of this customers SSL certificate in my browser (chrome), it looks like this customer's CN is NOT an IP address, it is the proper URL ("customer.website.com" in my example). So I'm not sure what the problem is.
I don't know how to tell the customer to fix their certificate, if it's possible.

Our package depends on making an httprequest to a script on an external website in order to achive the integration we provide.
Does anyone know how to prevent this error from happening?

I will paste the full code that I ran anonmously from the developer console when testing. It throws the error mentioned above. I have changed the URL of the customer's site for this example since they probably don't want me posting it in a forum.

HttpRequest req = new HttpRequest(); 
	integer debug=0;
	Map<String,String> headers = new Map<String, String>{};
	headers.put('content-type','application/x-www-form-urlencoded');

	String body='test=1';
	req.setMethod('POST');

	system.debug('content-type is >' +headers.get('content-type'));
	req.setHeader('content-type', headers.get('content-type') );

	req.setBody(body); 
	req.setCompressed(false); // otherwise we hit a limit of 32000
	req.setEndpoint('https://customer.website.com/salesforce/listenerscript.php');

	if ( ! headers.isEmpty() ) { 
		for(string k:headers.keySet() ) { 
			system.debug('setheader ' + k + ' => ' +headers.get(k) ); 
			req.setHeader(k, headers.get(k) ); 
		}
	}

	Http http = new Http();
	HttpResponse res;

	String resultString;
	String resToString;
	String resBody;
	String resStatus;
	Integer resStatusCode=0;
     
	resultString='';
	res = http.send(req);
	resToString=res.toString();
	resBody=res.getBody();
	resStatusCode = res.getStatusCode();
	resStatus = res.getStatus();
	resultString = resBody;
	System.debug(resStatusCode) ;






  • May 06, 2014
  • Like
  • 0

Hello,

I am working on a Salesforce App which I am hoping will meet Aloha requirements, so it can run in Group and Professional edition.

My app integrates with an external website which means it will have to work with the Salesforce API. From what I understand, if it passes the security review, I can get a Client ID which will be used for the external site to call the Salesforce API.

My question is, does this Client ID need to be protected from customers? The reason I ask is the external sites code will be installed by the customer and is written in PHP meaning the source code will be visible. Since the Client ID would have to be in the code, it would be visible by the customer. Is this a security issue, or does it even matter since the Client ID is specific to my app?

 

Thanks for any help.

-Jeff

  • September 10, 2012
  • Like
  • 0

When i try to signup for database.com I keep getting a message that the request was denied and a Salesforce person will contact me shortly. that never happens of course so I emailed support and this is what they said:

 

We recently made a change to the way we offer developer support to our customers and are sorry for the impact this may be having on you. We now provide developer support only to our premier customers and partners. If you have a developer support question, are looking for technical documentation, best practices, code samples and other ways to speed your development time, we have great resources that you can leverage within the developer community at http://developer.force.com

 

That helped me none so i am coming here. Does anyone know how to signup for a database.com account? I just want to set up my own little database to test it out and learn.

 

I am wondering if its possible to get info about packages via the API. For example, what version of a Managed Package a person might have installed. My package integrates heavily with an external website, and I need my external website to know what version of a package a person has installed so I can modify the appropriate API calls. 

 

Is this possible? I know with Apex you can call Package.Version.Request for example...

  • May 03, 2011
  • Like
  • 0

Hello,

I'm wondering if its possible for someone to post a link to Chatter from an external website, similar to how you would "Tweet an article" for example. Many sites have a string of icons (Twitter, Facebook, Digg, etc) that you click and it opens up the appropriate social media site and auto-fills in a the posting for you.

Is there a way to do this with Chatter?

For example, Twitter does it this way:

 

http://twitter.com/home?status=Checking out this sweet blog entry http://tinyurl.com/blah

 

Any sort of shorthand for Salesforce+Chatter?

Thanks!

-Jeff

  • December 01, 2010
  • Like
  • 0

Do you have an example of php code I can used to update the chatter current status ?

Thank you !

  • November 22, 2010
  • Like
  • 0

Hello,

I had previously implemented webservices calls using the Outbound Messages system. The feature I liked about this was that if a webservice call failed for whatever reason, Salesforce would retry the call several times before giving up (visible from the "Outbound Messaging Delivery Status" screen).

 

For various reasons I have re-implemented my webservice calls in an Apex class. The call gets made via an Apex Trigger which calls an Apex Class function which does the actual webservice call.

 

Anyways, that is all working nicely, but I am wondering what happens if the call fails? I know you can see the status of calls in the "Apex Jobs" screen, but it doesn't seem to retry upon a failure. It's possible I'm not quite implementing things correctly, as I can see "Status" as "Failed", yet the "Failures" column always shows as 0. "Total Batches" and "Batches Processed" is always 0 as well. Is there maybe a step I'm missing, or do Ajax Jobs not work in the way that Outbound Messages do? Is there a way I can set things up so Salesforce would re-attempt an Ajax Job until the status is "Completed"?

 

Thanks!

-Jeff

  • August 06, 2010
  • Like
  • 0
I have created a custom button which I use on the Contact Detail page. I am wondering if there is any way to show or hide the button based on the users security settings (profile)? Is this possible? I only want certain profile types to be able to use the button.
I couldn't find any security settings based around Custom Buttons.
Thanks for any help!
-Jeff
  • January 23, 2008
  • Like
  • 0
Hi. I am trying to initiate a login via SOAP using the WSDL (Enterprise or Partner) within Python. I keep getting an INVALID_LOGIN error. I am using the username and password and I use in the Developer Login on Salesforce.com, which I assume is correct?

Here is the outgoing and incoming SOAP (I have only altered the email and PW for this example, but I assure you they are correct)

Code:
*** Outgoing SOAP ******************************************************
<—xml version="1.0" encoding="UTF-8"–>
<SOAP-ENV:Envelope
  SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
  xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
  xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:xsd="http://www.w3.org/1999/XMLSchema"
>
<SOAP-ENV:Body>
<login SOAP-ENC:root="1">
<v1 xsi:type="xsd:string">ako@myemail.com</v1>
<v2 xsi:type="xsd:string">mypassword</v2>
</login>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
************************************************************************
*** Incoming SOAP ******************************************************
<˜xml version="1.0" encoding="UTF-8"™>
<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 xmlns:ns1="urn:fault.partner.soap.sforce.com">ns1:INVALID_LOGIN</faultcode>
   <faultstring>INVALID_LOGIN: Invalid username or password or locked out.</faultstring>
   <detail>
    <sf:fault xsi:type="sf:LoginFault" xmlns:sf="urn:fault.partner.soap.sforce.com">
     <sf:exceptionCode>INVALID_LOGIN</sf:exceptionCode>
     <sf:exceptionMessage>Invalid username or password or locked out.</sf:exceptionMessage>
    </sf:fault>
   </detail>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>
************************************************************************
I really don't know what I'm missing here. Can anyone offer any ideas? I am pretty new to this (obviously).

  • October 17, 2007
  • Like
  • 0