• Maddy123
  • NEWBIE
  • 25 Points
  • Member since 2008

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 23
    Questions
  • 15
    Replies
Hi,
 
  I have webservice written in .net located on my machine (I could see the web page located in same directory from URL type s-control in salesforce. so that means salesforce can access the files from that directory.)  I generated APex class from the WSDL(had to remove soap12 bindings).
 
//Generated by wsdl2apex
public class tempuriOrg {
    public class HelloWorld_element {
        public String arg;
        private String[] arg_type_info = new String[]{'arg','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true'};
        private String[] field_order_type_info = new String[]{'arg'};
    }
    public class testSalesForceSoap {
        public String endpoint_x = 'http://machineName/virtualdirectoryname/testSalesForce.asmx';
        private String[] ns_map_type_info = new String[]{'http://tempuri.org/', 'tempuriOrg'};
        public String HelloWorld(String arg) {
            tempuriOrg.HelloWorld_element request_x = new tempuriOrg.HelloWorld_element();
            tempuriOrg.HelloWorldResponse_element response_x;
            request_x.arg = arg;
            Map<String, tempuriOrg.HelloWorldResponse_element> response_map_x = new Map<String, tempuriOrg.HelloWorldResponse_element>();
            response_map_x.put('response_x', response_x);
            WebServiceCallout.invoke(
              this,
              request_x,
              response_map_x,
              new String[]{endpoint_x,
              'http://tempuri.org/HelloWorld',
              'http://tempuri.org/',
              'HelloWorld',
              'http://tempuri.org/',
              'HelloWorldResponse',
              'tempuriOrg.HelloWorldResponse_element'}
            );
            response_x = response_map_x.get('response_x');
            return response_x.HelloWorldResult;
        }
    }
    public class HelloWorldResponse_element {
        public String HelloWorldResult;
        private String[] HelloWorldResult_type_info = new String[]{'HelloWorldResult','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true'};
        private String[] field_order_type_info = new String[]{'HelloWorldResult'};
    }
}
 
 
then I wrote wrapper apex class to call the apex code generated.
 
global class testSalesforce{
WebService static string test1(string name) {
tempuriOrg.testSalesForceSoap soap = new tempuriOrg.testSalesForceSoap();
return soap.HelloWorld('hello world !!! ' + name);}}
 
Then I created s-control to call this new webservice.
 
<html>
<head>
<script type="text/javascript" src="/js/functions.js"></script>
<script src="/soap/ajax/10.0/connection.js"></script>
<script src="/soap/ajax/10.0/apex.js"></script>
<script>
function X() {
try{
var result = sforce.apex.execute("testSalesforce" ,"test1", {arg:" hello"});
}
 catch (ex)
      {
       alert ("Failed : " + ex);
      }
}
</script>
</head>
<body onload=X()>
 <div id=userNameArea></div>
</body>
</html>
 
In security controls/remote site settings I have http://machinename url provided.
 
I am invoking the s-control on custom button click. when I give machinename in endpoint_x, I am getting:
System.CalloutException: Web service
    callout failed: Unexpected element. Parser was expecting element
    'http://schemas.xmlsoap.org/soap/envelope/:Envelope' but found ':HTML'
 
and when I give ip address in endpoint_x and remote site settings I am getting :
IO Exception: Read Timed out
 
What do I need to do to get it working?
 
Thanks,


Message Edited by NewToSF on 04-01-2008 11:52 AM
Hi,
       I want to know whether there are any report API's which we can use in VisualForce pages.

Thanks.

Hi,
       While generating  reports can we prepare data based on selection criteria as per columns selected in report options?

Like can we generate data using summarization information selected in report option before generating result?

Any help will be appreciated.

Thnaks.
Hi,

    I want to delete old data every time I  insert new data in Tables.

Is there any way to achive same thing ?

I am uploading data using sheduler.

