• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

WSDL Faults and Appliation Exceptions

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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"/>
</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?
reply
    Bookmark Topic Watch Topic
  • New Topic