• john3
  • NEWBIE
  • 0 Points
  • Member since 2010

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

Can anyone answer me the following:

 

Accounts and Contacts is parent child relationship which are standard objects out of box. In one of our class we attended we were told that we can only go 3 level down for parent child.

 

So is it that we can have Account -> Contact -> and another custom object which makes the total to 3.

 

Or

 

As Account, Contact objects which is out of box and you can still go 3 additional levels below Contacts which could be custom objects which will give us 5 objects (i.e. 2 standard and 3 custom) related as parent child.

 

 

thank you

  • September 07, 2010
  • Like
  • 0

hi to evevryone,

 

in an organization we send 1000 email in a day,

if i send morethan 1000 emails in a day, how it will work?,

those mails will queue to next day or those mails will delete????

 

thank you

  • September 01, 2010
  • Like
  • 0

Hi,

can somebody help me out where can i get the xml schema code for the ups integration shipping WSDl.

 

thank you

 

 

  • August 25, 2010
  • Like
  • 0

Hi i am new apex and web services.

 

i am trying to getresponse from webserivces but i am getting error like below,

 

System.NullPointerException: Attempt to de-reference a null object
 

Class.smk.tempuriOrgTaxwareserviceTaxwareservic.TaxwareServiceSoap.OpenFiles: line 114, column 41 Class.smk.openfiledemo.getresponse: line 18, column 12 External entry point

 

and my class is

 

public class openfiledemo{

Account acc;
 
tempuriOrgTaxwareserviceTaxwareservic.TaxwareServiceSoap stub =
       new tempuriOrgTaxwareserviceTaxwareservic.TaxwareServiceSoap();   

String response;

public openfiledemo(ApexPages.StandardController stdcontroller){

this.acc = (Account)stdController.getRecord();
  
}

public String getresponse(){

response = stub.OpenFiles();
system.debug('Test Reponse>>>>>>>>>>>>>>>>>>>>>>>'+response);                                                    
return response;
}

}

 

 

and wsdl class line 114 is

 

system.debug('output is>>>>>>>>>>'+ response_x.OpenFilesResult);

thank you

 

  • August 23, 2010
  • Like
  • 0

Hi to everyone,

i am trying to get a response from webservices. but i can't get response.

i am getting the following error..

 

 

ERROR The requested URL could not be retrieved


While trying to retrieve the URL

The following error was encountered:

  • Connection to 10.202.26.4 Failed

The system returned:

 (101) Network is unreachable

The remote host or network may be down. Please try the request again.

 

I am thinking that it's a firewall issue, and can somebody help me out with solution.

 

thank you

 

 

  • August 23, 2010
  • Like
  • 0

hi can somebody help me how to solve this issue

  • August 18, 2010
  • Like
  • 0

Hi,

 

currently i am working on web serivces.

i inserted the generated wsdl into class. it is saved successfully. this is soap file that i have in the web serivces..

 