Thnaks.
Hi,

    Can I use custom fields (more than one ) while creating relationship ( Master-Detail or Lookup) between two custom objects ?

Please  do reply if anybody has any solution ?

Thanks.

Hi,
     I am upserting records in a custom object using Apex in Visualforce.
The custom object has columns i.e. CustName & Month which are together used as primary key to identify unique record in table. I am updating already existing records based on this combined key or inserting new  if table dont have such record.

Can I use two external Id's like follows to do same:

Upsert CustomerTab__c CustName__c , Month__c;

I am facing error like

ErrorError: Compile Error: Variable does not exist: Month__c at line 353 column 35

I have both variables having External Id option selected.

Anybody has any solution for this?

Thanks.
Hi,

    I am using TODAY() function to compare date.
Facing following compile time error while saving page :

Error: Compile Error: Method does not exist or incorrect signature: TODAY() at line 30 column 76

Does TODAY() function is allowed in visualpages ?

Any help will be appreciated.

Thanks.



Hi

     Can I use apex DML statments in S-control ?

I want to insert and update records in a custom table from S-control, however facing problems with
insertion of data.

Any help will be appreciated.

Thanks.

Hi,

    Can we use Apex DML statements in S-Controls ?

Please, share if anyone kows about this.

Thanks.

Hi

         I come across following exception while trying to insert a record in a custom object.
DML currently Not allowed.

I want to just confirm it, whether DML is allowed or not in VisualForce pages controllers ?



Thanks.

Hi,
   
    I have created some summary reports.
When I put those to Dashboard to set them on Home Page, data is not displayed ?  Only x & y axes are shown without any graphical output.

Please, any useful help will be appreciated.

Thanks in advance.
Hi,

    In report creation of type summary,  we can perform grouping on maximum 3 columns.
Can't we increase this number to group more columns ?

Also in case of summary report if we perform grouping, output is not in horizontal table format.
Can we set that in horizontal format by any way ?


Thanks.


Hello,

       Can we create reports based on multiple objects ( Custom Objects ) ?
What I come across while creating reports is it uses single object, what if we want to prepare report based on data
which is in multple objets?

Please help if anybody has any solution for this.


Thanks.


       How to delete all records in a custom object simultaneoulsy ?
Is there any way to do same using SOQL ?



Hi,

    Can we use S-Controls while creating Reports in salesforce?


Thanks.
Hi,
       Can we use external web service as a data source to Reports in Salesforce.com and reflect that data run time in
 Reports in Salesforce.com.

Or it needs data to be stored in tables in Salesforce.com and then use it to create various reprorts based on that ..?

Any pointers in this regard will be helpful ..

Thans in Advance .
Hi ,

    Can we use third party database to create views in Salesforce.com and use those to create reports,
without replicating data in salesforce.com from thirdparty database.

Can anypone help in this regard ...

Thanks in advance.
Hi

    I am calling an external web service written in .NET from Salesforce.com.
Am facing following error :

