• MX-Developer
  • NEWBIE
  • 0 Points
  • Member since 2004

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

Hello there,

I am new to the SF API. I am trying to get the connection working using a simple web service invocation. This works well with other Web Services like the Amazon WS.

Here is the code I am using:

   <cfinvoke
         webservice="https://na1.salesforce.com/servlet/servlet.SoapApi"
       method="sfdc.login"      
       returnvariable="loginResults"  
     username = "xxx@xxx.com"
     password = "xxx">

   
   <cfdump var="#loginResults#">

The error I get is:

Could not generate stub objects for web service invocation.

Name: https://na1.salesforce.com/servlet/servlet.SoapApi. WSDL: https://na1.salesforce.com/servlet/servlet.SoapApi. org.xml.sax.SAXException: Fatal Error: URI=null Line=2: Illegal character at end of document, <. It is recommended that you use a web browser to retrieve and examine the requested WSDL document for correctness. If the requested WSDL document can't be retrieved or it is dynamically generated, it is likely that the target web service has programming errors.

 

I know that there is something that I am doing wrong, but not sure what it is :-)

I am running this on CF MX 6.1 which uses Axis 1.1 which is supposed to be supported in the API.

Please let me know how to proceed.

Hello there,

I am new to the SF API. I am trying to get the connection working using a simple web service invocation. This works well with other Web Services like the Amazon WS.

Here is the code I am using:

   <cfinvoke
         webservice="https://na1.salesforce.com/servlet/servlet.SoapApi"
       method="sfdc.login"      
       returnvariable="loginResults"  
     username = "xxx@xxx.com"
     password = "xxx">

   
   <cfdump var="#loginResults#">

The error I get is:

Could not generate stub objects for web service invocation.

Name: https://na1.salesforce.com/servlet/servlet.SoapApi. WSDL: https://na1.salesforce.com/servlet/servlet.SoapApi. org.xml.sax.SAXException: Fatal Error: URI=null Line=2: Illegal character at end of document, <. It is recommended that you use a web browser to retrieve and examine the requested WSDL document for correctness. If the requested WSDL document can't be retrieved or it is dynamically generated, it is likely that the target web service has programming errors.

 

I know that there is something that I am doing wrong, but not sure what it is :-)

I am running this on CF MX 6.1 which uses Axis 1.1 which is supposed to be supported in the API.

Please let me know how to proceed.

I need to know if it is even possible to integrate with Salesforce APIs using ColdFusion MX.

I've seen several postings regarding MX with no solutions and after five days of development I have not been able to make it work.

If anyone HAS successfully used MX, please let me know.

Thank you.

I've got the API doc and have been reveiwing it, but still dont seem to be able to find an example of posting a lead like we're doing the WebToLead.  Right now we are doing an http post to the WebToLead page, but for some reason we're losing some posts.  I would like to post XML to the API, but I've not been able to find an example of the XML structure needed to submit a lead.  Is this setup somehow like the post the WebToLead?  I would SINCERELY appreciate any help!

Thanks!

Allen

Help!!!

I've got my java app running interactively at the DOS command prompt. It logs on to SalesForce, accesses info, etc. just fine.  However, when I try to run it in the ColdFusion environment with <CFOBJECT> it dies without a trace (no exceptions thrown) when it attempts to create a SOAP message via the messageFactory,createMessage() method. The message factory object instantiates properly the statement immediately preceding this. I suspect a ColdFusion environment problem, but am not sure. Any suggestions?

Thanks.