• sfdjl sdfjlsd
  • NEWBIE
  • 15 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies

Hello

I want to download wsdl file programmaticaly, using my Web JavaScript application. First I do Oauth login and get all tokens. Then I try to download WSDL file using JavaScript:

        var xmlHttp = new XMLHttpRequest();
        xmlHttp.onload = function () {
            alert(xmlHttp.responseText);
        };
        xmlHttp.open("GET", "https://ap1.salesforce.com/soap/wsdl.jsp", true);
        xmlHttp.setRequestHeader("Authorization", "Bearer " + accessToken);
        xmlHttp.send(null);
When this code executes I always get error :

XMLHttpRequest cannot load https://ap1.salesforce.com/soap/wsdl.jsp. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin MyLocalHost is therefore not allowed access. 

I've already read about CORS. Problem is that I haven't server side application and I can't manage "Access-Control-Allow .." settings. All I have is client-side JavaScript application.
Could you suggest me how can I solve this issue?

Thanks

Hello

I've register as developer here: https://developer.salesforce.com/

Now I want to generate WSDL file and download it. I followed this instruction: http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_quickstart_steps_generate_wsdl.htm

But when I go to Develop | API I see next picture: https://www.dropbox.com/s/udpap8f648adi5c/salesforce.jpg?dl=0

Could you explain what I did wrong? How can I get WSDL?

Hello

I've register as developer here: https://developer.salesforce.com/

Now I want to generate WSDL file and download it. I followed this instruction: http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_quickstart_steps_generate_wsdl.htm

But when I go to Develop | API I see next picture: https://www.dropbox.com/s/udpap8f648adi5c/salesforce.jpg?dl=0

Could you explain what I did wrong? How can I get WSDL?

Hi,

I need to download enterprise wsdl for my production.

The procedure which i am following is :

1) Go to Setup -> Develop -> API

2) Right click on "Generate Enterprise wsdl" and choose "save target as".

 

Saved file is called "generateEnterpriseWsdl.apexp". It doesnt have .wsdl ext.

 

Is this the right procedure?

 

Plz help.