• Rachit Kumar Jain
  • NEWBIE
  • 30 Points
  • Member since 2014
  • Salesforce Developer
  • Advanz 101 Systems Pvt. Ltd.


  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 10
    Questions
  • 8
    Replies
Please Help. Want to remove Namespace from xml tag-<AddressValidationRequest xmlns="http://fedex.com/ws/addressvalidation/v4">

 
XML-
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <env:Header />
   <env:Body>
      <AddressValidationRequest xmlns="http://fedex.com/ws/addressvalidation/v4">
         <WebAuthenticationDetail>
            <UserCredential>
               <Key>*****</Key>
               <Password>****</Password>
            </UserCredential>
         </WebAuthenticationDetail>
         <ClientDetail>
            <AccountNumber>****</AccountNumber>
            <MeterNumber>****</MeterNumber>
            <Localization>
               <LanguageCode>EN</LanguageCode>
               <LocaleCode>us</LocaleCode>
            </Localization>
         </ClientDetail>
         <TransactionDetail>
            <CustomerTransactionId>AddressValidationRequest</CustomerTransactionId>
            <Localization>
               <LanguageCode>EN</LanguageCode>
               <LocaleCode>us</LocaleCode>
            </Localization>
         </TransactionDetail>
         <Version>
            <ServiceId>aval</ServiceId>
            <Major>4</Major>
            <Intermediate>0</Intermediate>
            <Minor>0</Minor>
         </Version>
         <InEffectAsOfTimestamp>2017-05-10T14:30:03.1982091+05:30</InEffectAsOfTimestamp>
         <AddressesToValidate>
            <ClientReferenceId />
            <Contact>
               <PersonName>*****</PersonName>
               <CompanyName>*****</CompanyName>
               <PhoneNumber>*****</PhoneNumber>
               <EMailAddress>*****</EMailAddress>
            </Contact>
            <Address>
               <StreetLines>*****</StreetLines>
               <City>*****</City>
               <StateOrProvinceCode>CA</StateOrProvinceCode>
               <PostalCode>94608</PostalCode>
               <CountryCode>US</CountryCode>
               <Residential>true</Residential>
            </Address>
         </AddressesToValidate>
      </AddressValidationRequest>
   </env:Body>
