function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
shunshun 

Trying to login with username with apostrophe

Hi,

I use both both Salesforce's XML-RPC 2.0 API and the SForce 3.0 API.

When trying to login a user with an apostrophe in the username, the XML-RPC 2.0 API returns a successful login, but the SForce 3.0 API returns a "username or password invalid" message.

Is there some issue with logging in users with apostrophe's in their name?

Any help is appreciated.

Thanks,
Shun
DevAngelDevAngel

Hi shun,

.Net seems to handle this ok.  Are you using java?  You may need to escape any special characters such as an apostrophe.  XML-RPC uses a different serializer than does Apache Axis and Apache Axis may not be handling that character properly.

????

shunshun
Hi Dave,

Thanks, you're right, when I replace the Axis 1.1 (stable) version with the 1.2 alpha version, the login works.

Is SForce certified to run on the 1.2 alpha version of Axis? What do you recommend?

Thanks,
Shun
DevAngelDevAngel

Hi Shun,

1.1 is the officially supported version, but you obviously can't use that given the current situation.