Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

WSDL Faults and Appliation Exceptions

Steve Hicks
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"/>
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"/>
Is the book wrong in this case, or Netbeans too strict or have I made a mistake?
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!