public class TaxwareServiceSoap {
        public String endpoint_x = 'http://www.webservicex.net:9400/webservices/TaxwareService/TaxwareService.asmx';
        public Map<String,String> inputHttpHeaders_x;
        public Map<String,String> outputHttpHeaders_x;
        public String clientCertName_x;
        public String clientCert_x;
        public String clientCertPasswd_x;
        public Integer timeout_x;
        private String[] ns_map_type_info = new String[]{'http://tempuri.org/TaxwareService/TaxwareService', 'tempuriOrgTaxwareserviceTaxwareservic'};
        public String OpenFiles() {
            tempuriOrgTaxwareserviceTaxwareservic.OpenFiles_element request_x = new tempuriOrgTaxwareserviceTaxwareservic.OpenFiles_element();
            tempuriOrgTaxwareserviceTaxwareservic.OpenFilesResponse_element response_x;
            Map<String, tempuriOrgTaxwareserviceTaxwareservic.OpenFilesResponse_element> response_map_x = new Map<String, tempuriOrgTaxwareserviceTaxwareservic.OpenFilesResponse_element>();
            response_map_x.put('response_x', response_x);
            WebServiceCallout.invoke(
              this,
              request_x,
              response_map_x,
              new String[]{endpoint_x,
              'http://tempuri.org/TaxwareService/TaxwareService/OpenFiles',
              'http://tempuri.org/TaxwareService/TaxwareService',
              'OpenFiles',
              'http://tempuri.org/TaxwareService/TaxwareService',
              'OpenFilesResponse',
              'tempuriOrgTaxwareserviceTaxwareservic.OpenFilesResponse_element'}
            );
            response_x = response_map_x.get('response_x');
            return response_x.OpenFilesResult;

        }
        public String CloseFiles() {
            tempuriOrgTaxwareserviceTaxwareservic.CloseFiles_element request_x = new tempuriOrgTaxwareserviceTaxwareservic.CloseFiles_element();
            tempuriOrgTaxwareserviceTaxwareservic.CloseFilesResponse_element response_x;
            Map<String, tempuriOrgTaxwareserviceTaxwareservic.CloseFilesResponse_element> response_map_x = new Map<String, tempuriOrgTaxwareserviceTaxwareservic.CloseFilesResponse_element>();
            response_map_x.put('response_x', response_x);
            WebServiceCallout.invoke(
              this,
              request_x,
              response_map_x,
              new String[]{endpoint_x,
              'http://tempuri.org/TaxwareService/TaxwareService/CloseFiles',
              'http://tempuri.org/TaxwareService/TaxwareService',
              'CloseFiles',
              'http://tempuri.org/TaxwareService/TaxwareService',
              'CloseFilesResponse',
              'tempuriOrgTaxwareserviceTaxwareservic.CloseFilesResponse_element'}
            );
            response_x = response_map_x.get('response_x');
            return response_x.CloseFilesResult;
        }

this is soap file i have.

i wrote a class and visualforce page to get response for openfile and closefile 

 

the class is like this...

 

public class openfiledemo{

Account acc;
tempuriOrgTaxwareserviceTaxwareservic.TaxwareServiceSoap stub = 
        new tempuriOrgTaxwareserviceTaxwareservic.TaxwareServiceSoap();

String response;

public openfiledemo(ApexPages.StandardController stdController){
    this.acc = (Account)stdController.getRecord();
}    



public String getresponse(){
system.debug('output>>>>>>>>>>>>>>>>'+stub.OpenFiles());
return stub.OpenFiles();                                                            
}
    
/*
tempuriOrgTaxwareserviceTaxwareservic.OpenFilesResponse_element response= 
        new tempuriOrgTaxwareserviceTaxwareservic.OpenFilesResponse_element();
            
public tempuriOrgTaxwareserviceTaxwareservic.OpenFilesResponse_element 
                                                            getresponse(){
response = stub.OpenFiles();
return response;                                                            
}

*/   
    
}

and i created a custom button in the visualforce page to call the response,

and the visualforce page is 

 

<apex:page standardController="Account" extensions="openfiledemo">
<apex:form >
    <apex:commandButton action="getresponse" value="Openfile"/>
</apex:form>
</apex:page>

and i check the apex debug log details, it says successful.

debug details are
StatusSuccessApplicationBrowser
Request TypeApplicationOperation/apex/smk__openfile
Duration (ms)77Log Size (bytes)1,774
Log
19.0 APEX_CODE,DEBUG;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;VALIDATION,INFO;WORKFLOW,INFO
22:28:41.488|EXECUTION_STARTED
22:28:41.488|CODE_UNIT_STARTED|[EXTERNAL]|066A0000000NWYU|VF: /apex/smk__openfile
22:28:41.488|CODE_UNIT_STARTED|[EXTERNAL]|01pA0000000TIG8|openfiledemo <init>
22:28:41.488|METHOD_ENTRY|[3,8]|01pA0000000THZH|tempuriOrgTaxwareserviceTaxwareservic.tempuriOrgTaxwareserviceTaxwareservic()
22:28:41.489|METHOD_EXIT|[3,8]|tempuriOrgTaxwareserviceTaxwareservic
22:28:41.489|CONSTRUCTOR_ENTRY|[5,9]|01pA0000000THZH|new: tempuriOrgTaxwareserviceTaxwareservic.TaxwareServiceSoap
22:28:41.489|CONSTRUCTOR_EXIT|[5,9]|new: tempuriOrgTaxwareserviceTaxwareservic.TaxwareServiceSoap
22:28:41.489|METHOD_ENTRY|[10,25]|ApexPages.StandardController.getRecord()
22:28:41.505|METHOD_EXIT|[10,25]|ApexPages.StandardController.getRecord()
22:28:41.505|CODE_UNIT_FINISHED|openfiledemo <init>
22:28:41.560|CUMULATIVE_LIMIT_USAGE
22:28:41.560|LIMIT_USAGE_FOR_NS|smk|
  Number of SOQL queries: 0 out of 100
  Number of query rows: 0 out of 10000
  Number of SOSL queries: 0 out of 20
  Number of DML statements: 0 out of 100
  Number of DML rows: 0 out of 10000
  Number of script statements: 12 out of 200000
  Maximum heap size: 0 out of 3000000
  Number of callouts: 0 out of 10
  Number of Email Invocations: 0 out of 10
  Number of fields describes: 0 out of 10
  Number of record type describes: 0 out of 10
  Number of child relationships describes: 0 out of 10
  Number of picklist describes: 0 out of 10
  Number of future calls: 0 out of 10
  Number of find similar calls: 0 out of 10
  Number of System.runAs() invocations: 0 out of 20

22:28:41.560|CUMULATIVE_LIMIT_USAGE_END

22:28:41.560|CODE_UNIT_FINISHED|VF: /apex/smk__openfile
22:28:41.560|EXECUTION_FINISHED

i tried all these things but i am not getting the openfile getresponse from the webservices.

the error will be like this.... Illegal view ID getresponse. The ID must begin with /
can anybody help me out with the solutions.its urgent
thank you
  • August 18, 2010
  • Like
  • 0