Monday 21 October 2013 "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 At: 11:47

But its the fullish error because if it does not support the standard 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/

Thursday 17 October 2013

Java is a general-purpose, concurrent, class-based, object-oriented computer programming language that is specifically designed to have as few implementation dependencies as possible. 



It is intended to let application developers "write once, run anywhere" (WORA), meaning that code that runs on one platform does not need to be recompiled to run on another. 

Java applications are typically compiled to bytecode (class file) that can run on any Java virtual machine (JVM) regardless of computer architecture. Java is, as of 2012, one of the most popular programming languages in use, particularly for client-server web applications, with a reported 9 million developers. 

Java was originally developed by James Gosling at Sun Microsystems (which has since merged into Oracle Corporation) and released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and C++, but it has fewer low-level facilities than either of them.

The original and reference implementation Java compilers, virtual machines, and class libraries were developed by Sun from 1991 and first released in 1995. As of May 2007, in compliance with the specifications of the Java Community Process, Sun re licensed most of its Java technologies under the GNU General Public License. Others have also developed alternative implementations of these Sun technologies, such as the GNU Compiler for Java (bytecode compiler), GNU Classpath (standard libraries), and IcedTea-Web (browser plugin for applets).