fault “MyFault” in operation “MyOperation” does not have a SOAP fault extenstion

Got this error while trying to do “Create J2EE 1.4 Java Web Service from WSDL” using JDev 10.1.3.5. This was caused by incorrect definition of fault binding.

Error went away after changing

    <fault name="MyFault">
      <soap:body use="literal" parts="faultpart"/>
    </fault>
  </operation>
</binding>

to

    <fault name="MyFault">
      <soap:fault name="MyFault" use="literal"/>
    </fault>
  </operation>
</binding>
This entry was posted in soa. Bookmark the permalink.