Failed: {faultcode:'soapenv:Client',faultstring:'System.CalloutException: IO Exception: Read timed out

Does it mean Salesforce.com not able to get Web Service reference?

Would like to know the cause.

Please help if anybody faced the same.


Hi,

       I want to know  about invoking Data Loader from Apex.

Is there any API in Apex Language to invoke Data Loader in Salesforce.com itself  rather than  at  client machine.


Any hints will be helpful...

Thanks in advance.

Hello,
   
       Please guide me where i can get the working samples on how to call external dotnet web services with parameters and capture the response back and display it within force.com.

   I have created Apex Class from .NET WSDL. But while accessing methods of that class in a S-control I am not getting any response or error.  The generated apex class  is as follows:

//Generated by wsdl2apex

public class tempuriOrg {
public class HelloWorld_element {
private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true'};
private String[] field_order_type_info = new String[]{};
}
public class ServiceSoap {
public String endpoint_x = 'http://localhost:2351/SampleWebSer/Service.asmx';
private String[] ns_map_type_info = new String[]{'http://tempuri.org/', 'tempuriOrg', 'http://doc.sample.com/docSample', 'docSampleComDocsample'};
public String HelloWorld() {
tempuriOrg.HelloWorld_element request_x = new tempuriOrg.HelloWorld_element();
tempuriOrg.HelloWorldResponse_element response_x;
Map<String, tempuriOrg.HelloWorldResponse_element> response_map_x = new Map<String, tempuriOrg.HelloWorldResponse_element>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this,
request_x,
response_map_x,
new String[]{endpoint_x,
'http://tempuri.org/HelloWorld',
'http://tempuri.org/',
'HelloWorld',
'http://tempuri.org/',
'HelloWorldResponse',
'tempuriOrg.HelloWorldResponse_element'}
);
response_x = response_map_x.get('response_x');
return response_x.HelloWorldResult;
}
}
public class HelloWorldResponse_element {
public String HelloWorldResult;
private String[] HelloWorldResult_type_info = new String[]{'HelloWorldResult','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true'};
private String[] field_order_type_info = new String[]{'HelloWorldResult'};
}
}

I have accessed this class methods in S-control as :

<html>

<head>

<script type="text/javascript" src="/js/functions.js"></script>

<script src="/soap/ajax/11.0/connection.js"></script>

<script src="/soap/ajax/11.0/apex.js"></script>

<script>

function demo()
 {

var result = sforce.apex.execute('tempuriOrg.ServiceSoap' , 'HelloWorld' );

document.getElementById('userNameArea').innerHTML = result;

}

</script>

</head>

<body onload=demo()>

<div id=userNameArea>

</div>

</body>

</html>
Please tell me about  how to debug apex code step by step. Also any guidence related to above problem will be very helpful.



Thanks in advance ..

Hi all,

    I want to know whether we can implement the Import functionality in Apex like Salseforce.com has
provided for importing data from xls files.

If yes what are the available ways to get local machine file contents  in Salesforce.com? Are there any  APIs
in Salesforce.com to read buffer data  from remote  client  or it uses HTTP to transfer data?


Any pointers in the regard will be helpful.

Thanks in advance.
Hi,

    Can I use custom fields (more than one ) while creating relationship ( Master-Detail or Lookup) between two custom objects ?

Please  do reply if anybody has any solution ?

Thanks.

Hi,

    I am using TODAY() function to compare date.
Facing following compile time error while saving page :

Error: Compile Error: Method does not exist or incorrect signature: TODAY() at line 30 column 76

Does TODAY() function is allowed in visualpages ?

Any help will be appreciated.

Thanks.



Hi

         I come across following exception while trying to insert a record in a custom object.
DML currently Not allowed.

I want to just confirm it, whether DML is allowed or not in VisualForce pages controllers ?



Thanks.

Hello,

       Can we create reports based on multiple objects ( Custom Objects ) ?
What I come across while creating reports is it uses single object, what if we want to prepare report based on data
which is in multple objets?

Please help if anybody has any solution for this.


Thanks.

Hi,
       Can we use external web service as a data source to Reports in Salesforce.com and reflect that data run time in
 Reports in Salesforce.com.

Or it needs data to be stored in tables in Salesforce.com and then use it to create various reprorts based on that ..?

Any pointers in this regard will be helpful ..

Thans in Advance .
Hi,

       I want to know  about invoking Data Loader from Apex.

Is there any API in Apex Language to invoke Data Loader in Salesforce.com itself  rather than  at  client machine.


Any hints will be helpful...

Thanks in advance.

Hello,

       I want to know is there any way to transfer data between .NET application and Salesforce.com  and vice versa
other than Web Services.

Any pointers in this regard will be very helpful.

Thanks in advance ..


