Skip to main content
Hi friendsI have two salesforce accounts, source and destination. In source, I have a class which returns a list of accounts:

global class soapdemo1

{

    webservice static List<Account> CreateAccount(string accName)

{

    //some code here to create multiple accounts

     //this class compiles successfully

}}

In source, for soapdemo1 class, I generate the wsdl file and name it as generalwsdl.wsdl, and I create the partnerwsdl.wsdl file.

In destination, when I upload generalwsdl.wsdl, click parse, I get no errors. Now, when I click the generate apex code button, it says error: "Unsupported schema type: {http://www.w3.org/2001/XMLSchema}anyType".

I changed anyType to string, but now I get a different error:

"Unable to find complexType for {http://soap.sforce.com/schemas/class/SoapDemo1,JunctionIdListNames"

Then, I change string to Account, but it results in same error as above.

I am at logger heads with this issue, so please advise me how to resolve this. Please let me know if I need to provide any additioanl inputs.

Thanks

Pooja

 
1 resposta
  1. 7 de set. de 2016, 15:01
    Hi Pooja,

    In future, please post your WSDL so that others can help you better.

    There are several reasons which can cause this. Some of these are documented on these threads.

    Here are a few examples of people who have fixed this:

    Kindly mark this as solved if it's resolved.

    Best Regards,

    Nagendra.P

     
0/9000