On page 467 of RMH
J2EE Web Services book, it seems one can declare a fault message with a type.
I used:
<message name="CancelFault">
<part name="error" type="xsd:string"/>
</message>
However when I do this (for a RPC binding type web service) I get the following error from NetBeans:
in message "CancelFault", part "error" must specify a "element" attribute
If I change the code to the following the wsdl compiles OK:
<message name="CancelFault">
<part name="error" element="tns:UnknownOrderFault"/>
</message>
Is the book wrong in this case, or Netbeans too strict or have I made a mistake?