Hi,
 
  I have webservice written in .net located on my machine (I could see the web page located in same directory from URL type s-control in salesforce. so that means salesforce can access the files from that directory.)  I generated APex class from the WSDL(had to remove soap12 bindings).
 
//Generated by wsdl2apex
public class tempuriOrg {
    public class HelloWorld_element {
        public String arg;
        private String[] arg_type_info = new String[]{'arg','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true'};
        private String[] field_order_type_info = new String[]{'arg'};
    }
    public class testSalesForceSoap {
        public String endpoint_x = 'http://machineName/virtualdirectoryname/testSalesForce.asmx';
        private String[] ns_map_type_info = new String[]{'http://tempuri.org/', 'tempuriOrg'};
        public String HelloWorld(String arg) {
            tempuriOrg.HelloWorld_element request_x = new tempuriOrg.HelloWorld_element();
            tempuriOrg.HelloWorldResponse_element response_x;
            request_x.arg = arg;
            Map<String, tempuriOrg.HelloWorldResponse_element> response_map_x = new Map<String, tempuriOrg.HelloWorldResponse_element>();
            response_map_x.put('response_x', response_x);
            WebServiceCallout.invoke(
              this,
              request_x,
              response_map_x,
              new String[]{endpoint_x,
              'http://tempuri.org/HelloWorld',
              'http://tempuri.org/',
              'HelloWorld',
              'http://tempuri.org/',
              'HelloWorldResponse',
              'tempuriOrg.HelloWorldResponse_element'}
            );
            response_x = response_map_x.get('response_x');
            return response_x.HelloWorldResult;
        }
    }
    public class HelloWorldResponse_element {
        public String HelloWorldResult;
        private String[] HelloWorldResult_type_info = new String[]{'HelloWorldResult','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true'};
        private String[] field_order_type_info = new String[]{'HelloWorldResult'};
    }
}
 
 
then I wrote wrapper apex class to call the apex code generated.
 
global class testSalesforce{
WebService static string test1(string name) {
tempuriOrg.testSalesForceSoap soap = new tempuriOrg.testSalesForceSoap();
return soap.HelloWorld('hello world !!! ' + name);}}
 
Then I created s-control to call this new webservice.
 
<html>
<head>
<script type="text/javascript" src="/js/functions.js"></script>
<script src="/soap/ajax/10.0/connection.js"></script>
<script src="/soap/ajax/10.0/apex.js"></script>
<script>
function X() {
try{
var result = sforce.apex.execute("testSalesforce" ,"test1", {arg:" hello"});
}
 catch (ex)
      {
       alert ("Failed : " + ex);
      }
}
</script>
</head>
<body onload=X()>
 <div id=userNameArea></div>
</body>
</html>
 
In security controls/remote site settings I have http://machinename url provided.
 
I am invoking the s-control on custom button click. when I give machinename in endpoint_x, I am getting:
System.CalloutException: Web service
    callout failed: Unexpected element. Parser was expecting element
    'http://schemas.xmlsoap.org/soap/envelope/:Envelope' but found ':HTML'
 
and when I give ip address in endpoint_x and remote site settings I am getting :
IO Exception: Read Timed out
 
What do I need to do to get it working?
 
Thanks,


Message Edited by NewToSF on 04-01-2008 11:52 AM
Hi

    I am facing problem in installing Force.com IDE for Eclipse 3.3.x .

As per steps mentioned for  Force.com IDE Installation for Eclipse 3.3.x

I am facing problem at step 3 which is

Add the Force.com IDE Remote Site:

1. Launch Eclipse, and then click Help > Software Updates > Find and Install.

2. Select "Search for new features to install" and click "Next".

3. Add the Force.com IDE Remote Site:
  • Click "New Remote Site". The New Update Site dialog opens.
  • Set the Name to "Force.com IDE" and the URL to "Link: ", then click OK.
  • Select “Europa Discovery Site” and "Automatically select mirrors”, then click “Finish”. Eclipse will search the selected sites for the required plugins.
