I have two salesforce orgs and I am trying to do SOAP integration between these two via WSDL import.
From the first Salesforce Org (let us say S1)
I did the following
a) Clicked on the "WSDL" of my webservice class.
b) When I clicked on the hyperlink though, it took me to a web page like shown below.
c) So I saved the webpage as ".wsdl" shown below.
d) In the second salesforce org (let us say S2) i did the following.
Clicked on "Generate from WSDL"
e) It asked me to choose the file and here I chose the "AccountAdd.wsdl" file
f) It gave me a success response for parsing as shown below.
g) But when I try to generate the apex code it gave me the following error.
I have also attached the class that I tried for this activity.
global class AccountAdd
{
webservice static Account AddingNewAccount(Account a)
{
//custom logic
return null;
}
}
This is just a placeholder class without adding actual methods which I will add later. For now I just wanted to try an import/export of WSDL.
Also I have added the second salesforce org (S2) in the Remote Site Settings on S1 as shown below.
Question :
Can someone please let know as to why I am getting error in S2 (Step g)when trying to generated apex code of the AccountAdd.wsdl ?