</env:Envelope>`

WSDL class generated by salesforce-
 
public class AddressValidationRequest {
        public fedexComWsAddressvalidationV4.WebAuthenticationDetail WebAuthenticationDetail;
        public fedexComWsAddressvalidationV4.ClientDetail ClientDetail;
        public fedexComWsAddressvalidationV4.TransactionDetail TransactionDetail;
        public fedexComWsAddressvalidationV4.VersionId Version;
        public String InEffectAsOfTimestamp;
        public fedexComWsAddressvalidationV4.AddressToValidate[] AddressesToValidate;
        private String[] WebAuthenticationDetail_type_info = new String[]{'WebAuthenticationDetail','http://fedex.com/ws/addressvalidation/v4',null,'1','1','false'};
        private String[] ClientDetail_type_info = new String[]{'ClientDetail','http://fedex.com/ws/addressvalidation/v4',null,'1','1','false'};
        private String[] TransactionDetail_type_info = new String[]{'TransactionDetail','http://fedex.com/ws/addressvalidation/v4',null,'0','1','false'};
        private String[] Version_type_info = new String[]{'Version','http://fedex.com/ws/addressvalidation/v4',null,'1','1','false'};
        private String[] InEffectAsOfTimestamp_type_info = new String[]{'InEffectAsOfTimestamp','http://fedex.com/ws/addressvalidation/v4',null,'0','1','false'};
        private String[] AddressesToValidate_type_info = new String[]{'AddressesToValidate','http://fedex.com/ws/addressvalidation/v4',null,'0','-1','false'};
        private String[] apex_schema_type_info = new String[]{'http://fedex.com/ws/addressvalidation/v4','true','true'};
        private String[] field_order_type_info = new String[]{'WebAuthenticationDetail','ClientDetail','TransactionDetail','Version','InEffectAsOfTimestamp','AddressesToValidate'};
    }

    public class AddressValidationServicePort {
        public String endpoint_x = 'https://wsbeta.fedex.com:443/web-services/addressvalidation';
        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://fedex.com/ws/addressvalidation/v4', 'fedexComWsAddressvalidationV4'};
        public fedexComWsAddressvalidationV4.AddressValidationReply addressValidation(fedexComWsAddressvalidationV4.WebAuthenticationDetail WebAuthenticationDetail,fedexComWsAddressvalidationV4.ClientDetail ClientDetail,fedexComWsAddressvalidationV4.TransactionDetail TransactionDetail,fedexComWsAddressvalidationV4.VersionId Version,String InEffectAsOfTimestamp,fedexComWsAddressvalidationV4.AddressToValidate[] AddressesToValidate) {
            fedexComWsAddressvalidationV4.AddressValidationRequest request_x = new fedexComWsAddressvalidationV4.AddressValidationRequest();
            request_x.WebAuthenticationDetail = WebAuthenticationDetail;
            request_x.ClientDetail = ClientDetail;
            request_x.TransactionDetail = TransactionDetail;
            request_x.Version = Version;
            request_x.InEffectAsOfTimestamp = InEffectAsOfTimestamp;
            request_x.AddressesToValidate = AddressesToValidate;
            fedexComWsAddressvalidationV4.AddressValidationReply response_x;
            Map<String, fedexComWsAddressvalidationV4.AddressValidationReply> response_map_x = new Map<String, fedexComWsAddressvalidationV4.AddressValidationReply>();
            response_map_x.put('response_x', response_x);
            WebServiceCallout.invoke(
              this,
              request_x,
              response_map_x,
              new String[]{endpoint_x,
              'http://fedex.com/ws/addressvalidation/v4/addressValidation',
              'http://fedex.com/ws/addressvalidation/v4',
              'AddressValidationRequest',
              'http://fedex.com/ws/addressvalidation/v4',
              'AddressValidationReply',
              'fedexComWsAddressvalidationV4.AddressValidationReply'}
            );
            response_x = response_map_x.get('response_x');
            return response_x;
        }

​

 
Hello guys,

I want to show client website in their salesforce org but both iframe and web tab method is not working.Can you please help me with this use case.  Thanks
Here are the images-

Web tab implementation

Iframe implementation in visualforce page
Hi,
I was going through trailhead for lightning builder but when i install custom component its not showing in drop down list in builder. Also i try a appexchange app for custom controller but it also not showing anything
error- System.NullPointerException: Attempt to de-reference a null object
Code-To test trigger After insert.

//after insert statement. Note testcase is a listof Case. 
for(case c:testcase)
      {  AssignmentRule AR = new AssignmentRule();
        AR = [select id from AssignmentRule where SobjectType = 'Case' and Active = true limit 1];
        System.debug('Assignment rule id' + c.getOption().assignmentRuleHeader.assignmentRuleId);//c
        System.assertEquals(c.getOption().assignmentRuleHeader.assignmentRuleId,AR.id);//c
     
      }
I am a Salesforce developer and my sales manager wants to shift sales on cloud but our CEO As ask As to research and report how actually it does??

Can you guys help me on these... I have write a complete research on it and i am a total begginner in terms of sales(As I am a developer)
Recently we have develop a CRM of office management for a company . It has 3 user profile.. but the office staff number upto 150 individual.. Should i have to bur 150 user license?? Or their a way to use only 3 user and update list like last modified by to each individual?
Is there a way?? formula  field- function or a apex code that convert string to a character array?? I want to select numeric data in Company Plans text field.
We have a client who is currently working on jhoomla CRM for his Company.We are trying to convice him to use Salesforce. Please tell me Some Solid points that makes salesforce CRM much effective ...
I want to change the display name in page layouts... Suppose the custom field name is a code (For easy mapping while importing data) and display name is in decoded form.... Can i do this??
Recently we have develop a CRM of office management for a company . It has 3 user profile.. but the office staff number upto 150 individual.. Should i have to bur 150 user license?? Or their a way to use only 3 user and update list like last modified by to each individual?
Looking for someone with Salesforce developer skills who would like to work on a client portal project with our nonprofit.  We are in the exploratory stages of this project, and you would have a lot of flexibility and say in defining the project  - Especially interested in volunteers who would like to gain experience, with the possiblity of employment/contract work. 
Respond here or just email your resume and letter of intent to opportunities(at)amhomelife(dot)org  Subject line: SF Portal Developer
 
error- System.NullPointerException: Attempt to de-reference a null object
Code-To test trigger After insert.

//after insert statement. Note testcase is a listof Case. 
for(case c:testcase)
      {  AssignmentRule AR = new AssignmentRule();
        AR = [select id from AssignmentRule where SobjectType = 'Case' and Active = true limit 1];
        System.debug('Assignment rule id' + c.getOption().assignmentRuleHeader.assignmentRuleId);//c
        System.assertEquals(c.getOption().assignmentRuleHeader.assignmentRuleId,AR.id);//c
     
      }
We have a client who is currently working on jhoomla CRM for his Company.We are trying to convice him to use Salesforce. Please tell me Some Solid points that makes salesforce CRM much effective ...
Hi all,

I am new joing in SF . please help me how can be start in SF ( on WF, VF ) in Practical tranning.  any books, Link

Regards,
Abhishek
I want to change the display name in page layouts... Suppose the custom field name is a code (For easy mapping while importing data) and display name is in decoded form.... Can i do this??
HI,

I want to group address fields i.e, city,state,country etc.

I want it to group exactly like account address details.

How can i achieve this by standard functionality, what i need to enable?

Plz, reply me asap.