here at "http://www.adnsandbox.com/eclipsetoolkit/release" link nothing is there except a redirection link to Force.com IDE Installation for Eclipse 3.3.x  is there

thats why Eclipse Update Manager is showing error as follow :

Network connection problems encountered during search.


  Unable to access "http://download.eclipse.org/releases/europa".
    Error parsing site stream. [Premature end of file.]
    Premature end of file.
    Error parsing site stream. [Premature end of file.]
    Premature end of file.
  Unable to access "http://www.adnsandbox.com/eclipsetoolkit/release".
    Error parsing site stream. [Premature end of file.]
    Premature end of file.
    Error parsing site stream. [Premature end of file.]
    Premature end of file.


Can anybody help me to get Force.com paltform installed.

Thanking in advance.
  • March 18, 2008
  • Like
  • 0
Hi

    I am facing problem in installing Force.com IDE for Eclipse 3.3.x .

As per steps mentioned for  Force.com IDE Installation for Eclipse 3.3.x

I am facing problem at step 3 which is

Add the Force.com IDE Remote Site:

1. Launch Eclipse, and then click Help > Software Updates > Find and Install.

2. Select "Search for new features to install" and click "Next".

3. Add the Force.com IDE Remote Site:
  • Click "New Remote Site". The New Update Site dialog opens.
  • Set the Name to "Force.com IDE" and the URL to "Link: ", then click OK.
  • Select “Europa Discovery Site” and "Automatically select mirrors”, then click “Finish”. Eclipse will search the selected sites for the required plugins.
here at "http://www.adnsandbox.com/eclipsetoolkit/release" link nothing is there except a redirection link to Force.com IDE Installation for Eclipse 3.3.x  is there

thats why Eclipse Update Manager is showing error as follow :

Network connection problems encountered during search.


  Unable to access "http://download.eclipse.org/releases/europa".
    Error parsing site stream. [Premature end of file.]
    Premature end of file.
    Error parsing site stream. [Premature end of file.]
    Premature end of file.
  Unable to access "http://www.adnsandbox.com/eclipsetoolkit/release".
    Error parsing site stream. [Premature end of file.]
    Premature end of file.
    Error parsing site stream. [Premature end of file.]
    Premature end of file.


Can anybody help me to get Force.com paltform installed.

Thanking in advance.
  • March 18, 2008
  • Like
  • 0
Hi

    I am facing problem in installing Force.com IDE for Eclipse 3.3.x .

As per steps mentioned for  Force.com IDE Installation for Eclipse 3.3.x

I am facing problem at step 3 which is

Add the Force.com IDE Remote Site:

1. Launch Eclipse, and then click Help > Software Updates > Find and Install.

2. Select "Search for new features to install" and click "Next".

3. Add the Force.com IDE Remote Site:
  • Click "New Remote Site". The New Update Site dialog opens.
  • Set the Name to "Force.com IDE" and the URL to "Link: ", then click OK.
  • Select “Europa Discovery Site” and "Automatically select mirrors”, then click “Finish”. Eclipse will search the selected sites for the required plugins.
here at "Link:" =  "http://www.adnsandbox.com/eclipsetoolkit/release" link nothing is there except a redirection link to Force.com IDE Installation for Eclipse 3.3.x  is there

thats why Eclipse Update Manager is showing error as follow :

Network connection problems encountered during search.


  Unable to access "http://download.eclipse.org/releases/europa".
    Error parsing site stream. [Premature end of file.]
    Premature end of file.
    Error parsing site stream. [Premature end of file.]
    Premature end of file.
  Unable to access "http://www.adnsandbox.com/eclipsetoolkit/release".
    Error parsing site stream. [Premature end of file.]
    Premature end of file.
    Error parsing site stream. [Premature end of file.]
    Premature end of file.


Can anybody help me to get Force.com paltform installed.

Thanking in advance.