Monday, 21 October 2013

Salesforce.com "Generate APEX Classes From WSDL"

Hello Friends,
I decided to write this post because I was victim of the problem while creating classes from WSDL.
I was getting the following errors while generating it: 

  • Error: Failed to parse wsdl: Unsupported Schema element found http://www.w3.org/2001/XMLSchema:complextype. At: 11:47


But its the fullish error because if it does not support the standard http://www.w3.org/2001/XMLSchema Schema then which Schema it supports?
I was unable to fix it & I spent almost a day to achieve this but it didn't happen so I was frustrated.
As You can see in the above picture, I was using the most preferable browser that is "Chrome" to create the WSDL From google's API site and to generate APEX classes from my SF org.
I also tried Firefox.
But I was unable to do it, So I tried to use some other browser(i.e.Internet Explorer).
You might thing, He is such a fool but wait before you thing that let me tell you that it was the solution which worked for me.


So Here is the "MANTRA" to achieve it 

  1. Use the Internet Explorer to create any WSDL from any site.

  2. While creating WSDL, don't copy paste the code in any file. Instead save the entire file as .wsdl document.

  3. Then you can use your favorite Web browser to generate Apex class from this WSDL.

So you might be wondering what was the problem?
Problem was, Chrome created a WSDL which was not supported by S.F.
(Don't know the internal problem)
After getting this shocking result I switched to I.E. rather than 
Chrome but only for "Generating Apex classes from WSDL".
Hope this post will help you guys.
Enjoy... \m/..(^_^)..\m/

5 comments:

  1. Data are the main part in creating a company's revenue. Managing those data is highly chanllengable in this least secured world. But there are veterans whom we can trust to safeguard our data. Thanks for sharing this wonderful information in here. It helped me a lot.

    Salesforce course in chennai | Salesforce developer training in chennai

    ReplyDelete
    Replies
    1. Great Article Cloud Computing Projects

      Networking Projects

      Final Year Projects for CSE

      JavaScript Training in Chennai

      JavaScript Training in Chennai

      The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

      Delete

  2. this blog is really useful and it is very interesting thanks for sharing , it is really good and exclusive.

    php Training in Chennai

    ReplyDelete