You need to sign in to do that
Don't have an account?
Microsoft SOAP 3.0 and Login
I know a similar question like this has been posted, but I did not see a final answer.
We are trying to integrate SalesForce.com and a Lotus Notes Application. The simplest way for us to do this appears to be SOAP using the MS Soap 3.0 client. However, I am running into issues with the login.
1) If I reference our enterprise WSDL file, I get errors
2) If I reference the WSDL on your servers, no errors importing the WSDL but I get 1 of 2 different errors:
a) Error 1112 that the username or password is incorrect (thought it is)
b) An error that says login must be Boolean.
I really need help on this. New to the whole sForce API.
Mike Kinder
Message Edited by mjkstk on 03-12-2004 12:45 PM
We have gotten Soap 3.0 to work using the low-level API. The high-level API will not work with SFDC.
Here is some sample code from our vba using soap 3.0
Public Function login(username As String, password As String) As Boolean
Dim Connector As HttpConnector30
Set Connector = CreateConnector(LOGIN_URL)
Dim Serializer As New SoapSerializer30
With Serializer
.Init Connector.InputStream
.StartEnvelope
.StartBody
.StartElement "login", m_Namespace
.StartElement "username", m_Namespace
.WriteString username
.EndElement
.StartElement "password", m_Namespace
.WriteString password
.EndElement
.EndElement
.EndBody
.EndEnvelope
End With
Connector.EndMessage
Dim Reader As New SoapReader30
Reader.Load Connector.OutputStream
If Reader.Fault Is Nothing Then
SetLoginInfo(Reader.Body, username)
login = True
Else
Err.Raise(1, "Salesforce 2.5", Reader.FaultString.Text)
End If
End Function
Public Function CreateConnector(url As String) As HttpConnector30
Dim Connector As New HttpConnector30
Connector.Property("EndPointURL") = url
Connector.Connect
Connector.Property("SoapAction") = ""
Connector.BeginMessage
Set CreateConnector = Connector
End Function
Hey Michael,
Thanks for your help on this one. You gave me a good starting point and I have almost accomplished all my objectives. Thanks very much for your help on this.
Mike Kinder
mike.kinder@plantemoran.com
adamg,
While that is good to know, I need a solution finished by tomorrow evening. I currently have most of the items covered, but I have spent most of today on the update feature with absolutely no success.
Any help is appreciated.
Mike Kinder
Michael (and esp. adamg),
First, adamg, I apologize about my reply yesterday, I thought your info on COM was in relation to another post and this item was already resolved.
Michael, your info helped a great deal. Thanks for all the help.
Mike Kinder
mike.kinder@plantemoran.com