AXIS2 Web Service in eclipse through Top Down Approach-java.lang.RuntimeException: Element QName is null

Based on this tutorial, But used my own WSDL file.
I used Top Down approach where to create java codes from the WSDL file. But at “Axis 2 Web Service Skeleton Java Bean Configuration” wizard window I clicked next and there occurred an exception as follows saying Element QName is null.

SOLUTION

Add the following XML element within
tags and inside
tag which has a wsdl:fault (Particular operation should throw an exception). So I had to add,

          

It appears as follows,

<binding>
         
  <operation name="GetBalance">
      <operation soapaction="http://it4110.itfac.mrt.ac.lk/2010/074005N/GetBalance"></operation>
      <input />
        
      
      <output>
        
      </output>
     <fault name="fault">
            <fault name="fault" use="literal"></fault>
      </fault>
    </operation>
  </binding>
Here the getBalance operation throws an exception, so for the wsdl:binding description the given element need to be added. Otherwise it gives an exception at Top Down Approach with eclipse.

Comments

Popular posts from this blog

PHP-SOAP web service with out a WSDL

How to add Maven dependency from a relative path referencing a local jar

Manually install a maven dependency