Skip to main content Build the future with Agentforce at TDX in San Francisco or on Salesforce+ on March 5–6. Register now.
Hi,

I have to unable to reslove this situation. how to aviod  Unknown element: import error in generating proxy classes.

Develop-Apex classes-generate from wsdl-Upload a wsdl file-parse wsdl.

then i got the error message  Error: Failed to parse wsdl: Unknown element: import. 

pls can anyone help me.

Thanks 

Venkat
5 answers
  1. Apr 17, 2015, 8:13 AM
    Hi Varun,

    Thanks for the giving reply. i am going to do manually. but i have a few doubts about wsdl file. the below written wsdl file format is correct or not.

    <dfination>

        <type>

             <schema>

                   <defination>

                          <type>

                          <type>

                    <defination>

             </schema>

        </type>

    </defination>

    and one more thing namespace is mandatory  attribute in wsdl. please help me.

    Thanks

    Venkat
  2. Apr 16, 2015, 5:04 PM
    I do it manually. That may be the route to go. I am not aware of any such tools.

    P.S. Please mark the answer solved to help others.
  3. Apr 16, 2015, 4:31 PM
    Hi varun,

    Thank you varun for giving the quick reply. you said correct but how to merge the WSDL/schema. please let me know any mergeing tools are there. how to process the mergeing WSDL/schema.

    Thanks

    venkat
  4. Apr 16, 2015, 4:11 PM
    I think your WSDL file is referencing/importing another schema. This is not supported by Force.com platform. Please try to merge the WSDL/schema that the main WSDL is referencing in one WSDL and then import it in Salesforce.com.
0/9000