• millburn
  • NEWBIE
  • 0 Points
  • Member since 2010

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

I am trying to automate enterprise wsdl download but I am keep getting the following error message.  

 

You do not have Javascript enabled. Javascript is required to use salesforce.com. Please enable Javascript, then click <a href="/soap/wsdl.jsp?type=*"

 

I have read about frontdoor,jsp but it doesnt seem to work for the code below. Please help

 

 

   loginResult = binding.login("", "");
              response.sendRedirect("https://na1.salesforce.com/secur/frontdoor.jsp?sid="+ sessionID +"&retURL=");
            // loginResult.setServerUrl(serverUrl)
             
              url = "https://cs3.salesforce.com/secur/frontdoor.jsp?sid="+loginResult.getSessionId()+"&retURL=/soap/wsdl.jsp?type=*";
              loginResult.setServerUrl(url);
             
              //   System.out.println(url);
              URL uv;
              
              uv = new URL(url);
              
          //   System.out.println( u.getFile());
              is = uv.openStream(); 
              
              dis = new DataInputStream(new BufferedInputStream(is));
              while ((s = dis.readLine()) != null) {
                  System.out.println(s);
               }

 

   loginResult = binding.login("login", "pwd");            

     url = "https://cs1.salesforce.com/secur/frontdoor.jsp?sid="+loginResult.getSessionId()+"&retURL=/soap/wsdl.jsp?type=*";              loginResult.setServerUrl(url);                                  

URL uv;                            

uv = new URL(url);                            

is = uv.openStream();                           

 dis = new DataInputStream(new BufferedInputStream(is));              

while ((s = dis.readLine()) != null) {                  System.out.println(s);               }

is there select *  from object in SOQL?  "*" is what I am looking for. I dont want to write out every column.