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
TomCTomC 

SOAP Login Request Returns 1112 Error

Does a Developer Account have the appropriate access rights for web services?  Assuming it does, I have attempted to send a SOAP login request, but I receive an error 1112 - username or password not valid.  The TCP Tunnel monitoring tool I'm using shows the following:

<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ns1:login xmlns:ns1="urn:partner.soap.sforce.com" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<username xsi:type="xsd:string">**********</username>
<password xsi:type="xsd:string">**********</password>
</ns1:login>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

I replaced the username & password above with *********.  Is there a syntax error in the above SOAP envelope I'm generating?  Should there be quotes around the username & password.

Thanks for your help.

Tom

adamgadamg
Yes, a DE account has the appropriate access rights.

I'd try running the Java Quickstart or one of the other pre-compiled samples to see if you can login - if you can't, then you know its a user/password error. If you can, then there is a problem with your message/code.
TomCTomC

Thanks for your response.  I have been able to login with the sForce .Net tool with no problem.

Is the SOAP envelope syntax in my previous post correct?

Tom

adamgadamg
If you use the toolkit & samples, you shouldn't have to worry about the format of the message - also, if you need a reference of correct messages, they are available in the doc. But perhaps I am missing something?
DevAngelDevAngel

Hi TomC,

You entire message looks like a api 2.0 message instead of a 2.5 message.  That said, 2.0 login does work provided you are hitting the right service endpoint.  The login call for 2.0 should use https://www.salesforce.com/servlet/servlet.SoapApi.  If you are using na0.salesforce.com or na1.salesforce.com, you are doing it wrong.

TomCTomC

Actually, I was trying to access sForce using a Java Agent in Lotus Domino Designer.  I should be able to access the sForce web service from Java regardles of the IDE, right?  I figured as long as the SOAP envelope request is correct, this should work.

Any suggestions?  I know, you are probably going to say to drop the idea of using the Domino Designer, but it would be useful if I could integrate sforce with Domino in this manner.

Thanks again.

Tom

adamgadamg
I'd be interested to see if we can make this work for you..

..are you using Domino's build in web service stack/tooling, or are you loading in the Axis libraries as external classes? If you do the latter (if Domino lets you), it should be straightforward...
TomCTomC

I appreciate your willingness to help me out.  I did not know I needed to import Axis classes, but there is a facility to import classes in the Domino Designer, if needed. 

I am using a product called SOAPConnect for LotusScript.  You don't actually need to use the LotusScript portion of the tool because it simply sets some parameters for the Java Agent.  The stock quote sample that comes with the tool updates stock quotes from a xmethods.net service.  It works nicely, so it got me to thinking about using it to access sForce.

Just in case you want to take a look at the tool, the SOAPConnect tool can be found at http://www-10.lotus.com/ldd/sandbox.nsf/ecc552f1ab6e46e4852568a90055c4cd/5957820fa8268dbf85256bae00671773?OpenDocument&Highlight=0,soap .  Keep in mind, you would need Domino Designer to use it, though.

Thanks again for being willing to work with something outside of your supported sForce tools.

Tom

adamgadamg
Ok - thanks for the link.

The issue appears to be that SOAPConnect product for LotusScript uses and older version of the Axis libraries (called Apache SOAP), which for a number of reasons, will not work with sforce.

The solution is to use the Apache Axis libraries - and the samples we provide - instead of the SOAPConnect stuff. This is possible *if* Notes/Domino lets you access/reference arbitrary Java classes. If not, then we'll have to recommend an alternative solution.
TomCTomC

Thanks for the info, Adam.  Java classes can be accessed/referenced from Domino.  I guess now I just need to have a better understanding which Apache Axis library classes I need to import into the Domino IDE.  Do you have a list of these necessary classes handy?  Where would be the best place for me to cut and paste these classes from?  Sorry for the novice questions, but my focus is more on the business side.

Tom

adamgadamg
Start with the Java Quickstart on the sample code page - that zip will contain everything you need.
TomCTomC

Sounds good.  Thanks.

Tom

mjkstkmjkstk

I am going to guess you did not get this to work either.  The sForce API requires 1.4 of the JRE (Java Runtime) and Domino, up to version 6.5.1 only have a 1.3.1 JRE.

I have been able to (with the help of others here) to get the MS Soap 3.0 tool to work.  It is a COM call from the LScript - it is working awsome, but it took some playing around.

Let me know if you need any help with this.  I have about 7 years Notes/Domino experience.  You can reach me @ the email below.

Mike Kinder

mike.kinder@plantemoran.com