My first post,pretty excited.I want to make a soap api call which insert multiple records. I am using 2 different salesforce instances. destination side
global with sharing class SoapDemo1
{
global class AccountWrapper
{
webservice string Name;
AccountWrapper(Account a)
{
this.Name=a.Name;
}
}
webservice static List<Account> CreateMultipleAccounts(List<Account> accs)
{
List<Account> FinalList=new List<Account>();
for(Account a:accs)
{
Account a1=new Account();
a1.Name=a.Name;
FinalList.add(a1);
}
if (FinalList.size() > 0)
{
Database.Insert(FinalList);
}
return FinalList;
}
}
I generated the class wsdl file and also partner wsdl file
****source side:**** I upload the class wsdl file generated from destination, when I parse no errors, but when I click Generated Apex code, it shows error as:
Unable to find complexType for {http://soap.sforce.com/schemas/class/SoapDemo1}anyType
I changed anyType to string and again repeated the process but it shows error as:
Unable to find complexType for {http://soap.sforce.com/schemas/class/SoapDemo1}JunctionIdListNames
Please help me out