• Madhu 3027
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
I have implemented the start method but still am getting above error.
below is my code. could anyone explain me.
global class Sample_Contactupdate_Batch implements Database.batchable<Contact> {
    
    global database.QueryLocator start(Database.BatchableContext jobid)
    {
        String query='select id,name,DOB__c from Contact where createdDate<=180' ;
          return  database.getQueryLocator(query);
        // we can query upto 50 million records
    }
    global void execute(Database.BatchableContext jobid,list<Contact> scope)
    {
        List<Contact> ctc=new List<Contact>();
        //Contact c=new Contact();
        for(Contact c:scope)
        {
            c.DOB__c=system.today+200;
           ctc.add(c);
        }
        update ctc;
    }
    global void finish(database.BatchableContext jobid)
    {
        
    }

}
Hi,

I am newbie to web services, I wrote a simple Apex class and made it as Apex SOAP web service, I tried to import the WSDL for my web service after importing the enterprise WSDL for my salesforce org on SOAP UI. Unfortunately I get the error as below,

Source: file:/C:/Users/Mvision/Desktop/New%20folder/SOAPTEST1.xml
Error: type 'RecordTypesSupported@http://soap.sforce.com/schemas/class/SOAPTEST1' not found.
Source: file:/C:/Users/Mvision/Desktop/New%20folder/SOAPTEST1.xml
Error: type 'RelationshipReferenceTo@http://soap.sforce.com/schemas/class/SOAPTEST1' not found.
Source: file:/C:/Users/Mvision/Desktop/New%20folder/SOAPTEST1.xml
Error: type 'SearchLayoutButtonsDisplayed@http://soap.sforce.com/schemas/class/SOAPTEST1' not found.
Source: file:/C:/Users/Mvision/Desktop/New%20folder/SOAPTEST1.xml
Error: type 'SearchLayoutFieldsDisplayed@http://soap.sforce.com/schemas/class/SOAPTEST1' not found.


Here is my code:

global with sharing class SOAPTEST1
{
webservice static List<Contact> OneCon(List<Contact> Con)
{
List<Contact> cc=[select Id, Name from Contact where SystemModStamp >=LAST_N_DAYS:30];
return cc;
}
}

I tried the same code last week and was able to get the expected result on SOAP UI, I remember that I did not make any changes to the code, not sure what went wrong since then I am unable to import the wsdl for this. I followed the below blog which gave me all clear explainations, but I am stuck with my code.

http://blog.deadlypenguin.com/blog/2012/02/03/salesforce-and-soapui/

Any help is much appreciated, thanks in advance:-)