• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

WSDL Faults and Appliation Exceptions

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?
Check your pockets for water buffalo. You might need to use this tiny ad until locate a water buffalo:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic