// shall I write some keywords here to boost search engine ranking?

Saturday, December 27, 2008

Axis2 WSDL2Java error for SOAP Encoding

Recently had hit the SchemaCompilationException when using Axis2 wsdl2java to generate client stub from a WSDL file.

After some google, had found this page is describe same problem as what I face. And the reason for the exception is due to Axis2 do not support SOAP Encoding.

Fortunately after a while, my colleague had found the solution. Instead of using ADB for data binding, use XMLBeans. Below is example of the command:

wsdl2java -uri myService.wsdl -d xmlbeans

6 comments:

joj70 said...

Thanks for the advice!
I was facing the same problem.

Anonymous said...

Yes, it is fantastic! The solution work's! I wonder why we can not find this on the official pages.

Anonymous said...

Thanks alot! You saved me hours!

Andrew McKnight said...

Thanks for the help. That worked for me too.

kusum said...

awesome :-)

Atul Pandey said...

Great Explanation....After searching a lot hit your solution and it works...Thanks buddy