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

Inbound integration

Hi all,

I'm experiencing a problem with inbound integration. I'm using both XMLSpy and a custom JAVA application to invoke Salesforce's WSDL:Enterprise WSDL.

When I look at the response that I get i'm asked to insert username and password+security token. I have generated a new security token before starting integration.


When I invoke this Web Service I have an error  message stating: "Invalid login".


This is the code of my invocation:


<SOAP-ENV:Envelope xmlns:SOAP-ENV="" xmlns:SOAP-ENC="" xmlns:xsi="" xmlns:xsd="">
        <m:LoginScopeHeader xmlns:m="">
        <m:login xmlns:m="">


This is Salesforce response

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="" xmlns:xsd="" xmlns:xsi="">
            <faultcode xmlns:ns1="">ns1:INVALID_LOGIN</faultcode>
            <faultstring>INVALID_LOGIN: Invalid username or password or locked out.</faultstring>
                <sf:fault xsi:type="sf:LoginFault" xmlns:sf="">
                    <sf:exceptionMessage>Invalid username or password or locked out.</sf:exceptionMessage>


Can you help me  understanding where I'm wrong?

Perhaps you haven't whitelisted or activated the IP address from which you're trying to access

Hi All,


Currently I’m working on Adobe Flex client,


I’m accessing the production and sandbox environment through defaultServerUrl in Flex. Its working fine.

For accessing production and sandbox we required username, password along with security token. All there login credentials we have.

My question is how do I access the custom portals in Flex client?

And for accessing the custom portal,how to get security token for portal users?

Please any suggestion




Message Edited by shanuman on 03-23-2009 05:55 AM
Are you trying to authenticate portal users or regular users? i assume you're really passing something more interesting for organizationId & portalId ? Also log into the web UI and look at the login history, that might give you more clues.

Hi Simon,


Thanks for ur reply.


Im authenticating portal user not the regular user, for testing purpose im hardcoding organizationId & portalId.


And im assigning new User License "Customer Portal Manager Standard" to the portal user and trying to authenticate in Flex Client.


But it is throwing following error.


3/30/2009 11:16:24.185 [DEBUG] com.salesforce.Util apex.login ( (com.salesforce.objects::LoginRequest)#0
  callback = (com.salesforce::AsyncResponder)#1
    context = (null)
    faultHandler = (function)
    resultHandler = (function)
  server_url = (null)
  session_id = (null)
  username = ""
3/30/2009 11:16:24.185 [DEBUG] com.salesforce.Connection login with creds
3/30/2009 11:16:24.185 [DEBUG] com.salesforce.Connection App Domain = null
3/30/2009 11:16:24.185 [DEBUG] com.salesforce.Connection Api Server name =
3/30/2009 11:16:24.185 [DEBUG] com.salesforce.Connection _internalServerUrl =
3/30/2009 11:16:24.185 [DEBUG] com.salesforce.Connection set serverUrl: skip the policy file for sandboxType:localTrusted and
3/30/2009 11:16:24.185 [DEBUG] com.salesforce.Connection invoke login
3/30/2009 11:16:24.185 [DEBUG] com.salesforce.Connection intServerUrl is null
3/30/2009 11:16:24.185 [DEBUG] com.salesforce.Connection intServerUrl =
3/30/2009 11:16:24.185 [DEBUG] com.salesforce.Connection _invoke login
3/30/2009 11:16:24.185 [DEBUG] Method name is: login
3/30/2009 11:16:24.201 [DEBUG] Method name is: login
3/30/2009 11:16:25.683 [ERROR] com.salesforce.AsyncResponder (
  bubbles = false
  cancelable = true
  context = (null)
  currentTarget = (null)
  eventPhase = 2
  fault = (mx.rpc::Fault)#1
    errorID = 0
    faultCode = "Server.Error.Request"
    faultDetail = "Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL:"
    faultString = "HTTP request error"
    message = "faultCode:Server.Error.Request faultString:'HTTP request error' faultDetail:'Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL:'"
    name = "Error"
    rootCause = (
      bubbles = false
      cancelable = false
      currentTarget = (
        bytesLoaded = 0
        bytesTotal = 0
        data = ""
        dataFormat = "text"
      eventPhase = 2
      target = (
      text = "Error #2032"
      type = "ioError"
  headers = (null)
  message = (mx.messaging.messages::ErrorMessage)#4
    body = (Object)#5
    clientId = "DirectHTTPChannel0"
    correlationId = "DF871406-F974-42D5-92FC-55EA1039084B"
    destination = ""
    extendedData = (null)
    faultCode = "Server.Error.Request"
    faultDetail = "Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL:"
    faultString = "HTTP request error"
    headers = (Object)#6
    messageId = "303B112E-32A7-9E7C-38B7-55EA1613D81B"
    rootCause = (
    timestamp = 0
    timeToLive = 0
  messageId = "303B112E-32A7-9E7C-38B7-55EA1613D81B"
  target = (null)
  token = (mx.rpc::AsyncToken)#7
    message = (mx.messaging.messages::HTTPRequestMessage)#8
      body = "<se:Envelope xmlns:se=""><se:Header xmlns:sfns=""/><se:Body><login xmlns="" xmlns:ns1=""><username></username><password>Password1234</password></login></se:Body></se:Envelope>"
      clientId = (null)
      contentType = "text/xml; charset=UTF-8"
      destination = "DefaultHTTP"
      headers = (Object)#9
        DSEndpoint = "direct_http_channel"
      httpHeaders = (Object)#10
        Accept = "text/xml"
        SOAPAction = """"
        X-Salesforce-No-500-SC = "true"
      messageId = "DF871406-F974-42D5-92FC-55EA1039084B"
      method = "POST"
      recordHeaders = false
      timestamp = 0
      timeToLive = 0
      url = ""
    responders = (Array)#11
      [0] ($270::SalesForceResponder)#12
    result = (null)
  type = "fault"

Looking at the trace below, you're not sending the LoginScopeHeader.